Ravens PHP Scripts: Forums
 

 

Search found 5 matches
Author Message
 Topic: On Win 2K localhost: "failed to open stream"
rcgauer

Replies: 10
Views: 11523

PostForum: PHP   Posted: Tue Oct 26, 2004 7:31 pm   Subject: On Win 2K localhost: "failed to open stream"
When I download and use the counter.dat from the server, and use your new code --

$counter = (int) fread($fp, 20);
die('$counter = '.$counter);
fclose($fp);

-- I get a correct visitor counte ...
 Topic: On Win 2K localhost: "failed to open stream"
rcgauer

Replies: 10
Views: 11523

PostForum: PHP   Posted: Tue Oct 26, 2004 6:35 pm   Subject: On Win 2K localhost: "failed to open stream"
$counter = 0
 Topic: On Win 2K localhost: "failed to open stream"
rcgauer

Replies: 10
Views: 11523

PostForum: PHP   Posted: Tue Oct 26, 2004 6:09 pm   Subject: On Win 2K localhost: "failed to open stream"
Here's the whole file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" ...
 Topic: On Win 2K localhost: "failed to open stream"
rcgauer

Replies: 10
Views: 11523

PostForum: PHP   Posted: Tue Oct 26, 2004 5:10 pm   Subject: re: On Win 2K localhost: "failed to open stream"
Here is the entire error message:

Warning: fopen(c:\Inetpub\wwwroot\DBTest\count.dat) [function.fopen]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\DBTest\dbtest2.php on line 23 ...
 Topic: On Win 2K localhost: "failed to open stream"
rcgauer

Replies: 10
Views: 11523

PostForum: PHP   Posted: Tue Oct 26, 2004 4:14 pm   Subject: On Win 2K localhost: "failed to open stream"
Hello,

I am new to this... and find PHP much easier to use on my remote server than on my local PC. (But that's a slow way to learn!)

Basic "hello world" and "phpinfo" scripts work fine locally ...
 

 Jump to:   

Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©