Re: [PHP] Installing PHP 4.2.3 with Apache 2.0.43 on WinXP Home Edition
Wednesday, October 16, 2002, 6:27:12 AM, Reginald Alex Mullin wrote: > I've been trying to get PHP working on my WinXP machine for the past few > days now, but have been unsucessful. The Apache web server itself starts > and works fine (without PHP), but whenever I try loading the PHP module, it > doesn't restart. Instead, I get the following error message: "The > requested operation has failed". I don't quite know what the problem is > because the error log doesn't tell me much (see error.log snipit code > below). I think I've configured both PHP and Apache correctlty (see > php.ini and httpd.conf snipit code below), but I'm obviously missing > something. If anyone can help, please let me know. Thank you. Make sure you copied over the correct dll files to your Windows system directory. Copy php4ts.dll to c:\windows\system32. See http://www.php.net/manual/en/install.windows.php for more information. -- Kjartan <[EMAIL PROTECTED]> (http://natrak.net/) :: "Those who never retract their opinions love themselves more than they love the truth." - Joseph Joubert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to use imap?
Wednesday, December 4, 2002, 8:15:26 AM, ns_andy wrote: > I've imap-2001a.tar downloaded, > but don't know how to get it work? > I am using Windows 2k , > Can I have the steps of installation of imap? If you are running it on Windows just load the extension php_imap.dll in your php.ini: extension=php_imap.dll -- Kjartan <[EMAIL PROTECTED]> (http://natrak.net/) :: "Real programmers don't work from 9 to 5. If any real programmers are around at 9am it's because they were up all night." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] For ... <= max($myArray) vs For ... <= $max
Friday, November 8, 2002, 12:13:01 PM, Daevid Vincent wrote: > $max = max($myArray); > for( $x = 1; $x <= $length; $x++ ) {} > -- OR -- > for( $x = 1; $x <= max($myArray); $x++ ) {} > My gut instinct tells me since PHP is interpreted, that the top one is > the better way to go, but with the Zend Optimizer, I don't know if PHP > handles them the same way or not? The first one is faster, but it depends on the site of the array and how often you call the loop. I prefer doing it like this though: for($x = 1, $max = count($myArray); $x <= $max; $x++ ) {} For some good optimization (and other) tips check out: http://phplens.com/lens/php-book/optimizing-debugging-php.php http://www.lerdorf.com/tips.pdf -- Kjartan <[EMAIL PROTECTED]> (http://natrak.net/) :: "Silence is one great art of conversation." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML: Similiar Multiple Tags With Different Data
Sunday, May 12, 2002, 6:39:31 PM, Sebastian A. wrote: > Hello > I have recently been trying to parse an XML document that has different > content in the same tags. Here is an example: > 1 > 2 > 3 > ... > I am trying to get the content from into an array. I want the > content of the first to go into $p->ART_ID[0] and the next to go > into $p->ART_ID[1] and so on. Here is what my Element Content Function looks > like: Without the rest of the code I would suspect this to work: function elementContent($parser, $data, $attrs='') { global $tag, $p; $ti = sizeof( $tag ) - 1; if ( $tag[$ti] == 'LIST_ITEM' ) { $p->ART_ID[] = $data; } } Basically when you are assigning content to a new part of the array you don't use .= but just = -- Kjartan <[EMAIL PROTECTED]> (http://natrak.net/) :: "A program is a spell cast over a computer, turning input into error messages." :: Drupal (www.drupal.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php