Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Environment variable and PHP?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Environment variable and PHP?

Postby pop36 » Tue Jul 08, 2003 10:47 am

Hi,
I have an .htaccess file that defines several environment variables (SetEnv VAR_NAME var_value) but when I'm trying to use these variables in my PHP code (using $VAR_NAME), they appear to be empty.
Is there any special setting to perform with apache or php.ini to solve the problem?
Thanks
pop36
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Jul 08, 2003 10:38 am

Postby Skeletor » Tue Jul 08, 2003 1:28 pm

What variables are you trying to reference?
Skeletor
New php-forum User
New php-forum User
 
Posts: 147
Joined: Tue Nov 19, 2002 7:47 am
Location: US, Ohio

Postby pop36 » Tue Jul 08, 2003 2:14 pm

Problem solved.
Thanks anyway
pop36
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Jul 08, 2003 10:38 am


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.