how to open a file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sam

    #1

    how to open a file

    Hi, I want to open a file which are situated on server see in c or d
    and I know the file how can i use php to open particular file and copy
    paste in my computer or user's computer.

  • seaside

    #2
    Re: how to open a file


    sam schrieb:
    Hi, I want to open a file which are situated on server see in c or d
    and I know the file how can i use php to open particular file and copy
    paste in my computer or user's computer.
    Load a file into an array:

    $sourceFile = file( $aFilePath );

    Alternatively, use fopen() to open a file and other f*() function
    read/write data

    Comment

    Working...