Forum Moderators: coopster

Message Too Old, No Replies

server variable getting problem

         

flashzeus

4:33 pm on Nov 8, 2003 (gmt 0)

10+ Year Member



that's it:

i cannot get server variable on a page.

php, mysql is working. phpinfo() is showing that's ok.
But if i try use getenv("some server variable"),
i get nothing!

What can be happened?

With best regards.

RonPK

8:58 pm on Nov 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi and welcome to WebmasterWorld.

Not all server variables exist on every server or under all circumstances. Which one are you looking for, and exactly what code are you using?

flashzeus

7:44 am on Nov 9, 2003 (gmt 0)

10+ Year Member



Neither in my situation.

Two days before getenv is worked! On next day after it i can reach no one server variable. I tried do it by getting _SERVER variable, but i get nothing too...

I do not know what can be.

With ebst regards.

jatar_k

6:03 pm on Nov 10, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld flashzeus,

have you tried something like

print_r($_SERVER);

to dump the contents of the array? What version of php are you using?