SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: ini_set php
Hybrid View
-
Apr 2, 2009, 10:02 #1
- Join Date
- Oct 2008
- Posts
- 205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
ini_set php
hi,
when i set ini_set('memory_limit', '5M') it does not take any effect in my server but it works fine in my localhost.
-
Apr 2, 2009, 10:33 #2
- Join Date
- Jun 2006
- Location
- Wigan, Lancashire. UK
- Posts
- 523
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
Apr 2, 2009, 10:36 #3
- Join Date
- Oct 2008
- Posts
- 205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
i use php 4 version, it is said that my server supports php5 and as well as php4
-
Apr 2, 2009, 15:31 #4
- Join Date
- Oct 2006
- Location
- France, deep rural.
- Posts
- 6,869
- Mentioned
- 17 Post(s)
- Tagged
- 1 Thread(s)
Did you restart the server? (not the hardware I mean stop/start apache)
-
Apr 5, 2009, 06:52 #5
- Join Date
- Oct 2008
- Posts
- 205
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yes, i did it in my localhost, how do i restart my server only hosting provider have to do it. but is it necessary to restart server if i do so in coding?
-
Apr 5, 2009, 08:16 #6
- Join Date
- Oct 2006
- Location
- France, deep rural.
- Posts
- 6,869
- Mentioned
- 17 Post(s)
- Tagged
- 1 Thread(s)
I am sorry, my previous reply was misleading, you only need to stop start if you change a value in the php.ini file.
Whether ini_set() will work on shared hosting may well depend on if the hosting company allows ini_set to be overridden in scripts. I would doubt it, I think you may need to contact their support to check for yourself.
Bookmarks