#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    I'd like to be able to save the php-file that has been processed.. This without sending the processed file to the clients (user browser) in some cases.

    I'll explain why I'd need it .. I'd like users to be able to submit material to my site. I would provide some functions to them which they could put in .php files, like DrawTableHeader(); or LinkTo("file.html");
    These function would be stored in files I include on the server.

    Now, I was planning to give them the possibility to include a number of these files in .zip archives. And when users would download them, then the files would be processed and replaced within the archive. But that shouldn't be the problem.
    I just need to find a way to get the processed files before they are being sent to the browser and be able to save them to file.html or so..

    Is this possible?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    Perhaps I should use the file options instead.. Wouldn't be that much more trouble and will likely work.

    $file_array = file("somefile.html")
    and then write the info's to another using fputs() or so..

Similar Threads

  1. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 09:27 AM
  2. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 07:06 AM
  3. Replies: 1
    Last Post: February 8th, 2004, 02:59 PM
  4. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 08:42 PM
  5. Delete file from browser cache
    By CEO in forum Perl Programming
    Replies: 2
    Last Post: January 12th, 2004, 07:57 AM

IMN logo majestic logo threadwatch logo seochat tools logo