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.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

php problem

  • 20-05-2004 06:20PM
    #1
    Registered Users, Registered Users 2 Posts: 1,182 ✭✭✭


    (Sorry about the lack of detail - I'm not at my desk - will update post tomo)
    Unusual one I think, I was running php 4.3.2 on a windows pc no problem. Then I decided to move everything to a Red Hat 9.0 Linux box which came installed with php 4.2.2. After some initial configuration php is now running okay except for one thing - HTTP header variables aren't being passed from a simple html form on one page to the called php script to be processed. I haven't changed any of the code - which was working on the windows pc by the way...
    Does anybody know of anything simple I'm missing out on here? Thanks in advance.
    (ps - I can see the header vars being passed if I send them as part of a GET request)

    update: Sorted it. I explicitly assigned the http request headers to my variables using the $_REQUEST method which I didn't have to do with ver 4.3.2 on windows XP.

    e.g. $myVar = $_REQUEST(myVar);



    Beef


Comments

  • Registered Users, Registered Users 2 Posts: 135 ✭✭pheelay


    Register Globals is more than likely set to Off on your Red Hat install (it's better that way!)
    This is set in php.ini -not sure where its located on RedHat but if you need to change it search in /etc/


  • Registered Users, Registered Users 2 Posts: 1,182 ✭✭✭Beef


    Indeed you're right - register_globals is set to off. I'm gonna leave it that way though (not for security reasons - it's an intranet) but it's not a bad habbit to be declaring variables in the script anyway - easier to see what's going on between pages. Cheers for that.


Advertisement