Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Is there a php test I can do to test server php compatibility?

  • 05-05-2009 09:33AM
    #1
    Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭


    I have done a website for someone using Flash, and in it is the contact form. However, I can't seem to get the input to be sent via the php script. However again, everythig seems to be fine. Is there a simple php script I can use to upload to the web host and test its php-ness?

    Thanks in advance,

    Seanie.


Comments

  • Registered Users, Registered Users 2 Posts: 35,522 ✭✭✭✭Gordon


    <?php
    phpinfo();
    ?>
    
    Save as a php file, upload, then navigate to.


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Gordon wrote: »
    <?php
    phpinfo();
    ?>
    
    Save as a php file, upload, then navigate to.

    Thanks Gordon, let me try that...


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Yep, it seems to be fine, running on version 4.4.7

    However, as it is the same script I am using on another flash website, on a different domain/host, I don't know why it won't work here...

    Any tips for me to look for?

    Seanie


  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon


    Check the log files

    Check the modules in the phpinfo output


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    blacknight wrote: »
    Check the log files

    Check the modules in the phpinfo output

    You'll have to enlighten me a little more there!

    Seanie.


  • Advertisement
  • Closed Accounts Posts: 176 ✭✭elyod


    Is the other host which your script is working on php 4.4.7, or php 5?

    Maybe your trying to use a function which is only available in php 5


  • Closed Accounts Posts: 235 ✭✭Yerac


    I'm very out of practice with PHP but it would probably be best to test if any form variables are being passed and what exactly is/isn't working.

    You could try a dummy form whose output just echoes the variables to see if that basic stage is working.

    Also check out $_GET and $_POST and possibly superglobals which I have a nagging suspicion caused me problems before.


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Persistence is NOT futile, I managed to get it working.

    By the way, it was on www.waynebrennan.com

    ;)

    Seanie.


Advertisement