samiuddin_adse — 2011-03-22T08:17:51-04:00 — #1
I tried to open the file to write content in the folder
below is the code
$fo = fopen("/zeeproject/phpforms/vehiclecollection.txt", "w+") or die("can't open file");
it is giving erro can't open file
The path which i have given is inside joomla. on linux
please help me out
tangoforce — 2011-03-22T08:40:46-04:00 — #2
When you say its in joomla... The script that contrains the above code, where is it located on the linux file system (directly from the root of the drive)?
dmwdave — 2011-03-22T08:43:52-04:00 — #3
Maybe a silly question, but does the file already exist? and does the user account running PHP have write acccess to the folder/file your trying to write to?
If you dont have write permissions, you will need to run a chmod on the directory.
amit_yaron — 2011-03-22T08:46:39-04:00 — #4
What error do you get? You can check in the server's error log. For example, in my computer the error log can be found in '/var/log/apache2/error.log'.