![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
||
|
I changed php.ini to turn register globals off. Uploaded it to /public_html/
But my phpinfo() still show register globals on. It is as if server is not reading my php.ini. What's wrong? Thanks in advanced.
__________________
AnotherPhotoGallery.comLearnWebDesignOnline.com GupDesigns.com -- professional web templates and customization services |
|
|
|
||
|
#2
|
|||
|
Quote:
I suggest ask your hosting team for your supports ! |
||
|
|
|||
|
#3
|
||
|
What i know the php.ini never stay in public_html directory, this file only the admin fo your host can access and edit for you.
I dont remeber how, but is possible turn off the register globals editing the .htaccess file, try find in google. |
|
|
|
||
|
#4
|
||
|
hey fist think php.ini is a system file, but yes some host's does keep a local copy for each user, but this does not seems to be the case with you so better ask your host.
also php.ini if i am correct will only be activated once server is restarted, i am not sure about it but that' how i activate php.ini on my system. |
|
|
|
||
|
#5
|
||
|
You have to restart the apache server, which should force the PHP system to reread the php.ini file. If that doesn't work, rebooting the entire server should force the read. If you are on shared hosting, you will probably have to ask your host about it. If it's a dedicated server, also look to make sure that the php.ini file that you are changing is the one actually being read by php.
|
|
|
|
||
|
#6
|
|||
|
Did you have a php.ini file on your server before you started? Did you put the replacement in the exact same place?
On a cPanel server that is not running suexec you set your flags in the .htaccess file and can do so within each directory. I have also noticed that the syntax must be folloed much more strickly when the flags are in an ini file than when in the .htaccess. Correct syntax is: Quote:
__________________
ScriptMan |
||
|
|
|||
|
#7
|
||
|
You have to restart or reload the Apache server, doing do is simple and just takes a moment to do so
/etc/init.d/apache2 restart|reload I would really recoemdn consulting google on such things too, google will teach you a lot. |
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thinking About Changing to a New Web Hosting Company - 5 Steps to Plan Ahead for the | Tom_Sean | Web Hosting Forum | 0 | 07-19-2007 11:01 |
| Host Changing Issue: Please Help | pj_rajesh | Web Hosting Forum | 8 | 05-11-2007 08:27 |
| changing multiple dns | khuldun | Domain Name Forum | 3 | 10-25-2006 12:42 |
| Changing Web Hosts? Step-By-Step Guide | admans | Web Hosting Forum | 1 | 08-19-2005 18:37 |
| Changing hosts with Almost NO Downtime Tip | admans | Web Hosting Forum | 0 | 08-09-2005 13:52 |