php-windows Digest 30 Apr 2001 14:28:53 -0000 Issue 572 Topics (messages 7140 through 7154): bug? 7140 by: Tomasz Abramowicz 7142 by: Piotr Pluciennik 7143 by: Daniel Beulshausen this is for you IIS 5 people 7141 by: Voodoo Phreeek Boy Re: need your opinion 7144 by: Michael Rudel NT4 + Apache problem (more) 7145 by: Ermanno Iannacci 7146 by: Daniel Beulshausen R: [PHP-WIN] NT4 + Apache problem (more) 7147 by: Ermanno Iannacci 7148 by: Daniel Beulshausen 7154 by: Ermanno Iannacci R: [PHP-WIN] Re: R: [PHP-WIN] NT4 + Apache problem (more) 7149 by: Ermanno Iannacci 7150 by: Daniel Beulshausen Get the string between custom delimiters 7151 by: Matthew Ralston iso convetion 7152 by: mERGER R: [PHP-WIN] Re: R: [PHP-WIN] Re: R: [PHP-WIN] NT4 + Apache problem (more) 7153 by: Ermanno Iannacci 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] ----------------------------------------------------------------------
IIS 4.0 / PHP 4.0.4pl1 cgi hmm.. ..i know that there is a bug report page, but it wasnt working, so i thought i would just be lazy and post it here... ...actually, maybe its known, but as i said, couldnt check, bug page was down. anyways I tried doing this: $date = date("y.m.d/t.D.H.i.s.T.B"); echo $date; and i did get the right answer, but the browser (IE5.5 and NN4.08) progress bar just kept going and going and going and going. (duracell syndrome) then i tryed taking each date thingy away one at a time (i started from the back), and 'T' was the guilty one, however i dont get the problem doing: $date = date("T"); echo $date; Can any1 else try it and tell if its just me or is the ("y.m.d/t.D.H.i.s.T.B") just to hard to handle for NT? tnx, t.
Hi, Probably I also got this "duracell syndrome":-)) in my php script. My project is tested on very old www server. The development machine has following configuration: - Win NT 4.0 - PHP 4.04pl1 - Netscape Fast Track 3. Browsers are: - Internet Explorer 5 - Netscape 4.76 When I browse pages with Netscape - everything is fine. When I'm using IE - page is loaded (sometimes completely, sometimes not), progress bar is going and going... then I've got a message about timeout. So far I supposed that it's because of some misconfiguration of the server. After your message I've realized that the common thing on all problematic pages is displayed date. But - you've got it on both browsers... me - only with IE. Have you got any idea? Piotr Tomasz Abramowicz wrote: > IIS 4.0 / PHP 4.0.4pl1 cgi > > hmm.. ..i know that there is a bug report page, > but it wasnt working, so i thought i would just > be lazy and post it here... ...actually, maybe its > known, but as i said, couldnt check, bug page > was down. anyways I tried doing this: > > $date = date("y.m.d/t.D.H.i.s.T.B"); > echo $date; > > and i did get the right answer, but the browser > (IE5.5 and NN4.08) progress bar just kept > going and going and going and going. > (duracell syndrome) > > then i tryed taking each date thingy away one at > a time (i started from the back), and 'T' was the > guilty one, however i dont get the problem > doing: > > $date = date("T"); > echo $date; > > Can any1 else try it and tell if its just me or is > the ("y.m.d/t.D.H.i.s.T.B") just to hard to handle for NT? > > tnx, > t. > > -- > 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] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
At 06:36 30.04.2001 +0200, Tomasz Abramowicz wrote: >$date = date("T"); >echo $date; > >Can any1 else try it and tell if its just me or is >the ("y.m.d/t.D.H.i.s.T.B") just to hard to handle for NT? the T parameter for date was/is faulty, you'll need to wait for 4.0.5 where this should be fixed. daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
anybody know of a way to make IIS 5 footers (you know, that neet-o option) into headers? plezzzzzz help [EMAIL PROTECTED] thaxz
Hi Afan. U can use the ceil() -function. Look in the manual @section: XXXIII. Mathematical Functions Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:[EMAIL PROTECTED] internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: afan [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 27, 2001 10:38 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] need your opinion > > > Hi all, > I made a simple code but I think that there is a better way > to do same thing. > > I have list with couple hundreds "entries" and I want to have > it 50 per page. > I did it this way and it works. > > > $result = mysql_query("SELECT id FROM source ORDER BY id ASC", $db); > while($myrow = mysql_fetch_array($result)) > { > $IDArray[] = $myrow[id]; > } > $NoOfEntries = count($IDArray); // Number of entries > $NoOfPages = $NoOfEntries / 50; // Number of pages > with 50 entries per page > > // E.g. 3.854 pages means 4 pages. The way I'm doing > is check is $NoOfPages > integer($NoOfPages) > > $NoOfPagesInt = $NoOfPages; > settype($NoOfPagesInt, "integer"); > if($NoOfPages > $NoOfPagesInt): > $NoOfPages++; > endif; > > > Any suggestions? > > Thanks! > > Afan >
When i run phpinfo() apache crashes. Application log says apache couldn't find various MIB files, related to snmp extension, I think. What do I need to use SNMP? Why PHP (or Apache) don't find such files? Using PHP 4.0.4, NT 4 (SP 6), Apache 1.3.14.
At 11:23 30.04.2001 +0200, Ermanno Iannacci wrote: >When i run phpinfo() apache crashes. Application log says apache couldn't >find various MIB files, related to snmp extension, I think. >What do I need to use SNMP? Why PHP (or Apache) don't find such files? >Using PHP 4.0.4, NT 4 (SP 6), Apache 1.3.14. http://cvs.php.net/viewcvs.cgi/php4/win32/install.txt?rev=1.4&content-type=text/vnd.viewcvs-markup tough the missing of those files shouldn't make apache go nuts. daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Nothing changed. If php.ini isn't in Windows directory, Apache goes well, but it doesn't load additional extensions. I already suspected that the problem could be something else, but in application log these are the only errors. ----- Original Message ----- From: Daniel Beulshausen <[EMAIL PROTECTED]> To: Ermanno Iannacci <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 12:08 PM Subject: Re: [PHP-WIN] NT4 + Apache problem (more) > At 11:23 30.04.2001 +0200, Ermanno Iannacci wrote: > >When i run phpinfo() apache crashes. Application log says apache couldn't > >find various MIB files, related to snmp extension, I think. > >What do I need to use SNMP? Why PHP (or Apache) don't find such files? > >Using PHP 4.0.4, NT 4 (SP 6), Apache 1.3.14. > > http://cvs.php.net/viewcvs.cgi/php4/win32/install.txt?rev=1.4&content-type=t ext/vnd.viewcvs-markup > > tough the missing of those files shouldn't make apache go nuts. > > 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] > >
At 14:46 30.04.2001 +0200, Ermanno Iannacci wrote: >Nothing changed. If php.ini isn't in Windows directory, Apache goes well, >but it doesn't load additional extensions. >I already suspected that the problem could be something else, but in >application log these are the only errors. did you copied the mibs directory to %Drive%\usr? daniel >----- Original Message ----- >From: Daniel Beulshausen <[EMAIL PROTECTED]> >To: Ermanno Iannacci <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Monday, April 30, 2001 12:08 PM >Subject: Re: [PHP-WIN] NT4 + Apache problem (more) > > > > At 11:23 30.04.2001 +0200, Ermanno Iannacci wrote: > > >When i run phpinfo() apache crashes. Application log says apache couldn't > > >find various MIB files, related to snmp extension, I think. > > >What do I need to use SNMP? Why PHP (or Apache) don't find such files? > > >Using PHP 4.0.4, NT 4 (SP 6), Apache 1.3.14. > > > > >http://cvs.php.net/viewcvs.cgi/php4/win32/install.txt?rev=1.4&content-type=t >ext/vnd.viewcvs-markup > > > > tough the missing of those files shouldn't make apache go nuts. > > > > 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] > > > > /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Bingo (maybe). The problem is mssql70 dll. I use it on another server (IIS 4), so i can't imagine what's gone wrong. Removing extensions one by one, that is the only one making Apache crashes. ----- Original Message ----- From: Ermanno Iannacci <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Daniel Beulshausen <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 3:28 PM Subject: [PHP-WIN] R: [PHP-WIN] Re: R: [PHP-WIN] Re: R: [PHP-WIN] NT4 + Apache problem (more) > I will let you know. Nice utility. > ----- Original Message ----- > From: Daniel Beulshausen <[EMAIL PROTECTED]> > To: Ermanno Iannacci <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, April 30, 2001 3:02 PM > Subject: [PHP-WIN] Re: R: [PHP-WIN] Re: R: [PHP-WIN] NT4 + Apache problem > (more) > > > > At 14:56 30.04.2001 +0200, Ermanno Iannacci wrote: > > >I did. Could it be a problem of permission? > > >I did very few changes to httpd.conf and php.ini (I removed semicolons > from > > >extensions) > > > > can you try to use FileMon (www.sysinternals.com) to see where Apache/PHP > > is searching the files? > > > > 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] > > > > > > > -- > 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 did. Could it be a problem of permission? I did very few changes to httpd.conf and php.ini (I removed semicolons from extensions) ----- Original Message ----- From: Daniel Beulshausen <[EMAIL PROTECTED]> To: Ermanno Iannacci <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 2:54 PM Subject: [PHP-WIN] Re: R: [PHP-WIN] NT4 + Apache problem (more) > At 14:46 30.04.2001 +0200, Ermanno Iannacci wrote: > >Nothing changed. If php.ini isn't in Windows directory, Apache goes well, > >but it doesn't load additional extensions. > >I already suspected that the problem could be something else, but in > >application log these are the only errors. > > did you copied the mibs directory to %Drive%\usr? > > daniel > > >----- Original Message ----- > >From: Daniel Beulshausen <[EMAIL PROTECTED]> > >To: Ermanno Iannacci <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > >Sent: Monday, April 30, 2001 12:08 PM > >Subject: Re: [PHP-WIN] NT4 + Apache problem (more) > > > > > > > At 11:23 30.04.2001 +0200, Ermanno Iannacci wrote: > > > >When i run phpinfo() apache crashes. Application log says apache couldn't > > > >find various MIB files, related to snmp extension, I think. > > > >What do I need to use SNMP? Why PHP (or Apache) don't find such files? > > > >Using PHP 4.0.4, NT 4 (SP 6), Apache 1.3.14. > > > > > > > >http://cvs.php.net/viewcvs.cgi/php4/win32/install.txt?rev=1.4&content-type= t > >ext/vnd.viewcvs-markup > > > > > > tough the missing of those files shouldn't make apache go nuts. > > > > > > 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] > > > > > > > > > /*-- > 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] > >
At 14:56 30.04.2001 +0200, Ermanno Iannacci wrote: >I did. Could it be a problem of permission? >I did very few changes to httpd.conf and php.ini (I removed semicolons from >extensions) can you try to use FileMon (www.sysinternals.com) to see where Apache/PHP is searching the files? daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Is there a nice easy function that could be used to get a sub string that lies in between two other sub strings in one big string. For example... get the text that lies in between "<title>" and "</title>" (without the quotes) in the code of a web page. I'm after a function like: string getstring_between_customdelimiters(string source, string open_delimiter, sting close_delimiter) Or something that could be easily be used in that manner. Case insensitive if possible! Thanks, Matt [EMAIL PROTECTED] < www.mralston.co.uk />
Is there a way to convert a iso-8859-1 text to another iso text? So that i can get the special characters of other languages. ------------------------------------------------------------------------------------------------------------------------------- "To write a loveletter to the one you love is like drawing a sandwich when you are hungy" -------------------------------------------------------------------------------------------------------------------------------
I will let you know. Nice utility. ----- Original Message ----- From: Daniel Beulshausen <[EMAIL PROTECTED]> To: Ermanno Iannacci <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 3:02 PM Subject: [PHP-WIN] Re: R: [PHP-WIN] Re: R: [PHP-WIN] NT4 + Apache problem (more) > At 14:56 30.04.2001 +0200, Ermanno Iannacci wrote: > >I did. Could it be a problem of permission? > >I did very few changes to httpd.conf and php.ini (I removed semicolons from > >extensions) > > can you try to use FileMon (www.sysinternals.com) to see where Apache/PHP > is searching the files? > > 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] > >