
June 1st, 2003, 11:43 PM
|
|
Junior Member
|
|
Join Date: Jun 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
can't write into files using system() in PHP
HI,
I am able to call system("date") and it works properly but when i give system("date >temp") it gives me an error.when i try to execute processes where i write into files i am not able to do it
please help!!!!!
say I give a
if(system("date")==false){echo"<p>error";}
..it gives me the correct date and time in LINUX.
but when i give
if(system("date >temp")==false) {echo"<p>error";}
..it prints error
same if i give say a ./a.out
if ./a.out doesnt write into any file it works fine...
but if the process writes into any file it gives an error.
it is unable to.
SHOULD I CHANGE SOMETHING IN MY httpd.conf or php.ini??
THIS IS ON LINUX
from sumanth
Last edited by sumanth : June 2nd, 2003 at 08:37 PM.
|