php-windows Digest 12 Mar 2001 15:42:49 -0000 Issue 487 Topics (messages 5946 through 5968): Re: Benchmark humor 5946 by: Ignatius Teo Re: CVS for win 5947 by: Ignatius Teo Re: Newbie: Help on mySQL !!! 5948 by: Ralph Alberti File download 5949 by: Urmil Parikh 5965 by: Olivier Hubert Re: Strip text from HTML 5950 by: Mangiola Nunzio Datavia Problem with Sablotron 5951 by: Antonio Lopez PDF + WIN32 5952 by: Ben Cairns Re: HELP ON IIS4 & PHP4.0.4pl1 5953 by: Martin Kemp Re: unsupported or undefined function mysql_connect() 5954 by: Tom Mathews COM Objects anyone? 5955 by: MD 5964 by: Mikey 5966 by: MD Grab and print user's IP address 5956 by: Dream 5957 by: Michael Rudel 5958 by: Dream Re: Win32 PHP, Apache Web Server, and Mail 5959 by: Giro 5961 by: Giro MD5 5960 by: Ben Cairns Win32 PHP and Mail 5962 by: Giro Re: unknows errors with the mail() function 5963 by: Asendorf, John Poor PHP performane on Apache on Win 2000 Server 5967 by: Mark Tipton 5968 by: Tom Mathews Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Well, considering that PHP is doing 10 times more CF, that's not bad...in fact, that's pretty good.... But seriously, don't you think that's a bit skewed? Shouldn't they both be running the same number of queries, just to be fair? :-) Ignatius > -----Original Message----- > From: Chris Adams [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 10 March 2001 06:21 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Benchmark humor > > > I was running some simple database performance tests this > morning using PHP and > Cold Fusion using MS SQL on an NT box. On my first test, I > did a number of > select statements. To my surprise, Cold Fusion (using OLEDB) > came in at 4 > seconds to PHP's 8. When I looked at the inner benchmark > loops, I found the > difference - PHP was doing 5,000 queries and Cold Fusion was > doing 500. > > Chris > > -- > PHP Windows 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] >
Try wincvs.org - you can run WinCVS locally on your Windoze box w/o a server. It also allows you to connect to a CVS server Ignatius > -----Original Message----- > From: Paul Meagher [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 10 March 2001 13:13 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] CVS for win > > > > Does anyone have any recommendations for what windows-based > CVS package is > the best? > > I am wanting to contribute to a soureforge project so it > would be nice if > the package played nice with whatever linux-based package they run. > > Also, when doing development locally, is there a choice between just > running a CVS client or do you have to run a CVS server > locally as well? > > Any advice, pointers, etc... would be appreciated. > > Regards, > Paul Meagher > > > > > -- > PHP Windows 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] >
I'm pretty new at php too but I think you are going about it all wrong. First create a php script that accesses MySQL. Like this: <?php $connection = mysql_connect("localhost","username","password"); if (!$connection) { echo "Couldn't make a connection!"; exit; } $db = mysql_select_db("dbname", $connection); if (!$db) { echo "Couldn't select database!"; exit; } $sql = "SELECT * FROM tablename WHERE field LIKE '$fieldname'"; $sql_result = mysql_query($sql,$connection); ... ?> Then put it on your web tree. Then point to it with your browser. I think you can execute a php script from the command line but I'm not sure. I haven't done it. --Ralph Mujahid wrote: > > Hi, > > I been working on PHP/MySQL on Windows and to run some database script on > MySQL, at the DOS command prompt I say > > >> mysql -u root -p < myscript.txt > > to run my script of inserts. > > Can anybody help me with an equlent at linux prompt ? > > TIA > > -- > > -- > PHP Windows 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]
Hi, I'm using following code to download a file. IE5 shows the Open/Save dialogue, if I select 'Save", it works. But if I select "Open", it again shows the same dialog with the name of my .php file. Now if I say open, it opens a blank file. Can anybody help me? header("Content-type: unknown"); header("Content-Disposition: attachment; filename=$name;"); readfile($name); Regards, | Linux Urmil Parikh | It is now safe to turn on your computer
Hi, I believe your problem is related to the fact that you use "unknown" in your content-type header. This forces IE to search for an application to open the file of "unknown" type. Have you tried any other content-types? For more info on content-types, see the HTTP1.1 RFC: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17 Olivier Hubert >Hi, > >I'm using following code to download a file. IE5 shows the Open/Save dialogue, >if I select 'Save", it works. But if I select "Open", it again shows the same >dialog with the name of my .php file. Now if I say open, it opens a blank >file. >Can anybody help me? > > header("Content-type: unknown"); > header("Content-Disposition: attachment; filename=$name;"); > readfile($name); > >Regards, | Linux >Urmil Parikh | It is now safe to turn on your computer
Thanks that did the trick. What I needed was to strip maybe the first paragraph of a article. The code you gave me would just strip one line of code. But it gave me the pointer I needed to find the final answer. I modified your code with other code I found in the manual and came up with the solution. And here it is..... <?php if ( $fp = fopen( "path/to/my/file/plus-the.file", "r" ) ) { while( ! feof( $fp ) ) { $line = fread ($fp, 800); if ( ! strpos( $line, "<P>" ) === false ) { echo $line; break; } } fclose( $fp ); } ?> <A HREF= "path/to/my/file/plus-the.file"><FONT SIZE="2">...More</FONT></A> This will display the first part of the article. Then the last part is if you want to see the rest of the article. > ---------- > From: Michael Rudel[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Saturday, March 10, 2001 12:42 AM > To: Mangiola Nunzio Datavia; 'PHP Windows List (E-mail)' > Subject: RE: [PHP-WIN] Strip text from HTML > > Hi Mangiola, > > yes you can. > > If the html-document is local on your server, you can "fopen" > it an then parse line for line like this: > > <?php > > if ( $fp = @fopen( "path/to/my/file/plus-the.file", "r" ) ) > { > while( ! feof( $fp ) ) > { > $line = fgets( $fp, 4096 ); > > if ( ! strpos( $line, "<P>" ) === false ) > { > echo $line; > break; > } > } > > fclose( $fp ); > } > ?> > > ... And if it's on a remote Host, then do the same but with "fsockopen" > (find help in the php-manual/Network Functions). > > Hope t'll help. > > Greetinx, > Mike > > Michael Rudel > - Web-Development, Systemadministration - > _______________________________________________________________ > > Suchtreffer AG > Bleicherstraße 20 > D-78467 Konstanz > Germany > fon: +49-(0)7531-89207-17 > fax: +49-(0)7531-89207-13 > e-mail: mailto:[EMAIL PROTECTED] > internet: http://www.suchtreffer.de > _______________________________________________________________ > > > > -----Original Message----- > From: Mangiola Nunzio Datavia [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 2:01 PM > To: PHP Windows List (E-mail) > Subject: [PHP-WIN] Strip text from HTML > > > Hi > > I'd like to strip the first paragraph > of a html document and display it. > > basically the introduction and no more. > > Is this possible? > > -- > PHP Windows 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] >
I'm learning XML-XSL, and i try it with Sablotron on WinNT + IIS + PHP404pl1 ('sablot.dll' and 'php_sablot.dll'). Xml + Xsl -> Html : the engine works correctly! But my browser has a rarely behavior! When i reload a page that uses the Sablotron functions, my browser receive the html page correctly, and then stay waiting for anything and never stop of load the page!! I don´t know why my browser do that!! ¿Does anyone know if Sablotron has any bug? Thank you for any help! =================================================== Antonio López Luna Ingeniería e Integración Avanzadas (Ingenia), S.A. Parque Tecnológico de Andalucía 29590 - Málaga (Spain) Tel. 34-952029300 Ext. 386 Fax. 34-952029309 Web: http://www.ingenia.es
Has anybody had any luck creating a PDF on a Win32 machine using php. Here is my config: Windows NT Server 4 Apache 1.3.9 PHP 4.0.4pl1 I have a PDFLib, dont know if its the right one, or if its installed correctly. Could someone please send me the correct lib and install instructions. Thanks. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
I just put the .dll and .ini files in the winnt directory, and renamed the windows directory to be sure that it wasn't used (I'll delete it once I'm sure it isn't used). I was then able to use get and post methods (the site I'm working on uses one of these methods for the session identifier and the other for login details). So I'm afraid I can't help you regarding the GET problem - I haven't experienced it. regards, Martin > -----Original Message----- > From: Ralph Alberti [mailto:[EMAIL PROTECTED]] > Sent: 11 March 2001 3:41 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] HELP ON IIS4 & PHP4.0.4pl1 > > > So what did you do? I upgraded my home machine and it also has a Windows > directory and no WinNT directory. My work laptop came preconfigured with > Win2000 and does have the c:\winnt as you mentioned. PHP seems to work > fairly well on both using the cgi version of php. I am trying to track > down one problem though. I can't get POST to work. Only get. > > --Ralph > > > Martin Kemp wrote: > > > > You're not alone in having had this problem - I upgraded a machine from > > win98 to win2k and spent about a day banging my head against a > wall trying > > to get PHP to work (it wasn't even finding the executable), and then > > realised at about 9pm that I was installing the .dll and .ini file to > > c:\windows, not c:\winnt as I should have done! I was so fed up... > > > > Martin Kemp > > > > > -----Original Message----- > > > From: Florian Poizac [mailto:[EMAIL PROTECTED]] > > > Sent: 09 March 2001 2:55 > > > To: PHP Mailing list; Phil Driscoll > > > Subject: Re: [PHP-WIN] HELP ON IIS4 & PHP4.0.4pl1 > > > > > > > > > Thanks for your reponse > > > > > > I add total control for the system,admin,all the world to php.ini > > > but this is again the same probleme > > > So my WinNt install directory is c:\winnt.sbs does it can be the prob > > > > > > Cheers > > > > > > > > > ----- Original Message ----- > > > From: Phil Driscoll <[EMAIL PROTECTED]> > > > To: Florian Poizac <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > > Sent: Friday, March 09, 2001 11:13 AM > > > Subject: Re: [PHP-WIN] HELP ON IIS4 & PHP4.0.4pl1 > > > > > > > > > > php.ini should be in c:\winnt, and nowhere else - otherwise > > > it's anybody's > > > > guess which one will get used! Get rid of any copies you have made > > > > elsewhere, and then check that the php.ini in c:\winnt has read > > > access for > > > > IUSR_<machinename>. > > > > > > > > Cheers > > > > -- > > > > Phil Driscoll > > > > Dial Solutions > > > > +44 (0)113 294 5112 > > > > http://www.dialsolutions.com > > > > http://www.dtonline.org > > > > > > > > > > > > > > > > -- > > > > PHP Windows 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 Windows 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] >
Depends which versionof PHP your ISP is running. Prior to v4.x, MySQL module was not included in the standard compilations but had to be deliberately put in. Easiest way to check is to run a script containing phpinfo() on your hosting site. Tom Mark Taylor wrote: > hi all, > > I've been testing out some PHP / MySQL locally on PC (Win98 / Apache) and > all is well. > > However when I pushed it up to my ISP, I receive the following error. "Call > to unsupported or undefined function mysql_connect() " > > Anybody got any comments. > > PHP on the ISP is working fine. > > Best regards, > > Mark Taylor > > -- > PHP Windows 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]
Does anyone have some info on accessing other COM objects with php? I've tried Word and that worked pretty good, although I would also like to know more about how to format the text being sent to word and how to format tables and such(can it also read-in text?). I am sure that there are plenty of COM accessor methods out there, but I have searched and searched and have not found any info. Mike
This URL give you a list of all Excel methods & properties, if you show the Table of Contents, it gives you listings for all of the Office apps: http://msdn.microsoft.com/library/officedev/off2000/xltocobjectmodelapplication.htm Mikey >===== Original Message From "MD" <[EMAIL PROTECTED]> ===== >Does anyone have some info on accessing other COM objects with php? I've >tried Word and that worked pretty good, although I would also like to know >more about how to format the text being sent to word and how to format >tables and such(can it also read-in text?). I am sure that there are plenty >of COM accessor methods out there, but I have searched and searched and have >not found any info. > >Mike > > > >-- >PHP Windows 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] ----------------------- InterMutual Healthcare from Totalise. Peace of mind at an affordable price. Visit http://www.intermutual.com/health/
Thank you very much! Mike "Mikey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This URL give you a list of all Excel methods & properties, if you show the > Table of Contents, it gives you listings for all of the Office apps: > > http://msdn.microsoft.com/library/officedev/off2000/xltocobjectmodelapplicat ion.htm > > Mikey > > >===== Original Message From "MD" <[EMAIL PROTECTED]> ===== > >Does anyone have some info on accessing other COM objects with php? I've > >tried Word and that worked pretty good, although I would also like to know > >more about how to format the text being sent to word and how to format > >tables and such(can it also read-in text?). I am sure that there are plenty > >of COM accessor methods out there, but I have searched and searched and have > >not found any info. > > > >Mike > > > > > > > >-- > >PHP Windows 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] > > ----------------------- > InterMutual Healthcare from Totalise. Peace of mind at an affordable price. > Visit http://www.intermutual.com/health/ > > > -- > PHP Windows 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] >
> Hi! > > I need just a little script so I can get and print in browser the currently > users IP address and if possible, browser type, etc. > > Thanks a lot! > > marc
<?php echo "Remote IP: ".$REMOTE_ADDR."<BR>\n"; echo "Browser: ".$HTTP_USER_AGENT."<BR>\n"; ?> If you want to get more EnvVars, RTFM or use the phpinfo() -function. Greetinx, Mike -----Original Message----- From: Dream [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 12:01 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Grab and print user's IP address > Hi! > > I need just a little script so I can get and print in browser the currently > users IP address and if possible, browser type, etc. > > Thanks a lot! > > marc -- PHP Windows 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]
thanks This is for sure the user information (i.e. people visiting my site) not mine, right? marc ""Michael Rudel"" <[EMAIL PROTECTED]> escribió en el mensaje 001901c0aae6$33cac2a0$[EMAIL PROTECTED]">news:001901c0aae6$33cac2a0$[EMAIL PROTECTED]... > <?php > echo "Remote IP: ".$REMOTE_ADDR."<BR>\n"; > echo "Browser: ".$HTTP_USER_AGENT."<BR>\n"; > ?> > > If you want to get more EnvVars, RTFM or use > the phpinfo() -function. > > Greetinx, > Mike > > -----Original Message----- > From: Dream [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 12:01 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Grab and print user's IP address > > > > Hi! > > > > I need just a little script so I can get and print in browser the > currently > > users IP address and if possible, browser type, etc. > > > > Thanks a lot! > > > > marc > > > > > -- > PHP Windows 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 Windows 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] >
Dear Friends, I have tried to be as specific I could according to the little knowledge I have in PHP, I have some problem to completing the task, I have read as much I could about that and having the same problem Adrian Gould have, to the exception that Apache run. Please find below all I have prepare if somebody have some clued why I will be more than grateful. As you will see the script works to retrieve the information input but did not send the message. I could ping the smtp so I have completely froze here. Thanks Giro <-----------------------------Results I got after send the form----------------------------> <br> <b>Warning</b>: Server Error in <b>c:\program files\apache group\apache\htdocs\send_simpleform.php</b> on line <b>13</b><br> <html> <head> <title>Simple Feedback Form Sent</title> </head> <body> <h1>The Following e-mail has been sent:</h1> <P><strong>Your Name:</strong><br> giro de roover <P><strong>Your E-Mail Address:</strong><br> [EMAIL PROTECTED] <P><strong>Message:</strong><br> PHP is supposed to be cool!!! </body> </html> <-----------PHP.ini---------------------> [mail function] SMTP = smtp.starband.net ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only <--------send_simpleform.php-------------> <?php $msg = "E-MAIL SENT FROM WWW SITE\n"; $msg .= "Sender's Name:\t$sender_name\n"; $msg .= "Sender's E-Mail:\t$sender_email\n"; $msg .= "Message:\t$message\n\n"; $to = "[EMAIL PROTECTED]"; $subject = "Web Site Feedback"; $mailheaders = "From: My Web Site <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); ?> <html> <head> <title>Simple Feedback Form Sent</title> </head> <body> <h1>The Following e-mail has been sent:</h1> <P><strong>Your Name:</strong><br> <? echo "$sender_name"; ?> <P><strong>Your E-Mail Address:</strong><br> <? echo "$sender_email"; ?> <P><strong>Message:</strong><br> <? echo "$message"; ?> </body> </html> <----------------simple_form.html------------------------> <html> <head> <title>Simple Feedback Form</title> </head> <body> <form method="post" action="send_simpleform.php"> <p><strong>Your Name:</strong><br> <input type="text" name="sender_name" size=30></P> <p><strong>Your Email Address:</strong><br> <input type="text" name="sender_email" size=30></P> <p><strong>Message:</strong><br> <textarea name="message" cols=30 rows=5 wrap=virtual></textarea></p> <P><input type="submit" name="submit" value="Send This Form"></P> </form> </body> </html>
Dear Friends, I have tried to be as specific I could according to the little knowledge I have in PHP, I have some problem to completing the task, I have read as much I could about that and having the same problem Adrian Gould have, to the exception that Apache run. Please find below all I have prepare if somebody have some clued why I will be more than grateful. As you will see the script works to retrieve the information input but did not send the message. I could ping the smtp so I have completely froze here. Thanks Giro <-----------------------------Results I got after send the form----------------------------> <br> <b>Warning</b>: Server Error in <b>c:\program files\apache group\apache\htdocs\send_simpleform.php</b> on line <b>13</b><br> <html> <head> <title>Simple Feedback Form Sent</title> </head> <body> <h1>The Following e-mail has been sent:</h1> <P><strong>Your Name:</strong><br> giro de roover <P><strong>Your E-Mail Address:</strong><br> [EMAIL PROTECTED] <P><strong>Message:</strong><br> PHP is supposed to be cool!!! </body> </html> <-----------PHP.ini---------------------> [mail function] SMTP = smtp.starband.net ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only <--------send_simpleform.php-------------> <?php $msg = "E-MAIL SENT FROM WWW SITE\n"; $msg .= "Sender's Name:\t$sender_name\n"; $msg .= "Sender's E-Mail:\t$sender_email\n"; $msg .= "Message:\t$message\n\n"; $to = "[EMAIL PROTECTED]"; $subject = "Web Site Feedback"; $mailheaders = "From: My Web Site <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); ?> <html> <head> <title>Simple Feedback Form Sent</title> </head> <body> <h1>The Following e-mail has been sent:</h1> <P><strong>Your Name:</strong><br> <? echo "$sender_name"; ?> <P><strong>Your E-Mail Address:</strong><br> <? echo "$sender_email"; ?> <P><strong>Message:</strong><br> <? echo "$message"; ?> </body> </html> <----------------simple_form.html------------------------> <html> <head> <title>Simple Feedback Form</title> </head> <body> <form method="post" action="send_simpleform.php"> <p><strong>Your Name:</strong><br> <input type="text" name="sender_name" size=30></P> <p><strong>Your Email Address:</strong><br> <input type="text" name="sender_email" size=30></P> <p><strong>Message:</strong><br> <textarea name="message" cols=30 rows=5 wrap=virtual></textarea></p> <P><input type="submit" name="submit" value="Send This Form"></P> </form> </body> </html>
I have a string that I want to MD5 (No prizes for guessing its a password), what I want to do is MD5 two strings (one supplied by the user, and one by my server) and compare them. How can I do this? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"
Dear Friends, I have tried to be as specific I could according to the little knowledge I have in PHP, I have some problem to completing the task, I have read as much I could about that and having the same problem Adrian Gould have, to the exception that Apache run. Please find below all I have prepare if somebody have some clued why I will be more than grateful. As you will see the script works to retrieve the information input but did not send the message. I could ping the smtp so I have completely froze here. Thanks Giro <-----------------------------Results I got after send the form----------------------------> <br> <b>Warning</b>: Server Error in <b>c:\program files\apache group\apache\htdocs\send_simpleform.php</b> on line <b>13</b><br> <html> <head> <title>Simple Feedback Form Sent</title> </head> <body> <h1>The Following e-mail has been sent:</h1> <P><strong>Your Name:</strong><br> giro de roover <P><strong>Your E-Mail Address:</strong><br> [EMAIL PROTECTED] <P><strong>Message:</strong><br> PHP is supposed to be cool!!! </body> </html> <-----------PHP.ini---------------------> [mail function] SMTP = smtp.starband.net ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only <--------send_simpleform.php-------------> <?php $msg = "E-MAIL SENT FROM WWW SITE\n"; $msg .= "Sender's Name:\t$sender_name\n"; $msg .= "Sender's E-Mail:\t$sender_email\n"; $msg .= "Message:\t$message\n\n"; $to = "[EMAIL PROTECTED]"; $subject = "Web Site Feedback"; $mailheaders = "From: My Web Site <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); ?> <html> <head> <title>Simple Feedback Form Sent</title> </head> <body> <h1>The Following e-mail has been sent:</h1> <P><strong>Your Name:</strong><br> <? echo "$sender_name"; ?> <P><strong>Your E-Mail Address:</strong><br> <? echo "$sender_email"; ?> <P><strong>Message:</strong><br> <? echo "$message"; ?> </body> </html> <----------------simple_form.html------------------------> <html> <head> <title>Simple Feedback Form</title> </head> <body> <form method="post" action="send_simpleform.php"> <p><strong>Your Name:</strong><br> <input type="text" name="sender_name" size=30></P> <p><strong>Your Email Address:</strong><br> <input type="text" name="sender_email" size=30></P> <p><strong>Message:</strong><br> <textarea name="message" cols=30 rows=5 wrap=virtual></textarea></p> <P><input type="submit" name="submit" value="Send This Form"></P> </form> </body> </html>
I'd suggest starting by rechecking all of your settings and instead of variables in your mail () line, put real values. This can help you eliminate some of the possibilities of what could be wrong. John --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aut insanit homo, aut versus facit > -----Original Message----- > From: NeonGhozt [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 1:36 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] unknows errors with the mail() function > > > Hello, I have a php script that uses the mail function, and > whenever I try > to execute it I get an unknown error on the line that has the > mail code.. > ive checked the php.ini file and it looks fine ive checked > the code over and > over again and I don't see what is wrong, im hoping that > someone out there > might have had this same problem and found a solution to it... thanks > > mail($address, "Found Password", "$user - $found"); > > all the variables are set.. please, any info on this would be > much welcome. > > > > -- > PHP Windows 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] >
I have a Win 2000 Web server with Apache that works just fine. However whenever a PHP page is requested you must wait about 5 seconds for the page to be displayed, even if there are no actual PHP commands in the page itself. I have IIS and ASP running on the same server with an instantaneous response for requests on ASP pages. Any ideas on what could be causing such poor performance?
Mark Tipton wrote: > Any ideas on what could be causing such > poor performance? > Microsoft! > > -- > PHP Windows 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]