Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New Coder
    Join Date
    Apr 2008
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts

    PHP - script - help

    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

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    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.

  • #3
    Regular Coder
    Join Date
    May 2008
    Location
    Ohio
    Posts
    231
    Thanks
    3
    Thanked 21 Times in 21 Posts
    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.

  • #4
    New Coder
    Join Date
    Apr 2008
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi the php is on a previous post of mine . Booking Form Help -

    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
    Last edited by roly_33; 05-20-2008 at 04:40 PM.

  • #5
    Regular Coder
    Join Date
    May 2008
    Location
    Ohio
    Posts
    231
    Thanks
    3
    Thanked 21 Times in 21 Posts
    In that thread, you said you made some changes - repost your code. I'll look through it! (I am so bored right now)

  • #6
    Senior Coder
    Join Date
    Apr 2007
    Location
    Quakertown PA USA
    Posts
    1,028
    Thanks
    1
    Thanked 125 Times in 123 Posts
    php version 3! Build Date: Apr 25 2002!

  • #7
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    2,958
    Thanks
    2
    Thanked 304 Times in 296 Posts
    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.)
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #8
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    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!
    Last edited by kbluhm; 05-20-2008 at 05:59 PM.

  • #9
    New Coder
    Join Date
    Apr 2008
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts

    great

    when everybody has finished laughing - gee thanks - how do I upgrade my code - I am just starting out and feel be littled by all -

  • #10
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    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.

  • Users who have thanked Inigoesdr for this post:

    roly_33 (05-21-2008)

  • #11
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    It's not your code you need to update. It's your version of PHP on your server..

  • Users who have thanked rafiki for this post:

    roly_33 (05-21-2008)

  • #12
    New Coder
    Join Date
    Apr 2008
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Smile See do I now

    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..

  • #13
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Quote Originally Posted by roly_33 View Post
    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.
    Quote Originally Posted by roly_33 View Post
    I feel a little less stupid now and some of my confidence is back..
    Excellent.

  • #14
    New Coder
    Join Date
    Apr 2008
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Just an update - the server folks have updated the version of php and my form now works fine. hurrah


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •