php-general Digest 18 Apr 2006 21:16:46 -0000 Issue 4079
Topics (messages 234166 through 234214):
Re: Spell Checker
234166 by: Jochem Maas
234172 by: tedd
234177 by: Stut
234179 by: Barry
234192 by: Jochem Maas
234194 by: Stut
Forking a search - pcntl
234167 by: James Nunnerley
234168 by: Stut
234174 by: chris smith
creating a SELECT AND query
234169 by: Ross
234171 by: Robin Vickery
Re: mktime() vs date()
234170 by: Jay Blanchard
Re: Table formation...
234173 by: tedd
Last one for today! Pager problem
234175 by: Ross
234176 by: Jay Blanchard
234178 by: Ross
234181 by: tedd
234182 by: Ross
234183 by: Barry
Pushing Vars into $_SESSION
234180 by: Chris Grigor
234186 by: Paul Waring
sprintf() oddity
234184 by: Chris Boget
234185 by: Barry
234189 by: Satyam
234212 by: Richard Lynch
Pushing PHP Into The Web 2.0 Generation
234187 by: James Crane
234188 by: Jay Blanchard
234190 by: Jay Blanchard
234191 by: Jochem Maas
234193 by: Jochem Maas
234195 by: Tony Marston
234196 by: Jay Blanchard
234197 by: Joe Henry
234198 by: Martin Alterisio \"El Hombre Gris\"
234206 by: Kevin Waterson
234210 by: Jochem Maas
234213 by: Richard Lynch
php 3 to 5 upgrade: foreach loop no longer working
234199 by: Vernon Webb
234200 by: John Nichel
234201 by: Jay Blanchard
234202 by: Vernon Webb
234203 by: John Nichel
234204 by: Lester Caine
234205 by: Jim Moseby
234209 by: Jochem Maas
uml tool for php
234207 by: jonathan
234208 by: Jay Blanchard
HTTP_REFERER with javascript: document.location
234211 by: Yudie
234214 by: Richard Lynch
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:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
BH.VN.Viswanath wrote:
Hi
I just asked you because I m unaware of those things. All wont be the same..
better stop blaming and criticizing and work on the things. And My country
the critique is justified because you _just_ asked - you didn't (seemlingly)
make any effort to even do a 5 second search for anything related to
what you want to achieve.
and there was no blame placed anywhere, btw.
people don't criticize like U.
I serously doubt that of the 800million+ people currently living in
in the Indian subcontinent none of them have ever critizised anything.
as an example: the guy that owned this blog, http://mediaah.blogspot.com/,
obviously critizised something or somebody (given that he was server
a take down notice).
UR country people do such things.
which country might that be then? :-P
Thanks for your help
-----Original Message-----
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 2:43 PM
To: BH.VN.Viswanath
Cc: php-general@lists.php.net
Subject: Re: [PHP] Spell Checker
BH.VN.Viswanath wrote:
Hi,
Can you please mention those tools ? I am unaware of any tool of that kind
I said 'I doubt there are many tools ...' which strongly suggests
that I don't know off the top of my head any tools/software
that will allow someone with absolutely no knowledge of
dictionary/spelling algorithm 'magic'/etc to go about implementing
a routine that will automatically split a string of characters
into two or more strings at exactly the point you it to be split unless
that routine involves _you_ doing it manually at a keyboard.
software doesn't generally do well at either mind-reading or smelling.
maybe google will launch GoogleSmell[tm] soon - in the mean
time try their search engines (anyones search engine for that matter -
Yahoo! is another good one to get you going) ... or do you expect me to
do the searching for you? (like some of your country-men have seemed to
in the past)
Regards
BH.VN.Viswanath
-----Original Message-----
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 1:01 PM
To: BH.VN.Viswanath
Cc: php-general@lists.php.net
Subject: Re: [PHP] Spell Checker
BH.VN.Viswanath wrote:
Hi
We need to check the spelling of a word which is actually a Domain name.
For
example we have to check the word "onlinetradeing". When checked with the
spell checkers we are getting the words which are unrelated such as on,
obliterating, incinerating, intruding etc. But exactly what we want was
"online trading". So we would like to have the word to be split into
phrases
and check the spelling too. The normal spell checkers are just checking
the
words in the dictionary but not splitting the word into phrases.
by all means ask a question.
oh btw, I doubt there are many tools out there capable fo smelling
that you want a space between the 'e' and the 't' of "onlinetradeing".
Regards
BH.VN.Viswanath
--- End Message ---
--- Begin Message ---
At 12:42 PM +0530 4/18/06, BH.VN.Viswanath wrote:
Hi
We need to check the spelling of a word which is actually a Domain name. For
example we have to check the word "onlinetradeing". When checked with the
spell checkers we are getting the words which are unrelated such as on,
obliterating, incinerating, intruding etc. But exactly what we want was
"online trading". So we would like to have the word to be split into phrases
and check the spelling too. The normal spell checkers are just checking the
words in the dictionary but not splitting the word into phrases.
When your post was checked, I found words that were absent, such as:
Google, Google search, and any attempt at finding a solution besides
posting this nonsense to a php list.
Your question is as shallow as the solution you seek is complex --
try thinking about it for a while.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
BH.VN.Viswanath wrote:
> We need to check the spelling of a word which is actually a Domain
> name.
>
> For example we have to check the word "onlinetradeing". When
> checked with the spell checkers we are getting the words which are
> unrelated such as on, obliterating, incinerating, intruding etc.
> But exactly what we want was "online trading". So we would like to
> have the word to be split into phrases and check the spelling too.
> The normal spell checkers are just checking the words in the
> dictionary but not splitting the word into phrases.
Ok, this is gonna show how bored I've been today, maybe I need to find a
more interesting job!!
http://dev.stut.net/words/
There's a link there to the source of the guts. Hope it helps you.
-Stut
--- End Message ---
--- Begin Message ---
Stut wrote:
BH.VN.Viswanath wrote:
> We need to check the spelling of a word which is actually a Domain
> name.
>
> For example we have to check the word "onlinetradeing". When
> checked with the spell checkers we are getting the words which are
> unrelated such as on, obliterating, incinerating, intruding etc.
> But exactly what we want was "online trading". So we would like to
> have the word to be split into phrases and check the spelling too.
> The normal spell checkers are just checking the words in the
> dictionary but not splitting the word into phrases.
Ok, this is gonna show how bored I've been today, maybe I need to find a
more interesting job!!
http://dev.stut.net/words/
There's a link there to the source of the guts. Hope it helps you.
-Stut
lol. Awesome =)
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
Stut wrote:
BH.VN.Viswanath wrote:
> We need to check the spelling of a word which is actually a Domain
> name.
>
> For example we have to check the word "onlinetradeing". When
> checked with the spell checkers we are getting the words which are
> unrelated such as on, obliterating, incinerating, intruding etc.
> But exactly what we want was "online trading". So we would like to
> have the word to be split into phrases and check the spelling too.
> The normal spell checkers are just checking the words in the
> dictionary but not splitting the word into phrases.
Ok, this is gonna show how bored I've been today, maybe I need to find a
more interesting job!!
http://dev.stut.net/words/
There's a link there to the source of the guts. Hope it helps you.
nice :-)
-Stut
--- End Message ---
--- Begin Message ---
Stut wrote:
Ok, this is gonna show how bored I've been today, maybe I need to find
a more interesting job!!
http://dev.stut.net/words/
There's a link there to the source of the guts. Hope it helps you.
Still bored!! It can now order the results by average word length which
pushes the less likely results to the end.
*Twiddles thumbs*
-Stut
--- End Message ---
--- Begin Message ---
I'm creating a search function as part of our webmail frontend, however I'm
having big problems with timeout etc.
What we'd like to do is run the actual search query in the background (i.e.
fork) while the viewable page shows a nice scrollie banner etc!
Due to various problems with the server we are using (Zeus) we can't just
run an exec(). I've had a look around, and it would seem that pcntl maybe
the way forward.
Does anyone have an example working script, or indeed a decent tutorial on
how to use the functionality? The php manual has limited information on
using the functions, and I just can't get my head around how it's meant to
work?!!!
Cheers
Nunners
--- End Message ---
--- Begin Message ---
James Nunnerley wrote:
I'm creating a search function as part of our webmail frontend, however I'm
having big problems with timeout etc.
What we'd like to do is run the actual search query in the background (i.e.
fork) while the viewable page shows a nice scrollie banner etc!
Due to various problems with the server we are using (Zeus) we can't just
run an exec(). I've had a look around, and it would seem that pcntl maybe
the way forward.
Does anyone have an example working script, or indeed a decent tutorial on
how to use the functionality? The php manual has limited information on
using the functions, and I just can't get my head around how it's meant to
work?!!!
IMHO forking in response to a web request is a very very very bad idea(tm).
I had a similar problem a while back. I solved it by having a CLI
process that watches a search queue table in the DB. When it sees an
entry it kicks off another script to do the actual search. Meanwhile the
frontend is using AJAX to display a progress bar using a percentage
written to the search queue record by the searching process. Works very
well for that site, although it has to be said it is not a particularly
busy site so scalability has never been tested.
Using this method it's possible to restrict each session to a single
search if needed since you can set a cancel flag in the search queue
record which gets checked by the searching process. This particular site
ties each search to the php session id.
HTH.
-Stut
--- End Message ---
--- Begin Message ---
On 4/18/06, Stut <[EMAIL PROTECTED]> wrote:
> James Nunnerley wrote:
>
> >I'm creating a search function as part of our webmail frontend, however I'm
> >having big problems with timeout etc.
> >
> >What we'd like to do is run the actual search query in the background (i.e.
> >fork) while the viewable page shows a nice scrollie banner etc!
> >
> >Due to various problems with the server we are using (Zeus) we can't just
> >run an exec(). I've had a look around, and it would seem that pcntl maybe
> >the way forward.
> >
> >Does anyone have an example working script, or indeed a decent tutorial on
> >how to use the functionality? The php manual has limited information on
> >using the functions, and I just can't get my head around how it's meant to
> >work?!!!
> >
> >
> IMHO forking in response to a web request is a very very very bad idea(tm).
On top of that advice, see the big notice on the php manual page:
http://www.php.net/pcntl
Process Control should not be enabled within a webserver environment
and unexpected results may happen if any Process Control functions are
used within a webserver environment.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
I have a textboxt which searches for the surname of a client. A SELECTBOX
searches for the area. I am trying to generate a query that searches all of
scotland (when area=a) and by area (say I live in area 16= "edinburgh") and
combine this with the name search
select name="area" class="text" id="area">
<option value="a">All of Scotland</option>
<option value='1'>Aberdeen City Counci...</option>
<option value='16'>Edinburgh City Counc...</option>
<option value='17'>Falkirk Council</option>
<option value='18'>Fife Council</option>
<option value='19'>Glasgow City Council</option>
<option value='20'>Highland Council</option>
<option value='21'>Inverclyde Council</option>
<option value='22'>Midlothian Council</option>
<option value='23'>Moray Council</option>
</select>
This is what I thought would work..
$query1= "select * from $table_name WHERE sname LIKE '$search_string%' ";
if ($area="a") {
$query1 .=" AND area='a'";
}
else {
$query1 .="AND area='$area'";
}
--- End Message ---
--- Begin Message ---
On 18/04/06, Ross <[EMAIL PROTECTED]> wrote:
>
> $query1= "select * from $table_name WHERE sname LIKE '$search_string%' ";
>
> if ($area="a") {
> $query1 .=" AND area='a'";
> }
> else {
> $query1 .="AND area='$area'";
> }
Firstly, you're assigning "a" to area rather than testing whether
$area is "a". You need a "==" operator, not a "=".
Secondly, even if you were testing $area properly, you're doing the
same thing in both halves of the if-statement. Which isn't very
useful.
Really, you only need the "AND area='?'" part if $area is not equal to "a":
if ($area != "a") {
$query1 .= " AND area='$area'";
}
-robin
--- End Message ---
--- Begin Message ---
[snip]
hi, is mktime() actually faster than date() or any other date functions?
[/snip]
This sounds like the perfect opportunity for you to write a test and
return the results.
--- End Message ---
--- Begin Message ---
that said how often do you _really_ need a 1 or a 0,
Surprisingly enough, I need it quite often. Enough so that I keep an
example nearby.
I'm assuming that the
1 or 0 are used to detemine an on/off state. is my assumption correct?
Mostly even/odd, this/that, right/left, on/off, up/down, se/nw sort
of things. :-)
if so then take another good look at the way php autocasts variables,
for instance tyr running this:
$zero = 0; $one = 1;
var_dump(
(false == $zero),
(true == $one),
((bool)$zero),
($zero & 1),
((bool)($zero & 1)),
((bool)$one),
($one & 1),
((bool)($one & 1))
);
That's very interesting, but being dyslexic, it's beyond me -- it
looks like Halloween (lot's of boo's). That's one of the reasons why
I don't use IF ELSE/IF -- I simply can't follow it. But I can always
find a way around it's use.
Thanks for the code.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
http://scottishsocialnetworks.org/editor.phps
My pager does everything but when I hit any of the links for the pages it
doesn't show any results.
It can be seen here (alothough the page doesn't seen to submit on the remote
host. Any ideas why??
Thanks,
Ross
--- End Message ---
--- Begin Message ---
[snip]
My pager does everything but when I hit any of the links for the pages
it
doesn't show any results.
It can be seen here (alothough the page doesn't seen to submit on the
remote
host. Any ideas why??
[/snip]
I think it might be coder error, but that's just me. Anyone else?
--- End Message ---
--- Begin Message ---
The page works fine on my localhost the only problem is the first page of
the pager is the only one I can see before it resets.
On the remote host the area should automatically be set to a with the line.
if(!isset($_POST['area'])){ $_POST['area']='a'; $area = $_POST['area'];}
but it does not work. This may shed some light on it!
regards,
Ross
----- Original Message -----
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Ross" <[EMAIL PROTECTED]>; <php-general@lists.php.net>
Sent: Tuesday, April 18, 2006 3:53 PM
Subject: RE: [PHP] Last one for today! Pager problem
[snip]
My pager does everything but when I hit any of the links for the pages
it
doesn't show any results.
It can be seen here (alothough the page doesn't seen to submit on the
remote
host. Any ideas why??
[/snip]
I think it might be coder error, but that's just me. Anyone else?
--- End Message ---
--- Begin Message ---
At 9:53 AM -0500 4/18/06, Jay Blanchard wrote:
[snip]
My pager does everything but when I hit any of the links for the pages
it
doesn't show any results.
It can be seen here (alothough the page doesn't seen to submit on the
remote
host. Any ideas why??
[/snip]
I think it might be coder error, but that's just me. Anyone else?
Hmmm considering that his pager does everything, maybe he should have
it wrote the code.
Anyone else?
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
what does this mean?
when I said 'everything else' I meant it calcualted the number of
results/pages and displays the first page but then wipes the results when I
click on any of the other links (page2 | page3 etc.)
Ross
----- Original Message -----
From: "tedd" <[EMAIL PROTECTED]>
To: "Jay Blanchard" <[EMAIL PROTECTED]>; "Ross" <[EMAIL PROTECTED]>;
<php-general@lists.php.net>
Sent: Tuesday, April 18, 2006 4:10 PM
Subject: RE: [PHP] Last one for today! Pager problem
At 9:53 AM -0500 4/18/06, Jay Blanchard wrote:
[snip]
My pager does everything but when I hit any of the links for the pages
it
doesn't show any results.
It can be seen here (alothough the page doesn't seen to submit on the
remote
host. Any ideas why??
[/snip]
I think it might be coder error, but that's just me. Anyone else?
Hmmm considering that his pager does everything, maybe he should have it
wrote the code.
Anyone else?
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
tedd wrote:
At 9:53 AM -0500 4/18/06, Jay Blanchard wrote:
[snip]
My pager does everything but when I hit any of the links for the pages
it
doesn't show any results.
It can be seen here (alothough the page doesn't seen to submit on the
remote
host. Any ideas why??
[/snip]
I think it might be coder error, but that's just me. Anyone else?
Hmmm considering that his pager does everything, maybe he should have it
wrote the code.
Anyone else?
tedd
OWZIE WOWZIE!
TOO MUCHY CODY!
EYEZ HURTY!
OWZIE WOWZIE!
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
Afternoon
Was wondering if there is an easier way to get returned variables into
the $_SESSION rather than going through each one??
eg
$link_id = mysql_connect($dbhost, $dbuser, $dbpass)
or die("Connection to $dbhost failed on verification
section");
mysql_select_db($logindb, $link_id)
or die("Selection of database failed on verification section");
$query = "SELECT * FROM blah where blah = 'blah'";
$result = mysql_query($query) or die ("Query failed: " . mysql_error());
while ($line = mysql_fetch_object($result, MYSQL_ASSOC)) {
$id = $line->id;
$firstname = $line->firstname;
$surname = $line->surname;
$email = $line->email;
}
mysql_close($link_id);
$_SESSION["id"] = "$id";
$_SESSION["firstname"] = $firstname;
$_SESSION["surname"] = $surname;
$_SESSION["email"] = $email;
Any help here is appreciated....
Chris
--- End Message ---
--- Begin Message ---
On 18/04/06, Chris Grigor <[EMAIL PROTECTED]> wrote:
> Was wondering if there is an easier way to get returned variables into
> the $_SESSION rather than going through each one??
First of all, why are you using mysql_fetch_object and then passing in
MYSQL_ASSOC? You should be using $line = mysql_fetch_array($result)
instead. If you get the row data as an associative array, you can then
simply do:
foreach ( $line as $key => $value )
{
$_SESSION[$key] = $value;
}
That way, whatever columns you select from the database will
automatically be loaded into session variables, so if you change the
SQL, you'll also change the sessions. I think this is what you're
asking for, apologies if I'm misinterpreted the question.
Paul
--
Data Circle
http://datacircle.org
--- End Message ---
--- Begin Message ---
What's going on here:
$number = 5000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000.12346
$number = 5000000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000000.12305
$number = 5000000000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000000000.00000
Why isn't it formatting the decimals properly? And apparently losing
some?
Running PHP 4.3.11 on Windows Server 2003 box.
thnx,
Chris
--- End Message ---
--- Begin Message ---
Chris Boget wrote:
What's going on here:
$number = 5000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000.12346
$number = 5000000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000000.12305
$number = 5000000000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000000000.00000
Why isn't it formatting the decimals properly? And apparently losing
some?
Running PHP 4.3.11 on Windows Server 2003 box.
thnx,
Chris
Because you can either work with large Numbers before point or after.
both doesn't work.
And on top of that, PHP works intern with double typed vars.
That's causing the problem here.
probably round() and number_format() will have better outcomes.
Test that :)
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
You are going beyond the number of significant digits PHP can handle so it
is truncating beyond that. In the second case it look sstrange, the 12305
ending, but it is probably a 'round' number if you put it in binary, but it
turns funny when converted to decimal. In the last example, the precision
does not even reach the decimal part.
----- Original Message -----
From: "Chris Boget" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Tuesday, April 18, 2006 5:19 PM
Subject: [PHP] sprintf() oddity
What's going on here:
$number = 5000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000.12346
$number = 5000000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000000.12305
$number = 5000000000000000.1234567890;
echo sprintf( '%.05f', $number );
result: 5000000000000000.00000
Why isn't it formatting the decimals properly? And apparently losing
some?
Running PHP 4.3.11 on Windows Server 2003 box.
thnx,
Chris
--- End Message ---
--- Begin Message ---
On Tue, April 18, 2006 10:19 am, Chris Boget wrote:
> What's going on here:
>
> $number = 5000000000.1234567890;
> echo sprintf( '%.05f', $number );
>
> result: 5000000000.12346
>
> $number = 5000000000000.1234567890;
> echo sprintf( '%.05f', $number );
>
> result: 5000000000000.12305
>
> $number = 5000000000000000.1234567890;
> echo sprintf( '%.05f', $number );
>
> result: 5000000000000000.00000
>
> Why isn't it formatting the decimals properly? And apparently losing
> some?
>
> Running PHP 4.3.11 on Windows Server 2003 box.
PHP stores float/decimal numbers internally in 4-byte (32-bit) values
using standard C float libraries.
Rounding things off is guaranteed to produce results like this.
Though the one that ends in .12305 is a bit odd...
Still, if you NEED any sort of verifiable accuracy or especially large
scale, you'll have to use a custom library that deals with decimal
numbers as strings and allows you to choose arbitrary precision.
You'll sacrifice speed, of course. And RAM. How much you sacrifice
depends on how much accuracy you need, to some degree, but it's also
just inherently slower and more resource-intensive to do all the
calculations as strings.
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
Cheers!
M.T.
--- End Message ---
--- Begin Message ---
[snip]
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
[/snip]
Web 2.0 Hype alert. There is no such thing, just as there are no
standards for web development. I'll read it when I have more time.
--- End Message ---
--- Begin Message ---
[snip]
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
[/snip]
I have now taken the time to read it and I am sorry that I did. It was
five minutes of drivel not remotely related to PHP other than to say
that PHP may not be Web 2.0 (which is OK because Web 2.0 is a hype term)
because the language constructs aren't friendly enough. I suggest that
the author spend some time programming C++ and then rewrite his paper.
It is nothing personal, just a review of a poorly written article.
--- End Message ---
--- Begin Message ---
Jay Blanchard wrote:
[snip]
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
[/snip]
Web 2.0 Hype alert. There is no such thing, just as there are no
standards for web development. I'll read it when I have more time.
save yourself the time Jay. it's alot of hot air topped off with
some madness about everything must be an object, he already posted to
php-internals - it got shot down there too.
--- End Message ---
--- Begin Message ---
Jay Blanchard wrote:
[snip]
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
[/snip]
I have now taken the time to read it and I am sorry that I did. It was
five minutes of drivel not remotely related to PHP other than to say
that PHP may not be Web 2.0 (which is OK because Web 2.0 is a hype term)
because the language constructs aren't friendly enough. I suggest that
the author spend some time programming C++ and then rewrite his paper.
I did tell you not to bother ;-)
It is nothing personal, just a review of a poorly written article.
--- End Message ---
--- Begin Message ---
That paper does not have any substance in the same way that Web 2.0 does not
have any substance. "Web 2.0" is just a marketing ploy, a buzzword for the
gullible. As far as I can see there is very little material difference
between "Web 1.0" and "Web 2.0", certainly not as much difference a desktop
application and a web application, or the difference between a flat file
system and a relational database.
If you cannot point out something which is materially different with this
mythical "Web 2.0" then you are wasting your time.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
""James Crane"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
Cheers!
M.T.
--- End Message ---
--- Begin Message ---
[snip]
..
[/snip]
And his mailing list name is James Crane, he signs of as M.T. which
stands for Matt Todd.
I call shenanigans.
--- End Message ---
--- Begin Message ---
On Tuesday 18 April 2006 10:50 am, Jay Blanchard wrote:
> [snip]
> ..
> [/snip]
>
> And his mailing list name is James Crane, he signs of as M.T. which
> stands for Matt Todd.
>
> I call shenanigans.
My nominee for best analogy from the article:
> Much like the artists and writers of the early twentieth century when they
realized that the weapons and machines were dehumanizing war, making it far
too easy to kill, web designers and developers realized that there was a need
for a social, human revolution within the sterile, synthetic arena of the
web. Hence, the Web 2.0 Movement was born.
Web development and war in the same sentence. Killer!
--
Joe Henry
www.celebrityaccess.com
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Just what I needed today, another guy trying to find solutions when he
doesn't even comprehend what the real problem is.
A complete waste of my time.
James Crane wrote:
I've written a short paper on the future of PHP and I'd appreciate it
if you folks would take a look at it and exchange your thoughts with
me.
http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
Don't be too skeptical. ;)
Cheers!
M.T.
--- End Message ---
--- Begin Message ---
This one time, at band camp, "James Crane" <[EMAIL PROTECTED]> wrote:
> http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
random rantings, lacks depth.
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
Jay Blanchard wrote:
[snip]
..
[/snip]
And his mailing list name is James Crane, he signs of as M.T. which
stands for Matt Todd.
I call shenanigans.
the article is also under the name of Matt Todd, didn't catch that first time
round - very odd - if this was some kind of prank then first mailing internals
(also under the name James Crane) has a really high ***hole factor.
--- End Message ---
--- Begin Message ---
On Tue, April 18, 2006 10:37 am, James Crane wrote:
> I've written a short paper on the future of PHP and I'd appreciate it
> if you folks would take a look at it and exchange your thoughts with
> me.
>
> http://www.maraby.com/papers/pushing_php_into_the_web_20_generation
That's 5 minutes I'll never get back...
My thoughts are:
"There was no redeeming value to me whatsoever in this paper."
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php
had
been upgraded from either 3 or 4 to php 5. In doing so I had to do a major
overhaul of
a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). Haven't
gotten
through most of that I know have a problem with a page that is being submitted
to
another page which contains different values for checkboxes. I would pull the
values
from each checkbox using a foreach loop as such:
foreach ($checkbox as $value) {
echo "Value: $value<br />\n";
}
however the value is no longer being echoed to the page.
What am I missing here?
This is the code that is being submitted, $num being an incremented value:
<input name="checkbox[<?php echo $num; ?>]" type="checkbox" id="checkbox[<?php
echo
$num; ?>]" value="<?php echo $row_rsADS['customers_id']; ?>" />
Thanks in advance
--- End Message ---
--- Begin Message ---
Vernon Webb wrote:
I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php had
been upgraded from either 3 or 4 to php 5. In doing so I had to do a major overhaul of
a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). Haven't gotten
through most of that I know have a problem with a page that is being submitted to
another page which contains different values for checkboxes. I would pull the values
from each checkbox using a foreach loop as such:
foreach ($checkbox as $value) {
echo "Value: $value<br />\n";
}
however the value is no longer being echoed to the page.
What am I missing here?
This is the code that is being submitted, $num being an incremented value:
<input name="checkbox[<?php echo $num; ?>]" type="checkbox" id="checkbox[<?php echo
$num; ?>]" value="<?php echo $row_rsADS['customers_id']; ?>" />
Thanks in advance
Register Globals?
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
[snip]
foreach ($checkbox as $value) {
echo "Value: $value<br />\n";
}
however the value is no longer being echoed to the page.
What am I missing here?
This is the code that is being submitted, $num being an incremented
value:
<input name="checkbox[<?php echo $num; ?>]" type="checkbox"
id="checkbox[<?php echo
$num; ?>]" value="<?php echo $row_rsADS['customers_id']; ?>" />
[/snip]
Is the checkbox 'checked'? If not it returns no value.
--- End Message ---
--- Begin Message ---
> Register Globals?
You got it. Is there any advantage to having this turned off?
--- End Message ---
--- Begin Message ---
Vernon Webb wrote:
Register Globals?
You got it. Is there any advantage to having this turned off?
One or two....
http://us2.php.net/register_globals
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Vernon Webb wrote:
Register Globals?
You got it. Is there any advantage to having this turned off?
It's a major security hole if left on ;)
And convincing people to plug that hole was not happening, so something
more major was needed.
As I understand it - PHP6 will not even have the option to enable it at
all :)
--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.
--- End Message ---
--- Begin Message ---
>
> It's a major security hole if left on ;)
> And convincing people to plug that hole was not happening, so
> something
> more major was needed.
Only if the programmer uses it. As I understand it, register_globals being
on doesn't present a security risk in and of itself as long as the
programmer is not relying on its functionality.
JM
--- End Message ---
--- Begin Message ---
Lester Caine wrote:
Vernon Webb wrote:
Register Globals?
You got it. Is there any advantage to having this turned off?
It's a major security hole if left on ;)
it's a major _potential_ security hole. proper initialized of all
[global] variables (and santization of incoming data) means an application
running under register_globals can be as safe as one running without.
the reality of course is that there are millions of security issues out
there due to the problem of global variables not being initialized ... :-P
And convincing people to plug that hole was not
happening, so something
more major was needed.
As I understand it - PHP6 will not even have the option to enable it at
all :)
correct - setting register_globals in php6 will cause an error.
--- End Message ---
--- Begin Message ---
is there a suggested tool that can create uml diagrams for php 5
objects (ie import in a file and create a diagram)?
-jonathan
--- End Message ---
--- Begin Message ---
[snip]
is there a suggested tool that can create uml diagrams for php 5
objects (ie import in a file and create a diagram)?
[/snip]
http://uml.sourceforge.net/index.php
--- End Message ---
--- Begin Message ---
Does anyone know how to resolve my problem
I tried to get the referer url with $_SERVER['HTTP_REFERER'] but returns
blank when I use javascript: document.location='...' from the previous page.
Thank you.
Yudie
--- End Message ---
--- Begin Message ---
On Tue, April 18, 2006 12:49 pm, Yudie wrote:
> Does anyone know how to resolve my problem
> I tried to get the referer url with $_SERVER['HTTP_REFERER'] but
> returns
> blank when I use javascript: document.location='...' from the previous
> page.
Don't do that.
:-)
More specifically, no browser is required to provide HTTP_REFERER, so
that value is completely un-reliable.
If, for some reason, your application NEEDS the preceding page, you'll
need to track it in the URL, or in their session, or through some
mechanism that YOU control.
Rule #1:
Never, ever, ever, trust the browser.
Or the guy/gal/bot using it, for that matter.
Hope that helps, even if it's *so* not what you wanted to hear.
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---