PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > PHP
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 8-9-06, 10:09 AM   #1
apt42
Registered
 
Join Date: Jan 2005
Location: Australia
Posts: 24
Reputation: 0
Requesting help to understand PHP error

This doesn't relate to a problem I'm having with PHP I've written... haven't taken that road yet. But I would appreciate some help in understanding why I'm getting a PHP error on something I'm doing online on one machine, but not getting it on another (with a different internet connection).

Currently a scifi website is running a poll asking for viewer choices of favorite episodes of a series via a checkbox/submit set up - (www_dot_scifi_dot_com/stargate/poll)

When I vote in this on my home machine (Windows XP, running both IE and Firefox), I keep getting the following error:

Fatal error: Call to undefined function: fake404() in /home/scifi/web/docs/stargate/poll/poll.php on line 10

However, when I do it at work (also Windows XP, running IE), I don't - it votes properly.

I'm thinking this means there is something wrong with my setup at home. I've tried turning off adwatch and Zone Alarm, but it doesn't make a difference.

Does anyone know what it might be, or where I might find out? I'm not so much anxious about voting, but I'm wondering if this is going to become a recurring problem, given the high use of php in web design now... and whether there's some basic problem with my set up/security or something that is causing this.

Bests


Mon
apt42 is offline  
Old 8-9-06, 01:34 PM   #2
cc1030
 
Join Date: Mar 2003
Location: Agawam, MA
Posts: 915
Reputation: 130
That error tells you all you need to know -- the PHP script is trying to call a function called fake404(), but the function was never defined. It is impossible to determine why this is happening without seeing the script and the traffic which is causing the error. My guess would be that the script does some sort of validation/checking (perhaps based on IP address), and sends unwanted visitors to the fake404() function which would likely send them a 404 Not Found error (even though the request really was accepted). But that's just a guess.
cc1030 is offline  
Closed Thread

Thread Tools

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

Forum Jump


All times are GMT -4. The time now is 05:12 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.