Jump to content

question on file creation


racer99

Recommended Posts

Hi all,
quick question with Apache.  I am working on a project the involves PHP creating .CSV file on an Apache server.  However, when I try to call the file in the browser in tells me it can't be found. Does anyone know if Apache has a setting for placing default files in a different directory.  The file is suppose to be created in the same directory as the other pages; however, obviously this isnt the case.  I am pretty sure the file is being created somewhere though because I am not getting any errors when the script writes to to the file. 

Thanks in advance
Link to comment
https://forums.phpfreaks.com/topic/28030-question-on-file-creation/
Share on other sites

No. This is down to your PHP script. Perhaps there is a variable somewhere which defines where your .csv file is being created.

Also have a look at Apaches error logs to see if your PHP is actually creating the file. Just because you're getting no errors doesn't mean PHP has created the file, especially if your server doesn't have display_errors directive enabled in the php.ini

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.