php-windows Digest 14 Jul 2001 16:32:25 -0000 Issue 651 Topics (messages 8307 through 8322): Re: Interbase problem 8307 by: Ruslan Ohitin 8308 by: Sichta Daniel Re: Make a CD with Apache & PHP 8309 by: Michael Rudel 8314 by: elias 8321 by: alain samoun Uptime script 8310 by: Dave Milford 8311 by: elias 8322 by: Ben Bleything Re: No extensions work! 8312 by: elias Re: dll separately 8313 by: elias Apache/PHP filtering? 8315 by: Randall Barber 8318 by: Phil Driscoll php.ini 8316 by: Kevin Mann Re: postgresql 8317 by: Arjen van Efferen GDLib not working 8319 by: Randall Barber Interbase/PHP/Apache implimentation 8320 by: Jordan 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] ----------------------------------------------------------------------
Hello Sichta, Try to run your script from the command line (php.exe script.php) May be it's your web server configuration error. SD> Hi everybody !! SD> My cfg: w2k, Apache 1.3.x, IB6., php4.07 SD> When I run phpinfo() I can see that interbase dll is loaded but when I try SD> to do ibase_connect() with parameters SD> host = my IP:path to gdb SD> user: SYSDBA SD> password: masterkey SD> I get this error : "php.exe has generated errors and will be closed by SD> Windows. You will need to restart the program" SD> and here what I get in error log "[Fri Jul 13 09:02:47 2001] [error] [client SD> IP] Premature end of script headers: c:/php/php.exe SD> BTW I'm log on as a administrator !! SD> Thank you !!! SD> Ing. Daniel Šichta SD> SWH s.r.o. SD> Bytčická 2 SD> 010 01 Žilina SD> tel.: +421 41 505 5855 SD> fax: +421 41 500 1376 SD> mailto:[EMAIL PROTECTED] SD> http://www.swh.sk SD> -- SD> PHP Windows Mailing List (http://www.php.net/) SD> To unsubscribe, e-mail: [EMAIL PROTECTED] SD> For additional commands, e-mail: [EMAIL PROTECTED] SD> To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Best regards, Ruslan Ohitin ([EMAIL PROTECTED]) Novosibirsk, Russia
Hi Ruslan, I try it with no luck !! I get same error !!! Any other solution ? DAN -----Original Message----- From: Ruslan Ohitin [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 11:56 AM To: Sichta Daniel Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Interbase problem Hello Sichta, Try to run your script from the command line (php.exe script.php) May be it's your web server configuration error. SD> Hi everybody !! SD> My cfg: w2k, Apache 1.3.x, IB6., php4.07 SD> When I run phpinfo() I can see that interbase dll is loaded but when I try SD> to do ibase_connect() with parameters SD> host = my IP:path to gdb SD> user: SYSDBA SD> password: masterkey SD> I get this error : "php.exe has generated errors and will be closed by SD> Windows. You will need to restart the program" SD> and here what I get in error log "[Fri Jul 13 09:02:47 2001] [error] [client SD> IP] Premature end of script headers: c:/php/php.exe SD> BTW I'm log on as a administrator !! SD> Thank you !!! SD> Ing. Daniel Šichta SD> SWH s.r.o. SD> Bytčická 2 SD> 010 01 Žilina SD> tel.: +421 41 505 5855 SD> fax: +421 41 500 1376 SD> mailto:[EMAIL PROTECTED] SD> http://www.swh.sk SD> -- SD> PHP Windows Mailing List (http://www.php.net/) SD> To unsubscribe, e-mail: [EMAIL PROTECTED] SD> For additional commands, e-mail: [EMAIL PROTECTED] SD> To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Best regards, Ruslan Ohitin ([EMAIL PROTECTED]) Novosibirsk, Russia -- 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]
... 'tis sounds interesting, how does this work ?? Greetinx, Mike > -----Original Message----- > From: Alain Samoun [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 13, 2001 8:59 AM > To: Rafa Borges; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Make a CD with Apache & PHP > > > Yes, you can make an exec file, you won't need Apache. If > that what you > want? > Alain > > On Fri, Jul 13, 2001 at 08:33:25AM +0200, Rafa Borges wrote: > > Hello. I have done a web using PHP and now I want to store > it on a CD with > > all the funcionality (read from a file and use a data base > odbc or mysql). > > How can I do this ? Can Apache and PHP work on a CD without > he tipical > > instalation for Windows ? > > > > > > > > -- > > 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] >
how you mean make an exec? php to exe? or htm to exe ? "Alain Samoun" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yes, you can make an exec file, you won't need Apache. If that what you > want? > Alain > > On Fri, Jul 13, 2001 at 08:33:25AM +0200, Rafa Borges wrote: > > Hello. I have done a web using PHP and now I want to store it on a CD with > > all the funcionality (read from a file and use a data base odbc or mysql). > > How can I do this ? Can Apache and PHP work on a CD without he tipical > > instalation for Windows ? > > > > > > > > -- > > 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 to exe ;) -----Original Message----- From: elias [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 8:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Make a CD with Apache & PHP how you mean make an exec? php to exe? or htm to exe ? "Alain Samoun" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yes, you can make an exec file, you won't need Apache. If that what you > want? > Alain > > On Fri, Jul 13, 2001 at 08:33:25AM +0200, Rafa Borges wrote: > > Hello. I have done a web using PHP and now I want to store it on a CD with > > all the funcionality (read from a file and use a data base odbc or mysql). > > How can I do this ? Can Apache and PHP work on a CD without he tipical > > instalation for Windows ? > > > > > > > > -- > > 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]
Hi, I'm trying to create a little script to show the system uptime (and hopefully system resource usage) on my Windows 2000 Professional SP2 box. I'm currently running Apache 1.3.20 and PHP 4.0.6 on it... It should be noted that I have MS' "uptime" program installed. So far, I've tried using: system(uptime); That didn't work. I get the following printed: "Warning: Unable to fork [uptime] in d:\www\inc_top.html on line 58". So I hit the PHP website, found out some other methods of doing this, like: PRINT exec("cmd \\c uptime"); This time it displays: d:\www> (that's my HTTPd root dir) How could I get this displaying my uptime, and maybe even resource usage? Any help would be appreciated. Thanks --------------------------- Dave Milford ICQ : 8516328 Email: [EMAIL PROTECTED]
why not: PRINT exec("cmd /c uptime"); instead of \\c ? "Dave Milford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I'm trying to create a little script to show the system uptime (and > hopefully system resource usage) on my Windows 2000 Professional SP2 box. > I'm currently running Apache 1.3.20 and PHP 4.0.6 on it... It should be > noted that I have MS' "uptime" program installed. > > So far, I've tried using: system(uptime); > That didn't work. I get the following printed: "Warning: Unable to fork > [uptime] in d:\www\inc_top.html on line 58". > > So I hit the PHP website, found out some other methods of doing this, like: > PRINT exec("cmd \\c uptime"); > This time it displays: d:\www> > (that's my HTTPd root dir) > > How could I get this displaying my uptime, and maybe even resource usage? > Any help would be appreciated. > > Thanks > > --------------------------- > Dave Milford > ICQ : 8516328 > Email: [EMAIL PROTECTED] >
Have you tried backticks? 'echo `uptime`';? That has worked for me in the past... it seems, from other postings, that people have nothing but trouble with exec() and system(). Good luck, Ben -----Original Message----- From: Dave Milford [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 6:50 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Uptime script Hi, I'm trying to create a little script to show the system uptime (and hopefully system resource usage) on my Windows 2000 Professional SP2 box. I'm currently running Apache 1.3.20 and PHP 4.0.6 on it... It should be noted that I have MS' "uptime" program installed. So far, I've tried using: system(uptime); That didn't work. I get the following printed: "Warning: Unable to fork [uptime] in d:\www\inc_top.html on line 58". So I hit the PHP website, found out some other methods of doing this, like: PRINT exec("cmd \\c uptime"); This time it displays: d:\www> (that's my HTTPd root dir) How could I get this displaying my uptime, and maybe even resource usage? Any help would be appreciated. Thanks --------------------------- Dave Milford ICQ : 8516328 Email: [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]
Dunno, Maybe because there are php extensions versions conflict? I mean When I installed 4.0.6 I had to get GD for that specific version... "G Schneider" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > could *someone* please try to help me? > > I've been using PHP for a while now on my Win98 machine with no problems. > But I just upgraded to PHP4.06 and when installing it, I accidentally got > the new install to overwrite my php.ini file. > > So, I had to go back into the php.ini file to add the extensions directory > and enable GD extension (because I use it a lot). > > But, whenever I have the GD extension enabled, no PHP pages will load in. At > all. No matter which server I use, it won't work. Thru Xitami won't work. > Thru IIS. Thru Apache. Nothing. As soon as I disable GD, however, it all > works perfectly. Except for the fact that I now don't have GD to play with. > > Why doesn't it work?!?! I even tried removing PHP 4.06 and reinstalling my > old version 4.04! Nothing. Still when the GD extension (and any other > extension) is enabled - PHP refuses to give. > > This has happened before to me, but it seemed to correct itself and I don't > know why. > > Please help! Thanks! > > Jefferrs > >
http://www.php4win.de had what you want. but it's down at the moment. "As" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is there any site from where i can download dll > separately... > which are available from php.net in big zip form > >
IIS supports (for lack of a better term) embedded ASP within HTML pages and still interprets it. Does such a thing exist for PHP and Apache? I've set up the PHP as a module in Apache and would like to do the following (notice the filename has a .html extension): <html> <body> This is a test. <?php echo "This is code within an HTML that does not have a .php extension"; ?> </body> </html> I realize that I could just change all the extensions to PHP where I want to do this, but I'm curious about whether I'm missing something? Thanks in advance RDB
On Friday 13 July 2001 15:34, Randall Barber wrote: > IIS supports (for lack of a better term) embedded ASP within HTML pages and > still interprets it. Does such a thing exist for PHP and Apache? > > I've set up the PHP as a module in Apache and would like to do the > following (notice the filename has a .html extension): > Just add the following to your httpd.conf file: AddType application/x-httpd-php .html then stop and start Apache. Cheers -- Phil Driscoll
Hi, I've set up and tested php 4.5 on IIS4 on an NT machine. This machine supports several hosted domain web sites and each has it's own IP. My problem is that I specified the Document Root in php.ini, having it pointed at the root of the first web on which I wanted php installed. That worked fine until I went to enable it on the second hosted web site, which then showed the Document Root of the first. Clearing the document_root entry in php.ini (leaving it empty) and re-starting all IIS webs had no effect. The second web still reports the document_root of the first. Can someone please help me to get each hosted web to show it's own root directory ? Thanks, Kevin.
anyone? because i want to know that too I know that postgresql is included in the CygWin package, but that doesn't work.. i mean, i can't get PostgreSQL to work in the Cygwin environment. Arjen -----Original Message----- From: Camelia Bedereag [mailto:[EMAIL PROTECTED]] Sent: donderdag 12 juli 2001 12:50 To: [EMAIL PROTECTED] Subject: [PHP-WIN] postgresql hi ! can anyone tell me how can I install postgresql to work with php on a windows 2000 machine. thx, Camelia --------------------------------- Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
I'm posting here because I am on a Windows platform, and serve my pages from an NT4SP6 box. Ok, I read a couple days ago that someone was having trouble with GD Lib in v4.0.6 of PHP. I'm joining the band-wagon. I missed if that person found a solution. I downloaded and installed the supplied PHP distribution from www.php.net. My problem is this: I try to load a Type 1 font (.pfm) and get the following error: T1Lib not compiled into this version. I try to load a TTF font (.ttf) and get the following error: Cannot open/find font file. Here is the complete code: <?php $im = ImageCreate(200, 100); $backColor = ImageColorAllocate($im, 255, 255, 255); $foreColor = ImageColorAllocate($im, 0, 0, 0); // The next line fails with: cannot open/find font file // Permissions are set properly and the file exists imagettftext($im, 12, 0, 25, 75, $foreColor, "c:/php406/fonts/code39.ttf", "*123456*"); // The next line fails with: T1Lib not compiled into this version $myFont = imagepsloadfont("c:/php406/fonts/code39.pfm"); imagepng($im,"test.png"); ?> So, after looking all over FreeType (which says it stands alone, no other libraries needed), and has support for Type1 and TTF, and then looking at GDLib which says all it needs is FreeType. I looked at the 4.0.6 changes and it said it ported the T1Lib from a previous PHP version. Where is T1Lib coming into this, or rather, where did it go/why doesn't it work? What am I missing? The end result is a file, test.png, that is 200 x 100 and completely white. Not bad, but I want font support. Ciao RDB
Okay... ...I have been trying (and failing) to get Interbase to work with PHP, served up by Apache on a Win2K machine. Through a lot of headache and the process of elimination, I have succeeded in getting an SQL response from PHP, after eliminating any instructions for Apache to load the PHP module - using only the CGI interface. So, if I understand things, my problem has been that I've been attempting to get Interbase support from the PHP module for Apache, which won't work for one reason or another. If true, this comes as great relief, because I was beating my head against the wall trying to figure out where my php.ini file was misconfigured.... So my question is this: Can DBMS support be enabled using the extension=php_interbase.dll directive in the php.ini file (as opposed to MySQL, where support is built in) ONLY while in CGI mode? Will the distribution version of php4apache.dll not look at the php.ini file, to enable Interbase support? If that is the case, is there anywhere one might find a version of the php4apache.dll file which enables Interbase support? I will use CGI if I must, but my preference is to use the Apache Module.... Thanks in advance, --Jordan