| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Comfy Contributor
Joined in Jun 2005
Lives in Singapore
Hosted on Pass15
120 posts
Gave thanks: 2
Thanked 0 times
|
htacceass allow_url_fopen and register_globals
sorry, but i a not familiar with HTACCESS..
i currently have AuthType Basic AuthName "Admin Control" AuthUserFile "/home/jttechno/.htpasswds/admin/passwd" require valid-user I want to add allow_url_fopen and register_globals but this doesnt work AuthType Basic AuthName "Admin Control" AuthUserFile "/home/jttechno/.htpasswds/admin/passwd" require valid-user php_flag allow_url_fopen on (i solved the register globals by invoking a function to do foreach $superglobal as $value => $key ....) Any help please? thanks in advance! |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jun 2008
Lives in UK
68 posts
Gave thanks: 5
Thanked 8 times
|
Sorry the php manual on curl is: PHP: cURL - Manual
|
|
|
|
|
|
#4 (permalink) |
|
the one who was
Super #1
Joined in Jul 2003
Lives in Memphis
1,967 posts
Gave thanks: 0
Thanked 3 times
|
Gmax hit it on the money, those two settings are usually always cut off server wide and you will not be able to enable them because they are HUGE security risks. Very easy for someone to do whatever they want on your website if you have them on, mainly allow_url_fopen. I can't stress enough how bad it is to think about cutting those on.
Take a look at the link for cURL that gmax posted. That should do what ya need there. Also the foreach loop you use to gather the variables is just as dangerous. It is much better to get the specific variables you need in each php script when you need them, rather than take every variable available in the environment at execution. Check out PHP: Using Register Globals - Manual for an explanation of how it can be exploited and why that method you are using now isn't a good idea.
__________________
Patrick Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jun 2008
Lives in UK
68 posts
Gave thanks: 5
Thanked 8 times
|
Who's giving me some money? ;-) lol
Sorry I totally missed the your loop, why would you want to do such a thing? It's like using a plastic bag to carry uncovered sharp blades ;-) |
|
|
|