Welcome to Dream.In.Code
Become a PHP Expert!

Join 136,924 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,807 people online right now. Registration is fast and FREE... Join Now!




pho wont write to a file or create on godaddy

 
Reply to this topicStart new topic

pho wont write to a file or create on godaddy

Baby Jai
24 Mar, 2008 - 04:39 AM
Post #1

New D.I.C Head
*

Joined: 24 Mar, 2008
Posts: 2

CODE
Warning: fopen(sendmail/3-24-2008.txt): failed to open stream: No such file or directory in /home/content/r/o/a/yes/html/sendmail.php on line 41

Warning: fwrite(): supplied argument is not a valid stream resource in /home/content/r/o/a/yes/html/sendmail.php on line 43


here is error, i dont know why it wont write to the folder, the folder is chmodded at 755, and 646, I have tried them both with no luck. Any help here would be great

line41
$fp = fopen('sendmail/3-24-2008.txt', 'a', 1);

line 43
fwrite ($fp, $outputstring)
User is offlineProfile CardPM
+Quote Post

girasquid
RE: Pho Wont Write To A File Or Create On Godaddy
24 Mar, 2008 - 06:03 AM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,267



Thanked: 14 times
Dream Kudos: 650
My Contributions
Are you sure that sendmail/3-24-2008.txt exists? It looks like you need to create the file first before you can write to it.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 10:17PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month