php scripts keep failing

He has: 688 posts

Joined: Feb 2001

Can somebody tell me what's going on. I tried installing a poll. The admin section says everything is fine but when I call the script via include it come back with a mess of php stuff I don't understand. I opened up the file that I was including and narrowed the problem to not be the include method but in the file that I was calling.

I eventually gave up and installe a different poll script but everything happened the same again (but with different php errors). Can somebody look at these two links and tell me if I have something wrong on my server or something that would cause both scripts to fail even though both admin panels said they were set up correctly? What does all that mean, because I think I've got all my paths set up right.

Thanks.

http://www.pstvalumni.com/poll/pollinc.php

http://www.pstvalumni.com/poll2/poll.php

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

poll2 is working for me.

I believe your include_path is borked. The second error in the first poll is an empty string.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

It looks like you need to specify the full path, i.e. /home/username/www/poll/pollconfig.php in your include statement. Using /poll/pollconfig.php will work fine as a link but you need the full path in an include statement.

All the other errors are related to it.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

He has: 207 posts

Joined: Apr 2003

question should be "Hear me now", not "here me now".
your path is incorrect on the first poll.
its usually something like, /home/user/www/html/poll/includes/config.inc.php

Cymru am byth

He has: 688 posts

Joined: Feb 2001

Thanks all. I got one to work by adjusting to the full path instead of just the html link. I'll try this method on the second and then decide which script I like better. Thanks for helping me pinpoint what was going wrong Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.