|
#1
|
|||
|
|||
|
I'd like to install some software which requires these settings for PHP:
PHP safe mode OFF PHP register_globals ON PHP magic_quotes_runtime OFF What are the default settings for HG accounts? Can I change these for my account? Thanks! |
|
#2
|
||||
|
||||
|
As long as you are on a PHP 4 machine, you will be fine. Globals are off by default in PHP 5.
|
|
#3
|
|||
|
|||
|
Thanks!
I also just learned that one can put a script such as phpinfo.php in the root directory, which yields all the php settings. PS. Here's the script: <?php phpinfo(); ?> Save that as a text file as, say, phpinfo.php, and then access that page from your web browser. Last edited by notecat; 10-05-2006 at 08:40 PM. |
|
#4
|
||||
|
||||
|
Yes, you can, but it is unwise to leave it there after you are done looking at it.
|
|
#5
|
||||
|
||||
|
Quote:
Yes, but don't name it "phpinfo.php", and put it in a passworded directory. Seems like a simple solution???
|
|
#6
|
|||
|
|||
|
phpinfo() on Monza reports PHP version 4.4.4.
The following is the magic_quotes status: magic_quotes_gpc On magic_quotes_runtime OffI've tried each of the following in .htaccess
Any ideas what to use on HostGator? (My problem is with a content management system. The mailform sends an email with all the escapes in it and that\'s not very professional lookin\'.
|
|
#7
|
|||
|
|||
|
Put:
magic_quotes_gpc off magic_quotes_runtime off magic_quotes_gpc 0 magic_quotes_gpc off in php.ini |
|
#8
|
|||
|
|||
|
Ok.... But where is "php.ini" in a Shared hosting account?
I need my registered globals off. Specifically, I want them off only on one of my domains, not the entire account. Or even better, I would like to turn them off on my entire account, and only activate them if needed in a particular domain? How can I do this? I've looked through all the threads on this subject, and have tried the various things, and I can't figure out how to work it. Especially if I can't find php.ini? I'm on php 4. One other thing.... If I make a custom php.ini file, and since I don't know what the settings are for the original one, won't I LOSE all the default settings if I'm only changin some peramiters such as register_globals? Last edited by leeuniverse; 09-08-2007 at 04:04 PM. |
|
#9
|
|||
|
|||
|
You need to make it in public_html
|
|
#10
|
||||
|
||||
|
Quote:
Which CMS is it?
__________________
best regards, George |
|
#11
|
||||
|
||||
|
A little detail i have to tell.
You need also to include Zend Optimizer directives in your php.ini file because it would be disabled by default with your php.ini file. I had this problem when installing my first account on HostGator. If you ask tech support they will upload you a default php.ini file that you could study and use for what you need. |
|
#12
|
|||
|
|||
|
Thanks for all the responses. I'm using CMSimple (http://cmsimple.dk). I've been reading up on magic quotes and it's quite a mess.
I received a prompt response from the author on his forum - http://www.cmsimple.dk/forum/viewtop...701&highlight= - and the problem is fixed in the app rather than goofing around on the server. |
|
#13
|
||||
|
||||
|
Where can I download a copy of HG's php.ini to modify a setting and upload to a directory. I'm on Shared Server.
|
|
#14
|
||||
|
||||
|
Doesn't the shared CP have a Gator tool that helps with this request?
__________________
best regards, George |
|
#15
|
||||
|
||||
|
I wouldn't have a clue I'm brand new here. Nothing I could see in CP but like I said.
|
|
#16
|
||||
|
||||
|
Quote:
http://forums.hostgator.com/showpost...8&postcount=45 I have used this method.
__________________
best regards, George |
|
#17
|
||||
|
||||
|
Thanks George
|
|
#18
|
||||
|
||||
|
Your welcome, but I really thought HG had a tool in the HG tools that allowed you to create a php.ini over ride file and symlink it. Not being a shared customer limits me to not knowing any more
__________________
best regards, George |
|
#19
|
||||
|
||||
|
They have a symlink tool there but it doesn't create a php.ini. Infact the tool errors and says it can't find php.ini in root folder.
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 10:15 PM.






Seems like a simple solution???
Which CMS is it?




