RE: [PHP] Error message not understood
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Monday, October 18, 2010 1:52 PM > To: Tommy Pham > Cc: 'PHP' > Subject: Re: [PHP] Error message not understood > > I'm running PHP as module with Apache. The version I downloaded was > your > [1], tho it wa version 5.2.14. When I downloaded and unzipped the files I > had already installed MySql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > > Thanks for the help. > > tholland Huh? If you downloaded the current version 5.3.3 of PHP. It should read this for MySQL & MySQLi extenstions in phpinfo(); : Client API version mysqlnd 5.0.7-dev - 091210 - $Revision: 300533 $ And you shouldn't have problems accessing MySQL 5.1. Regards, Tommy > - Original Message - > From: "Tommy Pham" > To: "'sueandant'" > Cc: "'PHP'" > Sent: Saturday, October 16, 2010 10:49 PM > Subject: RE: [PHP] Error message not understood > > > >> -Original Message- > >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] > >> Sent: Saturday, October 16, 2010 2:23 PM > >> To: Tommy Pham > >> Cc: PHP > >> Subject: Re: [PHP] Error message not understood > >> > >> Apologies! Vista Home Premium 32bit with SP2. I uninstalled it using > >> Windows' uninstaller. I didn't compile any of the packages. MySQL was > >> installed using the .msi download and PHP I simply unzipped to my > C:\PHP > >> folder. And, yes, they both came from the official sites. > >> > > > > Forgot to mention something, please don't top post. It makes hard for > > others to follow the thread. > > > > Are you running PHP with IIS or Apache? If with Apache how are you > > running > > PHP as, CGI or module? Since you're using official distributions, you'll > > have to use PHP VC6 TS build (if not using as CGI/FastCGI) for Apache [1]. > > If you're running PHP with IIS, you'll have to run NTS build for FastCGI > > [2]. > > > > [1] http://windows.php.net/downloads/releases/php-5.3.3-Win32-VC6- > x86.zip > > [2] > > http://windows.php.net/downloads/releases/php-5.3.3-nts-Win32-VC9- > x86.zip > > > >> - Original Message - > >> From: "Tommy Pham" > >> To: "'sueandant'" ; "'Luigi Pressello'" > >> > >> Cc: "'PHP'" > >> Sent: Saturday, October 16, 2010 9:38 PM > >> Subject: RE: [PHP] Error message not understood > >> > >> > >> >> -Original Message- > >> >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] > >> >> Sent: Saturday, October 16, 2010 1:16 PM > >> >> To: Luigi Pressello > >> >> Cc: PHP > >> >> Subject: Re: [PHP] Error message not understood > >> >> > >> >> I've run both programs. [1] outputs Client library version 5.1.51, but > >> >> [2] > >> >> gives no output. However I have checked MySql status via the > command > >> >> prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > >> > > >> > You still haven't answer the question of what platform? FreeBSD? > Linux? > >> > Mac? > >> > Windows? And what is the platform version? > >> > > >> >> > >> >> I originally installed PHP 5.3 but I couldn't get it to communicate > > with > >> > mysqli > >> >> (and I tried everything!) so I unstalled it and replaced it with > >> > > >> > How did you uninstall? Using the OS's software/package manager such > >> > package > >> > on FreeBSD, yast on some Linux, add/remove programs on Windows, > etc.? > >> Did > >> > you compile any of it - MySQL or PHP - yourself? > >> > > >> >> version 5.2.14. PHP info tells me this that the Client API library > >> > version > >> >> is 5.1.51 and the header version is 5.0.51a. > >> > > >> > This just means that there's a mismatch within the PHP. If you > >> > compiled > >> > from source for any of it, PHP's MySQL & MySQLi extensions depends on > >> the > >> > MySQL headers and client library. Thus, MySQL client has to be > >> > compiled > >> > first before you can compile the PHP's MySQL/MySQLi extensions. This
Re: [PHP] Error message not understood
I'm running PHP as module with Apache. The version I downloaded was your [1], tho it wa version 5.2.14. When I downloaded and unzipped the files I had already installed MySql Ver 14.14 Distrib 5.1.51 for Win32(ia32). Thanks for the help. tholland - Original Message - From: "Tommy Pham" To: "'sueandant'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 10:49 PM Subject: RE: [PHP] Error message not understood -Original Message- From: sueandant [mailto:hollandsath...@tiscali.co.uk] Sent: Saturday, October 16, 2010 2:23 PM To: Tommy Pham Cc: PHP Subject: Re: [PHP] Error message not understood Apologies! Vista Home Premium 32bit with SP2. I uninstalled it using Windows' uninstaller. I didn't compile any of the packages. MySQL was installed using the .msi download and PHP I simply unzipped to my C:\PHP folder. And, yes, they both came from the official sites. Forgot to mention something, please don't top post. It makes hard for others to follow the thread. Are you running PHP with IIS or Apache? If with Apache how are you running PHP as, CGI or module? Since you're using official distributions, you'll have to use PHP VC6 TS build (if not using as CGI/FastCGI) for Apache [1]. If you're running PHP with IIS, you'll have to run NTS build for FastCGI [2]. [1] http://windows.php.net/downloads/releases/php-5.3.3-Win32-VC6-x86.zip [2] http://windows.php.net/downloads/releases/php-5.3.3-nts-Win32-VC9-x86.zip - Original Message - From: "Tommy Pham" To: "'sueandant'" ; "'Luigi Pressello'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 9:38 PM Subject: RE: [PHP] Error message not understood >> -Original Message----- >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] >> Sent: Saturday, October 16, 2010 1:16 PM >> To: Luigi Pressello >> Cc: PHP >> Subject: Re: [PHP] Error message not understood >> >> I've run both programs. [1] outputs Client library version 5.1.51, but >> [2] >> gives no output. However I have checked MySql status via the command >> prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > > You still haven't answer the question of what platform? FreeBSD? Linux? > Mac? > Windows? And what is the platform version? > >> >> I originally installed PHP 5.3 but I couldn't get it to communicate with > mysqli >> (and I tried everything!) so I unstalled it and replaced it with > > How did you uninstall? Using the OS's software/package manager such > package > on FreeBSD, yast on some Linux, add/remove programs on Windows, etc.? Did > you compile any of it - MySQL or PHP - yourself? > >> version 5.2.14. PHP info tells me this that the Client API library > version >> is 5.1.51 and the header version is 5.0.51a. > > This just means that there's a mismatch within the PHP. If you > compiled > from source for any of it, PHP's MySQL & MySQLi extensions depends on the > MySQL headers and client library. Thus, MySQL client has to be > compiled > first before you can compile the PHP's MySQL/MySQLi extensions. This > applies to all platforms if you're doing your compilation from source. If > you didn't compile any of it - both MySQL and PHP - then the problem lies > within your OS's software/package manager. Without knowing what you're > using, we can't really tell what happens. Some Linux distributions do > things differently. I'm not well versed in Linux but many others here on > this list can help you with it. I suggest you 'uninstall' both PHP & > MySQL. > Then reinstall MySQL 1st and PHP 2nd. Also, just a bit curious... > where > did > you get the MySQL & PHP? I hope directly from the official source... > ;) > >> >> Does this help identify a solution? >> >> Thanks and best wishes >> >> tholland > > > > Regards, > Tommy > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message not understood
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Saturday, October 16, 2010 2:23 PM > To: Tommy Pham > Cc: PHP > Subject: Re: [PHP] Error message not understood > > Apologies! Vista Home Premium 32bit with SP2. I uninstalled it using > Windows' uninstaller. I didn't compile any of the packages. MySQL was > installed using the .msi download and PHP I simply unzipped to my C:\PHP > folder. And, yes, they both came from the official sites. > Forgot to mention something, please don't top post. It makes hard for others to follow the thread. Are you running PHP with IIS or Apache? If with Apache how are you running PHP as, CGI or module? Since you're using official distributions, you'll have to use PHP VC6 TS build (if not using as CGI/FastCGI) for Apache [1]. If you're running PHP with IIS, you'll have to run NTS build for FastCGI [2]. [1] http://windows.php.net/downloads/releases/php-5.3.3-Win32-VC6-x86.zip [2] http://windows.php.net/downloads/releases/php-5.3.3-nts-Win32-VC9-x86.zip > - Original Message - > From: "Tommy Pham" > To: "'sueandant'" ; "'Luigi Pressello'" > > Cc: "'PHP'" > Sent: Saturday, October 16, 2010 9:38 PM > Subject: RE: [PHP] Error message not understood > > > >> -Original Message----- > >> From: sueandant [mailto:hollandsath...@tiscali.co.uk] > >> Sent: Saturday, October 16, 2010 1:16 PM > >> To: Luigi Pressello > >> Cc: PHP > >> Subject: Re: [PHP] Error message not understood > >> > >> I've run both programs. [1] outputs Client library version 5.1.51, but > >> [2] > >> gives no output. However I have checked MySql status via the command > >> prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). > > > > You still haven't answer the question of what platform? FreeBSD? Linux? > > Mac? > > Windows? And what is the platform version? > > > >> > >> I originally installed PHP 5.3 but I couldn't get it to communicate with > > mysqli > >> (and I tried everything!) so I unstalled it and replaced it with > > > > How did you uninstall? Using the OS's software/package manager such > > package > > on FreeBSD, yast on some Linux, add/remove programs on Windows, etc.? > Did > > you compile any of it - MySQL or PHP - yourself? > > > >> version 5.2.14. PHP info tells me this that the Client API library > > version > >> is 5.1.51 and the header version is 5.0.51a. > > > > This just means that there's a mismatch within the PHP. If you compiled > > from source for any of it, PHP's MySQL & MySQLi extensions depends on > the > > MySQL headers and client library. Thus, MySQL client has to be compiled > > first before you can compile the PHP's MySQL/MySQLi extensions. This > > applies to all platforms if you're doing your compilation from source. If > > you didn't compile any of it - both MySQL and PHP - then the problem lies > > within your OS's software/package manager. Without knowing what > you're > > using, we can't really tell what happens. Some Linux distributions do > > things differently. I'm not well versed in Linux but many others here on > > this list can help you with it. I suggest you 'uninstall' both PHP & > > MySQL. > > Then reinstall MySQL 1st and PHP 2nd. Also, just a bit curious... where > > did > > you get the MySQL & PHP? I hope directly from the official source... ;) > > > >> > >> Does this help identify a solution? > >> > >> Thanks and best wishes > >> > >> tholland > > > > > > > > Regards, > > Tommy > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message not understood
Apologies! Vista Home Premium 32bit with SP2. I uninstalled it using Windows' uninstaller. I didn't compile any of the packages. MySQL was installed using the .msi download and PHP I simply unzipped to my C:\PHP folder. And, yes, they both came from the official sites. - Original Message - From: "Tommy Pham" To: "'sueandant'" ; "'Luigi Pressello'" Cc: "'PHP'" Sent: Saturday, October 16, 2010 9:38 PM Subject: RE: [PHP] Error message not understood -Original Message- From: sueandant [mailto:hollandsath...@tiscali.co.uk] Sent: Saturday, October 16, 2010 1:16 PM To: Luigi Pressello Cc: PHP Subject: Re: [PHP] Error message not understood I've run both programs. [1] outputs Client library version 5.1.51, but [2] gives no output. However I have checked MySql status via the command prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). You still haven't answer the question of what platform? FreeBSD? Linux? Mac? Windows? And what is the platform version? I originally installed PHP 5.3 but I couldn't get it to communicate with mysqli (and I tried everything!) so I unstalled it and replaced it with How did you uninstall? Using the OS's software/package manager such package on FreeBSD, yast on some Linux, add/remove programs on Windows, etc.? Did you compile any of it - MySQL or PHP - yourself? version 5.2.14. PHP info tells me this that the Client API library version is 5.1.51 and the header version is 5.0.51a. This just means that there's a mismatch within the PHP. If you compiled from source for any of it, PHP's MySQL & MySQLi extensions depends on the MySQL headers and client library. Thus, MySQL client has to be compiled first before you can compile the PHP's MySQL/MySQLi extensions. This applies to all platforms if you're doing your compilation from source. If you didn't compile any of it - both MySQL and PHP - then the problem lies within your OS's software/package manager. Without knowing what you're using, we can't really tell what happens. Some Linux distributions do things differently. I'm not well versed in Linux but many others here on this list can help you with it. I suggest you 'uninstall' both PHP & MySQL. Then reinstall MySQL 1st and PHP 2nd. Also, just a bit curious... where did you get the MySQL & PHP? I hope directly from the official source... ;) Does this help identify a solution? Thanks and best wishes tholland Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message not understood
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Saturday, October 16, 2010 1:16 PM > To: Luigi Pressello > Cc: PHP > Subject: Re: [PHP] Error message not understood > > I've run both programs. [1] outputs Client library version 5.1.51, but [2] > gives no output. However I have checked MySql status via the command > prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). You still haven't answer the question of what platform? FreeBSD? Linux? Mac? Windows? And what is the platform version? > > I originally installed PHP 5.3 but I couldn't get it to communicate with mysqli > (and I tried everything!) so I unstalled it and replaced it with How did you uninstall? Using the OS's software/package manager such package on FreeBSD, yast on some Linux, add/remove programs on Windows, etc.? Did you compile any of it - MySQL or PHP - yourself? > version 5.2.14. PHP info tells me this that the Client API library version > is 5.1.51 and the header version is 5.0.51a. This just means that there's a mismatch within the PHP. If you compiled from source for any of it, PHP's MySQL & MySQLi extensions depends on the MySQL headers and client library. Thus, MySQL client has to be compiled first before you can compile the PHP's MySQL/MySQLi extensions. This applies to all platforms if you're doing your compilation from source. If you didn't compile any of it - both MySQL and PHP - then the problem lies within your OS's software/package manager. Without knowing what you're using, we can't really tell what happens. Some Linux distributions do things differently. I'm not well versed in Linux but many others here on this list can help you with it. I suggest you 'uninstall' both PHP & MySQL. Then reinstall MySQL 1st and PHP 2nd. Also, just a bit curious... where did you get the MySQL & PHP? I hope directly from the official source... ;) > > Does this help identify a solution? > > Thanks and best wishes > > tholland Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message not understood
I've run both programs. [1] outputs Client library version 5.1.51, but [2] gives no output. However I have checked MySql status via the command prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32). I originally installed PHP 5.3 but I couldn't get it to communicate with mysqli (and I tried everything!) so I unstalled it and replaced it with version 5.2.14. PHP info tells me this that the Client API library version is 5.1.51 and the header version is 5.0.51a. Does this help identify a solution? Thanks and best wishes tholland - Original Message - From: "Luigi Pressello" To: "Tommy Pham" Cc: "'sueandant'" ; "'PHP'" Sent: Friday, October 15, 2010 10:46 PM Subject: Re: [PHP] Error message not understood Probably a PHP compilation problem. The message seems refer to the headers (libmysql.h) used in the ./configure phase of the building process. It seems like your PHP version was compiled using a MySQL 5.0.11 version header, while your connecting to a server running MySQL 5.1.51, Have you upgraded your MySQL recently? are you using the MySQL server on the same machine that runs Apache/IIS/etc.. and PHP? Sorry for the "Italianese" english :) Luigi. Il giorno 15/ott/2010, alle ore 23.19, Tommy Pham ha scritto: -Original Message- From: Tommy Pham [mailto:tommy...@gmail.com] Sent: Friday, October 15, 2010 2:16 PM To: 'sueandant'; 'PHP' Subject: RE: [PHP] Error message not understood -Original Message- From: sueandant [mailto:hollandsath...@tiscali.co.uk] Sent: Friday, October 15, 2010 2:02 PM To: PHP Subject: [PHP] Error message not understood Can anyone help me with this error message and explain how to correct the mismatch? PHP Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50151 tholland It would help if you provide the platform and platform version: Windows, Linux, Mac, FreeBSD, or other variants. And also the PHP version you're using. Did you compile PHP yourself or use a distribution? Regards, Tommy Forgot to mention this earlier... too hasty on the send button ... lol. Since it's only a warning and you are able to connect, run [1] & [2] to see what do you get. [1] http://us2.php.net/manual/en/mysqli.get-client-info.php [2] http://us2.php.net/manual/en/mysqli.info.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message not understood
Probably a PHP compilation problem. The message seems refer to the headers (libmysql.h) used in the ../configure phase of the building process. It seems like your PHP version was compiled using a MySQL 5.0.11 version header, while your connecting to a server running MySQL 5.1.51, Have you upgraded your MySQL recently? are you using the MySQL server on the same machine that runs Apache/IIS/etc.. and PHP? Sorry for the "Italianese" english :) Luigi. Il giorno 15/ott/2010, alle ore 23.19, Tommy Pham ha scritto: >> -Original Message- >> From: Tommy Pham [mailto:tommy...@gmail.com] >> Sent: Friday, October 15, 2010 2:16 PM >> To: 'sueandant'; 'PHP' >> Subject: RE: [PHP] Error message not understood >> >>> -Original Message- >>> From: sueandant [mailto:hollandsath...@tiscali.co.uk] >>> Sent: Friday, October 15, 2010 2:02 PM >>> To: PHP >>> Subject: [PHP] Error message not understood >>> >>> Can anyone help me with this error message and explain how to correct >>> the mismatch? >>> >>> PHP Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library >>> minor version mismatch. Headers:50051 Library:50151 >>> >>> tholland >> >> It would help if you provide the platform and platform version: >> Windows, Linux, Mac, FreeBSD, or other variants. >> >> And also the PHP version you're using. Did you compile PHP yourself or > use >> a distribution? >> >> Regards, >> Tommy > > Forgot to mention this earlier... too hasty on the send button ... lol. > > Since it's only a warning and you are able to connect, run [1] & [2] to see > what do you get. > > [1] http://us2.php.net/manual/en/mysqli.get-client-info.php > [2] http://us2.php.net/manual/en/mysqli.info.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message not understood
> -Original Message- > From: Tommy Pham [mailto:tommy...@gmail.com] > Sent: Friday, October 15, 2010 2:16 PM > To: 'sueandant'; 'PHP' > Subject: RE: [PHP] Error message not understood > > > -Original Message- > > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > > Sent: Friday, October 15, 2010 2:02 PM > > To: PHP > > Subject: [PHP] Error message not understood > > > > Can anyone help me with this error message and explain how to correct > > the mismatch? > > > > PHP Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library > > minor version mismatch. Headers:50051 Library:50151 > > > > tholland > > It would help if you provide the platform and platform version: > Windows, Linux, Mac, FreeBSD, or other variants. > > And also the PHP version you're using. Did you compile PHP yourself or use > a distribution? > > Regards, > Tommy Forgot to mention this earlier... too hasty on the send button ... lol. Since it's only a warning and you are able to connect, run [1] & [2] to see what do you get. [1] http://us2.php.net/manual/en/mysqli.get-client-info.php [2] http://us2.php.net/manual/en/mysqli.info.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message not understood
> -Original Message- > From: sueandant [mailto:hollandsath...@tiscali.co.uk] > Sent: Friday, October 15, 2010 2:02 PM > To: PHP > Subject: [PHP] Error message not understood > > Can anyone help me with this error message and explain how to correct the > mismatch? > > PHP Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor > version mismatch. Headers:50051 Library:50151 > > tholland It would help if you provide the platform and platform version: Windows, Linux, Mac, FreeBSD, or other variants. And also the PHP version you're using. Did you compile PHP yourself or use a distribution? Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error message not understood
Can anyone help me with this error message and explain how to correct the mismatch? PHP Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50151 tholland
Re: [PHP] Error Message - Need help troubleshooting
On Mar 2, 2010, at 9:45 AM, Joseph Thayne wrote: I do not know if the question has been answered, but how are you opening the session? Are you using session_start() or are you using session_register()? Hi Joseph. It is created via: session_start(); --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message - Need help troubleshooting
On Mar 2, 2010, at 9:35 AM, Ashley Sheridan wrote: I'm assuming then that both the Javascript an the PHP code you have above are both on the same page. The only way I can see your problem occurring would be if your javascript part was on a different page and you were attempting to output the $item_id. If PHP could not find a variable with that name, it may be reverting to using the item_id value found in $_SESSION, which would give you the error you're seeing. Yes this is the case. However, what you said brings up a point if interest. The page that the link is bringing up contains the following: if ($_GET["iid"]=='') { $item_id = ($_SESSION["item_id"]); } else { $item_id = $_GET["iid"]; } This code determines if the user is getting there from the initial link and if so, sets the variable item_id to the value passed in the URL. Again however, this was not returning errors when the link was hardcoded with a value in place of item_id. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message - Need help troubleshooting
I do not know if the question has been answered, but how are you opening the session? Are you using session_start() or are you using session_register()? Rick Dwyer wrote: On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: How is $item_id created? You've not shown that in your PHP script examples. // parse item id from the url $refer=$_SERVER['HTTP_REFERER']; $thispage=$_SERVER['PHP_SELF']; $item_id=substr($thispage, -9); $item_id=substr($item_id, 0, 5); $_SESSION['item_id'] = "$item_id"; The above is where item_id is created and added to a session. The important thing is that this error never showed up before until I added the Javascript link below: var oss_itemid = ""; var loadOSS = window.open("http://www.myurl/myfile.php?iid="; + oss_itemid, "", "scrollbars=no,menubar=no,height=600,width=600,resizable=yes,toolbar=no,location=no,status=no"); When I was testing initially, I had removed the variable above in the link with a hard coded value and I never received this error. Only when I made it dynamic did this error appear. Thanks for any help. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message - Need help troubleshooting
On Tue, 2010-03-02 at 09:35 -0500, Rick Dwyer wrote: > On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: > > > > How is $item_id created? You've not shown that in your PHP script > > examples. > > // parse item id from the url > $refer=$_SERVER['HTTP_REFERER']; > $thispage=$_SERVER['PHP_SELF']; > $item_id=substr($thispage, -9); > $item_id=substr($item_id, 0, 5); > > $_SESSION['item_id'] = "$item_id"; > > The above is where item_id is created and added to a session. > > The important thing is that this error never showed up before until I > added the Javascript link below: > > var oss_itemid = ""; > var loadOSS = window.open("http://www.myurl/myfile.php?iid="; + > oss_itemid, "", > "scrollbars > = > no > ,menubar > = > no > ,height=600,width=600,resizable=yes,toolbar=no,location=no,status=no"); > > > When I was testing initially, I had removed the variable above in the > link with a hard coded value and I never received this error. Only > when I made it dynamic did this error appear. > > Thanks for any help. > > --Rick > I'm assuming then that both the Javascript an the PHP code you have above are both on the same page. The only way I can see your problem occurring would be if your javascript part was on a different page and you were attempting to output the $item_id. If PHP could not find a variable with that name, it may be reverting to using the item_id value found in $_SESSION, which would give you the error you're seeing. Try changing the line to var oss_itemid = ""; and see if that gives you the error. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Error Message - Need help troubleshooting
On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote: How is $item_id created? You've not shown that in your PHP script examples. // parse item id from the url $refer=$_SERVER['HTTP_REFERER']; $thispage=$_SERVER['PHP_SELF']; $item_id=substr($thispage, -9); $item_id=substr($item_id, 0, 5); $_SESSION['item_id'] = "$item_id"; The above is where item_id is created and added to a session. The important thing is that this error never showed up before until I added the Javascript link below: var oss_itemid = ""; var loadOSS = window.open("http://www.myurl/myfile.php?iid="; + oss_itemid, "", "scrollbars = no ,menubar = no ,height=600,width=600,resizable=yes,toolbar=no,location=no,status=no"); When I was testing initially, I had removed the variable above in the link with a hard coded value and I never received this error. Only when I made it dynamic did this error appear. Thanks for any help. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message - Need help troubleshooting
On Tue, 2010-03-02 at 14:49 +0100, Rene Veerman wrote: > k, add to your script, > to prevent the error from showing. > > On Tue, Mar 2, 2010 at 2:38 PM, Rick Dwyer wrote: > > On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: > >> does the script itself ever fail, asides from showing this msg? > > > > No it works fine. The most annoying thing in making it difficult to to > > troubleshoot is this message does not always appear. > If there is a genuine problem, that won't actually fix it though. How is $item_id created? You've not shown that in your PHP script examples. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Error Message - Need help troubleshooting
k, add to your script, to prevent the error from showing. On Tue, Mar 2, 2010 at 2:38 PM, Rick Dwyer wrote: > On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: >> does the script itself ever fail, asides from showing this msg? > > No it works fine. The most annoying thing in making it difficult to to > troubleshoot is this message does not always appear. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message - Need help troubleshooting
On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote: i doubt you passed us the entire .js.php script.. The rest of the JS is as follows: a href='javascript:loadOSS()'>width='161' height='57' align='right' />Open Window... As far as other PHP goes, the whole page is PHP so I wouldn't know where to even start. My guess was that the problem was originating from the previous code I sent over, but I don't know enough PHP to be sure. does the script itself ever fail, asides from showing this msg? No it works fine. The most annoying thing in making it difficult to to troubleshoot is this message does not always appear. --Rick On Tue, Mar 2, 2010 at 5:46 AM, Rick Dwyer wrote: Hello List. I have some JS code that open a new window with a contact form in it. When the link is clicked to open the new window, I will get the following error SOMETIMES: "Warning: Unknown: Your script possibly relies on a session side- effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0" My JS code with a bit of PHP in it looks like this: function loadOSS() var oss_itemid = ""; var loadOSS = window.open("my_url/my_file.php?iid=" + oss_itemid, "", "scrollbars = no ,menubar = no ,height =600,width=600,resizable=yes,toolbar=no,location=no,status=no"); } As I said above, the error message does not always appear. Is the error due to the fact I am JS & PHP together? Any help in understanding what I am doing wrong is appreciated. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message - Need help troubleshooting
i doubt you passed us the entire .js.php script.. does the script itself ever fail, asides from showing this msg? On Tue, Mar 2, 2010 at 5:46 AM, Rick Dwyer wrote: > Hello List. > > I have some JS code that open a new window with a contact form in it. When > the link is clicked to open the new window, I will get the following error > SOMETIMES: > > "Warning: Unknown: Your script possibly relies on a session side-effect > which existed until PHP 4.2.3. Please be advised that the session extension > does not consider global variables as a source of data, unless > register_globals is enabled. You can disable this functionality and this > warning by setting session.bug_compat_42 or session.bug_compat_warn to off, > respectively. in Unknown on line 0" > > My JS code with a bit of PHP in it looks like this: > > function loadOSS() > var oss_itemid = ""; > var loadOSS = window.open("my_url/my_file.php?iid=" + oss_itemid, "", > "scrollbars=no,menubar=no,height=600,width=600,resizable=yes,toolbar=no,location=no,status=no"); > } > > As I said above, the error message does not always appear. > > Is the error due to the fact I am JS & PHP together? > > Any help in understanding what I am doing wrong is appreciated. > > --Rick > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error Message - Need help troubleshooting
Hello List. I have some JS code that open a new window with a contact form in it. When the link is clicked to open the new window, I will get the following error SOMETIMES: "Warning: Unknown: Your script possibly relies on a session side- effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0" My JS code with a bit of PHP in it looks like this: function loadOSS() var oss_itemid = ""; var loadOSS = window.open("my_url/my_file.php?iid=" + oss_itemid, "", "scrollbars = no ,menubar = no ,height=600,width=600,resizable=yes,toolbar=no,location=no,status=no"); } As I said above, the error message does not always appear. Is the error due to the fact I am JS & PHP together? Any help in understanding what I am doing wrong is appreciated. --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
- Original Message > From: Bruce Dobson > To: php-general@lists.php.net > Sent: Saturday, September 5, 2009 4:19:29 PM > Subject: [PHP] Error message > > Hi folks, > > I am new on this list and to php. I have just downloaded and gotten php 5.3.0 > working with IIS on one computer but my efforts to install it on another What OS? What version of IIS? Did you setup as CGI/FCGI or as ISAPI? > computer come up with the error message: > > 14001 (0x36b1) > > Can anybody tell me what this relates to? Did you enable file logging in the php.ini? PS: you might want to ask this in php-windows list instead. ;) Regards, Tommy > > Thanks > Bruce -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error message
Hi folks, I am new on this list and to php. I have just downloaded and gotten php 5.3.0 working with IIS on one computer but my efforts to install it on another computer come up with the error message: 14001 (0x36b1) Can anybody tell me what this relates to? Thanks Bruce
Re: [PHP] Error message
At 10:26 AM +0100 9/21/08, Ashley Sheridan wrote: It's an easy mistake to make, not just reserved for rookies ;) I had a similar problem Me too, I think we've all been bitten by that. The point is simply don't send anything to the browser before "if you're going to be using session_start(); You can do this: start of document http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
On Sat, 2008-09-20 at 23:48 -0500, Shawn McKenzie wrote: > Terry J Daichendt wrote: > > The error message told it all. Jochem was correct albiet not in the > > style I prefer. I had the code in an HTML page after the header. I've > > been a programmer for 15 years but I'm brand new to PHP. Anyone can make > > a rookie mistake. Thanks everyone for the help. Everyone was partially > > correct in assessing the problem. > > > > Terry > > > > > > > > "Eric Gorr" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: > >> > >>> I'm pasting this code from the example at php.net and getting these > >>> errors. Can anyone determine what I'm doing wrong? > >>> > >>> >>> // page1.php > >>> > >>> session_start(); > >>> > >>> echo 'Welcome to page #1'; > >>> > >>> $_SESSION['favcolor'] = 'green'; > >>> $_SESSION['animal'] = 'cat'; > >>> $_SESSION['time'] = time(); > >>> > >>> // Works if session cookie was accepted > >>> echo 'page 2'; > >>> > >>> // Or maybe pass along the session id, if needed > >>> echo 'page 2'; > >>> ?> > >> > >> Well, this is weird. When I copied your text and tried it myself, the > >> error I got was: > >> > >> Parse error: syntax error, unexpected T_STRING in /Users/ericgorr/ > >> Sites/page1.php on line 9 > >> > >> Now, of course, there is nothing visibly wrong with line 9 > >> ($_SESSION['animal'] = 'cat';). But, when I had my text editor show > >> invisible characters, there were some on that line and line 10. > >> > >> Do you have a text editor that can show invisible characters? > >> > >> On the Mac, the one I really like (and is free) is TextWrangler > >> (http://www.barebones.com/products/textwrangler/ ) and has this > >> capability. This may be part of your problem. Once I got rid of the > >> invisible characters, the example worked without any problems. > >> > >> Also, are you certain there are no spaces or anything (even invisible > >> characters) before >> > >> Whenever I've gotten a similar error in the past, that was nearly > >> always the problem. You are welcome to compress the text file and > >> send it to me directly so I can see exactly what it contains. > >> > > > Since you're a PHP rookie, to sum it up: there can not be any output > before you start a session. > > When PHP interprets a file (include or otherwise) it considers anything > before whatever). So if you have whitespace before the interpreter outputs it, thus the output before the session_start() error. > > -Shawn > It's an easy mistake to make, not just reserved for rookies ;) I had a similar problem streaming video to the browser, and found that for some reason all the video files were larger than the original and wouldn't play. Turned out (after some very strong words aimed in the general direction of my laptop) that I'd included a header file which was outputting some HTML! Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Terry J Daichendt wrote: The error message told it all. Jochem was correct albiet not in the style I prefer. I had the code in an HTML page after the header. I've been a programmer for 15 years but I'm brand new to PHP. Anyone can make a rookie mistake. Thanks everyone for the help. Everyone was partially correct in assessing the problem. Terry "Eric Gorr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Well, this is weird. When I copied your text and tried it myself, the error I got was: Parse error: syntax error, unexpected T_STRING in /Users/ericgorr/ Sites/page1.php on line 9 Now, of course, there is nothing visibly wrong with line 9 ($_SESSION['animal'] = 'cat';). But, when I had my text editor show invisible characters, there were some on that line and line 10. Do you have a text editor that can show invisible characters? On the Mac, the one I really like (and is free) is TextWrangler (http://www.barebones.com/products/textwrangler/ ) and has this capability. This may be part of your problem. Once I got rid of the invisible characters, the example worked without any problems. Also, are you certain there are no spaces or anything (even invisible characters) before Whenever I've gotten a similar error in the past, that was nearly always the problem. You are welcome to compress the text file and send it to me directly so I can see exactly what it contains. Since you're a PHP rookie, to sum it up: there can not be any output before you start a session. When PHP interprets a file (include or otherwise) it considers anything before whatever). So if you have whitespace before the interpreter outputs it, thus the output before the session_start() error. -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
The error message told it all. Jochem was correct albiet not in the style I prefer. I had the code in an HTML page after the header. I've been a programmer for 15 years but I'm brand new to PHP. Anyone can make a rookie mistake. Thanks everyone for the help. Everyone was partially correct in assessing the problem. Terry "Eric Gorr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Well, this is weird. When I copied your text and tried it myself, the error I got was: Parse error: syntax error, unexpected T_STRING in /Users/ericgorr/ Sites/page1.php on line 9 Now, of course, there is nothing visibly wrong with line 9 ($_SESSION['animal'] = 'cat';). But, when I had my text editor show invisible characters, there were some on that line and line 10. Do you have a text editor that can show invisible characters? On the Mac, the one I really like (and is free) is TextWrangler (http://www.barebones.com/products/textwrangler/ ) and has this capability. This may be part of your problem. Once I got rid of the invisible characters, the example worked without any problems. Also, are you certain there are no spaces or anything (even invisible characters) before Whenever I've gotten a similar error in the past, that was nearly always the problem. You are welcome to compress the text file and send it to me directly so I can see exactly what it contains. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Terry J Daichendt schreef: You have a real attitude problem, please don't bother with me again. actually it's you who has a problem with my attitude, not me. although I'll grant you that people like you are usually 'bother' ... and I won't anymore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Well, this is weird. When I copied your text and tried it myself, the error I got was: Parse error: syntax error, unexpected T_STRING in /Users/ericgorr/ Sites/page1.php on line 9 Now, of course, there is nothing visibly wrong with line 9 ($_SESSION['animal'] = 'cat';). But, when I had my text editor show invisible characters, there were some on that line and line 10. Do you have a text editor that can show invisible characters? On the Mac, the one I really like (and is free) is TextWrangler (http://www.barebones.com/products/textwrangler/ ) and has this capability. This may be part of your problem. Once I got rid of the invisible characters, the example worked without any problems. Also, are you certain there are no spaces or anything (even invisible characters) before Whenever I've gotten a similar error in the past, that was nearly always the problem. You are welcome to compress the text file and send it to me directly so I can see exactly what it contains. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Terry J Daichendt wrote: > You have a real attitude problem, please don't bother with me again. > > > "Jochem Maas" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Terry J Daichendt schreef: >>> I'm pasting this code from the example at php.net and getting these >> >> which example might that be, with 1000's of built in functions you >> can imagine there is probably more than one. >> >>> errors. Can anyone determine what I'm doing wrong? >>> >> >> yes. but can your read? the error message tells you what is wrong. >> >> "output started at >> /home/terryswe/public_html/hisdailybread/session.php:6" >> >> basically the body of a http request must come after the http headers, >> sessions make use of cookies. the first echo (or print) statement >> effectively >> starts the output of the http request body after which no headers can >> be sent >> anymore. >> >> what is also plainly obvious is that the example code you posted is *NOT* >> the code your trying to run: >> >> there is no session_start() called on line 9 in the example you gave. >> >>> >> // page1.php >>> >>> session_start(); >>> >>> echo 'Welcome to page #1'; >>> >>> $_SESSION['favcolor'] = 'green'; >>> $_SESSION['animal'] = 'cat'; >>> $_SESSION['time'] = time(); >>> >>> // Works if session cookie was accepted >>> echo 'page 2'; >>> >>> // Or maybe pass along the session id, if needed >>> echo 'page 2'; >> >> don't bother with the above line, it's shite. which is a >> short way of saying that you have no idea as to the security >> ramifications so best not to even go there. >> >>> ?> >>> >>> >>> Warning: session_start() [function.session-start]: Cannot send >>> session cookie - headers already sent by (output started at >>> /home/terryswe/public_html/hisdailybread/session.php:6) in >>> /home/terryswe/public_html/hisdailybread/session.php on line 9 >>> >>> Warning: session_start() [function.session-start]: Cannot send >>> session cache limiter - headers already sent (output started at >>> /home/terryswe/public_html/hisdailybread/session.php:6) in >>> /home/terryswe/public_html/hisdailybread/session.php on line 9 >>> Welcome to page #1 >>> >>> Terry >>> >>> >> > > He was simply trying to point to the fact that you showing us something that is different then what you trying to run that IS causing the problems. And a side note: the answer to your question, "Can anyone determine what I'm doing wrong?" He told you that the answer to that question was in your own email. headers already sent where in the file /home/terryswe/public_html/hisdailybread/session.php on line 6 Everything Jochem's said was facts based on the information that you gave us in your original email. My suggestion, remove your session_start() in the above example, because it is causing the problem. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Si, puedes tener espacio en blanco delante de session_start(), pero no puedes tener espacio delante de 'http://www.onshore.com CanihoJR wrote: > No puedes tener ningun espacio en blanco delante de session_start(); > > Sorry for my english: > you cant have any blank spaccing before SESSION_START() > > > Prueba: > TRY: > > session_start(); > > echo 'Welcome to page #1'; > > $_SESSION['favcolor'] = 'green'; > $_SESSION['animal'] = 'cat'; > $_SESSION['time'] = time(); > > // Works if session cookie was accepted > echo 'page 2'; > > // Or maybe pass along the session id, if needed > echo 'page 2'; > ?> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
You have a real attitude problem, please don't bother with me again. "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Terry J Daichendt schreef: I'm pasting this code from the example at php.net and getting these which example might that be, with 1000's of built in functions you can imagine there is probably more than one. errors. Can anyone determine what I'm doing wrong? yes. but can your read? the error message tells you what is wrong. "output started at /home/terryswe/public_html/hisdailybread/session.php:6" basically the body of a http request must come after the http headers, sessions make use of cookies. the first echo (or print) statement effectively starts the output of the http request body after which no headers can be sent anymore. what is also plainly obvious is that the example code you posted is *NOT* the code your trying to run: there is no session_start() called on line 9 in the example you gave. page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; don't bother with the above line, it's shite. which is a short way of saying that you have no idea as to the security ramifications so best not to even go there. ?> Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/terryswe/public_html/hisdailybread/session.php:6) in /home/terryswe/public_html/hisdailybread/session.php on line 9 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/terryswe/public_html/hisdailybread/session.php:6) in /home/terryswe/public_html/hisdailybread/session.php on line 9 Welcome to page #1 Terry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Andrew Barnett schreef: It sounds like there is a space or output before the a blank space before the Andrew 2008/9/19 CanihoJR <[EMAIL PROTECTED]>: No puedes tener ningun espacio en blanco delante de session_start(); Sorry for my english: you cant have any blank spaccing before SESSION_START() Prueba: TRY: page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Terry J Daichendt schreef: I'm pasting this code from the example at php.net and getting these which example might that be, with 1000's of built in functions you can imagine there is probably more than one. errors. Can anyone determine what I'm doing wrong? yes. but can your read? the error message tells you what is wrong. "output started at /home/terryswe/public_html/hisdailybread/session.php:6" basically the body of a http request must come after the http headers, sessions make use of cookies. the first echo (or print) statement effectively starts the output of the http request body after which no headers can be sent anymore. what is also plainly obvious is that the example code you posted is *NOT* the code your trying to run: there is no session_start() called on line 9 in the example you gave. page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; don't bother with the above line, it's shite. which is a short way of saying that you have no idea as to the security ramifications so best not to even go there. ?> Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/terryswe/public_html/hisdailybread/session.php:6) in /home/terryswe/public_html/hisdailybread/session.php on line 9 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/terryswe/public_html/hisdailybread/session.php:6) in /home/terryswe/public_html/hisdailybread/session.php on line 9 Welcome to page #1 Terry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
It sounds like there is a space or output before the : > No puedes tener ningun espacio en blanco delante de session_start(); > > Sorry for my english: > you cant have any blank spaccing before SESSION_START() > > > Prueba: > TRY: > > session_start(); > > echo 'Welcome to page #1'; > > $_SESSION['favcolor'] = 'green'; > $_SESSION['animal'] = 'cat'; > $_SESSION['time'] = time(); > > // Works if session cookie was accepted > echo 'page 2'; > > // Or maybe pass along the session id, if needed > echo 'page 2'; > ?> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
No puedes tener ningun espacio en blanco delante de session_start(); Sorry for my english: you cant have any blank spaccing before SESSION_START() Prueba: TRY: page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?>
[PHP] Error message
I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? page 2'; // Or maybe pass along the session id, if needed echo 'page 2'; ?> Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/terryswe/public_html/hisdailybread/session.php:6) in /home/terryswe/public_html/hisdailybread/session.php on line 9 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/terryswe/public_html/hisdailybread/session.php:6) in /home/terryswe/public_html/hisdailybread/session.php on line 9 Welcome to page #1 Terry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error message
On Thu, April 27, 2006 7:46 am, cybermalandro cybermalandro wrote: > I am running an old version of PHP for winblows 4.3.8. I cannot > upgrade to > 4.4.2 yet. I rebooted the web server and the box. I am not doing any > exception handling. I want the errors to be writtent to a log but > instead > they keep showing in the browser. Is there something I am missing? I > did > set display_errors to off in the php.ini file. #1. Build a page that just does: Where does that page claim that your php.ini file is located? #2. Is that were your php.ini file is located? If not, MOVE your php.ini file to that directory. #3. Does phpinfo() show the settings for display_errors that you think you set? If #1 and #2 are all worked out, this SHOULD be correct... #4. In the line before where your error message is appearing, add this: echo "Error reporting has been set to: ", error_reporting(), "\n"; echo "Display errors has been set to: ", ini_get('display_errors'), "\n"; There are only so many ways that this can get messed up, really... -- 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
Re: [PHP] error message
I am running an old version of PHP for winblows 4.3.8. I cannot upgrade to 4.4.2 yet. I rebooted the web server and the box. I am not doing any exception handling. I want the errors to be writtent to a log but instead they keep showing in the browser. Is there something I am missing? I did set display_errors to off in the php.ini file. Thanks, cybm On 4/26/06, Jason Barnett <[EMAIL PROTECTED]> wrote: > > Let's not open an error report just yet... there are already too many > "bugs" in the database! A snippet of the relevant code would be nice > though. > > Perhaps your odbc_errormsg($conn) is being echo'd to stdout? Or you are > using those fun Exception beasts? > > > On 4/26/06, chris smith <[EMAIL PROTECTED]> wrote: > > > On 4/27/06, cybermalandro cybermalandro <[EMAIL PROTECTED]> wrote: > > I have set in display_errors = off on my php.ini but I can still see > ODBC > > related error messages when I try to duplicate an ODBC error. Am I > missing > > something to turn this off? > > Can you produce a small test case? Maybe post a bug report: > http://bugs.php.net > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >
Re: [PHP] error message
Let's not open an error report just yet... there are already too many "bugs" in the database! A snippet of the relevant code would be nice though. Perhaps your odbc_errormsg($conn) is being echo'd to stdout? Or you are using those fun Exception beasts? On 4/26/06, chris smith <[EMAIL PROTECTED]> wrote: > > On 4/27/06, cybermalandro cybermalandro <[EMAIL PROTECTED]> wrote: > > I have set in display_errors = off on my php.ini but I can still see > ODBC > > related error messages when I try to duplicate an ODBC error. Am I > missing > > something to turn this off? > > Can you produce a small test case? Maybe post a bug report: > http://bugs.php.net > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] error message
On 4/27/06, cybermalandro cybermalandro <[EMAIL PROTECTED]> wrote: > I have set in display_errors = off on my php.ini but I can still see ODBC > related error messages when I try to duplicate an ODBC error. Am I missing > something to turn this off? Can you produce a small test case? Maybe post a bug report: http://bugs.php.net -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error message
Re-boot. On Wed, April 26, 2006 4:27 pm, cybermalandro cybermalandro wrote: > Yes, > Yes and > Yes although I am not running apache I am running IIS. > > On 4/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: >> >> On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote: >> > I have set in display_errors = off on my php.ini but I can still >> see >> > ODBC >> > related error messages when I try to duplicate an ODBC error. Am I >> > missing >> > something to turn this off? >> >> Does reflect your changes to php.ini? >> Does that output indicate you are changing the correct php.ini? >> Did you restart Apache? >> >> -- >> Like Music? >> http://l-i-e.com/artists.htm >> >> >> > -- 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
Re: [PHP] error message
Yes, Yes and Yes although I am not running apache I am running IIS. On 4/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote: > > I have set in display_errors = off on my php.ini but I can still see > > ODBC > > related error messages when I try to duplicate an ODBC error. Am I > > missing > > something to turn this off? > > Does reflect your changes to php.ini? > Does that output indicate you are changing the correct php.ini? > Did you restart Apache? > > -- > Like Music? > http://l-i-e.com/artists.htm > > >
Re: [PHP] error message
On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote: > I have set in display_errors = off on my php.ini but I can still see > ODBC > related error messages when I try to duplicate an ODBC error. Am I > missing > something to turn this off? Does reflect your changes to php.ini? Does that output indicate you are changing the correct php.ini? Did you restart Apache? -- 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
Re: [PHP] error message
cybermalandro cybermalandro wrote: I have set in display_errors = off on my php.ini but I can still see ODBC related error messages when I try to duplicate an ODBC error. Am I missing something to turn this off? restart the server? also check that ini_set('display_errors', 0); doesn't have the desired effect. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error message
I have set in display_errors = off on my php.ini but I can still see ODBC related error messages when I try to duplicate an ODBC error. Am I missing something to turn this off? Thanks!
Re: [PHP] Re: php error message
Chuck Anderson wrote: Ben wrote: Edward Martin said the following on 11/17/2005 04:27 PM: "Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on line 34" It means you are trying to change the page's headers after they have already been sent to the user's browser. You are probably trying to use the header() function after HTML/Javascript/what have you has already been sent to the browser. If you need to use header() you should write any earlier output to a variable and only output it to the browser after any header() function use. - Ben Most likely that is exactly what's happening. To be even more clear - the solution is to use the header function before any HTML (before *any* output). I learned this when I had an include file that was all Php causing this problem. The end of the included file had a carriage return after the closing tag ?>. That was a nasty one to locate. Now I always make sure there is no white space after the closing tag in files I might include somewhere else. An alternative solution is to just turn on output buffering, which will make sure no output gets sent until after all PHP has stopped processing (unless you specifically tell it to get sent earlier). Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php error message
Ben wrote: Edward Martin said the following on 11/17/2005 04:27 PM: "Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on line 34" It means you are trying to change the page's headers after they have already been sent to the user's browser. You are probably trying to use the header() function after HTML/Javascript/what have you has already been sent to the browser. If you need to use header() you should write any earlier output to a variable and only output it to the browser after any header() function use. - Ben Most likely that is exactly what's happening. To be even more clear - the solution is to use the header function before any HTML (before *any* output). I learned this when I had an include file that was all Php causing this problem. The end of the included file had a carriage return after the closing tag ?>. That was a nasty one to locate. Now I always make sure there is no white space after the closing tag in files I might include somewhere else. -- * Chuck Anderson • Boulder, CO http://www.CycleTourist.com Integrity is obvious. The lack of it is common. * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php error message
Edward Martin said the following on 11/17/2005 04:27 PM: "Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on line 34" It means you are trying to change the page's headers after they have already been sent to the user's browser. You are probably trying to use the header() function after HTML/Javascript/what have you has already been sent to the browser. If you need to use header() you should write any earlier output to a variable and only output it to the browser after any header() function use. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php error message
I am new to working with php and I am having trouble trying to figure out this following "error" message that is displayed when I access a php file. Can you tell me what this error message means (in plain English) and what steps I might take to correct it? "Warning: Cannot modify header information - headers already sent by (output started at /usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in /usr/home/ecmartin/public_html/ethics06/sas.php on line 34" The page that displays this error has a small php log-in script on in. (Depending on where I place the script in the page code, the error message moves to a different location on the page). The page originally was an html page that contained typical stylesheet data, javascript scripts (for headers and menus) and a flash-based menu. ALL of these features still work when the page is displayed (as well as the php log-in script), however, I cannot get rid of the error message. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error message while mysqling on php
Thanks very much. I had an extra character when I was connecting to the database. Now everything works!!! -Original Message- From: Alan Fullmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 5:14 PM To: 'Michal Krezolek'; php-general@lists.php.net Subject: RE: [PHP] error message while mysqling on php I see two things that could be it. #1 your $result is not $result = mysql_query("queryline"); Or #2 your syntax on your query line is bad. You can try doing something like this: $query = "SELECT * FROM table etc blah"; $result = mysql_query($query) or die(mysql_error()); $num = mysql_num_rows($result); Sometimes the error message can be more explicit if you tell it to print it. If you get no error on that query statement, then your query is fine. > I have received an error: Warning: mysql_num_rows(): supplied argument is > not a valid MySQL result resource in /home/www/mksystem.net when trying to > execute $num = mysql_num_rows($result); > > Please go to http://mksystem.net/phpinfo.php and tell me whether it is due > to the version of php I have on server and an easy workaround would be > appreciated. Check the syntax of your SQL statement, it's very possible you have an error in it somewhere. If you have PHPMyAdmin, or some other interface to MySQL such as MySQL Query Browser, etc, try executing the SQL statement in one of them directly, to see if they return a valid resultset. Much warmth, Murray --- "Lost in thought..." http://www.planetthoughtful.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error message while mysqling on php
I see two things that could be it. #1 your $result is not $result = mysql_query("queryline"); Or #2 your syntax on your query line is bad. You can try doing something like this: $query = "SELECT * FROM table etc blah"; $result = mysql_query($query) or die(mysql_error()); $num = mysql_num_rows($result); Sometimes the error message can be more explicit if you tell it to print it. If you get no error on that query statement, then your query is fine. -Original Message- From: Murray @ PlanetThoughtful [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 3:05 PM To: 'Michal Krezolek'; php-general@lists.php.net Subject: RE: [PHP] error message while mysqling on php > I have received an error: Warning: mysql_num_rows(): supplied argument is > not a valid MySQL result resource in /home/www/mksystem.net when trying to > execute $num = mysql_num_rows($result); > > Please go to http://mksystem.net/phpinfo.php and tell me whether it is due > to the version of php I have on server and an easy workaround would be > appreciated. Check the syntax of your SQL statement, it's very possible you have an error in it somewhere. If you have PHPMyAdmin, or some other interface to MySQL such as MySQL Query Browser, etc, try executing the SQL statement in one of them directly, to see if they return a valid resultset. Much warmth, Murray --- "Lost in thought..." http://www.planetthoughtful.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error message while mysqling on php
> I have received an error: Warning: mysql_num_rows(): supplied argument is > not a valid MySQL result resource in /home/www/mksystem.net when trying to > execute $num = mysql_num_rows($result); > > Please go to http://mksystem.net/phpinfo.php and tell me whether it is due > to the version of php I have on server and an easy workaround would be > appreciated. Check the syntax of your SQL statement, it's very possible you have an error in it somewhere. If you have PHPMyAdmin, or some other interface to MySQL such as MySQL Query Browser, etc, try executing the SQL statement in one of them directly, to see if they return a valid resultset. Much warmth, Murray --- "Lost in thought..." http://www.planetthoughtful.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error message while mysqling on php
[snip] I have received an error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/mksystem.net when trying to execute $num = mysql_num_rows($result); [/snip] Post a little code and we might be able to help you. It is likely that $result is not the variable holding the resources from the query. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error message while mysqling on php
I have received an error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/mksystem.net when trying to execute $num = mysql_num_rows($result); Please go to http://mksystem.net/phpinfo.php and tell me whether it is due to the version of php I have on server and an easy workaround would be appreciated.
RE: [PHP] Error message
define constant with "DB_PORTABILITY_ALL"; Pete wrote: > Hi List, > > I am getting a strange error notice for the following config file: > > /** > * Database > */ > $dsn = array( > 'phptype' => 'mysql', > 'username' => 'root', > 'password' => 'secretpass', > 'hostspec' => 'localhost', > 'database' => 'mydb', > ); > > $options = > array( > 'debug' => 2, > 'portability' => DB_PORTABILITY_ALL, > ); > > /** > * Language options > */ > $languages = array('de', 'en', 'it', 'fr', 'es', 'el', 'nl'); >> > > > Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed > 'DB_PORTABILITY_ALL' in D:\utf8php5\config.php on line 16 > > What can I do about this? > > Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
> Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL' > in D:\utf8php5\config.php on line 16 > > What can I do about this? include PEAR::DB before you include this config file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message
[snip] Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL' in D:\utf8php5\config.php on line 16 What can I do about this? [/snip] http://www.php.net/constant DEFINE the constant DB_PORTABILITY_ALL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error message
Hi List, I am getting a strange error notice for the following config file: 'mysql', 'username' => 'root', 'password' => 'secretpass', 'hostspec' => 'localhost', 'database' => 'mydb', ); $options = array( 'debug' => 2, 'portability' => DB_PORTABILITY_ALL, ); /** * Language options */ $languages = array('de', 'en', 'it', 'fr', 'es', 'el', 'nl'); ?> Notice: Use of undefined constant DB_PORTABILITY_ALL - assumed 'DB_PORTABILITY_ALL' in D:\utf8php5\config.php on line 16 What can I do about this? Thank you very much.
[PHP] Error message: "No input file specified"
Hi I'm using the thttpd webserver and php as cgi. Up to php version 4.3.1 everything is fine. When i try to upgrade to 4.3.2 or 4.3.5RC3 the only thing i can see is the message "No input file specified". Is this a bug in php, or an incorrect configuration of my php? Sorry if this question is not new, i found some similar questions in the archive, but no helpful answer. Thanks, Thorsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error message trying to include a file
On maandag 1 december 2003 23:17 Curt Zirzow told the butterflies: > * Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): > > > > I have an array filled with urls of javascript files and then I > > include them one by one in a loop. > > > > for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ ){ > > > > include($this->page->javascript[$i]); > > //This line above is line 52 shown on error warning } > > what does print_r($this->page->javascript) yield? > > you'd be better off with a loop like: > foreach($this->page->javascript as $file_to_include) { > include($file_to_include); } > > > > Curt > -- > If eval() is the answer, you're almost certainly asking the > wrong question. -- Rasmus Lerdorf, BDFL of PHP Probably include($this->page->javascript[$i]); Is the problem. There's this thing in PHP that you can't do this thing with referencing to an object property from within an other object. Or whatever to call that. Sounds silly and stupid, but it bullies me too. Try this: $Page =& $this->page; foreach($Page->javascript as $File) include($File); or this (if you care about memory usage): $Page =& $this->page; foreach(array_keys($Page->javascript) as $i) include($Page->javascript[$i]); Because php doesn't do reference thingies in a foreach loop, sadly. Wouter -note that you do not need { and } for oneline if/foreach/for/while/.. blocks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message trying to include a file
* Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): > > I have an array filled with urls of javascript files and then I > include them one by one in a loop. > > for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ ){ > > include($this->page->javascript[$i]); > //This line above is line 52 shown on error warning > } what does print_r($this->page->javascript) yield? you'd be better off with a loop like: foreach($this->page->javascript as $file_to_include) { include($file_to_include); } Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error message trying to include a file
Hi php-general, sorry for the post before, forget the sentence about the writehead function. It means writeHead() (error Warning doesn't seem to be case sensitive...). It's the name of my method... :-( But it has nothing to do with the error itself... SvT -- Who is the ennemy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error message trying to include a file
Hi php-general, I have an array filled with urls of javascript files and then I include them one by one in a loop. for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ ){ include($this->page->javascript[$i]); //This line above is line 52 shown on error warning } When I had only two files to include it worked. Now I added a third and I get following error message: Notice: Undefined offset: 2 in /usr/local/www/ViewPageClass.php on line 52 Warning: writehead() [function.writehead]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /usr/local/www/ViewPageClass.php on line 52 I don't really know what to do,the function writehead doesn't seem to exist... the javascript file is http://pajhome.org.uk/crypt/md5/md5.js. I suppose it's free of errors... SvT -- Who is the ennemy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error message ... never seen this one before.
Put single quotes around the strings in your sql statementS: $sql2 = "SELECT id FROM store_name WHERE name = '".$name[$i]."'"; ^ ^ if this does not help, print out the query strings. Daniel McCullough wrote: I get this error. Unknown column 'B' in 'where clause' From this code. $sql = "SELECT * FROM store"; $result = mysql_query($sql) or die(mysql_error()); $store = mysql_fetch_array($result); $count = mysql_num_rows($result); $id = $store['id']; $name = $store['name']; $address = $store['address']; $state = $store['state']; $groups = $store['groups']; for ($i=0; $i<$count; $i++) { $sql2 = "SELECT id FROM store_name WHERE name = ".$name[$i].""; $result2 = mysql_query($sql2) or die(mysql_error()); $store_name = mysql_fetch_object($result2); $sql3 = "SELECT id FROM store_address WHERE address = ".$address[$i].""; $result3 = mysql_query($sql3) or die(mysql_error()); $store_address = mysql_fetch_object($result3); $sql4 = "SELECT id FROM store_state WHERE state_name = ".$state[$i].""; $result4 = mysql_query($sql4) or die(mysql_error()); $store_state = mysql_fetch_object($result4); $build_sql .= $id." - ".$store_name." - ".$store_address." - ".$store_state." - ".$groups[$i]."\n"; } any thoughts? _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error message ... never seen this one before.
I get this error. Unknown column 'B' in 'where clause' From this code. $sql = "SELECT * FROM store"; $result = mysql_query($sql) or die(mysql_error()); $store = mysql_fetch_array($result); $count = mysql_num_rows($result); $id = $store['id']; $name = $store['name']; $address = $store['address']; $state = $store['state']; $groups = $store['groups']; for ($i=0; $i<$count; $i++) { $sql2 = "SELECT id FROM store_name WHERE name = ".$name[$i].""; $result2 = mysql_query($sql2) or die(mysql_error()); $store_name = mysql_fetch_object($result2); $sql3 = "SELECT id FROM store_address WHERE address = ".$address[$i].""; $result3 = mysql_query($sql3) or die(mysql_error()); $store_address = mysql_fetch_object($result3); $sql4 = "SELECT id FROM store_state WHERE state_name = ".$state[$i].""; $result4 = mysql_query($sql4) or die(mysql_error()); $store_state = mysql_fetch_object($result4); $build_sql .= $id." - ".$store_name." - ".$store_address." - ".$store_state." - ".$groups[$i]."\n"; } any thoughts? _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error message after upload with IE, not with Netscape
Hi all, I wrote a form for the upload of a file and some explaining text. The form is evaluated by a php-script upload.php (see below) and the data (text and file name) are stored in a MySQL-database on a Unix server. The script also shows a thanks-message. The login is controlled by means of .htaccess-files, the transfer is encrypted using SSL. Everything works fine with Netscape and Mozilla, but users of the IE see an error message (re-translated from German to English): Internet Explorer could not open the following internet site: https://www.some-server.de/kk/upload.php?param=abcd&key=0 The connection to the server had been reset. The URI is the upload-script with the right parameters - my retranslation of the message may be wrong. When the user clicks the send button of the form once again, it often works. I should present the important parts of the script here, but as I have no idea which type of a bug it is, I don't know which part is important. Any idea? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message
At 23:23 12.11.2002, Ben C. said: [snip] >I am receiving the following error on my change password form: > >Warning: Cannot send session cache limiter - headers already sent (output >started at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) >in /home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 > >Does anyone have a clue as to why? [snip] You are opening your session with a specific cache-limiter. This requires the server to transmit two MIME headers to the client. header('Cache: none'); header('Pragma: No Cache'); Headers can only be sent _before_ any data gets flushed to the client. In your source file (change_passwd.php on line 14) some MIME message body data (web page content) has already been generated and transmitted to the client, therefore no headers can be sent anymore. Remedy: 1) don't send data before you're done with the headers, or 2) Use output buffering (ob_start(), ob_end_flush()) to avoid data being transmitted prematurely. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Error Message
You must do session_start() before any output. You can get around this with output buffering. ob_start(); ob_end_clean(); -Kevin - Original Message - From: "Ben C." <[EMAIL PROTECTED]> To: "Adam Williams" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 12, 2002 3:35 PM Subject: Re: Re: [PHP] Error Message > I am using the require() function. > > - 1st require() includes the top portion of my page on every page. > > - 2nd require puts the following code in the middle: > > require("fns.php"); > session_start(); > > if (!filled_out($HTTP_POST_VARS)) > { >echo "You have not filled out the form completely. > Please try again."; > exit; > } > else > { > if ($new_passwd!=$new_passwd2) >echo "Passwords entered were not the same. Not changed."; > else if (strlen($new_passwd)>16 || strlen($new_passwd)<6) >echo "New password must be between 6 and 16 characters. Try again."; > else > { > // attempt update > if (change_password($valid_user, $old_passwd, $new_passwd)) >echo "Password changed."; > else >echo "Password could not be changed."; > } > > > } > > ?> > > - 3rd require() includes the top portion of my page on every page. > > Does this help you understand??? > > Thanks, Ben > > > > > > From: Adam Williams <[EMAIL PROTECTED]> > > Date: 2002/11/12 Tue PM 05:26:09 EST > > To: "Ben C." <[EMAIL PROTECTED]> > > CC: <[EMAIL PROTECTED]> > > Subject: Re: [PHP] Error Message > > > > are you using header() after you've already sent data to the browser (such > > as printing something to the user)? > > > > Adam > > > > On Tue, 12 Nov 2002, Ben C. wrote: > > > > > I am receiving the following error on my change password form: > > > > > > Warning: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) in /home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 > > > > > > Does anyone have a clue as to why? > > > > > > Please help! > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Error Message
I am using the require() function. - 1st require() includes the top portion of my page on every page. - 2nd require puts the following code in the middle: 16 || strlen($new_passwd)<6) echo "New password must be between 6 and 16 characters. Try again."; else { // attempt update if (change_password($valid_user, $old_passwd, $new_passwd)) echo "Password changed."; else echo "Password could not be changed."; } } ?> - 3rd require() includes the top portion of my page on every page. Does this help you understand??? Thanks, Ben > > From: Adam Williams <[EMAIL PROTECTED]> > Date: 2002/11/12 Tue PM 05:26:09 EST > To: "Ben C." <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > Subject: Re: [PHP] Error Message > > are you using header() after you've already sent data to the browser (such > as printing something to the user)? > > Adam > > On Tue, 12 Nov 2002, Ben C. wrote: > > > I am receiving the following error on my change password form: > > > > Warning: Cannot send session cache limiter - headers already sent (output started >at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) in >/home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 > > > > Does anyone have a clue as to why? > > > > Please help! > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Message
are you using header() after you've already sent data to the browser (such as printing something to the user)? Adam On Tue, 12 Nov 2002, Ben C. wrote: > I am receiving the following error on my change password form: > > Warning: Cannot send session cache limiter - headers already sent (output started at >/home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) in >/home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 > > Does anyone have a clue as to why? > > Please help! > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Error Message
I am receiving the following error on my change password form: Warning: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/localhost/httpdocs/order/change_psswd.php:14) in /home/httpd/vhosts/localhost/httpdocs/order/change_psswd2.php on line 4 Does anyone have a clue as to why? Please help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error message when run /usr/share/pear
Yes, I do use --with-mysql now i am using the rpm version of php. Adam Williams wrote: > when running the ./configure for PHP did you use --with-mysql > > Adam > > On Fri, 16 Aug 2002, Ryan wrote: > > >>What's wrong ? I am using RH7.3. I manually compile the php and install >>it before. But later I install using the rpm. >> >>Thx for reply ! >> >> >>Content-type: text/html >> >>PHP Warning: imap: Unable to initialize module >>Module compiled with module API=20010901, debug=0, thread-safety=0 >>PHPcompiled with module API=20020429, debug=0, thread-safety=0 >>These options need to match >> in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_connect in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_pconnect in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_close in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_select_db in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_create_db in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_drop_db in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_query in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_unbuffered_query in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_db_query in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_list_dbs in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_list_tables in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_list_fields in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_error in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_errno in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_affected_rows in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_insert_id in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_result in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_num_rows in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_num_fields in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fetch_row in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fetch_array in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fetch_assoc in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fetch_object in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_data_seek in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fetch_lengths in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fetch_field in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_field_seek in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_free_result in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_field_name in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_field_table in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_field_len in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_field_type in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_field_flags in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_escape_string in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_get_client_info in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_get_host_info in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_get_proto_info in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_get_server_info in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - mysql in >>Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fieldname in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fieldtable in Unknown on line 0 >>PHP Warning: Function registration failed - duplicate name - >>mysql_fieldlen in Unknown on line
Re: [PHP] error message when run /usr/share/pear
when running the ./configure for PHP did you use --with-mysql Adam On Fri, 16 Aug 2002, Ryan wrote: > What's wrong ? I am using RH7.3. I manually compile the php and install > it before. But later I install using the rpm. > > Thx for reply ! > > > Content-type: text/html > > PHP Warning: imap: Unable to initialize module > Module compiled with module API=20010901, debug=0, thread-safety=0 > PHPcompiled with module API=20020429, debug=0, thread-safety=0 > These options need to match > in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_connect in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_pconnect in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_close in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_select_db in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_create_db in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_drop_db in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_query in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_unbuffered_query in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_db_query in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_list_dbs in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_list_tables in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_list_fields in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_error in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_errno in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_affected_rows in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_insert_id in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_result in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_num_rows in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_num_fields in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fetch_row in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fetch_array in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fetch_assoc in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fetch_object in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_data_seek in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fetch_lengths in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fetch_field in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_field_seek in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_free_result in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_field_name in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_field_table in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_field_len in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_field_type in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_field_flags in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_escape_string in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_get_client_info in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_get_host_info in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_get_proto_info in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_get_server_info in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - mysql in > Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fieldname in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fieldtable in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fieldlen in Unknown on line 0 > PHP Warning: Function registration failed - duplicate name - > mysql_fieldtype in Unknown on line 0
[PHP] error message when run /usr/share/pear
What's wrong ? I am using RH7.3. I manually compile the php and install it before. But later I install using the rpm. Thx for reply ! Content-type: text/html PHP Warning: imap: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=0 PHPcompiled with module API=20020429, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_connect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_pconnect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_close in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_select_db in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_create_db in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_drop_db in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_query in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_unbuffered_query in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_db_query in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_list_dbs in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_list_tables in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_list_fields in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_error in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_errno in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_affected_rows in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_insert_id in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_result in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_num_rows in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_num_fields in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fetch_row in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fetch_array in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fetch_assoc in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fetch_object in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_data_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fetch_lengths in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fetch_field in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_field_seek in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_free_result in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_field_name in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_field_table in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_field_len in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_field_type in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_field_flags in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_escape_string in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_get_client_info in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_get_host_info in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_get_proto_info in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_get_server_info in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fieldname in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fieldtable in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fieldlen in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fieldtype in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_fieldflags in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_selectdb in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mysql_createdb in Unknown on line 0 PHP Warning: Function re
RE: [PHP] error message
> -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 22, 2001 12:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] error message > > > I was wondering does anyone know what this particular error > message means: > > Warning: Use of undefined constant submit - assumed 'submit' in > /usr/local/apache/htdocs/mm2/mymarket/privatedirectory/db/newt > hread.php on > line 110 > > But I already defined submit button as shown in the php script here: > > > > But for some reason when it goes to line 110 as shown just > below, it says that it is undefined: > > if(!submit) { Try changing this to if (!$submit) { --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA| -- John Powell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] error message
Hi, I was wondering does anyone know what this particular error message means: Warning: Use of undefined constant submit - assumed 'submit' in /usr/local/apache/htdocs/mm2/mymarket/privatedirectory/db/newthread.php on line 110 But I already defined submit button as shown in the php script here: But for some reason when it goes to line 110 as shown just below, it says that it is undefined: if(!submit) { if(validate_input($name, $email, $subject, $message) == 0) { What should I check for? Thanks. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Error Message with sessoin variables [solved]
Thanks. c:\temp took care of it. now if i can only get the extensions to work. -Original Message- From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Error Message with sessoin variables. Windows plataform? I was getting this error and solved by creating a dir named 'tmp', so create: c:\tmp That's where the session files will be stored... I think it's configurable in php.ini. -- Julio Nobrega. You're asking me will my love grow, I don't know. "Johnny Nguyen" <[EMAIL PROTECTED]> wrote in message 000e01c10be5$8960bfc0$[EMAIL PROTECTED]">news:000e01c10be5$8960bfc0$[EMAIL PROTECTED]... > I place at the top of my page and get this > > Warning: open(/tmp\sess_4821f31846678b2eda49a625b76ca14c, O_RDWR) failed: m > (2) in w:\apache\loginform.php on line 1 > Can somebody help? Do I need to make any changes to php.ini to get sessions > working? > Regards, > Johnny > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Error Message with sessoin variables.
Windows plataform? I was getting this error and solved by creating a dir named 'tmp', so create: c:\tmp That's where the session files will be stored... I think it's configurable in php.ini. -- Julio Nobrega. You're asking me will my love grow, I don't know. "Johnny Nguyen" <[EMAIL PROTECTED]> wrote in message 000e01c10be5$8960bfc0$[EMAIL PROTECTED]">news:000e01c10be5$8960bfc0$[EMAIL PROTECTED]... > I place at the top of my page and get this > > Warning: open(/tmp\sess_4821f31846678b2eda49a625b76ca14c, O_RDWR) failed: m > (2) in w:\apache\loginform.php on line 1 > Can somebody help? Do I need to make any changes to php.ini to get sessions > working? > Regards, > Johnny > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Error Message with sessoin variables.
I place at the top of my page and get this Warning: open(/tmp\sess_4821f31846678b2eda49a625b76ca14c, O_RDWR) failed: m (2) in w:\apache\loginform.php on line 1 Can somebody help? Do I need to make any changes to php.ini to get sessions working? Regards, Johnny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] error message handling
> You probably want to suppress the error message with an @ symbol. Try > putting an "@" before the function calls that give you errors. you want to avoid doing that, I recommend properly handling the error. > $x = @php_function_here(); > ?> > > This suppresses the error function. Many functions return FALSE if > unsuccessful, so you can test and supply your own error message. better to write a handler to deal with your errors properly. > if ($x == FALSE) { > print ("error."); > } > ?> > > If you find yourself doing this alot, you may want to create a wrapper > function or wrapper class around the original. Look at PHPLIB's DB_SQL > class for an example of how they suppress error messages. Look at > www.php.net for more info. or have a look at binarycloud: http://www.binarycloud.com best, _alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] error message handling
You probably want to suppress the error message with an @ symbol. Try putting an "@" before the function calls that give you errors. This suppresses the error function. Many functions return FALSE if unsuccessful, so you can test and supply your own error message. If you find yourself doing this alot, you may want to create a wrapper function or wrapper class around the original. Look at PHPLIB's DB_SQL class for an example of how they suppress error messages. Look at www.php.net for more info. -Ben -Original Message- From: Jason Jacobs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:23 AM To: [EMAIL PROTECTED] Subject: [PHP] error message handling I tried to send this before, so if I did, forgive me, but I don't think it worked last time .:) I'm trying to find a way to handle errors by number. For example, if I get a "directory already exists" error, I want to know what the number that is so I can check the return value on the function that gave the error. That made no sense. Lemme try again. Instead of getting the php-generated error message, I want to create my own so the user has a nice message instead of one that makes it look like I don't know what I'm doing. :) Any suggestions? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] error message handling
I tried to send this before, so if I did, forgive me, but I don't think it worked last time .:) I'm trying to find a way to handle errors by number. For example, if I get a "directory already exists" error, I want to know what the number that is so I can check the return value on the function that gave the error. That made no sense. Lemme try again. Instead of getting the php-generated error message, I want to create my own so the user has a nice message instead of one that makes it look like I don't know what I'm doing. :) Any suggestions? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]