SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 1st, 2003, 11:43 PM
sumanth sumanth is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 1 sumanth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry 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.

Reply With Quote
  #2  
Old June 1st, 2003, 11:58 PM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
Would you please elaborate your question a little more.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > can't write into files using system() in PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway