Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2006, 03:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default fwrite(): supplied argument is not a valid stream

Hi there

Can anyone tell me what this means in an error in php code and how to remedy it?

fwrite(): supplied argument is not a valid stream resource

thanks alot

Adam

 
Old January 17th, 2006, 02:04 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

file can't be found by PHP.
file name may be wrong or file path may be wrong.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
A small donation and a link back to you
Students' finances
 
Old January 17th, 2006, 08:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Thanks

Would that be the same error as:

Warning: fopen(Log-Tarrif.dat): failed to open stream: Permission denied in

or is this a different error? If so what does this one mean?

thanks alot

Adam

 
Old January 20th, 2006, 02:09 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Is your PHP script having fopen() is in same directory as Log-Tarrif.dat?

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
A small donation and a link back to you
Students' finances





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid argument supplied for foreach() codejockey Beginning PHP 4 September 24th, 2010 03:40 AM
mailling list:mysql_num_rows(): supplied argument jamesz20 Beginning PHP 2 December 6th, 2006 11:45 AM
VDO STREAM FOR NETWORK beerobot C# 1 October 15th, 2004 02:03 AM
How can I encode the stream?HELP! HandSomeLi All Other Wrox Books 0 March 9th, 2004 06:21 AM
Stream Confusion benburrows General .NET 1 February 27th, 2004 12:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.