php-general Digest 4 Jul 2007 13:32:56 -0000 Issue 4884
Topics (messages 258212 through 258236):
Re: PHP Brain Teasers
258212 by: Robert Cummings
258225 by: Colin Guthrie
258226 by: Colin Guthrie
258236 by: tedd
Re: how PHP is batter?
258213 by: Robert Cummings
258214 by: Chris
258215 by: Robert Cummings
258221 by: Andrew Hutchings
258222 by: Chris
258223 by: Crayon Shin Chan
258224 by: Crayon Shin Chan
Re: developer seeking document writer
258216 by: Jochem Maas
258219 by: adel
Re: Selecting Rows Based on Row Values Being in Array
258217 by: kvigor
258218 by: Chris
258220 by: Jim Lucas
spliting the elements in array
258227 by: sivasakthi
258228 by: M. Sokolewicz
258231 by: sivasakthi
258232 by: Stut
Re: mail function problem
258229 by: web2
258230 by: Chris
php security books
258233 by: Ross
258235 by: Andrew Hutchings
Re: PHP Brain Teasers (SPOILER)
258234 by: Jochem Maas
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
On Tue, 2007-07-03 at 18:09 -0400, Daniel Brown wrote:
>
> "The first thing we do, let's kill all the lawyers."
Let's wait a few more years, I like my soilent green fresh.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
Jochem Maas wrote:
> Jochem Maas wrote:
>> three for the price of one, cheap at half the price ...
>>
>> for ($me = 1; $you = $me; $me++);
One for me and one for you?
Everything that is mine is yours?
To me, to you?
>> $u = create_function("\$bond", "if (\$bond < 2) echo \"live\"; else die();")
>> $u();$u();$u();
>
> this one here should have been:
>
> $u = create_function("\$bond", "if (\$bond < 3) echo \"live\"; else die();")
> $u(1);$u(2);$u(3);
I started thinking it was "Live and Let Die" but then I realised I had
the wrong movie and it's actually "You only live Twice". WHich is good
cos Connery was a far better bond than Moore!
>> $I = null; sleep(10); $I = rear(); function rear() {};
Dunno! :p
--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
> On Tue, 2007-07-03 at 21:26 +0100, David Restall - System Administrator
> wrote:
>> Hi,
>>
>> there are two in this one :-
>>
>> function Cat($Danger = "")
>> {
>> static int $Lives = 9;
>>
>> if (preg_match("/^curiosity$/i", $Danger))
>> die("Cat Killed");
>>
>> $Threats = array("dog", "flu", "fall", "drowning");
>>
>> if (in_array(strtolower($Danger), $Threats))
>> $Lives --;
>>
>> if ($Lives == 0)
>> die("No More Chances");
>> } // Cat
>>
>> TTFN
>
> Curiosity killed the cat.
> and
> Cats have 9 lives?
That's what I reckoned too. A double whammy!!
Col
--- End Message ---
--- Begin Message ---
Try this:
-(4 * 20 + 7)
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
On Wed, 2007-07-04 at 11:15 +1000, Chris wrote:
> >> Either phrase can be a good or a bad thing, it all depends on tone -
> >> Scottish is very like Japanese in that respect :p
> >
> > with regard to batter - isn't it the scots that have pechant for covering
> > marsbars with the stuff and deepfrying them?
>
> The aussies do it too - are we just as crazy as the scots?
Aren't you Aussies a British criminal colony? ;)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Wed, 2007-07-04 at 11:15 +1000, Chris wrote:
Either phrase can be a good or a bad thing, it all depends on tone -
Scottish is very like Japanese in that respect :p
with regard to batter - isn't it the scots that have pechant for covering
marsbars with the stuff and deepfrying them?
The aussies do it too - are we just as crazy as the scots?
Aren't you Aussies a British criminal colony? ;)
Yep - so we get +1 on craziness already :P
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
On Wed, 2007-07-04 at 11:44 +1000, Chris wrote:
> Robert Cummings wrote:
> > On Wed, 2007-07-04 at 11:15 +1000, Chris wrote:
> >>>> Either phrase can be a good or a bad thing, it all depends on tone -
> >>>> Scottish is very like Japanese in that respect :p
> >>> with regard to batter - isn't it the scots that have pechant for covering
> >>> marsbars with the stuff and deepfrying them?
> >> The aussies do it too - are we just as crazy as the scots?
> >
> > Aren't you Aussies a British criminal colony? ;)
>
> Yep - so we get +1 on craziness already :P
It's in your blood... and then some :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Chris)
wrote:
>>> Either phrase can be a good or a bad thing, it all depends on
>>> tone - Scottish is very like Japanese in that respect :p
>>
>> with regard to batter - isn't it the scots that have pechant for
>> covering marsbars with the stuff and deepfrying them?
> The aussies do it too - are we just as crazy as the scots?
Didn't we used to ship convicted criminals to Auz? That would explain
the craziness ;)
--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen
leads to downtime. Downtime leads to suffering...I sense much Windows in you...
--- End Message ---
--- Begin Message ---
Andrew Hutchings wrote:
In article <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Chris)
wrote:
Either phrase can be a good or a bad thing, it all depends on
tone - Scottish is very like Japanese in that respect :p
with regard to batter - isn't it the scots that have pechant for
covering marsbars with the stuff and deepfrying them?
The aussies do it too - are we just as crazy as the scots?
Didn't we used to ship convicted criminals to Auz? That would explain
the craziness ;)
Oh yeh - blame us for everything ;)
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
On Tuesday 03 July 2007 21:52, Stut wrote:
> > In short words it's not Micro$oft and you don't need to buy stuff to
> > develop in it.
>
> You have never needed to buy anything to develop ASP.net applications.
However, remember that many of the functions and extensions that PHP
has "builtin" are free whereas their counterparts in asp-land may not be.
Eg, I'm not sure whether this is still the case but once upon a time to
be able to handle uploads in asp meant you had to pay for an extension.
--
Crayon
--- End Message ---
--- Begin Message ---
On Tuesday 03 July 2007 22:56, Stut wrote:
> > I saw there is a free version of Studio, but I think it's for
> > students... You cannot go build a corporate project with it I
> > think...
>
> More FUD. Go read the licence before claiming to know what it says!
Regardless, the "Express" version has strings attached:
http://www.theregister.co.uk/2007/06/05/microsoft_mvp_threats/
--
Crayon
--- End Message ---
--- Begin Message ---
adel wrote:
> hello? why am not getting any reply!?
because nobody really wants to write documentation?
not even for their own stuff, let alone someone else's.
the lack of reply suggests no one is interested - this is
not uncommon - it's very hard to get people interested in a
project even when it *is* well documented.
don't take this personally though, it's just the nature of the game.
>
> On 7/1/07, adel <[EMAIL PROTECTED]> wrote:
>> hi
>>
>> I wrote php 5 framework, not trying to do everything or add layers of
>> complexing to what php already do easy, this framework has few objects
>> that helps me doing commonly tasks easily like generating valid HTML,
>> localization, "ajax" without coding any javascript and managing
>> database without any SQL... stuff you may find useful, the problem
>> that stops people from using it, is the lack of fine document, I wrote
>> one [1] and rolled Example package [2] but my English is not good
>> enough for writing such as document, so if you are interested to help
>> this open source framework, please let me know :)
>>
>> thank you
>>
>> 1 - http://code.google.com/p/teddyframework/wiki/Documentation
>> 2 -
>> http://code.google.com/p/teddyframework/downloads/detail?name=Examples-0.2.zip&can=2&q=
>>
>>
>
--- End Message ---
--- Begin Message ---
On 7/4/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
adel wrote:
> hello? why am not getting any reply!?
because nobody really wants to write documentation?
not even for their own stuff, let alone someone else's.
the lack of reply suggests no one is interested - this is
not uncommon - it's very hard to get people interested in a
project even when it *is* well documented.
don't take this personally though, it's just the nature of the game.
thank you for reply, writing documentation will not benefits me, as I
only need to look at class interface to re-fresh my mind what method
do what... people being careless about this project free me from
worrying about documentation and focus more on code :) thank you again
>
> On 7/1/07, adel <[EMAIL PROTECTED]> wrote:
>> hi
>>
>> I wrote php 5 framework, not trying to do everything or add layers of
>> complexing to what php already do easy, this framework has few objects
>> that helps me doing commonly tasks easily like generating valid HTML,
>> localization, "ajax" without coding any javascript and managing
>> database without any SQL... stuff you may find useful, the problem
>> that stops people from using it, is the lack of fine document, I wrote
>> one [1] and rolled Example package [2] but my English is not good
>> enough for writing such as document, so if you are interested to help
>> this open source framework, please let me know :)
>>
>> thank you
>>
>> 1 - http://code.google.com/p/teddyframework/wiki/Documentation
>> 2 -
>>
http://code.google.com/p/teddyframework/downloads/detail?name=Examples-0.2.zip&can=2&q=
>>
>>
>
--- End Message ---
--- Begin Message ---
Jim,
Thanks for all you help. Tell me where to mail you the check "seriously".
If we get this right I'll owe you.
OK, the query string now looks like you said it would. However Query isn't
returning a match.
//DETAILS=========================================================
My $list array looks like this one echo'd:
$list[0] =7orange50lbs
$list[1] =8purple60lbs
Now when I do this:
$query_One= "SELECT * FROM shoe WHERE CONCAT(size,color,weight)
IN({$in_list})";
$result = mysql_query($query_One,$connection) or die("Query failed: ".
mysql_error($connection));
$row = mysql_fetch_assoc($result);
while($row = mysql_fetch_assoc($result))
{extract($row);
echo "<table width='2400' cellpadding='5' cellspacing='5'
class='tborder'><tr>
<td width='46' border = '1' bordercolor ='#3E5C92' height='20'
align='left' class='tcat'>$count</td>
<td width='200' align='left' class='row2'>$size</td>
<td width='200' align='left' class='row2'>$color</td>
<td width='200' align='left' class='row2'>$weight</td>
</tr>
</table>";
}
No rows are returned to the screen. I know I should at least have 2 rows
return because my TABLE has 2 rows in it and both rows are in $in_list[0]
and[1].
size color weight
Row1 looks like: 7 orange 50lbs //This is from phpMyAdmin table
export
Row2 looks like: 8 purple 60lbs //This is from phpMyAdmin table
export
I get no MySQL errors either. So I'm wondering why aren't rows returning?
//END DETAILS==============================================================
"Jim Lucas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> kvigor wrote:
>> Ok Jim,
>>
>> This is what I have so far and I'm still working it out.
>>
>> $in_list = "".join('',$someArrayList); // do I really need to
>> concatenate
> it needs to be
>
> $in_list = "'".join("','",$someArrayList)."'"; // you need the quotes!!
>
>> or separate anything here since my array values will be '7orange50lbs'?
>> // this is the format I want.
> You are going wrong right here. First off you took out all the quoting
>
> Your search items must be quoted and separated by commas. Remember, we
> want it to check a list/array() of items
>
> $in_list must look like this when done 'item1','item2','item3'....
>
> in SQL, this is a list.
>
>>
>> $query_One = "SELECT * FROM shoe WHERE CONCAT(size,color,weight)
>> IN({$in_list})"; // size, color, weight are my column names
>
> if you echo $query_One , what do you get?
>
>> $result = mysql_query($query_One ,$connection) or die("Query failed: ".
>> mysql_error($connection));
> before you run the fetch, you need to double check that you got something
> back, otherwise you will get an error from php.
>
> if ( mysql_num_rows($results) > 0 ) {
> while ( $row = mysql_fetch_array(
> } else {
> echo "No results";
> }
>
>> $row = mysql_fetch_array($result);
>
> and I would recommend that you use either *_assoc() or *_row() instead of
> *_array().
> Doesn't use as much memory, and your resulting $row variable doesn't have
> two of what you are looking for.
>
>>
>> This is the error I get back from the query:
>> Query failed: Unknown column '6blue40lbs' in 'where clause'
>
> This is because you took out the quotes from above. Put them back and it
> might just work.
>
> SQL will see the un-quoted 6blue40lbs and think that it is a string.
> If it was quoted, it would not.
>
> // where am I
>> going wrong?
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare
--- End Message ---
--- Begin Message ---
kvigor wrote:
Jim,
Thanks for all you help. Tell me where to mail you the check "seriously".
If we get this right I'll owe you.
OK, the query string now looks like you said it would. However Query isn't
returning a match.
//DETAILS=========================================================
My $list array looks like this one echo'd:
$list[0] =7orange50lbs
$list[1] =8purple60lbs
Now when I do this:
$query_One= "SELECT * FROM shoe WHERE CONCAT(size,color,weight)
IN({$in_list})";
$result = mysql_query($query_One,$connection) or die("Query failed: ".
mysql_error($connection));
$row = mysql_fetch_assoc($result);
while($row = mysql_fetch_assoc($result))
This should be:
$result = mysql_query($query_One,$connection) or die("Query failed: ".
mysql_error($connection));
while($row = mysql_fetch_assoc($result))
....
Otherwise you're ignoring the first result every time (note I removed
the first $row = mysql_fetch_assoc($result)).
Does the query work in mysql itself?
Echo it out and run it manually in phpmyadmin or something to make sure
it does return what you need and doesn't produce an empty result set.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
kvigor wrote:
Jim,
Thanks for all you help. Tell me where to mail you the check "seriously".
If we get this right I'll owe you.
OK, the query string now looks like you said it would. However Query isn't
returning a match.
//DETAILS=========================================================
My $list array looks like this one echo'd:
$list[0] =7orange50lbs
$list[1] =8purple60lbs
where is the part that it join()'s things together?
what is the output of the join() call
Now when I do this:
$query_One= "SELECT * FROM shoe WHERE CONCAT(size,color,weight)
IN({$in_list})";
echo $query_One;
and show me the results of the echo
also, run this SQL statement in phpmyadmin and see what it returns
$result = mysql_query($query_One,$connection) or die("Query failed: ".
mysql_error($connection));
get rid of this, basically you are throwing away your first row of results.
$row = mysql_fetch_assoc($result);
while($row = mysql_fetch_assoc($result))
{extract($row);
echo "<table width='2400' cellpadding='5' cellspacing='5'
class='tborder'><tr>
<td width='46' border = '1' bordercolor ='#3E5C92' height='20'
align='left' class='tcat'>$count</td>
<td width='200' align='left' class='row2'>$size</td>
<td width='200' align='left' class='row2'>$color</td>
<td width='200' align='left' class='row2'>$weight</td>
</tr>
</table>";
}
No rows are returned to the screen. I know I should at least have 2 rows
return because my TABLE has 2 rows in it and both rows are in $in_list[0]
and[1].
size color weight
Row1 looks like: 7 orange 50lbs //This is from phpMyAdmin table
export
Row2 looks like: 8 purple 60lbs //This is from phpMyAdmin table
export
I get no MySQL errors either. So I'm wondering why aren't rows returning?
//END DETAILS==============================================================
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
Hi Guys,
I have the array like below,
squid %tu %tl %mt %>A
test %st.%hs %>a %<m %tu %th %Hs %Ss
test1 %tv %tr %Hs.%Ss %mt
............
In that i need to split the log name of each line, example :
squid,test,test1 in to another array..
could you help me to find the solution?
Thanks,
Siva
--- End Message ---
--- Begin Message ---
sivasakthi wrote:
Hi Guys,
I have the array like below,
squid %tu %tl %mt %>A
test %st.%hs %>a %<m %tu %th %Hs %Ss
test1 %tv %tr %Hs.%Ss %mt
............
In that i need to split the log name of each line, example :
squid,test,test1 in to another array..
could you help me to find the solution?
Thanks,
Siva
What does your array look like _exactly_? ie. var_dump style output.
Is it:
array(
array('squid', '%tu', '%tl', '%mt', '%>A'),
array('test', '%st.%hs', '%>a', '%<m', '%tu', '%th', '%Hs', '%Ss')
array('test1', '%tv', '%tr', '%Hs.%Ss', '%mt')
);
or maybe it's:
array(
'squid %tu %tl %mt %>A',
'test %st.%hs %>a %<m %tu %th %Hs %Ss',
'test1 %tv %tr %Hs.%Ss %mt'
);
or maybe it's not even an array at all yet, but still a string, and you
just misnamed it? (ie.)
$not_quite_an_array =
'squid %tu %tl %mt %>A
test %st.%hs %>a %<m %tu %th %Hs %Ss
test1 %tv %tr %Hs.%Ss %mt';
Anyway, the answer heavily depends on what you actually have and want
(exactly). Give us the expected _input_ and expected _output_ and we'll
be able to help you; without those, we won't be.
- Tul
--- End Message ---
--- Begin Message ---
Thanks for your response..
Actually i have the collections of strings like,
$not_quite_an_array =
'squid %tu %tl %mt %>A
test %st.%hs %>a %<m %tu %th %Hs %Ss
test1 %tv %tr %Hs.%Ss %mt';
from that i need to split name of each line..
Thanks..
On Wed, 2007-07-04 at 11:26 +0200, M. Sokolewicz wrote:
> sivasakthi wrote:
> > Hi Guys,
> >
> > I have the array like below,
> >
> > squid %tu %tl %mt %>A
> > test %st.%hs %>a %<m %tu %th %Hs %Ss
> > test1 %tv %tr %Hs.%Ss %mt
> > ............
> >
> > In that i need to split the log name of each line, example :
> > squid,test,test1 in to another array..
> > could you help me to find the solution?
> >
> >
> > Thanks,
> > Siva
> >
>
> What does your array look like _exactly_? ie. var_dump style output.
> Is it:
> array(
> array('squid', '%tu', '%tl', '%mt', '%>A'),
> array('test', '%st.%hs', '%>a', '%<m', '%tu', '%th', '%Hs', '%Ss')
> array('test1', '%tv', '%tr', '%Hs.%Ss', '%mt')
> );
>
> or maybe it's:
> array(
> 'squid %tu %tl %mt %>A',
> 'test %st.%hs %>a %<m %tu %th %Hs %Ss',
> 'test1 %tv %tr %Hs.%Ss %mt'
> );
>
> or maybe it's not even an array at all yet, but still a string, and you
> just misnamed it? (ie.)
> $not_quite_an_array =
> 'squid %tu %tl %mt %>A
> test %st.%hs %>a %<m %tu %th %Hs %Ss
> test1 %tv %tr %Hs.%Ss %mt';
>
> Anyway, the answer heavily depends on what you actually have and want
> (exactly). Give us the expected _input_ and expected _output_ and we'll
> be able to help you; without those, we won't be.
>
> - Tul
>
--- End Message ---
--- Begin Message ---
sivasakthi wrote:
Thanks for your response..
Actually i have the collections of strings like,
$not_quite_an_array =
'squid %tu %tl %mt %>A
test %st.%hs %>a %<m %tu %th %Hs %Ss
test1 %tv %tr %Hs.%Ss %mt';
from that i need to split name of each line..
$names = array();
foreach (explode("\n", $not_quite_an_array) as $line)
{
$line = trim($line);
if (strlen($line) == 0) continue;
$names[] = array_shift(explode(' ', $line, 2));
}
-Stut
--
http://stut.net/
--- End Message ---
--- Begin Message ---
Chris a écrit :
Try this:
<?
$email = "[EMAIL PROTECTED]";
$headers = "From: ".$email."\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
if(mail("[EMAIL PROTECTED]","essai","test",$headers)) {
echo "OK: ".ini_get('sendmail_path');
} else {
echo "NOK: ".ini_get('sendmail_path');
}
?>
Note
Same result : "NOK /usr/lib/sendmail -t -i"
I think the problem is not in the test script.
Is that the right path? Normally it's /usr/sbin/sendmail not /usr/lib .
Yes, /usr/sbin/sendmail is a link to /usr/lib/sendmail.
I've made tests and with the php binary (php -f myscript.php), the mail
is send.
It only doesn't work with the apache module (libphp5.so)...
So, it confirms that the script and the PHP configuration (php.ini) are OK.
If you have any solutions...
--- End Message ---
--- Begin Message ---
web2 wrote:
Chris a écrit :
Try this:
<?
$email = "[EMAIL PROTECTED]";
$headers = "From: ".$email."\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";
if(mail("[EMAIL PROTECTED]","essai","test",$headers)) {
echo "OK: ".ini_get('sendmail_path');
} else {
echo "NOK: ".ini_get('sendmail_path');
}
?>
Note
Same result : "NOK /usr/lib/sendmail -t -i"
I think the problem is not in the test script.
Is that the right path? Normally it's /usr/sbin/sendmail not /usr/lib .
Yes, /usr/sbin/sendmail is a link to /usr/lib/sendmail.
I've made tests and with the php binary (php -f myscript.php), the mail
is send.
It only doesn't work with the apache module (libphp5.so)...
So, it confirms that the script and the PHP configuration (php.ini) are OK.
Are you running SeLinux by any chance? Check your /var/log/messages
and/or /var/log/syslog to see if they provide any answers.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
http://amazon.co.uk/s/ref=nb_ss_w_h_/203-1671317-2810350?initialSearch=1&url=search-alias%3Daps&field-keywords=php+security&Go.x=0&Go.y=0&Go=Go
looking at the top 3 on the list here, personally I quite like the O'Reilly
books. Can someone recommend one of these or any other that will give me a
good solid understanding of PHP security?
Thanks,
Ross
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>
[EMAIL PROTECTED]("Ross") wrote:
> http://amazon.co.uk/s/ref=nb_ss_w_h_/203-1671317-2810350?initialSearch
>
> =1&url=search-alias%3Daps&field-keywords=php+security&Go.x=0&Go.y=0&Go
> =Go
>
> looking at the top 3 on the list here, personally I quite like the
> O'Reilly books. Can someone recommend one of these or any other that
> will give me a good solid understanding of PHP security?
Avoid the O'Reilly one as it is flawed. Go for The PHP|Architect one.
I haven't had a chance to read Chris Snyder's one yet but it has the
worst amazon rating of the 3.
--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen
leads to downtime. Downtime leads to suffering...I sense much Windows in you...
--- End Message ---
--- Begin Message ---
Colin Guthrie wrote:
> Jochem Maas wrote:
>> Jochem Maas wrote:
>>> three for the price of one, cheap at half the price ...
>>>
>>> for ($me = 1; $you = $me; $me++);
>
> One for me and one for you?
correct!
> Everything that is mine is yours?
> To me, to you?
>
>
>>> $u = create_function("\$bond", "if (\$bond < 2) echo \"live\"; else die();")
>>> $u();$u();$u();
>> this one here should have been:
>>
>> $u = create_function("\$bond", "if (\$bond < 3) echo \"live\"; else die();")
>> $u(1);$u(2);$u(3);
>
> I started thinking it was "Live and Let Die" but then I realised I had
> the wrong movie and it's actually "You only live Twice". WHich is good
> cos Connery was a far better bond than Moore!
eggzactly ;-)
>
>>> $I = null; sleep(10); $I = rear(); function rear() {};
>
--- End Message ---