Re: [PHP] How to detect if a cookie is set?

2003-03-21 Thread Paonarong Buachaiyo
I usuallly use if ( isset($_COOKIE[Name]) ) { . } But if there have any output before this code I use ob_start(); your output... if ( isset($_COOKIE[Name]) ) { . } ob_end_flush(); Webmaster Mbt [EMAIL PROTECTED] wrote

[PHP] Re: Session Not Working

2003-03-21 Thread Paonarong Buachaiyo
Try if ( isset($_SESSION['verified_user'])==1) { ... } or in main.php try to print out if there any variable or not? ?PHP session_start(); print_r($_SESSION['verified_user']); ? Guru Geek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I'm trying to use sessions for the

[PHP] Re: Session problem

2003-03-18 Thread Paonarong Buachaiyo
Do not echo $query or any output before session_start(); or session_register(xxx); (mean headers) //echo $query Or may be you can put ob_start(); before first output and put ob_end_flush(); after last headers ob_start(); echo $query . . //your code. . . session_register(ses_level);

Re: [PHP] $_SESSION

2002-10-16 Thread Paonarong Buachaiyo
Please, I' also have some question about $_SESSION. Simple, how can we earse all $SESSION variable except one or two variables. Beacuse i want to show some error message in my login form when login failed. i want to destroy all other $_SESSION variable (about 10) except $_SESSION['errmsg'] and

Re: [PHP] Not Displaying From Vars??

2002-09-30 Thread Paonarong Buachaiyo
Stephen Craton [EMAIL PROTECTED] wrote in message 000601c267ed$1cf93780$[EMAIL PROTECTED]">news:000601c267ed$1cf93780$[EMAIL PROTECTED]... Here's the part that's supposed to display the information. I've only filled in one area so far: tr tdfont size=2 face=Arial,

[PHP] Re: Creating Images (.GIF) with PHP from Text?

2002-09-17 Thread Paonarong Buachaiyo
Jason Caldwell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... How can I create a dynamic image with PHP? Here's what I want to do; I have a counter (kinda) on my website.. and this counter appears in a certain font -- which most computer systems will not have on their systems.