PHP code work on localhost but not webhotel ($_GET)

Posted by Mestika on Stack Overflow See other posts from Stack Overflow or by Mestika
Published on 2010-03-08T08:15:07Z Indexed on 2010/03/08 8:21 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

Hi all,

The following code works fine on my WAMP localhost server, but when I try to upload it, to my webhoste, it don't and I'm a bit confused about what's wrong.

The code is:

<?php
    if(isset($_GET['menu'])) {
        if($_GET['menu'] == 3) {
            echo "<!--Gallery Scripts-->\n";
            echo gallery();
        }
    }
?>

The purpose is that if the URL is saying: index.php?menu=3 it will run the function "gallery()" which will load the gallery. I'm doing this "trick" several times to avoid the page to load all my JavaScript and function each time the page loads.

Thanks

Mestika

© Stack Overflow or respective owner

Related posts about php

Related posts about get