[PHP-DB] ini_set ...
I have the line ini_set('display_errors', 'on'); in my code, but it is not working. Does it need to be the first command on the page? Trish -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] ini_set ...
I have full access to the php.ini file, which is what I do now to test... go there, change the file, restart the IIS service, etc. I read somewhere recently where they used this line in their code, and I thought how convenient that would be ... just haven't been able to get it to work. I will try true instead of on and see if that works. Does it go back to the default on it's own, or do I need to hard-code that in the page when I'm done? Thanks Isaak! From: Isaak Malik [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2008 10:16 AM To: VanBuskirk, Patricia Subject: Re: [PHP-DB] ini_set ... On Fri, Mar 21, 2008 at 3:11 PM, VanBuskirk, Patricia [EMAIL PROTECTED] wrote: I have the line ini_set('display_errors', 'on'); in my code, but it is not working. Does it need to be the first command on the page? Trish -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You can call this function anywhere in your file, I'm using: ini_set('display_errors', 'True'); without a problem. If you're on a shared hosting environment it's possible that the adminstrators have disabled this function or feature. -- Isaak Malik Web Developer [EMAIL PROTECTED]
Re: [PHP-DB] ini_set ...
On Fri, Mar 21, 2008 at 10:20 AM, VanBuskirk, Patricia [EMAIL PROTECTED] wrote: I have the line ini_set('display_errors', 'on'); in my code, but it is not working. Does it need to be the first command on the page? [merge] I have full access to the php.ini file, which is what I do now to test... go there, change the file, restart the IIS service, etc. I read somewhere recently where they used this line in their code, and I thought how convenient that would be ... just haven't been able to get it to work. I will try true instead of on and see if that works. Does it go back to the default on it's own, or do I need to hard-code that in the page when I'm done? Trish, this is a general question rather than a database question, so it's being forwarded to the PHP-General list as well. It will not only get you some more detailed replies, but it helps keep the archives organized. If you're not already subscribed, please consider doing so: http://php.net/mailinglists Try something like this at the head of your code: ? error_reporting(E_ALL); ini_set('display_errors','On'); ? Keep in mind that it will only be executed in the same script as it's coded, and only if/when those lines are executed. It won't set the system-wide (or even same-session) display_errors, it only enables that option for that script at that time. -- /Daniel P. Brown Forensic Services, Senior Unix Engineer 1+ (570-) 362-0283 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] ini_set / $_SESSION[''] file directory
yes From: Ron Piggott [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net Subject: [PHP-DB] ini_set / $_SESSION[''] file directory Date: Sun, 30 Oct 2005 01:58:42 -0500 Is there a way that I may specify the directory (perhaps with the ini_set command) where the $_SESSION[''] files are stored on the server? For example I want to place them in /home/my_directory is session.cookie_path the variable this directory is specified in? (I read that you need to specify this before the session_start(); command) Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] ini_set / $_SESSION[''] file directory
Is there a way that I may specify the directory (perhaps with the ini_set command) where the $_SESSION[''] files are stored on the server? For example I want to place them in /home/my_directory is session.cookie_path the variable this directory is specified in? (I read that you need to specify this before the session_start(); command) Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] ini_set()
In order to create a session handling function that does not rely at all on cookies, I'm trying to use ini_set('session.use_cookies', '0') to make sure that the PHP server does not set cookies on page load. However, even though the ini_set goes through (as evidenced by the 0 in the ini_get()) the page sets a cookie every time with the name PHPSESSID. No matter what I do, that cookie still gets set, and I can't seem to get it to stop. Even on the simplest pages, it still sets. The following code still sets a cookie: ?php ini_set('session.use_cookies', '0'); $x=ini_get('session.use_cookies'); echo($x); ? Even though the $x returns the correct value, ('0'), the cookie still gets set. I'm using PHP 4.3.10 on OS 10.3 Mac, but the same thing happens on my ISP who serves the same version of PHP on a Linux box. Any ideas? Thanks, V -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php