Re: [PHP] changing php ini location
Emre wrote: ... yes i aware of php ini set, but there is no logic using that command for global changes that you use each time. if you want to change global php.ini settings for a spesific script than its useful, but to change global settings for each script, thats smt like overkill :) eg. you can use phpiniset to increase a script max execution time, espesiaclly for upload or image manipulation process purposes. but for global execution time setting must be set via php.ini. thats what that file is for. Yep there are some php.ini options that you simply can't change at runtime. Period. For a listing of these options that you can't change you should go here: bookmark_this_linkhttp://php.net/manual/en/ini.php#ini.list/bookmark_this_link anyway after my research, I couldnt find a way to change php.ini location on this system: windows XP, apache 1.3, php5. This probably isn't the method that you envisioned, but if you run PHP as a CGI then you can specify which php.ini to use like the following: path\to\php\php.exe -c path\to\php.ini Obviously you need to change the paths above. :) it sounds a little bit weird. why cant we use phpinidir at apache 1.3? since its supported by apache 2.0, it must also be supported by 1.3. how hard can it be anyway? most people (like me) still use and trust old good apache 1.3.XX its time to mail bomb apache dev team I think. All php users with apache 1.3, unite ! :) Better be careful there... Rasmus is/was on the Apache dev team... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] changing php ini location
On 5/14/05, emre [EMAIL PROTECTED] wrote: i am not using apache 2.0 /* Why aren't you? Apache 2.0 is your best bet. It really is the best one available! */ as i mentioned before i am using apache 1.3 which means that i dont have the oppurtunity to use phpnidir config parameter. since apache 1.3 doesnt support that. i cannot compile php neither, since i m using a php precompiled windows edition. /* It sure sounds like you are out of luck. Your only option is to get Apache 2.0 and use that directive. Can I ask why in the world you are doing this? Are you aware you can change almost any option in php.ini in your script with the ini_set function? http://www.php.net/ini_set */ -- [EMAIL PROTECTED] PHP rocks! Knowledge is Power. Power Corrupts. Go to school, become evil Disclaimer: Any disclaimer attached to this message may be ignored. However, I must say that the ENTIRE contents of this message are subject to other's criticism, corrections, and speculations. This message is Certified Virus Free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] changing php ini location
/* Why aren't you? Apache 2.0 is your best bet. It really is the best one available! */ Ive bad, real bad memories with apache 2.0 :) /* It sure sounds like you are out of luck. Your only option is to get Apache 2.0 and use that directive. Can I ask why in the world you are doing this? Are you aware you can change almost any option in php.ini in your script with the ini_set function? http://www.php.net/ini_set */ yes i aware of php ini set, but there is no logic using that command for global changes that you use each time. if you want to change global php.ini settings for a spesific script than its useful, but to change global settings for each script, thats smt like overkill :) eg. you can use phpiniset to increase a script max execution time, espesiaclly for upload or image manipulation process purposes. but for global execution time setting must be set via php.ini. thats what that file is for. anyway after my research, I couldnt find a way to change php.ini location on this system: windows XP, apache 1.3, php5. it sounds a little bit weird. why cant we use phpinidir at apache 1.3? since its supported by apache 2.0, it must also be supported by 1.3. how hard can it be anyway? most people (like me) still use and trust old good apache 1.3.XX its time to mail bomb apache dev team I think. All php users with apache 1.3, unite ! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] changing php ini location
Richard Lynch wrote: On Fri, May 13, 2005 12:20 pm, Faith Emre YILMAZ said: anyone knows how to change php ini location? I m using php5, apache 1.3 on windows xp. Re-compile. Since that's not practical for most users, you just have to use whatever phpinfo says is the right directory. Add : # configure the path to php.ini PHPIniDir C:/php Change the above path in your httpd.conf file, save it, then restart Apache. From : http://www.php.net/manual/en/install.windows.apache2.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] changing php ini location
i am not using apache 2.0 as i mentioned before i am using apache 1.3 which means that i dont have the oppurtunity to use phpnidir config parameter. since apache 1.3 doesnt support that. i cannot compile php neither, since i m using a php precompiled windows edition. - Original Message - From: Burhan Khalid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Faith Emre YILMAZ [EMAIL PROTECTED]; php-general@lists.php.net Sent: Saturday, May 14, 2005 1:21 PM Subject: Re: [PHP] changing php ini location Richard Lynch wrote: On Fri, May 13, 2005 12:20 pm, Faith Emre YILMAZ said: anyone knows how to change php ini location? I m using php5, apache 1.3 on windows xp. Re-compile. Since that's not practical for most users, you just have to use whatever phpinfo says is the right directory. Add : # configure the path to php.ini PHPIniDir C:/php Change the above path in your httpd.conf file, save it, then restart Apache. From : http://www.php.net/manual/en/install.windows.apache2.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] changing php ini location
anyone knows how to change php ini location? I m using php5, apache 1.3 on windows xp. thx in adv. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] changing php ini location
On Fri, May 13, 2005 12:20 pm, Faith Emre YILMAZ said: anyone knows how to change php ini location? I m using php5, apache 1.3 on windows xp. Re-compile. Since that's not practical for most users, you just have to use whatever phpinfo says is the right directory. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php