php-windows Digest 19 Feb 2001 04:16:10 -0000 Issue 452 Topics (messages 5622 through 5629): Re: Problem with: exec(), system() 5622 by: Angus Mann 5627 by: Michael Cartmel 5628 by: Michael Cartmel Re: CGI error: incomplete headers? 5623 by: Maurice Barnes Re: Apache PHP/Win98 Binaries? 5624 by: Madhon SMTP on IIS 5.0 Windows 2000 Pro 5625 by: Peter Knif Re: Interbase/PHP Blob types 5626 by: Michael Cartmel Apache, PHP on win 98 5629 by: Denis L. Menezes 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] ----------------------------------------------------------------------
At 12:11 15/02/2001 +0100, you wrote: >Didn´t help :( >thanks anyway. [..] > > I don´t know whats the problem with exex, system :( > > first time i get: error message: Warning: Unable to fork > > [C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache > > group/apache/htdocs/relay/relay.php4 on line 28 system(), exec() etc. don't work properly under Windows. AFAIK running PHP as a CGI will help with those problems, however even then they won't work 100% :(
System and exec seem to work under windows (cgi), they just don't hand back the output. Has anyone got these functions working 100%? -mic ----- Original Message ----- From: "Angus Mann" <[EMAIL PROTECTED]> To: "Johan Huhtalo" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, February 18, 2001 10:44 PM Subject: Re: Vs: [PHP-WIN] Problem with: exec(), system() > At 12:11 15/02/2001 +0100, you wrote: > >Didn´t help :( > >thanks anyway. > > [..] > > > > I don´t know whats the problem with exex, system :( > > > first time i get: error message: Warning: Unable to fork > > > [C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache > > > group/apache/htdocs/relay/relay.php4 on line 28 > > system(), exec() etc. don't work properly under Windows. > > AFAIK running PHP as a CGI will help with those problems, however even then > they won't work 100% :( > > > -- > 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]
Running 'cmd.exe' will hang the php script because it is waiting for cmd.exe to do it's thing and finish (since it's a shell it will just sit there waiting for input). Try a command like 'dir' or something that executes and closes once it's finished... -mic ----- Original Message ----- From: "Johan Huhtalo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 10:11 PM Subject: Re: Vs: [PHP-WIN] Problem with: exec(), system() > Didn´t help :( > thanks anyway. > > [EMAIL PROTECTED] wrote: > > > Try this: Needs the "K"-switch to work properly (on win2k anyway...) > > > > <?php > > print("Hello world!<BR>\n"); > > $cmd = "C:\\winnt\\system32\\cmd.exe /K \"dir C:\\\""; > > /* for test, want to use c:\\test\\test.exe, but gets the same errors > > */ > > $hmm = system( $cmd ); > > ?> > > > > T. SJM > > > > ps. I escaped the DIR C: => "DIR C:\" as well (\"DIR C:\\\"), even though > > it works without. > > > > Johan Huhtalo <[EMAIL PROTECTED]> > > 15.02.2001 12:12 > > > > > > Vastaanottaja: [EMAIL PROTECTED] > > Kopio: > > Aihe: [PHP-WIN] Problem with: exec(), system() > > > > I don´t know whats the problem with exex, system :( > > first time i get: error message: Warning: Unable to fork > > [C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache > > group/apache/htdocs/relay/relay.php4 on line 28 > > > > when second time, it hangs, i dont get any response from the server. > > i have to restart Apache to get the error msg again. > > > > using: Apache 1.3.14 on WinNT 4.0 > > PHP Version 4.0.4pl1 > > > > code: > > > > <?php > > print("Hello world!<BR>\n"); > > $cmd = "C:\\winnt\\system32\\cmd.exe dir C:\\"; /* for test, want to > > use c:\\test\\test.exe, but gets the same errors */ > > $hmm = system( $cmd ); > > ?> > > > > Thanks for help. > > > > -- > > Regards > > > > Johan > > > > -- > > 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] > > -- > Regards > > Johan > > ========================================================= > Johan Huhtalo E-mail: [EMAIL PROTECTED] > Software Engineer > Enea OSE Systems AB > Box 232 > S-183 23 TABY Phone : +46-8-50-714-723 > Sweden Fax: +46-8-50-714-040 > GSM: +46-709-714-723 > WWW: www.enea.se/ose > ========================================================= > > > > -- > 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]
The issue here is with Win2000 and IIS5.0. NT4 doesnt appear to have this problem. Maurice ----- Original Message ----- From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Maurice Barnes" <[EMAIL PROTECTED]>; "Chaz Yoon" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Zeev Suraski" <[EMAIL PROTECTED]> Sent: Sunday, February 18, 2001 6:13 AM Subject: Re: [PHP-WIN] CGI error: incomplete headers? > Just to add to the discussion (and apologies if I've missed the point). I > use Phorum on a number of NT4 boxes, and have no problems at all with the > redirection stuff (this has been true from beta versions of php4 up to the > current release). Does this perhaps point to a misconfiguration of some > kind? > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > >
i got it working in the end thanks (probs with dev machine delayed it) i also now have apache 1.3.17 compiled with modssl2.8 "Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 14:51 16.02.2001 +0000, Madhon wrote: > >a have been looking for the function definitions u mention and cant find > >them in any of > >the source files that i have > >have u any ideas about this if u want to see the zend_ini.h and zend_ini.c i > >can email them to u > > in the folder zend you'll find the files zend_ini.c and zend_ini.h. > edit zend_ini.h, there you'll find the lines: > > int zend_ini_mstartup(void); > int zend_ini_mshutdown(void); > int zend_ini_rshutdown(void); > void zend_ini_sort_entries(void); > > changed them to: > > ZEND_API int zend_ini_mstartup(void); > ZEND_API int zend_ini_mshutdown(void); > ZEND_API int zend_ini_rshutdown(void); > ZEND_API void zend_ini_sort_entries(void); > > now edit zend_ini.c and changed the function definitions there as well. > > int zend_ini_mstartup() > { > > ZEND_API int zend_ini_mstartup() > { > > ... > > got it? then recompile. > > daniel > > /*-- > daniel beulshausen - [EMAIL PROTECTED] > using php on windows? http://www.php4win.de > > > -- > 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 everyone, I'm trying to run a simple PHP e-mail script on my Windows 2000 Pro machine and I keep receiving Server Error. I tried the same script on a Unix server and it worked fine. Does anyone know what the problem might be? Thanks in advance. -- ***** Peter Knif ***** [EMAIL PROTECTED]
If you're trying to store text in the database, try using column type 'text' instead of 'blob'. Blob is used for storing binaries so that's what it's expecting... -mic ----- Original Message ----- From: "Ed Meyer" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 10:32 AM Subject: [PHP-WIN] Interbase/PHP Blob types I've seen some conversation on this list about blob types but never really an answer. I'm having the problem where I'm trying to insert text into a blob but I'm getting the error message: Warning: Interbase: conversion error from string "BLOB" in filename on line 13 Here's more info about the table and sql I'm using <-------------------------------------------> create table memo ( id char(2) not null primary key, memo blob sub_type 1); insert into memo (id, memo) values ('2', 'Sample Text'); <-------------------------------------------> I've been told to use: insert into memo (id, memo) values (:id, :memo) and convert the variable to :memo but that doesn't work either - instead I get a parse error on line whatever. If more info is needed, please let me know. Thanks! Ed Meyer Smarts Broadcast Systems
hello friends. I downloaded Apache for Windows and ran it. Works fine. I then downloaded php4 and looked at the install instructions and find that there are errors in the install file regarding placing of the dlls, the loadmodule command etc. can anyone tell me the correct procedure of making Apache see and work php? thank you. Denis