| Web Design and Hosting Creating sites, scripting, and hosting discussions. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
|
Guest
Posts: n/a
|
Does anyone know the command line to change the output_buffering directive in the php.ini file by using either the ini_set() function in a php file or using a .htaccess file? The hosting company server that I use has that directive set to 'no value' and I need it to be turned on/set to a certain character size. They seem to not know what I am talking about, so I was checking to see if I could do it through ini_set() or .htaccess. I do not have access to the php.ini file myself since I am using a shared hosting plan and not a dedicated server.
|
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
Quote:
This will test the current value: <?php $oldsetting=ini_get('output_buffering'); echo "The old setting is $oldsetting <br>"; ?> To change it do a: <?php $oldsetting=ini_set('output_buffering',On); // or to the level of bytes of buf'r $newsetting=ini_get('output_buffering); echo "The OLD setting was: $oldsetting and the NEW setting is now: $newsetting.<br>"; ?> Not wishing to perhaps teach you to suck eggs but output buffering is a variable that is so-called PHP_INI_PERDIR which means you can change the setting in php.ini (for a global setting over your server) or in the .htaccess or httpd.conf files when using apache for a per directory setting of this variable. However how you do the latter for httpd.conf and php.ini I am not sure. I would be sure php.net or perhaps a search on apache, php.ini, .htaccess may avail some answers if you need this on a per dir setting. Try the ini_set method first though to make sure that works. Hope this helps you! Vicky :flower: |
|
| QUOTE Thanks | ||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Error copying files to Win2K3 file server | mikemedendorp | OS X - Operating System | 5 | 03-16-2012 01:13 PM |
| Server 2003 upgrade woes file associations w/OS X Mac | klempit | OS X - Operating System | 5 | 02-05-2007 10:26 PM |
| Changing folder / file names... why so hard? | iFX | Switcher Hangout | 9 | 05-17-2005 10:15 PM |
| Can you guys open this site? | Desolate One | OS X - Apps and Games | 13 | 04-29-2005 01:23 PM |
| Problems with SMB and Windows 2000 Server | Hoppers | Internet, Networking, and Wireless | 0 | 01-26-2005 07:02 AM |
All times are GMT -4. The time now is 10:39 AM.
Powered by vBulletin