Re: [PHP] Queuing servers

2010-12-02 Thread Alister Bulman
flexible though, the Priorities, TTR limits, tubes and optional delays make for a powerful set of tools within the queue itself. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array difficulty

2007-07-31 Thread Alister Bulman
], neither of which exist in the array. Keep in mind $chance only has keys with string names: http://uk3.php.net/current $chance = array(lowercase = 27, uppercase = 62, integer = 46); arsort($chance); $lastItem = current($chance); echo $lastItem\n\n; // 62 Alister -- PHP General Mailing

Re: [PHP] Question

2007-05-15 Thread Alister Bulman
and SM :) Well, I found this entertaining. As for useful? I'll say no. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Selecting a special row from the database

2007-05-04 Thread Alister Bulman
ORDER BY auto_id DESC; Yep, thats pretty classic. One thing I would do - assuming $newsId should always be an integer $whereClause = ''; if (isset($_GET['id']) { $newsId = intval($_GET['id']); if ($newsId) // if not 0 $whereClause = 'WHERE auto_id ='.$newsId; } . Alister -- PHP General

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Alister Bulman
On 15/04/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sun, 2007-04-15 at 20:36 +0100, Alister Bulman wrote: On 15/04/07, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 04. 15, vasárnap keltezéssel 21.20-kor Otto Wyss ezt írta: I want to sort directories according there modification time

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Alister Bulman
, and not a person, I'd call them entirely 'clean' and obvious enough for the task, though ultimately, it's about having a pretty URL, as the program that reads it won't care what the extension is, if any, and people won't be typing it in regularly anyway. Alister -- PHP General Mailing List (http

Re: [PHP] PHP and mySQL getting smashed...

2006-05-17 Thread Alister Bulman
a slashdotting, if it had to do a dozen big queries for every page display. Meanwhile a Pentium3 with a decent network can serve hundreds of requests a second of a few static pages. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-threaded port listener

2006-04-28 Thread Alister Bulman
website to push it data myself, and that saves a lot of time rather than waiting for a connection to come back from fopen/fsockopen Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Common Files

2006-04-16 Thread Alister Bulman
/filename.php'; from anywhere on the system. Until PEAR produces a module called 'MyCompany' (unlikely), it will live there entirely happily. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Alister Bulman
better served with something to actually speed your code, like APC (http://pecl.php.net/apc) or Eaccellerator (http://eaccelerator.net/) that is a compiled-code cache. And then learn how to write good code as well. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Optimizing Tips

2004-08-05 Thread Alister Bulman
sites). How fast is the ilnk from the webserver? There's a lot of good questions you can ask to figure it out. For the first, you can trim the html and images you are sending, and gzip the output (see mod_gzip or http://php.net/ob_gzhandler Alister -- PHP General Mailing List (http

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Alister
(); } Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multipart Email Problem

2004-06-24 Thread Alister Bulman
on Windows 2003 views the whole email (ie the raw code - both the text only and the HTML) and when I sent an email to his hotmail account, hotmail simply displayed a blank page. Sorting out the MIME headers is not easy. So user http://pear.php.net/package/Mail_Mime to do the hard work. Alister

Re: [PHP] Too many connections fix?

2003-10-02 Thread Alister
will also help, so the PHP isn't being reparsed all the time as well. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Displaying RSS feed links

2003-09-09 Thread Alister
On Tue, 9 Sep 2003 15:35:48 -0500 Frank Miller [EMAIL PROTECTED] wrote: Hello all, I'm working on an entry page where I would like to show some of the current headlines from technology websites. I've been following and pretty much understand the article on devshed

Re: [PHP] mail() question

2003-08-26 Thread Alister
it on from there. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() question

2003-08-25 Thread Alister
not there are configure time, it won't even compile the 'mail' function. I've had the same problem before - now that PHP can recognise it's got a way to send email, re-running ./configure / make / make install should work. It did for me. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] AAAAGGGHHHH!!! Help!!

2003-07-11 Thread Alister
( CURRENT_DATE, INTERVAL 1 HOUR ) 2003-07-11 2003-07-11 22:02:022003-07-10 23:00:00 I think you'd want: DATE_SUB( NOW( ) , INTERVAL 1 HOUR ) 2003-07-11 21:02:02 Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alternate location for PEAR downloadable documentation

2002-12-13 Thread Alister
an entry into the bug-tracker about it. http://bugs.php.net/bug.php?id=20959 Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IPs comparing

2002-11-27 Thread Alister
classes in PEAR) Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] standardization across apps?

2002-10-29 Thread Alister
very simple configuration, they would just all work together, and without having to write inside a particular framework, like phpNuke or Horde. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Register Globals Off in .htacces

2002-10-25 Thread Alister
and On in the .htaccess file. php_flag register_globals On Yes, you can do it. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable variables

2002-01-17 Thread Alister
the start (or use for()) while ($i$loopcounter) { $temp = size. $i; // $temp = 'size1', 'size2'... $valueofsize = $$temp; $i++; # untested code, should be OK though } No messing around with evals neccessary. Alister -- PHP General Mailing List (http

Re: [PHP] Feature?

2001-09-26 Thread Alister
Follow up to my own message: If you want to also skip even needing the empty 'array()' (new fianl example) - check if it is an array, and only do the first extract of the parameters if there's something there. ?php function foo($p='') { $foodefault = array( 'foo_fred'=

Re: [PHP] Extract. Was Re: Feature?

2001-09-26 Thread Alister
not appear to be able to (currently) EXTR_PREFIX_ALL _and_ EXTR_SKIP. Alister Please don't send the mailing lists and CC me - getting two copies just bugs me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Re: Conditional include based on virtual host ?

2001-01-27 Thread Alister
st used to access the site? Take a look at the output of phpinfo() for the two virtual sites, especially HTTP_SERVER_VARS["HTTP_HOST"] HTTP_SERVER_VARS["SERVER_NAME"] Server_name is likely to be the 'main name' (www.example.com), but http_host should be the name it's called by (not a