Re: [PHP] Queuing servers

2010-12-02 Thread Alister Bulman
much easier to run than the original Perl daemon). I see Beanstalk as more 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
for > something like $chance[1] or $chance[0], 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); arsor

Re: [PHP] Include???

2007-05-23 Thread Alister Bulman
- because I will generally write: if ('C' = $_POST['status_code']) { If I wrote that, it would fail instantly - because you can't assign to a constant, so you use double - or triple, as appropriate - equals. if ('C' == $_POST['status_code']) Alister -- PH

Re: [PHP] Question

2007-05-15 Thread Alister Bulman
27;s trying to promote bondage and S&M >:) 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
serve as a better explanation than mine! 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 = &#x

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 so

Re: [PHP] Appending into associative arrays

2007-04-15 Thread Alister Bulman
rray (filemtime($d) => $d) (sorry the previous one is incorrect, I misunderstood what you wanted...) so: $dirs[filemtime($d)] = $d; Better, I think, to put the unique thing - the name, as the index. Two directories may have the same modification time. $dirs[$d] = filemtime($d); Alister -- PHP

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

2006-10-27 Thread Alister Bulman
l are them are designed for a script to consume, 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

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

2006-05-17 Thread Alister Bulman
er in the world would wilt under 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
ound connections to an external 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
x27; PEAR directory. Then I can just go require_once 'MyCompany/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
your own server, you would be far 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://w

Re: [PHP] Optimizing Tips

2004-08-05 Thread Alister Bulman
mysql database or draged in from other 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 -

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

2004-07-27 Thread Alister
27;]])) { $func = $callFunc[$_GET['id']]; $retval = $func(); } 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
age/Mail_Mime to do the hard work. Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "Too many connections" fix?

2003-10-02 Thread Alister
g here: http://jeremy.zawodny.com/blog/archives/000173.html Running a PHP cache like PHP Accellerator 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 > http://www.devsh

Re: [PHP] mail() question

2003-08-25 Thread Alister
il configuration issue. Alternatively you can have the send the email by SMTP to your primary mail server which then sends 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
after_ PHP? Did you have a sendmail binary in place before you configured PHP? If it's 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

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

2003-07-11 Thread Alister
Y > visitors.id CURRENT_DATEnow( ) DATE_SUB( 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
nt to download it myself. I put 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
string comparison functions Or look at the ip2long/long2ip functions (and there's a couple of other IP handling classes in PEAR) Alister -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anti Spam software

2002-11-20 Thread Alister
throw it all to a text file, or filter it (or not) in the email program. 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
ferent systems and with some 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
it Off in php.ini 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
$temp$i; > $i++; >} What about $i = 0; // set the start (or use for()) while ($i<$loopcounter) { > $temp = "size". $i; // $temp = 'size1', 'size2'... $valueofsize = $$temp; $i++; # untested code, should be OK though

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

2001-09-26 Thread Alister
the default variables in the array the full and proper post-prefixed name, extract does 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.

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. 'default fred', 'foo_banana' => 'default bananananana', );

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

2001-01-27 Thread Alister
tings.php file, depending on the virtual host 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' (ww