php-windows Digest 22 Mar 2001 10:16:42 -0000 Issue 504 Topics (messages 6206 through 6216): Re: Apache Modules 6206 by: Giro 6215 by: Fernando Madruga Re: Email Problem....SOLVED!!!! 6207 by: Giro 6208 by: Giro Does Apache for Win support DOCUMENT_ROOT & REQUEST_URI? Where is Apache for Win? 6209 by: Yasuo Ohgaki 6211 by: Fernando Madruga Apache/PHP on Win 2000 6210 by: speedoflight.runbox.com 6212 by: Fernando Madruga Re: Problem with PHP4.04 installation 6213 by: Gregory_Griffiths.cargill.com Re: include_once problem... 6214 by: Fernando Madruga Re: Building PHP4 Problem 6216 by: Alan Flockhart 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] ----------------------------------------------------------------------
This is a good one, one developer keeps up to date extensions for Windows: http://download.swwwing.com/php4/modules/ good luck Giro ""Matt Williams"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > Does anyone know where I can get pre-compiled Apache modules for win32? > I've looking in the modules dir with the distro but there's no dll's. > I'm particularly after mod_rewrite > > TIA > > M@ > > -- > 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] >
Seems to be broken. Is there a specific time of the day to browse this site? Bye, Madruga -----Original Message----- From: Giro [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 21 de Março de 2001 23:24 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Apache Modules This is a good one, one developer keeps up to date extensions for Windows: http://download.swwwing.com/php4/modules/ good luck Giro ""Matt Williams"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > Does anyone know where I can get pre-compiled Apache modules for win32? > I've looking in the modules dir with the distro but there's no dll's. > I'm particularly after mod_rewrite > > TIA > > M@ > > -- > 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]
Not for me I got the same think, I started to believe that there is something to do with the smtp provider, because I have tried the same script on a another machine and use a modem connection with earthlink and it works great so I guess there is something to be check with the smtp setting somewhere i don't know. I'm using starband satellite conenction which is similar than cable or DSL somebody as something similar there? Thanks for the help anyeay Giro <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > I've been seeing quite a few e-mails about the mail() function not > working...well mine worked fine until today i believe, but it looks like it > has to do with the php ini setting, althoug Ive changed my ini, it still > didnt work, so heres a workaround I found on php.net that works great. In > the script your working on right before the mail function, put the following > variables > > ini_set("SMTP", "your.smtp.server"); > (i used localhost, thats where my server is) > > ini_set("sendmail_from", "[EMAIL PROTECTED]"); > > (i used postmaster@localhost) > now my script works great, and hopefully everyone else's will > > ~Jeff >
How you get to configure your email server under apache/win (smtp as localhost and email postmaster@localhost), I have tried to find information about that without success. Which email server you are using to retrieve message and send them. I am confuse. Giro <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > I've been seeing quite a few e-mails about the mail() function not > working...well mine worked fine until today i believe, but it looks like it > has to do with the php ini setting, althoug Ive changed my ini, it still > didnt work, so heres a workaround I found on php.net that works great. In > the script your working on right before the mail function, put the following > variables > > ini_set("SMTP", "your.smtp.server"); > (i used localhost, thats where my server is) > > ini_set("sendmail_from", "[EMAIL PROTECTED]"); > > (i used postmaster@localhost) > now my script works great, and hopefully everyone else's will > > ~Jeff >
[Q] Does Apache for Win supports DOCUMENT_ROOT and REQUEST_URI? (I cannot see them on IIS5 for some reason on CGI version. I can see DOCUEMNT_ROOT on ISAPI, though) I've been using PHP/Apache on Linux, I decided to install Apache for Win on my PC. However, I cannot find where to get binary version of Apache for Win. Following link is dead link. http://www.apache.org/dist/binaries/win32/ Dose anyone know where to get it? Thanks. -- Yasuo Ohgaki
Yes, it does. You can get it from http://httpd.apache.org/dist/httpd/binaries/win32/. HTH, Fernando Madruga -----Original Message----- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 22 de Marco de 2001 2:53 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Does Apache for Win support DOCUMENT_ROOT & REQUEST_URI? Where is Apache for Win? [Q] Does Apache for Win supports DOCUMENT_ROOT and REQUEST_URI? (I cannot see them on IIS5 for some reason on CGI version. I can see DOCUEMNT_ROOT on ISAPI, though) I've been using PHP/Apache on Linux, I decided to install Apache for Win on my PC. However, I cannot find where to get binary version of Apache for Win. Following link is dead link. http://www.apache.org/dist/binaries/win32/ Dose anyone know where to get it? 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]
I am running Apache on Win 2000 and am trying to install PHP on it. I've used the PHP installer and have configured my httpd.conf file to recognize the php mime type. I am using localhost or 127.0.0.1 to do this since I don't have a box that is online. I've never tried the localhost route before but Apache seems to serve regular HTML files up fine. But, when I load a PHP file on this machine, i.e. http://127.0.0.1/test.php, the PHP server doesn't seem to parse the file. It asks me if I want to download the file or open it. I don't want either. I'm not sure what I should do. Any help would be greatly appreciated. Below is what I've dumped in my httpd.conf file. Let me know if it's right or wrong. Please help!! Thanks much! AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php ScriptAlias /php/ "D:/php/" Action application/x-httpd-php "D:\php\php.exe" AddType application/x-httpd-php4 .php> ----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application
Defining two different types (your lines 2 and 5) for the same extension does not help... Try removing the last line. Also, you'll have to enable script parsing for the directories involved: check your apache docs for <directory> and 'options'. HTH, Madruga -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 22 de Março de 2001 3:50 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Apache/PHP on Win 2000 I am running Apache on Win 2000 and am trying to install PHP on it. I've used the PHP installer and have configured my httpd.conf file to recognize the php mime type. I am using localhost or 127.0.0.1 to do this since I don't have a box that is online. I've never tried the localhost route before but Apache seems to serve regular HTML files up fine. But, when I load a PHP file on this machine, i.e. http://127.0.0.1/test.php, the PHP server doesn't seem to parse the file. It asks me if I want to download the file or open it. I don't want either. I'm not sure what I should do. Any help would be greatly appreciated. Below is what I've dumped in my httpd.conf file. Let me know if it's right or wrong. Please help!! Thanks much! AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php ScriptAlias /php/ "D:/php/" Action application/x-httpd-php "D:\php\php.exe" AddType application/x-httpd-php4 .php> ----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application -- 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]
Can you run this file directly from the PHP directory ? > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 22 March 2001 02:55 > To: griffiths, gregory d. /here > Subject: RE: [PHP-WIN] Problem with PHP4.04 installation > > > I typed c:\php\php.exe -i > > > > > ----Original Message Follows---- > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Problem with PHP4.04 installation > Date: Wed, 21 Mar 2001 16:01:36 +0000 > > which directory are you in ? is the path to your install of > PHP in your > system PATH ? > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: 21 March 2001 15:57 > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] Problem with PHP4.04 installation > > > > > > I just get "Bad command or file name" > > > > Phil Driscoll wrote: > > > > > > >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 > > > > > > -- > > > 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] > > > > > > > ______________________________________________________________ > ___________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Wow! That was helpfull! I don't want to start a flame, but you SHOULD read a msg before replying!! The WHOLE problem was precisely that INCLUDE_ONCE is not doing what it should, that is, include that file only once!!! I used to have it working, now I'm reinstalling and using more recent versions of everything and I've got that problem too... However, I did find that it happened because I had used the 'auto_prepend_file' directive to include the same file I was using in 'include_once'; I'm reinstalling everything today and documenting every step of the way (I've been trying to do that in the last couple of days, but I did not have time to do it. It does look as I'll be able to do it today, so I'll be mailing this list with my steps to installing everything in a windows box later today. Bye, Madruga -----Original Message----- From: Ketan [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 21 de Março de 2001 21:48 To: JT Graveaud Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] include_once problem... HI! There is a problem in your INCLUDED file. If is defined function my_function() in your my_file.inc, the first INCLUDE loads the INC file and defines your function. The second INCLUDE command loads the same INC file with the same FUNCTION - and there is your problem. All functions can be INCLUDED once only. Ketan *********** Puvodni zprava *********** Dne 19.3.2001 v 23:15 hodin JT Graveaud napsal(a): >Hi, > >I'm using PHP4.0.5-dev on Apache/1.3.17 - under Windows-Me, >sorry not on purpose ;( ... ;-) > >I have in my script : include_once "my_file.inc"; >and later on in the same script I have an other : >include_once "my_file.inc"; > >unfortunately, I have this error: >Fatal error: Cannot redeclare my_function() in my_file.inc on line xxx > >Which means, include_once does not work properly on ... >PHP4.0.5 ? Me ? >anyone already knows this problem ? > >on linux, of course it works perfectly ... > >Thanks for any advices. > >PS: Otherwise, I know I can use the old method to include once, >with a variable, but I'd like to avoid this. > >-- >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 was wondering if anybody had replied directly about this as I have the same problem. ALan ""news.compuserve.com"" <[EMAIL PROTECTED]> wrote in message 9893us$pkn$[EMAIL PROTECTED]">news:9893us$pkn$[EMAIL PROTECTED]... > Its my first time out building PHP, so bare with me. Downloaded everything > and set it up. No problem setting the paths and environment variables. When > I start the build process either in the GUI or from the command line, it > gets to zend_language_parser.y and tries to execute the external command to > build it. However, bison complains about the -S option that is in the custom > command: > > The Command is: > if not "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S > "%CYGWIN%\share\bison.simple" -p zend zend_language_parser.y > if "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S > "C:\Program Files\Cygnus\share\bison.simple" -p zend zend_language_parser.y > > I've got CYGWIN set, so the first "if" should be hitting. Any idea why this > is there, or why it is being misinterpreted? > > Greg Sohl > Cedar Rapids, IA > > > > -- > 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] >