php-windows Digest 21 Mar 2001 08:56:55 -0000 Issue 502 Topics (messages 6166 through 6181): Re: Problem with PHP4.04 installation 6166 by: John 6167 by: Phil Driscoll MS Access 6168 by: Tom Mathews 6170 by: Alain Samoun different bug - define constants/includes (was Re: [PHP-WIN] class and dynamic includes (IIS)) 6169 by: Joe Brown Re: PHP, MySQL, Apache Set Up (Windows) 6171 by: OneFish Re: apache + php + system() = error :( 6172 by: Joe Brown Re: Php - XML 6173 by: Phillip Bow PHP+ Apache -----------Help 6174 by: OBB 6177 by: Johannes Janson Re: mime in php 6175 by: Free Beachler 6176 by: patso.goatheckler.com What is your choice? 6178 by: Yasuo Ohgaki 6179 by: Flint Doungchak 6180 by: Alain Samoun Re: MySQL errors 6181 by: Fernando Madruga 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] ----------------------------------------------------------------------
Thank you for replying to my posting. I only this error message when I tried to load a .php file; for example, when I type http://localhost/scripts/php/test.php When I type php.exe -i at a ms-dos prompt, I get no response. Is there anything wrong? Phil Driscoll wrote: > > Since PHP does work on Win98 PWS (although I think any other choice of web > server would causeless aggravation for you), and other's who have reported > installation problems, have not reported this one, I suspect something > strange is going on. > > At what point do you get this error message? > > If you run php.exe -i from the commandline, do you get a screen full of > html, or some error message? > > 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]
>When I type php.exe -i at a ms-dos prompt, I get no response. What do you mean by no response? Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
Has anyone out there had any success with connecting to a Microsoft Access database using the following config? Server - Apache on Solaris Access database location - Solaris NFS I know that its a bit hopeful, but I thought that I'd ask anyway! Cheers Tom
Apache on Linux and NT if that can help... Alain On Tue, Mar 20, 2001 at 03:37:02PM +0000, Tom Mathews wrote: > Has anyone out there had any success with connecting to a Microsoft > Access database using the following config? > > Server - Apache on Solaris > Access database location - Solaris NFS > > I know that its a bit hopeful, but I thought that I'd ask anyway! > > Cheers > > Tom > > -- > 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 did some tracing on this bug I was experiencing. With this code at the top of an include file, the results are unpretictable. if(!defined("METABASE_MYSQL_INCLUDED")) { define("METABASE_MYSQL_INCLUDED",1); ...rest of include file... } require_once(); seems to work though. ""Joe Brown"" <[EMAIL PROTECTED]> wrote in message 99661p$9oc$[EMAIL PROTECTED]">news:99661p$9oc$[EMAIL PROTECTED]... > This appears to be an IIS specific issue. > > Using IIS and Manuel Lemos' Metabase, I'm getting errors in > metabase_interface.php. > > Fatal error: Cannot instantiate non-existent class: metabase_oci_class in > metabase/metabase_interface.php on line 99 > > It's quite inconsistent. After recieving this error, the next refresh, the > error does not appear. > > I'm suspecting the root of the problem is class instantiation, within a > class where the subordinate class is instantiated immediately after an > include($class_file) within the parent class. Heh, if you can follow that, > please advise... > > > > -- > 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. Looking forward to hearing from you...
It looks like you may have to venture down another road. I haven't been able to execute a batch file either. I enjoyed the error returned by popen: Warning: popen("cmd /c d:\wwwroot\blah.bat","r") - No error in d:\wwwroot\test.php on line 2 <jyrgen [@] [EMAIL PROTECTED] ("Jürgen Lasn")> wrote in message 997d6d$p0p$[EMAIL PROTECTED]">news:997d6d$p0p$[EMAIL PROTECTED]... > > well... i understood your comment and it is clear that windows systems don't > use forking, but under w32 processes can have child's (children ? :) but i > can't understand why are functions that need forking (???) enabled? ... > > but after all this -forking- is not the issue here ... the real problem is > that I MUST USE external executable's and i can't see a way to do that ... > > must i really take a shot, using PERL ? > > camooon ... > > Jürgen. > > > ""Joe Brown"" <[EMAIL PROTECTED]> wrote in message > 995n6l$kp2$[EMAIL PROTECTED]">news:995n6l$kp2$[EMAIL PROTECTED]... > > Forking is a unix thing... What happens when a process comes to a fork in > > the road, it splits and continues in two directions. > > > > You can't execute a batch file, you need the command intrepreter to handle > > that one, so the previous suggestion should be accurate. If you're on NT > or > > 2000, maybe cmd.exe would be more apropriate. > > > > If you don't like this comment, go to the kitchen, open the silverware > > drawer, grab a fork and and see how far along you get with it on your > > keyboard. > > > > <jyrgen [@] [EMAIL PROTECTED] ("Jürgen Lasn")> wrote in message > > 98qdfq$2t9$[EMAIL PROTECTED]">news:98qdfq$2t9$[EMAIL PROTECTED]... > > > Hi! > > > > > > No the error is not generated while exec'ing external program but while > it > > > attemts to call the system() command ... it's like the system() and > exec() > > > are malfuncioning ... using backticks (`) made the script to hang .... > > there > > > is something very fundamental that i do wrong but ... where? what? > > > > > > whoknows? :) > > > > > > Jürgen. > > > > > > "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message > > > 3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR... > > > You could try replacing "batch.bat" with "c:\windows\command.com /c > > > batch.bat" for windows 9x or "C:\winnt\cmd.exe /c batch.bat" or > something > > > like that. > > > > > > > > > > > > > > > -- > > > 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] > > > > > -- > 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] >
Well these ones are: ñ = ñ Ñ = Ñ á = á é = é í = í If you need to find more you can open up char map, and click on the char you want. It will give you the ascii char number as alt+thenum. Then just put it in the form -- �thenum; -- phill "Antonio Lopez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... With xml: I want to show the special chars ñ,Ñ,á,é,í.. (i´m spanish, :O))
I have problem making apache1.3.17win32 and php4.0.4 to work on win98se I am able to load both apache and php on startup,did a few php and apache cofiguration i read from the manual and i wrote a script in php and when I execute the php script in apache i got the same php script that i wrote What am i doing wrong, can someone point me to the right direction, i am willing to send php.ini and httpd.conf to anyone who is willing to help.
Hi, it looks like apache doesn't know how to interpret php. if you didn't already do it, you need to add: AddType application/x-httpd-php .php4 .php .php3 Action application/x-httpd-php "/cgi-bin/php4/php.exe" in your httpd.conf. if you did it would be helpful to post the relevant bits of your conf. ""OBB"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 99840v$440$[EMAIL PROTECTED]">news:99840v$440$[EMAIL PROTECTED]... > > I have problem making apache1.3.17win32 and php4.0.4 to work on win98se I > am able to load both apache and php on startup,did a few php and apache > cofiguration i read from the manual and i wrote a script in php and when I > execute the php script in apache i got the same php script that i wrote > What am i doing wrong, can someone point me to the right direction, i am > willing to send php.ini and httpd.conf to anyone who is willing to help. > > > > > -- > 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] >
Brad, You're totally correct. This is the problem, aka BUG ID 8734. Note however, that the #define constant you mentioned is only used in the PHP code for CGI (or ISAPI, i forget which). Therefore, ISAPI under NT shouldn't have this problem. Furthermore, as one reader mentioned, UNIX sendmail doesn't experience this problem. Bottom line on NT using CGI: if the header mail() sends is > 4K then the header will be incomplete which causes mixed results on NT. An incomplete header can crash Exchange, and times-out IIS SMTP. In fact, the workings are a little more intricate. According to the BUG ID, this may be fixed in an upcoming release soon, though I'm not sure exactly where the bug fix stands. Workarounds (some are NO FUN!): 0) try ISAPI if you're running CGI 1) use a SENDMAIL program that's been ported for windows. 2) use a CGI script based off of sendmail and POST to it... 3) fix the #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */ in the sendmail.c file to something more acceptable for the size of headers you may be sending. Then recompile! Or, if you're really slick, code a dynamic buffer and submit the bug fix to php.net! 4) port application to PHP on UNIX (yeah, good luck!) 5) wait for 4.0.5 and hope it's fixed -----Original Message----- From: Brad S. Jackson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 9:07 AM To: Free Beachler Subject: Re: FW: [PHP-WIN] mime in php Perhaps this is why? #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */ http://cvs.php.net/viewcvs.cgi/php4/win32/sendmail.h?rev=1.2&content-type=te xt/vnd.viewcvs-markup FW: [PHP-WIN] mime in php "Free Beachler" <[EMAIL PROTECTED]> wrote: somebody please help!!! I've posted a number of messages about this with no reply. Here are the findings from my research: on windows 2000 under iis 5.0 this is breaking: mail($to, '', '', substr($coverletter, 0, 3990)); while this works: mail($to, $subject, '', substr($coverletter, 0, 3989)); where $coverletter is a message header. I intend this message header to be a mime multipart message. but, for testing purposes, i've tried just any old string in the header. It seems that the mail() function breaks if the length of the header parameter passed to it is too long !!! can someone try this on apache or a unix environment to see if the above line that breaks for me also breaks for you. BEWARE:::if $coverletter contains email addresses those persons might also get the mail. MAKE SURE $coverletter HAS NO EMAIL ADDRESSES! -f -free -----Original Message----- From: Free Beachler [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 6:01 PM To: Php-Windows Subject: [PHP-WIN] mime in php Has anyone done mime multipart in nt 4+ using iis 4+ (preferrably iis 5)? I can't figure out if my mail() send is breaking because of message length or mime format or what. I think my mail conforms to specification. -free [EMAIL PROTECTED]
Yes, I am using a windows port of sendmail. And I am using my college's mailserver to send out the messages. I think the problem may be the execution path I'm using....do you need to put cmd.exe in it or something? Thanks. Patrick O'Shea On Tue, 20 Mar 2001, Free Beachler wrote: > Brad, > You're totally correct. This is the problem, aka BUG ID 8734. Note > however, that the #define constant you mentioned is only used in the PHP > code for CGI (or ISAPI, i forget which). Therefore, ISAPI under NT > shouldn't have this problem. Furthermore, as one reader mentioned, UNIX > sendmail doesn't experience this problem. > > Bottom line on NT using CGI: if the header mail() sends is > 4K then the > header will be incomplete which causes mixed results on NT. An incomplete > header can crash Exchange, and times-out IIS SMTP. In fact, the workings > are a little more intricate. > > According to the BUG ID, this may be fixed in an upcoming release soon, > though I'm not sure exactly where the bug fix stands. > > Workarounds (some are NO FUN!): > 0) try ISAPI if you're running CGI > 1) use a SENDMAIL program that's been ported for windows. > 2) use a CGI script based off of sendmail and POST to it... > 3) fix the #define MAIL_BUFFER_SIZE (1024*4) /* 4k > buffer */ > in the sendmail.c file to something more acceptable for the size of headers > you may be sending. Then recompile! Or, if you're really slick, code a > dynamic buffer and submit the bug fix to php.net! > 4) port application to PHP on UNIX (yeah, good luck!) > 5) wait for 4.0.5 and hope it's fixed > > > -----Original Message----- > From: Brad S. Jackson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 20, 2001 9:07 AM > To: Free Beachler > Subject: Re: FW: [PHP-WIN] mime in php > > > > > Perhaps this is why? > > #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */ > > http://cvs.php.net/viewcvs.cgi/php4/win32/sendmail.h?rev=1.2&content-type=te > xt/vnd.viewcvs-markup > > > FW: [PHP-WIN] mime in php > "Free Beachler" <[EMAIL PROTECTED]> wrote: > somebody please help!!! I've posted a number of messages about this with no > reply. Here are the findings from my research: > > on windows 2000 under iis 5.0 this is breaking: > mail($to, '', '', substr($coverletter, 0, 3990)); > > while this works: > mail($to, $subject, '', substr($coverletter, 0, 3989)); > > where $coverletter is a message header. I intend this message header to be > a mime multipart message. but, for testing purposes, i've tried just any > old string in the header. It seems that the mail() function breaks if the > length of the header parameter passed to it is too long !!! > > can someone try this on apache or a unix environment to see if the above > line that breaks for me also breaks for you. BEWARE:::if $coverletter > contains email addresses those persons might also get the mail. MAKE SURE > $coverletter HAS NO EMAIL ADDRESSES! > > -f > > -free > > > -----Original Message----- > From: Free Beachler [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 19, 2001 6:01 PM > To: Php-Windows > Subject: [PHP-WIN] mime in php > > > Has anyone done mime multipart in nt 4+ using iis 4+ (preferrably iis 5)? I > can't figure out if my mail() send is breaking because of message length or > mime format or what. I think my mail conforms to specification. > > -free > [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] >
Hello all. I decided to install PHP on my windows machine. I would like to know what combination of Server and API is your recommendation. Currently, I installed PHP4.0.5-RC1 grabbed from www.php4win.de for IIS5 using ISAPI. (IIS5 and ISAPI combination seems to have bunch of problems that I've never experienced with PHP and Linux) What is your recommendation? Thanks. -- Yasuo Ohgaki
Yasuo, >From what I understand, the ISAPI module is still not ready for production release. This is true of the PHP 4.01pl1 on IIS4 on NT 4.0. That's my experience as I am still running the CGI version on my box. Others may have more comments. -Flint -----Original Message----- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 4:53 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] What is your choice? Hello all. I decided to install PHP on my windows machine. I would like to know what combination of Server and API is your recommendation. Currently, I installed PHP4.0.5-RC1 grabbed from www.php4win.de for IIS5 using ISAPI. (IIS5 and ISAPI combination seems to have bunch of problems that I've never experienced with PHP and Linux) What is your recommendation? Thanks. -- Yasuo Ohgaki -- 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]
Apache as CGI works great. Alain On Wed, Mar 21, 2001 at 09:52:50AM +0900, Yasuo Ohgaki wrote: > Hello all. > > I decided to install PHP on my windows machine. I would like to know what > combination of Server and API is your recommendation. Currently, I installed > PHP4.0.5-RC1 grabbed from www.php4win.de for IIS5 using ISAPI. > (IIS5 and ISAPI combination seems to have bunch of problems that I've never > experienced with PHP and Linux) > > What is your recommendation? > > Thanks. > > -- > Yasuo Ohgaki > > > -- > 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]
Well, there is no need to use a beta version of mysql when a stable version exists! Why don't you start by upgrading to 3.23.34 ?! Maybe your problem goes away! HTH, Fernando Madruga -----Original Message----- From: Dirk Bonenkamp - Bean IT [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 20 de Março de 2001 10:45 To: [EMAIL PROTECTED] Subject: [PHP-WIN] MySQL errors Hi all, I just installed apache, php & mysql on a win98 laptop. I normally use linux.... Things work fine, but when I execute more queries in one script, I get error messages like: Warning: MySQL: Unable to save result set in c:/program files/apache group/apache/htdocs/network-club.com/agenda.php4 on line 14 I saw something in the FAQ about this, but that was when upgrading..... I use Win98 SE UK, Apache 1.3.14, php 4.0.4pl1, Mysql 3.23.22-beta. TIA, Dirk -- 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]