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
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
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
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
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
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
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
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
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
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
$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
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',
);
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.
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
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
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
-
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
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
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
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
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 =
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
-
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
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
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
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
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
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
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
29 matches
Mail list logo