GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Apache experts here? php.ini/htaccess (https://gfy.com/showthread.php?t=604360)

Sam Granger 05-01-2006 12:24 PM

Apache experts here? php.ini/htaccess
 
Trying to turn on globals_register through htaccess but i'm keep on getting a 500 internal server error.

Any ideas?

Damn host doesn't want to turn globals_register on for some security reasons.

QTbucks_Mark 05-01-2006 01:41 PM

Quote:

Originally Posted by Sam Granger
Trying to turn on globals_register through htaccess but i'm keep on getting a 500 internal server error.

What's in your .htaccess? If there's a typo Apache is likely to give you an 500 internal server error.

That should do it: php_flag register_globals 1

If you're using Apache 2.x you might have to put the php_flag inside a <virtual> or <directory> section.

teksonline 05-01-2006 02:01 PM

are you running php_suexec? if this is the case, you can not use php_flag

copy a php.ini file into that dir with the php scripts


http://www.ehosts.org/ehosts_480x60_01a.gif

BigBen 05-01-2006 04:56 PM

Quote:

Originally Posted by QTbucks_Mark
What's in your .htaccess? If there's a typo Apache is likely to give you an 500 internal server error.

That should do it: php_flag register_globals 1

If you're using Apache 2.x you might have to put the php_flag inside a <virtual> or <directory> section.

Nice. I actually just wanted to do this the other day, but didn't have a chance to look it up.

Your sites look pretty good in your sig, I think I'll try 'em out. :thumbsup

naitirps 05-01-2006 05:07 PM

globals_register is bad if enabled... i'd listen to your host.

change those vars to $_GET[var] or $_POST[var]... or if lazy, do all $_REQUEST[var] instead.


All times are GMT -7. The time now is 09:03 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123