...

View Full Version : PHP - script - help



roly_33
05-20-2008, 02:13 PM
Hi,

Following on from my previous post - I know have an issue whereby a booking form I have cobbled together - will not work on my clients hosted server but the same files work on some free lycos webspace that I have -

On the net benefit Server - (hosted one ) the form produces a parse error
(http://www.woodyhyde.co.uk/booking.html)


Yet on the Lycos (free webspace) the form processes fine and the 2 emails are sent.

(http://members.lycos.co.uk/rtbh/booking.html)

Can anybody shed any light on why this maybe happening and what I can do to rectify things. Is it to do with the send mail variable do I need to add the path to the sendmail on the server? If so whats the php to do this?

cheers

kbluhm
05-20-2008, 03:24 PM
Well, now that I've run through the process and know what the heck the error is, I'm going to let you post it since it's your question.

And while you're at it, could you post the code as well? It'd be a super huge help... no one here is a psychic.

derzok
05-20-2008, 04:04 PM
haha, there's no way we could figure out what the problem is without the code... well, we could guess, but we'd be taking shots in the dark.

roly_33
05-20-2008, 04:27 PM
Hi the php is on a previous post of mine . http://www.codingforums.com/showthread.php?t=140097 -

Did not want to post it all over again..

Oh and the PHP info via the test.php file is here - http://www.woodyhyde.co.uk/test.php

cheers

derzok
05-20-2008, 04:37 PM
In that thread, you said you made some changes - repost your code. I'll look through it! (I am so bored right now)

PappaJohn
05-20-2008, 04:42 PM
php version 3! Build Date: Apr 25 2002!

CFMaBiSmAd
05-20-2008, 05:08 PM
Now that is the funniest thing I have ever seen posted in a php forum. No one on this planet should still be using php3 (or php4.) :eek:

kbluhm
05-20-2008, 05:48 PM
I am sorry to inform you that foreach() was non-existent prior to PHP4, as well as sprintf(), preg_match(), mail(), and header().

Time to upgrade!

roly_33
05-20-2008, 06:07 PM
when everybody has finished laughing - gee thanks - how do I upgrade my code - I am just starting out and feel be littled by all -

Inigoesdr
05-20-2008, 06:25 PM
Don't take the joking personally. We're a light-hearted bunch here. At least that's what they tell me when they laugh at me. :(

Anyway, to answer your question, you need to upgrade your PHP version, not your script. If you're using this on a server where you pay for hosting you should probably seek hosting elsewhere. If this is on your computer I would recommend using something like XAMPP or WAMP to install everything for you.

rafiki
05-20-2008, 06:26 PM
It's not your code you need to update. It's your version of PHP on your server..

roly_33
05-21-2008, 08:12 AM
Ahh! so there was nothing much the matter with my code then it fails because the PHP on the Netbenefit server is too old to handle my new php and it does not understand a few of the terms -

But is that not just rubbish for a webserver of a decent sized company to only have support for really old php running..

I feel a little less stupid now and some of my confidence is back..

Inigoesdr
05-21-2008, 08:58 AM
But is that not just rubbish for a webserver of a decent sized company to only have support for really old php running..
Yeah, that's pretty ridiculous. PHP4 came out in 2000, and support for it has been dropped as of the end of last year, so they are wayyy behind.

I feel a little less stupid now and some of my confidence is back..
Excellent. :thumbsup:

roly_33
06-10-2008, 10:39 AM
Just an update - the server folks have updated the version of php and my form now works fine. hurrah



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum