UCOF
UCOF

Carpal \'Tunnel

Member Since: 17th Apr 2002
Total posts: 15414
Posted:Anyone any good at PHP?

Im having problems setting "register_globals" to off, and cant figure how, where or why.

Its set to "0" in php.ini, but im still being told it is "on"

frown

Anyone?


Delete Topic

mech
mech

Carpal \'Tunnel
Location: "In your ear"
Member Since: 9th Jun 2003
Total posts: 6207
Posted:where about is your php.ini held, if its not at top level dir, you would need to have a php.ini file in each of teh dirs that are dishing out php

if you have a look in joomla at the system setting page (in one of the menus across the top, you will be able to see where you php.ini file is being run from, and i would suggest that as you are on a shared server, that its not accessible to you, but only to the admin of the server, and to te apatche host.


Step (el-nombrie)

Delete

UCOF
UCOF

Carpal \'Tunnel

Member Since: 17th Apr 2002
Total posts: 15414
Posted:Do you mean system -> system info?

The php.ini is in the top level directory, with <topsecret> and the logs folder. Makes no differnce as to wher it is, or if I edit .htaccess, it still says "register_globals" is set to "on". frown

Ive created a ticket with the hosts and I'll see if they can sort it out.


Delete

Yakumo
Yakumo

veteran
Location: Oxfordshire
Member Since: 31st May 2006
Total posts: 1237
Posted:I've been looking at it it's a pig, it's ignoring the php.ini the host provided in the hosting directory root (have also tried site root to be sure). if that was a user loaded file I wouldn't be surprised, but they put it there.

tried disabling and re-enabling php to kickstart it, no joy, it might kick in with an IIS restart, but normally php would check it as the processor is called, so as you load a page.



and it's IIS without the htaccess compatibility mods, so they don't help. could add it to the global includes for joomla but it's not really a secure fix and he'd have to check it any time they patch joomla.


Blinded by Hyperlights, please donate generously grin

Delete

UCOF
UCOF

Carpal \'Tunnel

Member Since: 17th Apr 2002
Total posts: 15414
Posted:I got the Php.ini file from here
as stated in section 7 of this

confused


Delete

Yakumo
Yakumo

veteran
Location: Oxfordshire
Member Since: 31st May 2006
Total posts: 1237
Posted:oh, i thought it'd been provided, well it's been settup to ignore user ini's on the server anyway.

Blinded by Hyperlights, please donate generously grin

Delete


Similar Topics

Using the keywords [php required] we found the following similar topics.
1. Forums > Php help required [5 replies]
2. Forums > Art - help required [37 replies]
3. Forums > CGI to PHP for HoP [34 replies]
4. Forums > PHP Programming Question [17 replies]
5. Forums > Fire walkers required in Wellington, NZ [3 replies]

     Show more..