[PHP-WIN] Re: getting the OS
Hi "Damouse" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000c01c2b38a$166a01e0$3700a8c0@DaMouse">news:000c01c2b38a$166a01e0$3700a8c0@DaMouse... ok I develop stuff on both windoze and linux so say I left my computer running and forgot which it was running and wanted to make a OS specific script from another computer. How could I tell what OS it was to see if I needed to go reboot it? Maybe echo PHP_OS; is enough? Christoph -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] some trubles with MSQL
hi to all. I decided to use MSQL instead of MySQL with php, and I've got the trubles I cannot connect to my MSQL :-(. simple function 'msql_connect($hostname);' fails what's wrong ? P.S. recommended to answer on my e-mail: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 4 Jan 2003 17:08:32 -0000 Issue 1518
php-windows Digest 4 Jan 2003 17:08:32 - Issue 1518 Topics (messages 17638 through 17642): Re: Subject: getting the OS 17638 by: Neil Smith 17639 by: Dash McElroy Re: getting the OS 17640 by: Christoph Grottolo some trubles with MSQL 17641 by: Sad Re: gettext on Windows... 17642 by: Phil Grimpo 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] -- --- Begin Message --- On Apache Windows 2000, PHP 4.0.5 $HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns : "Apache/1.3.14 (Win32)" On Apache Linux Redhat, PHP 4.0.6 $HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns : Apache/1.3.27 (Unix) (Red-Hat/Linux) blah blah b;ah So, you could easily use a regex to extract the (Win32) or (Unix) strings for your branch / test. These variables are probably now called $_SERVER["SERVER_SOFTWARE"] under PHP > 4.2 - anybody care to confirm these results ? Hope that helps Regards, Neil Smith. At 00:42 04/01/2003 +, you wrote: PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Message-ID: <000c01c2b38a$166a01e0$3700a8c0@DaMouse> From: "DaMouse" <[EMAIL PROTECTED]> To: "PHP - Win" <[EMAIL PROTECTED]> Date: Sat, 4 Jan 2003 00:41:19 - MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="=_NextPart_000_0008_01C2B389.FFECDDC0" Subject: getting the OS ok I develop stuff on both windoze and linux so say I left my computer running and forgot which it was running and wanted to make a OS specific script from another computer. How could I tell what OS it was to see if I needed to go reboot it? Ensign Baker HCO Officer USS Atlantis --- End Message --- --- Begin Message --- I can confirm that on Windows. My linux box has PHP 4.1.2. You could also check some of the other environment variables. I just compared my phpinfo() screens on my w2k box and my linux box. Looks like the solution mentioned below is the cleanest, however. Hopefully you don't need to differentiate between different Unix flavors. If so, it appears that _ENV contains quite a few valuable variables (although I cannot speak for the *BSD crowd, my linux type is in there in $_ENV['MACHTYPE'] as 'i386-slackware-linux-gnu'). -Dash -Original Message- From: Neil Smith [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 5:24 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Subject: getting the OS On Apache Windows 2000, PHP 4.0.5 $HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns : "Apache/1.3.14 (Win32)" On Apache Linux Redhat, PHP 4.0.6 $HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns : Apache/1.3.27 (Unix) (Red-Hat/Linux) blah blah b;ah So, you could easily use a regex to extract the (Win32) or (Unix) strings for your branch / test. These variables are probably now called $_SERVER["SERVER_SOFTWARE"] under PHP > 4.2 - anybody care to confirm these results ? Hope that helps Regards, Neil Smith. At 00:42 04/01/2003 +, you wrote: >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >Message-ID: <000c01c2b38a$166a01e0$3700a8c0@DaMouse> >From: "DaMouse" <[EMAIL PROTECTED]> >To: "PHP - Win" <[EMAIL PROTECTED]> >Date: Sat, 4 Jan 2003 00:41:19 - >MIME-Version: 1.0 >Content-Type: multipart/related; > type="multipart/alternative"; > boundary="=_NextPart_000_0008_01C2B389.FFECDDC0" >Subject: getting the OS > >ok I develop stuff on both windoze and linux so say I left my computer >running and forgot which it was running and wanted to make a OS specific >script from another computer. How could I tell what OS it was to see if I >needed to go reboot it? > > > >Ensign Baker >HCO Officer >USS Atlantis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- --- Begin Message --- Hi "Damouse" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 000c01c2b38a$166a01e0$3700a8c0@DaMouse">news:000c01c2b38a$166a01e0$3700a8c0@DaMouse... ok I develop stuff on both windoze and linux so say I left my computer running and forgot which it was running and wanted to make a OS specific script from another computer. How could I tell what OS it was to see if I needed to go reboot it? Maybe echo PHP_OS; is enough? Christoph --- End Message --- --- Begin Message --- hi to all. I decided to use MSQL instead of MySQL with php, and I've got the trubles I cannot connect to my MSQL :-(. simple function 'msql_connect($hostname);' fails what's wrong ? P.S. recommended to answer on my e-mail: [EMAIL PROTECTED] --- End Message --- --- Begin Message --- no it doesn't :( "Kyle Bisignani" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED
[PHP-WIN] Re: gettext on Windows...
no it doesn't :( "Kyle Bisignani" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Haha! It's funny you mention that, it's exactly what I'm trying to install. > I really want to implement Horde locally on my mail server, and I figured I > would use this program called Sokkit (http://www.sokkit.net). But before I > buy the program, I want to know if it's going to work! I havn't been able > to get a straight answer out of anybody. I just wish PHP would mention why > this doesn't work, or fix it and announce it, or at least tell me what I'm > doing wrong!! lol. In any case, anyone test out PHP 4.3? Does this work > with the gettext extension on Windows? > > ~Kyle > > > "Phil Grimpo" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I haven't been able to get it to run under Windows with IIS either. I > think > > it's a big problem with the php_gettext.dll itself. I've seen similiar > > problems from people in the archives. So far, haven't found an answer. > > Makes Horde/Imp pretty hard to work :( > > > > -Grimps > > > > > > > > > > "Kyle Bisignani" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I need to know if there is anyone who is successfully running Windows XP > > or > > > 2000 with Apache (2.0.40) and PHP (4.2.3) and has the gettext extension > > > working properly. Just need to know if that works as it should! > > > Thank you! > > > ~Kyle Bisignani > > > > > > HAPPY HOLIDAYS > > > > > > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] New SWAMP Releases
There are two new SWAMP releases from the SWAMP-1 series based on Apache 1.3 and the SWAMP-2 series based on Apache 2.0. >> SWAMP << SWAMP (Secure Windows Apache Mysql Php) is a fully configured, installation of Apache (mod_ssl), PHP, MySQL,OpenSSL and related administrative tools for Windows(TM)NT/2000/XP. >> swamp-0.1.1.exe << Apache 1.3.27 mod_ssl 2.8.12-1.3.27 Openssl 0.9.6h PHP 4.3.0 MySQL 3.23.54 phpMyAdmin 2.3.3pl1 >> swamp-0.2.exe << Apache 2.0.43 mod_ssl 2.0.43 Openssl 0.9.6h PHP 4.3.0 MySQL 3.23.54 phpMyAdmin 2.3.3pl1 >> Download << http://sourceforge.net/projects/swamp/ >> SWAMP Forum << http://swamp.sourceforge.net -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP from the Browser?
I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am having multiple problems. 1. When I click on the manual's test program ("Hello World") in IE 6.0, it brings up a MSDOS box, rather than execute the php file. I can't find anything in the manual that says how to get a php file to operate locally from a browser. Any Suggestions? 2. Also, I found that in order to get cli/php.exe to execute from the command line, I had to copy php4ts.dll into the cli directory. So maybe that's a bug in the installation program. 3. But when I aimed cli/php.exe at the test file, it just echoed the code, rather than execute it! Huh? 4. I uploaded the test file to my host, who's running a v. 4.3.0.3 server and got the error message that the parser expected a '('' on line 11. The code is: PHP Test "; ?> so there is no line 11! Even when I gave it parens: PHP Test I got the same error message. All suggestions will be welcomed! Harvey -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP from the Browser?
OK, Scratch problem 4. I just found out that my host requires a .php3 extension to get to the v. 3 server. I hope the other 2 problems can be solved so simply. Harvey - Original Message - From: "Harvey Frey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 04, 2003 5:15 PM Subject: [PHP-WIN] PHP from the Browser? > I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am > having multiple problems. > > 1. When I click on the manual's test program ("Hello World") in IE 6.0, it > brings up a MSDOS box, rather than execute the php file. I can't find > anything in the manual that says how to get a php file to operate locally > from a browser. Any Suggestions? > > 2. Also, I found that in order to get cli/php.exe to execute from the > command line, I had to copy php4ts.dll into the cli directory. So maybe > that's a bug in the installation program. > > 3. But when I aimed cli/php.exe at the test file, it just echoed the code, > rather than execute it! Huh? > > 4. I uploaded the test file to my host, who's running a v. 4.3.0.3 server > and got the error message that the parser expected a '('' on line 11. > > The code is: >PHP Test > "; ?> > > > so there is no line 11! > > Even when I gave it parens: > >PHP Test > > > > I got the same error message. > > All suggestions will be welcomed! > > Harvey > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP from the Browser?
hi, 1. I think that there is an element of confusion here: a. php can be used from the command line (this is usefull for various tools, such a cron jobs or time scheduled jobs etc...), here's an example: make a file called hello.php using this code then open the command prompt and cd to to /php/cli and type php -q hello.php it will respond with Hello World b. you seem to be after using php with webpages -- i.e. accessit from your browser. This requires a webserver (such as apache [or IIS]) along with php. 2. you can download and install a pre-conigured installation of apache, php etc.. such as SWAMP download: http://sourceforge.net/projects/swamp/ forum: http://swamp.sourceforge.net or FoxServ http://www.foxserv.net etc... 3. or you can download apache (www.apache.org) and set it up to run with php "Harvey Frey" <[EMAIL PROTECTED]> wrote: > > > I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am > having multiple problems. > > 1. When I click on the manual's test program ("Hello World") in IE 6.0, it > brings up a MSDOS box, rather than execute the php file. I can't find > anything in the manual that says how to get a php file to operate locally > from a browser. Any Suggestions? > > 2. Also, I found that in order to get cli/php.exe to execute from the > command line, I had to copy php4ts.dll into the cli directory. So maybe > that's a bug in the installation program. > > 3. But when I aimed cli/php.exe at the test file, it just echoed the code, > rather than execute it! Huh? > > 4. I uploaded the test file to my host, who's running a v. 4.3.0.3 server > and got the error message that the parser expected a '('' on line 11. > > The code is: >PHP Test > "; ?> > > > so there is no line 11! > > Even when I gave it parens: > >PHP Test > > > > I got the same error message. > > All suggestions will be welcomed! > > Harvey > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] PHP from the Browser?
Hi metac0m: > 1. I think that there is an element of confusion here: You're certainly right about that! > > a. php can be used from the command line (this is usefull for various > tools, such a cron jobs or time scheduled jobs etc...), here's an > example: True, but the faq says that it can be executed locally if the php program exists locally. I would like to be able to debug my scripts locally before uploading them to my server. So I assumed that it would act like a plug-in in my browser. I have no desire to run a server. That's why I pay someone to host my webpage. If I can execute php from the command line, without running Apache, why can't I execute it from my browser within Windows, without running Apache? Is it truly the case that I can't debug a script without FTPing it up to my host and running it remotely, even if I have the entire PHP program locally? Harvey > "Harvey Frey" <[EMAIL PROTECTED]> wrote: > > > > > > I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am > > having multiple problems. > > > > 1. When I click on the manual's test program ("Hello World") in IE 6.0, it > > brings up a MSDOS box, rather than execute the php file. I can't find > > anything in the manual that says how to get a php file to operate locally > > from a browser. Any Suggestions? > > > > 2. Also, I found that in order to get cli/php.exe to execute from the > > command line, I had to copy php4ts.dll into the cli directory. So maybe > > that's a bug in the installation program. > > > > 3. But when I aimed cli/php.exe at the test file, it just echoed the code, > > rather than execute it! Huh? > > > > 4. I uploaded the test file to my host, who's running a v. 4.3.0.3 server > > and got the error message that the parser expected a '('' on line 11. > > > > The code is: > >PHP Test > > "; ?> > > > > > > so there is no line 11! > > > > Even when I gave it parens: > > > >PHP Test > > > > > > > > I got the same error message. > > > > All suggestions will be welcomed! > > > > Harvey > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-windows Digest 5 Jan 2003 06:32:44 -0000 Issue 1519
php-windows Digest 5 Jan 2003 06:32:44 - Issue 1519 Topics (messages 17643 through 17647): New SWAMP Releases 17643 by: metac0m PHP from the Browser? 17644 by: Harvey Frey 17645 by: Harvey Frey 17646 by: metac0m 17647 by: Harvey Frey 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] -- --- Begin Message --- There are two new SWAMP releases from the SWAMP-1 series based on Apache 1.3 and the SWAMP-2 series based on Apache 2.0. >> SWAMP << SWAMP (Secure Windows Apache Mysql Php) is a fully configured, installation of Apache (mod_ssl), PHP, MySQL,OpenSSL and related administrative tools for Windows(TM)NT/2000/XP. >> swamp-0.1.1.exe << Apache 1.3.27 mod_ssl 2.8.12-1.3.27 Openssl 0.9.6h PHP 4.3.0 MySQL 3.23.54 phpMyAdmin 2.3.3pl1 >> swamp-0.2.exe << Apache 2.0.43 mod_ssl 2.0.43 Openssl 0.9.6h PHP 4.3.0 MySQL 3.23.54 phpMyAdmin 2.3.3pl1 >> Download << http://sourceforge.net/projects/swamp/ >> SWAMP Forum << http://swamp.sourceforge.net --- End Message --- --- Begin Message --- I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am having multiple problems. 1. When I click on the manual's test program ("Hello World") in IE 6.0, it brings up a MSDOS box, rather than execute the php file. I can't find anything in the manual that says how to get a php file to operate locally from a browser. Any Suggestions? 2. Also, I found that in order to get cli/php.exe to execute from the command line, I had to copy php4ts.dll into the cli directory. So maybe that's a bug in the installation program. 3. But when I aimed cli/php.exe at the test file, it just echoed the code, rather than execute it! Huh? 4. I uploaded the test file to my host, who's running a v. 4.3.0.3 server and got the error message that the parser expected a '('' on line 11. The code is: PHP Test "; ?> so there is no line 11! Even when I gave it parens: PHP Test I got the same error message. All suggestions will be welcomed! Harvey --- End Message --- --- Begin Message --- OK, Scratch problem 4. I just found out that my host requires a .php3 extension to get to the v. 3 server. I hope the other 2 problems can be solved so simply. Harvey - Original Message - From: "Harvey Frey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 04, 2003 5:15 PM Subject: [PHP-WIN] PHP from the Browser? > I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am > having multiple problems. > > 1. When I click on the manual's test program ("Hello World") in IE 6.0, it > brings up a MSDOS box, rather than execute the php file. I can't find > anything in the manual that says how to get a php file to operate locally > from a browser. Any Suggestions? > > 2. Also, I found that in order to get cli/php.exe to execute from the > command line, I had to copy php4ts.dll into the cli directory. So maybe > that's a bug in the installation program. > > 3. But when I aimed cli/php.exe at the test file, it just echoed the code, > rather than execute it! Huh? > > 4. I uploaded the test file to my host, who's running a v. 4.3.0.3 server > and got the error message that the parser expected a '('' on line 11. > > The code is: >PHP Test > "; ?> > > > so there is no line 11! > > Even when I gave it parens: > >PHP Test > > > > I got the same error message. > > All suggestions will be welcomed! > > Harvey > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > --- End Message --- --- Begin Message --- hi, 1. I think that there is an element of confusion here: a. php can be used from the command line (this is usefull for various tools, such a cron jobs or time scheduled jobs etc...), here's an example: make a file called hello.php using this code then open the command prompt and cd to to /php/cli and type php -q hello.php it will respond with Hello World b. you seem to be after using php with webpages -- i.e. accessit from your browser. This requires a webserver (such as apache [or IIS]) along with php. 2. you can download and install a pre-conigured installation of apache, php etc.. such as SWAMP download: http://sourceforge.net/projects/swamp/ forum: http://swamp.sourceforge.net or FoxServ http://www.foxserv.net etc... 3. or you can download apache (www.apache.org) and set it up to run with php "Harvey Frey" <[EMAIL PROTECTED]> wrote: > > > I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and am > having multiple problems. > > 1. When I click on the manual's test program ("Hello World") in IE 6.0, it > brings up a MSDOS box, rather than execute the php file. I can't find > anything in