Re: [PHP] Header() don't work
The original scripts of login.php have the line: require("lib.inc");, the lib.inc is as below After I deleted the require() line, and use myslq_connect() and mysql_select_db() in the login.php, the header() does work. So I think there must be some output while running at the line of "return $handler;" Regards Mike -- 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] Help, need the scripts of processing the to-be-confirmed email.
I need to some help about example scripts on: Question 1: How to process the confirmation email by clicking the url given in the email and by replying the email. Question 2: I know if using mail(), the "From" field of the mail sent out is always the web host server's mail sendout server, not from my own email box. How to send out the email which looks like sending out from my own email box. Question 3: How to let MYSQL automatically delete the unactivated signups? Thanks! Mike -- 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] What's the difference between mail() in PHP and sendmail?
What's the difference between mail() in PHP and sendmail? Thanks! Mike -- 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] HTTP 500 server error
It always gets HTTP 500 server error, when I try to run the php scripts on Windows98 SE + PWS4.0. THE PHP installed is Ver 4.06 -win32, as a server module. However I get a screen full of html codes when I run c:\php\php.exe -i in MS-DOS command line So what's problem with the installation or configuration? Thanks BAKER
[PHP] mysql_fetch_array() doesn't work
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98 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] mysql_fetch_array() doesn't work
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98 When PHP is running at the line: $arr=mysql_fetch_array($res); The IE always show info as below: "Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]" What's the problem wiht mysql_fetch_array() or other? What does the T_STRING' or `T_VARIABLE' or `T_NUM_STRING' mean? THANKS Mike The full code below: User Added timeStatus"; $num=mysql_num_rows($res); for($i=0; $i<$num; $i++) { $arr=mysql_fetch_array($res); /* HERE is line where the error occurs!!! */ echo " $arr['user_name']>"; echo "$arr['time']"; echo "$arr['status']"; echo "$arr['comment']"; } echo ""; echo ""; /* show others in multi-pages */ for($i=0; $i<$pages; $i++){ echo " echo ($i+1).""; echo " "; } echo ""; ?> - create table users ( user_id int not null auto_increment primary key, user_name varchar(30), time datetime, status tinyint(1), comment text, sign tinyint(1) default '1' ); -- 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] Re: mysql_fetch_array() doesn't work
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: "Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]" It is because the echo (including print) doesn't work at the line below, echo ""; showing the error info as I mentioned. ( but it should work according to PHP books) It only works when the $arr['user_id'] is out of the quotes. echo ""; then IE showed no error any longer. So I have to let all $arr['key'] out of the quotes, then the scripts are Ok. Regards Mike -- 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] Re: mysql_fetch_array() doesn't work
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: "Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]" It is because the echo (including print) doesn't work at the line below, echo ""; showing the error info as I mentioned. ( but it should work according to PHP books) It only works when the $arr['user_id'] is out of the quotes. echo ""; then IE showed no error any longer. So I have to let all $arr['key'] out of the quotes, then the scripts are Ok. Regards Mike -- 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] Session and header() errrors
Why do the errors occur while running the scripts below? It seems that the errors occured at the part of session and header(). Please give me some advice! Thank you! Mike System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations are default in php.ini) when the 1.php is running, the IE shows errors info as below : - Warning: Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\web1\html-head.inc:9) in c:\program files\apache group\apache\htdocs\web1\1.php on line 3 Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\web1\html-head.inc:9) in c:\program files\apache group\apache\htdocs\web1\1.php on line 3 Warning: open(/tmp\sess_96ae897bcb501486860552d2df862863, O_RDWR) failed: m (2) in c:\program files\apache group\apache\htdocs\web1\1.php on line 3 session_id: 96ae897bcb501486860552d2df862863 Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\web1\html-head.inc:9) in c:\program files\apache group\apache\htdocs\web1\1.php on line 9 - The scripts of 1.php: (1.php and 2.php are under the same base directory) "; sleep(10); header("Location: 2.php"); require("html-foot.inc"); ?> - The scripts of html-head.inc: page title - The scripts of html-foot.inc: -- 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]