Posted 27 July 2006 - 03:22 PM
$data = "Testing";
$fh = fopen("sample.txt","w");
fwrite($fh,$val . "\r\n");
$fh = fopen("sample.txt","r");
$val = fgets($fh);
I get an error on fopen
Warning: fopen(sample.txt): failed to open stream: Permission denied in /home/fhlinux190/d/des-otoole.co.uk/user/htdocs/fopen.php on line 3
Any sugestions please.
Posted 27 July 2006 - 03:30 PM
Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd
Posted 27 July 2006 - 03:34 PM
Posted 27 July 2006 - 03:53 PM
Posted 27 July 2006 - 04:00 PM
777 = everyone and their brother in law can read/write/execute the file.
here is a tutorial I found online that explains chmod'ing link. You should have FTP access to your site, (that's how most people upload their files to the server) and most FTP programs will allow you to change permissions of files (chmod). If you dont have a FTP program, here is a pretty good one that's freeware and allows you to change permissions by right clicking on the files and choosing "properties".
Posted 27 July 2006 - 04:06 PM
Posted 27 July 2006 - 04:12 PM
Posted 27 July 2006 - 04:13 PM
Posted 28 July 2006 - 09:42 AM
It appears that the apache has got the permission to access these files, you will need to set these file permissions to writeable and readable to all users.
Using a secure shell program, such as PuTTY, you can access your domain's home directory and carry out advanced maintenance, such as changing file permissions.
Shell access details for your site
Do I need to buy software called PuTTY. Tried creating a new profile inftpsurfer ssh.des-otoole.co.uk but no use. I am totlay lost on this. Things worked great under wWindows but slow.
PLESE DO NOT POST PRIVATE INFORMATION ON FORUMS, I HAVE REMOVED THE SHELL ACCESS INFO
Posted 28 July 2006 - 09:57 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users