php-windows Digest 14 May 2001 01:01:28 -0000 Issue 596 Topics (messages 7520 through 7526): Re: New function help 7520 by: Tim Lofstrom error message: php4ts.DLL-ts_rescource win98, Apache, PHP4.0 7521 by: nobody special print and echo 7522 by: RJ Re: Php4.0.4 Installation on Win98 for Apache 1.3.19 7523 by: m.aprea PHP installation error on win98 7524 by: nobody special Re : [PHP-WIN] php4 and ii5 "module not found" error 7525 by: Sébastien CRAMATTE PHP4 Refuses to Run in Any Directory Except c:\PHP4 7526 by: Aaron Stubbendieck 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] ----------------------------------------------------------------------
Au Contraire: Though I offered up the request for reverse_array, the code actually looks for array_reverse, and works on the newer Windows platform, but not on the older version loaded on the production Unix server. So yes, I got the name reversed, but no, getting that correct in the email would not make the code work. But the array_reverse_priv is in place and working. See www.bcsynod.org for an example. Until next .... Tim Lofstrom M.C.S.E. but not E. in Canada-----Original Message----- From: Paul Meagher [mailto:[EMAIL PROTECTED]] Sent: 13 May 2001 06:04 To: [EMAIL PROTECTED]; #[EMAIL PROTECTED] Subject: Re: [PHP-WIN] RE: New function help There is a builtin array_reverse function in PHP. You just need to reverse the name of the function your were looking for :-) Regards, Paul Meagher ----- Original Message ----- From: "Tim Lofstrom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 11, 2001 3:22 PM Subject: [PHP-WIN] RE: New function help > Here is my attempt: Any improvements welcomed. > > > function array_reverse_priv ($WorkArray) > { > $CountWorkArray = count($WorkArray) ; > for ($i = 0 ; $i < $CountWorkArray ; ++$i) > { > $NewArray[$i] = array_pop ($WorkArray) ; > } > return $NewArray ; > } > > Until next .... > > Tim Lofstrom > M.C.S.E. > > Original: > > Looking for reverse_array as a user added function. Anyone have it? > > > > -- > 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, Iv'e installed Apache, configured and tested it: works fine. Installed PHP4 and made a file phpinfo.php. When I type 'http://localhost/phpinfo.php' I get the following message: 'Error starting program The file PHP.EXE is connected to missing output PHP4TS.DLL-st_resource Does anyone know how to fix this? thnx, Paul
Hi, I know printf() can be used to print formatted strings, but what's the difference between echo() and print() functions? Does one have more functionality over the other? Regards RJ
Hi Alan Thank you, but i have not yet resolved the problem, even if i reduced it. So, i follewed what you said to me about doc_root. Furthermore i became aware of one my mistake: i put inside the file httpd.conf of Apache the row Port 3000 that is wrong. This is right Port 80 So Apache works fine. I did the change inside the file php.ini that is placed into C:\Windows. So I have: doc_root=D:\Inetpub\Scripts\Php; and Document_root of Apache is: D:\programs\Apache Groups\Apache If i call http://localhost/ then i see the home page, if i call http://localhost/test.php then the brouser goes into a waiting state. I read in the low bar: Connect: host localhost contacted.Waiting for replay. The file test.php, coming with PHP, i put into D:\Inetpub\Scripts and also into D:\Inetpub\Scripts\PHP. If i do CTRL+ALT+CANC i see PHP in the list of processes PHP so i deduce thai PHPm is running, but the brouser stays waiting. Thank you for your kindness, but i still need help for solving this problem. Thank you in advance. Alan Popow wrote: > On Sun, 13 May 2001 02:03:45 +0200, you wrote: > > I haven't tried running easywindows installer, so I'm just winging it here > ignoring whatever the installer might be changing from defaults (though I > doubt it changes the httpd.conf file defaults). > > Remember that apache thinks by default that the document root is at > ....../apache/htdocs, and if you are using the normal iis setup, then your > index.html is likely not there. In the httpd.conf file, make sure that the > document root is pointing to the right place. > > Then, assuming you added the appropriate lines to Apache's httpd.conf file, > open up your php.ini and make sure that the doc_root path points to where > your scripts are. > > ie: doc_root = "d:\inetpub\scripts\php" (if that's where they are - in other > words, where is test.php located). > > Alan > > >Hello everyone > >I am trying to install PHP4 with Apache 1.3.19 following the procedure > >that I see > > in http://php.weblogs.com/easywindows using the > > PHP4.0.4easywindows Installer. There is also a mistake, > > "C:/inetpub/scripts/php/" is wrong, "D:/inetpub/scripts/php/" is right > >. > >However, when I run Apache and call http://localhost/ i don't see the > >home page index.html, > >furthermore if I call test.php with http://localhost/test.php > >i don't see any page. In both cases I have a file not found messagge. > >Can someone explain this behavior. I would like to use PHP with > >Apache on Win98. How do i do ? Can someone help me? > >thank you in advance > > -- > 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, having trouble with getting PHP4 to run on my win98 machine with Apache 1.3.19. Apache works fine: when I type http://localhost/ I see the Apache Welcome Page. However, when I try to display a PHPinfo() page, I get the following error message: The File PHP.EXE is connected to missing output PHP4TS.DLL-ts_resource Meanwhile, Apache gives a 500 Internal Server error. The log states it couldn't spawn a child process. Also, when I double-click on php.exe in c:\php4\, I get the above error message, as well as the following message: C:\php4\ a device connected to the system doen's work (both error messages are translated from dutch, I hope you can make some sense of it) Could anyone tell me what's going on and advise me how to solve the problem? More detailed config info can be found below: the variables I added/changed in php.ini are literally this: doc_root = C:\program files\apache group\apache\htdocs extension_dir = C:\php4 the variables I added/changed in Apache's httpd.conf are as follows: ServerName localhost ScriptAlias /php4/ "C:/php4/" AddType application/x-httpd-php .phtml .php AddType application/x-httpd-php-source .phps I've changed/ added/ deleted NOTHING else in the above two files Furthermore, my phpinfo.php file looks like this: <? phpinfo(); ?> I also tried the folowing file: <?php echo "<P> This is a test using the first tag type.</P>";?> <? echo "<P>This is a test using the second tag type</P>';?> <script language="php"> echo "<P> This is a test using the third tag type.</P>"; </script> Both give the above error message My php.ini file is in C:\windows\ msvcrt.dll and php4ts.dll are in C:\windows\system\ Any help would be greatly appreciated! Kind regards, Paul
To run PHP4 isapi you must copy php4ts.dll into c:winnt\system32 and php.ini into c:\winnt\ After that you must edit properties of your server into IIS management console Click on modify main properties. Click on ISAPI filter and add here the php4isapi.dll with php as name. Into main directory tab click on configuration and add a map for .php extension with c:\[your_directory]\php4isapi.dll in executable file. Don't miss to add read permissions to php directory and all childs for Anonymous IIS users (IUSR_...,IWAN_...) Restart your IIS. I hope that this could help you Look at "php4win.de" site for an optimized version of php 4 for Win 32 plateform. ""Tiago Azevedo"" <[EMAIL PROTECTED]> a écrit dans le message news: 001a01c0db44$4bb05400$[EMAIL PROTECTED] > I'm getting same error. Where should I put the DLL (and which DLL)? > > With CGI (php.exe at c:\php\php.exe) it works, but with ISAPI (php4isapi.dll > at c:\php\sapi\php4isapi.dll) it doesn't. > I tried copying that dll to c:\winnt\system32, etc, but it still didn't > work. > > [PHP 4.0.5 on Windows 2000 Professional IIS 5.0] > > So, what's up please? What am I doing wrong? > > Tiago BCGA > [EMAIL PROTECTED] > > Original Message (from > http://marc.theaimsgroup.com/?l=php-windows&m=98882198526897&w=2): > > By making sure the DLL the system ask for is present in your access path! > (That's basically what the error message ask you to do. :-/ ) > > >I am trying to run php4 on my windows 2000 iis server. I can load php files > >with the cgi version (php.exe), but when I try to use hp4isapi.dll i get > >the error "The specified module could not be found." How do I get this > thing > >to work? > > > -- > 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 followed the install directions for php4 exactly but a simple phpinfo page wouldn't work. So I extracted all the files to c:\php instead and changed the paths accordingly, then it worked. So I started to change all the directory references back and I can change them all except for this line: Action application/x-httpd-php /php4/php.exe If I change it to Action application/x-httpd-php /dir/dir/dir/php.exe it gives me a type 400 error. I know that is the correct path however. Anybody else had this problem?