-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
well wrote:
> how is that going to increase security?
>
> -Original Message-
> From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 11:21 AM
> To: php
> Subject: [PHP] An idea...
>
>
> Just want to bounce this idea off you guys/gals.
Just want to bounce this idea off you guys/gals.
Im looking to improve the security of my scripts. Now lets say, I
initialise the script with a constant in the main config file that all
the pages access. Then when Im accepting data from a form or maybe even
a link I could do
if (isset($HTT
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
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.
One for Moz & one for IE I'm sure would be appreciated.
I'd do it myself, but I have not the ability to code in C (or C++ for
that matte
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
Humor me, how useful would a Regex switch statement
be?
Like:
ereg_switch($filename) {
case "/\.jpg$/":
echo "JPEG
Image"; break;
case "/\.gif$/";
echo "GIF
Image"; break;
case "/\.zip$/":
echo
"Compressed File"; break;
default:
echo "Unkow
11 matches
Mail list logo