SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast hdsol's Avatar
    Join Date
    Oct 2004
    Location
    wolcott Ct
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry displaying all variables

    I am hoping to get a quick answer. What is the command to list all the variables on a page. I have done this before but i don't remember how. I am trouble shooting a script that is passing a variable but i can't locate it. I think i have the wrong name but if i could see that it is being passed it would give me a head start. If all you are going to give me a rtfm just know that i am asking becouse the fm is at home and i am not.

  2. #2
    Tranceoholic lilleman's Avatar
    Join Date
    Feb 2004
    Location
    Írebro, Sweden
    Posts
    2,716
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Perhaps you're looking for print_r?
    ERIK RIKLUND :: Yes, I've been gone quite a while.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2005
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at

    phpinfo()

    This will give you a whole host of information, also, you can use print_r($_POST) or print_r($_GET) or print_r($_REQUEST) if you know where your variable is coming from.

    Andrew

  4. #4
    SitePoint Enthusiast hdsol's Avatar
    Join Date
    Oct 2004
    Location
    wolcott Ct
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the tips. I think i was overtired and just couldn't see straight. (it was 2 am) After a few hours of sleep I am ready to attack it again.


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
  •