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
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.