Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Thodoris
Thodoris wrote: hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists("/root/Desktop/conf_files_linux")) echo "yes file is there"; else echo "no none"; It gives me none. If i place conf_files_linux file in /var/www/html.

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Peter Ford
Thodoris wrote: > >> hi >> I was trying to read a file from Desktop (Centos), >> >> Simply saying (php code file is in /var/www/html/ ) >> >> if (file_exists("/root/Desktop/conf_files_linux")) >> echo "yes file is there"; >> else >> echo "no none"; >> >> It gives me none. >> If i place conf_files_

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Vikas Sharma
thanks for replying >From command line can access that file. But i need some interface, through that i want to change some files. I am using apache (httpd) server. Now i need to give access to apache user of those folders, which is not recommended as per you. or in order to use the suexec featu

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Thodoris
hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists("/root/Desktop/conf_files_linux")) echo "yes file is there"; else echo "no none"; It gives me none. If i place conf_files_linux file in /var/www/html. i get yes... After

[PHP] Can not read write file from Desktop

2009-05-12 Thread Vikas Sharma
hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists("/root/Desktop/conf_files_linux")) echo "yes file is there"; else echo "no none"; It gives me none. If i place conf_files_linux file in /var/www/html. i get yes... After ch