Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

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

Options
  • 05-05-2009 9:33am
    #1
    Registered Users 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 Posts: 35,524 ✭✭✭✭Gordon


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


  • Registered Users 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 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 Posts: 7,739 ✭✭✭mneylon


    Check the log files

    Check the modules in the phpinfo output


  • Registered Users 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 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