SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: PHP Server side

  1. #1
    SitePoint Zealot
    Join Date
    Feb 2002
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Server side

    Could I ask a quick favour....I am trying to use this piece of code, on a new server "print$_SERVER['REQUEST_URI']?>?printable=1" doesn't seem to be working. I've copied the excate code which is working fine on another server.

    Should I be looking to see if there is something not configured correctly with the PHP (it's 4.3.4)?
    Have you ever come across this?

    Thanks in advance.

  2. #2
    SitePoint Enthusiast AdulteratedJedi's Avatar
    Join Date
    Mar 2002
    Location
    East Yorkshire, UK
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im really suprised that itis working on ANY server running PHP.

    AJ

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2002
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why?
    sorry this was the code: <?print$REQUEST_URI ?>?printable=1?>

  4. #4
    PHP manual bot bronze trophy Gaheris's Avatar
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    2,195
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you start PHP mode once and leave it twice, can't be that right, can it? Anyway, it's probably a register_globals problem, use $_SERVER['REQUEST_URI']

  5. #5
    SitePoint Addict moonchild's Avatar
    Join Date
    Nov 2003
    Location
    U$A
    Posts
    258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by alt
    why?
    sorry this was the code: <?print$REQUEST_URI ?>?printable=1?>
    try...
    PHP Code:
    <?php echo $_SERVER['REQUEST_URI'] . '?printable=1'?>

  6. #6
    SitePoint Zealot
    Join Date
    Feb 2002
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    register_globals.... that was the problem. Thanks all for your help!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •