-Original Message-
> From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 11:31 AM
> To: Martin Towell
> Cc: PHP
> Subject: Re: [PHP] An idea...
>
>
> Quote from the php manual.
> "Once a constant is defined, it can never be changed o
Quote from the php manual.
"Once a constant is defined, it can never be changed or undefined."
I figure, since the constant is initialised in the script, it cannot be
changed or undefined, then I can put my trust in it that it comes from
the server and no where else
Martin Towell wrote:
>
It's also worth noting here that typing a keyword (or maybe it's just
function names?) in place of a directory after www.php.net does the same
thing. ie, 'www.php.net/extract' takes you to the extract page in the
manual.
HTH,
dm
Mike Eheler wrote:
>Through suggestions of people here is the code
Through suggestions of people here is the code I produced for a bookmark:
javascript:void(srch=prompt('Function Name?',''));if(srch)
{self.location.href='http://download.php.net/search.php?pattern=' +srch+
'&show=quickref';};
Of course that should all go on one line. That is a good hack for no
ray [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 04, 2002 12:03 AM
> To: 'Mike Eheler'; [EMAIL PROTECTED]
> Subject: RE: [PHP] An idea for a PHP tool
>
>
> > Like google has it's toolbar, why not have a PHP Manual toolbar? That
> > wou
On Fri, 4 Jan 2002, Jason Murray wrote:
> I've seen bookmarks that pop up a javascript input window and then
> use the input in the resulting URL. So, take the manual query via
> javascript input and then append it to the www.php.net url.
There are tips on the php site for making the quick-refer
> Like google has it's toolbar, why not have a PHP Manual toolbar? That
> would be *great*. Just type in the function name and hit "go" and the
> manual comes up.
You could probably work a bit of javascript magic in a bookmark to
do the same thing.
I've seen bookmarks that pop up a javascript
it looks like you're getting your ereg and preg mixed up but try it
like this:
switch(1){
case ereg("\\.jpg$",$filename):
echo "JPEG Image";break;
case ereg("\\.gif$",$filename):
echo "GIF Image";break;
case ereg("\\.zip$",$filename):
echo "Compressed File"; break;
defa
8 matches
Mail list logo