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

PHP Script

Options
  • 03-12-2012 7:01pm
    #1
    Registered Users Posts: 7,042 ✭✭✭


    I have a php script I need to run on a website.
    It was provided by Vibrologix (http://www.vibralogix.com/linklokipn/) for managing the purchase of digital downloads from the site.

    The script just needed to be modified with product details/pricing/file location etc. It's then uploaded to the root directory on the site. When i go to the test url on the site I get 404.

    Any ideas why it won't run?


Comments

  • Closed Accounts Posts: 8,866 ✭✭✭Adam


    Well the 404 is a suggestion in itself...


  • Registered Users Posts: 7,042 ✭✭✭kaizersoze


    Adam wrote: »
    Well the 404 is a suggestion in itself...

    Yes. It suggests the script isn't working......:D
    The script is definately there in the root and the url location.

    231253.JPG


  • Registered Users Posts: 435 ✭✭doopa


    kaizersoze wrote: »
    Yes. It suggests the script isn't working......:D
    The script is definately there in the root and the url location.
    The 404 error suggests otherwise! Have you checked permissions?


  • Closed Accounts Posts: 8,866 ✭✭✭Adam


    Obviously something is missing, you don't get a 404 error just for the sake of it.


  • Registered Users Posts: 7,042 ✭✭✭kaizersoze


    doopa wrote: »
    The 404 error suggests otherwise! Have you checked permissions?

    Yeah permissions look fine. Everyone has full permission.

    I can see the file in Dreamweaver sitting in the root directory along with the other files on the server. Odd.


  • Advertisement
  • Closed Accounts Posts: 8,866 ✭✭✭Adam


    And the line of code/link that calls the script? Checked for typos, special characters, case sensitive?


  • Registered Users Posts: 7,042 ✭✭✭kaizersoze


    Adam wrote: »
    And the line of code/link that calls the script? Checked for typos, special characters, case sensitive?

    Yeah. I'm nearly blind checking it. :D

    This is the url....edited for privacyas it's not my site.
    http://www.mysite.ie/linklokipn.php?testform=1


  • Registered Users Posts: 10,641 ✭✭✭✭28064212


    If you create a simple test.php page and upload it to the root, does it work? i.e. something like this:
    [PHP]<html>
    <head><title>TITLE</title></head>
    <body>
    <?php echo "Test"; ?>
    </body></html>[/PHP]
    uploaded to the root and visit http://www.mysite.ie/test.php, do you still get a 404?

    Boardsie Enhancement Suite - a browser extension to make using Boards on desktop a better experience (includes full-width display, keyboard shortcuts, dark mode, and more). Now available through your browser's extension store.

    Firefox: https://addons.mozilla.org/addon/boardsie-enhancement-suite/

    Chrome/Edge/Opera: https://chromewebstore.google.com/detail/boardsie-enhancement-suit/bbgnmnfagihoohjkofdnofcfmkpdmmce



  • Registered Users Posts: 6,465 ✭✭✭MOH


    Have you checked the logs for any details?

    That's an IIS error message - my IIS knowledge is zilch, but I'm assuming there's additional configuration needed to support PHP, is that done?
    If you just stick
    <?php phpinfo(); ?>
    
    into a test.php file and upload it, does mysite.com/test.php work? [edit] Pretty much what 28064212 said

    Do you have a .htaccess (or whatever the IIS equivalent is) restricting access to the folder?

    Though it really sounds like either the path or filename is wrong (check for case sensitive?), or the permissions are.


  • Registered Users Posts: 7,042 ✭✭✭kaizersoze


    28064212 wrote: »
    If you create a simple test.php page and upload it to the root, does it work? i.e. something like this:
    [PHP]<html>
    <head><title>TITLE</title></head>
    <body>
    <?php echo "Test"; ?>
    </body></html>[/PHP]
    uploaded to the root and visit http://www.mysite.ie/test.php, do you still get a 404?

    Thanks. Still getting 404.

    I think MOH may be right about additional configuration hosting side.

    It's hosted on hosting365 so I'll get onto them and check.

    Thanks all.


  • Advertisement
Advertisement