Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Need help with PHP.
United States
Nite Shadow
Posted: Feb 13 2006, 09:05 AM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 3879
Member No.: 11
Joined: 13-October 03

Status: (0d) [--]


QUOTE (PHP Error message's)
Warning: fopen(/tisoft/online.txt): failed to open stream: No such file or directory in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 24

Warning: fclose(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 25

Warning: chmod(): No such file or directory in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 26

Warning: fopen(/tisoft/online.txt): failed to open stream: No such file or directory in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 29

Warning: flock(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 30

Warning: feof(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 32

Warning: fgets(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 34

Warning: feof(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 32

Warning: fgets(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 34

Warning: feof(): supplied argument is not a valid stream resource in /usr/hometemp/w00tyc8/public_html/tisoft/online.php on line 32


Can anybody help with this?
PMEmail Poster
Top
Unspecified
Draco Icebane
Posted: Feb 14 2006, 03:41 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


Hey, RII, wake up *pokes RII with a stick*

I have no idea, but from what I can tell, for some reason it doesn't think the stream (MP3, I assume) you are trying to open exists.

Can you check what the given lines read? NotePad's got this Goto command that lets you use a line number...
PM
Top
United States
Retriever II
Posted: Feb 14 2006, 04:53 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


you can't open a file for reading if it doesn't exist.

Try:

fopen("./online.txt", "r");

and make sure the file actually exists in the same directory as online.php

Likewise if you're opening it for writing, you'd better be certain the tisoft directory is chmodded to 0777

Also I'm not sure why you have a fclose() immediately following a fopen().

I'm not sure what you're doing, but you might want to look into the following functions:
file()
file_get_contents()

Draco: File stream. In this case, a text file.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0344 ]   [ 13 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.34 ]