Hi
all
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
Thanks
MD.Samiuddin
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)?
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.
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’.