Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 3rd, 2004, 11:42 PM
Registered User
 
Join Date: Aug 2004
Location: New York, NY, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 10 Hit Counter Error

I typed in the first Simple Hit Counter, created the count.dat, and ran it. While I get a number 1, I get errors:
Warning: fopen(./count.dat): failed to open stream: Permission denied in /Users/stevewas/Sites/hit-counter.php on line 6
Warning: fwrite(): supplied argument is not a valid stream resource in /Users/stevewas/Sites/hit-counter.php on line 6

Warning: fclose(): supplied argument is not a valid stream resource in /Users/stevewas/Sites/hit-counter.php on line 6
The count.dat does not seem to update. If I manually add a number is does get a 1 added but then the errors and the same number without a +1. I am running a Mac OS 10.3. I tried changing permissions to the file but still the error. Is this a unix error or a php error?
Thanks


Reply With Quote
  #2 (permalink)  
Old February 16th, 2006, 07:48 AM
Registered User
 
Join Date: Feb 2006
Location: london, , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Steve,
Did you manage to resolve this problem?
I am getting the same/simmilar erros. The only difference I am running on WinXp.
Any advice will be much appreciated.

Thanks :)
Reply With Quote
  #3 (permalink)  
Old April 23rd, 2006, 06:04 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try changing the file permissions (chmod) to 755.



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A Hit Counter, PLEASE HELP !!!!! ARD_40 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 23rd, 2006 06:25 AM
Hit Counter Help! NeilS21 Classic ASP Databases 4 April 29th, 2005 06:59 AM
hit counter gumgak Classic ASP Basics 2 November 2nd, 2003 12:44 AM
Hit Counter mateenmohd HTML Code Clinic 7 September 28th, 2003 07:22 AM



All times are GMT -4. The time now is 02:43 AM.


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