php-general Digest 7 Feb 2007 15:19:38 -0000 Issue 4613
Topics (messages 248468 through 248494):
Re: preg_match
248468 by: James Lockie
Re: _GET('name') truncates
248469 by: Richard Lynch
Re: All-in-one PHP Classes
248470 by: Richard Lynch
Re: Graphs
248471 by: Richard Lynch
Re: file_get_contents
248472 by: Richard Lynch
Re: PHP book reviewers wanted
248473 by: Richard Lynch
Opera advice needed!
248474 by: William Stokes
248477 by: Roman Neuhauser
248484 by: William Stokes
248485 by: Frank Arensmeier
248486 by: William Stokes
248487 by: William Stokes
248488 by: Edward Kay
248489 by: Robert Cummings
248492 by: clive
248494 by: Jochem Maas
PHP4 extensions not loading
248475 by: Skip Evans
248476 by: Roman Neuhauser
base64-encoding in cookies?
248478 by: Fletcher Mattox
248480 by: Nicholas Yim
Spamed?
248479 by: fabio.rotondo.it
248481 by: Sébastien WENSKE
248482 by: Sébastien WENSKE
Re: PHP5 & Commercial Development
248483 by: Lars Gunther
248490 by: Robert Cummings
JS prompt -> php
248491 by: Ryan A
248493 by: Myron Turner
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 ---
Myron Turner wrote:
James Lockie wrote:
I am trying to use this code to display a button at the root but it
always displays the button. :-(
if (! (preg_match( "/$\/index.php/", $_SERVER['PHP_SELF'] ))) {
# display a button
....
You got the end-of-string character ($) in the wrong place:
if (! (preg_match( "/\/index.php$/", $_SERVER['PHP_SELF'] ))) {
Richard Lynch wrote:
On Tue, February 6, 2007 7:46 pm, James Lockie wrote:
I am trying to use this code to display a button at the root but it
always displays the button. :-(
if (! (preg_match( "/$\/index.php/", $_SERVER['PHP_SELF'] ))) {
Without any "modifier", $ matches the END of the string.
I wanted this. :-(
Thanks.
if (! (preg_match( "/^\/index.php/", $_SERVER['PHP_SELF'] ))) {
# display a button
--- End Message ---
--- Begin Message ---
On Tue, February 6, 2007 4:01 pm, Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-02-05 18:09:21 -0600:
>> GET args can be truncated at some number, if the server does not
>> want
>> to allow longer args. I believe the minimum compliant limit is 1024
>> bytes.
I may well have been remembering HTTP/1.0 or even 0.9 or lower specs.
Circa 1995, I suppose...
Sorry.
That said, I cannot find the exact section I was thinking of from any
HTTP spec online, where HTTP implementations were enouraged to make
the GET/POST limits as high as practical, but they could not be lower
than 1024? for GET and 4096? for POST to be compliant. Maybe I'm even
remembering some ephemeral draft or something...
I did find this fairly quickly:
http://classicasp.aspfaq.com/forms/what-is-the-limit-on-querystring/get/url-parameters.html
So even if the server doesn't limit the URL length, SGML, a superset
of HTML, does limit it in the actual HREF, according to that one.
Utlimately, the specs aren't really all that relevant, since the
original poster probably is hitting a limit, whether it's a compliant
server or not.
I'd love every server to be in spec, but that's not quite the real
world we live in, unfortunately.
The document you referenced recommends not exceeding 255 characters,
for that very reason -- broken proxy servers.
Some day I'll find the dang document I'm always remembering when this
issue crops up...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Tue, February 6, 2007 5:47 am, Tim wrote:
> Shouldn't these classes be perhaps broken down into usefull "parts".
Many of them started life as very small classes, and then the Feature
Requests started pouring in and...
Do feel free to take a class and delete all the bits you're not using,
if you can figure that out.
Or just take the bits you need and make a new class, or just use the
one function you need as an actual function or...
I have many many times found a bloated class with tons of Security
issues that make it unusable (for me) but it has the kernel of truth
buried in it that I was looking for... Then I start typing. :-)
Only experience will be able to tell you when to do which, however.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Tue, February 6, 2007 5:42 am, Kristian Erendi wrote:
> I wish to draw graphs on a web page.
> Can someone tell me which extension or package I should use?
> Any examples?
The answer is the same as it was yesterday.
GD
JPGraph
Okay, somebody posted a third one I forgot already.
Did you even try to find an answer first?...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Tue, February 6, 2007 7:53 am, Colin Guthrie wrote:
> Steven Macintyre wrote:
>> Hiya,
>>
>> I need to be able to read a file into a string - I have used the
>> above
>> command and it works ... now ... I need to read a file into a string
>> - that
>> requires a username and password to access the authentication is
>> normal HTTP
>> basic realm
>>
>> Any ideas?
>
> $var =
> file_get_contents('http://username:[EMAIL
> PROTECTED]/path/to/secret/file.txt');
>
> This is standard web syntax - e.g. it will work in a web browser,
> wget,
> curl, etc.
Actually, IE is dropping (has dropped?) support for the
username:password part because their users are too dumb to chop out
their password before posting their URL or something...
I found this in some KB article somewhere, I think...
They didn't actually express it as user stupidity, mind you. :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
On Tue, February 6, 2007 12:04 am, Manuel Lemos wrote:
> Hello,
>
> on 02/06/2007 12:39 AM Richard Lynch said the following:
>>>> Demonstrating good English writing skills and having published
>>>> good
>>>> book
>>>> reviews in the past gets me preference.
>>> "gets me preference" ???
>>>
>>> Me get any money for this?
>>
>> Hey, go easy on the non-native speakers...
>>
>> I'm betting your Spanish is worse than his English...
>
> Thanks for helping to clarify the "native speakers". Just a minor
> correction. My Spanish is not better than my English. I am a native
> Portuguese speaker. ;-)
>
> <cultural_moment>Portuguese is also a latin based language like
> Spanish,
> French, Italian and Romanian, but it is a distinct
> idiom.</cultural_moment>
Dang I'm felling stoopid.
I even have all the facts in my brain to have not made that mistake,
had I matched up column M with row P...
Sorry.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
Hello,
I just noticed when I published a new menu system that it does NOT work in
the ISP hosted server. However it works ok on my test server. Here's the
test I have done all in same client machine (=unchanged browser settings):
My test server:
IE6 & 7 ->OK
Opera 9.02 -> OK
Firefox ->OK
ISP server:
IE6 & 7 ->OK
Opera 9.02 -> DOES NOT WORK!
Firefox ->OK
The system relies on JS also I can see from the browser source code that all
PHP has printed out all JS like it should but the menu is not printed to
browser. Could you give me some pointers how to troubleshoot this? It must
be something server related but not folder or file rights according to my
testing.
Thanks
-Will
--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200:
> Hello,
>
> I just noticed when I published a new menu system that it does NOT work in
> the ISP hosted server. However it works ok on my test server. Here's the
> test I have done all in same client machine (=unchanged browser settings):
>
> My test server:
> IE6 & 7 ->OK
> Opera 9.02 -> OK
> Firefox ->OK
>
> ISP server:
> IE6 & 7 ->OK
> Opera 9.02 -> DOES NOT WORK!
> Firefox ->OK
>
> The system relies on JS also I can see from the browser source code that all
> PHP has printed out all JS like it should but the menu is not printed to
> browser. Could you give me some pointers how to troubleshoot this? It must
> be something server related but not folder or file rights according to my
> testing.
Might be a content-type issue. http://www.wireshark.org/
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
If there's an opera expert around could you please check out the following
link:
http://www.fcviikingit.com/new/testimenu.php
This script contacts a DB and prints out the results as javascript to the
client browser. As I mentioned earlier It works ok with IE, FF, Netscape but
not with Opera. However the same script works with all mentioned browsers on
my test server.
I can't get this sorted!
Thanks
-W
"Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
># [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200:
>> Hello,
>>
>> I just noticed when I published a new menu system that it does NOT work
>> in
>> the ISP hosted server. However it works ok on my test server. Here's the
>> test I have done all in same client machine (=unchanged browser
>> settings):
>>
>> My test server:
>> IE6 & 7 ->OK
>> Opera 9.02 -> OK
>> Firefox ->OK
>>
>> ISP server:
>> IE6 & 7 ->OK
>> Opera 9.02 -> DOES NOT WORK!
>> Firefox ->OK
>>
>> The system relies on JS also I can see from the browser source code that
>> all
>> PHP has printed out all JS like it should but the menu is not printed to
>> browser. Could you give me some pointers how to troubleshoot this? It
>> must
>> be something server related but not folder or file rights according to my
>> testing.
>
> Might be a content-type issue. http://www.wireshark.org/
>
> --
> How many Vietnam vets does it take to screw in a light bulb?
> You don't know, man. You don't KNOW.
> Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
7 feb 2007 kl. 09.50 skrev William Stokes:
If there's an opera expert around could you please check out the
following
link:
http://www.fcviikingit.com/new/testimenu.php
This script contacts a DB and prints out the results as javascript
to the
client browser. As I mentioned earlier It works ok with IE, FF,
Netscape but
not with Opera. However the same script works with all mentioned
browsers on
my test server.
I can't get this sorted!
Thanks
-W
Opera 9.02 on Mac OS is fine, as far I can tell. However, I would
start by validating your html source.
Right now, your html code is little bit messed up.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fcviikingit.com%
2Fnew%2Ftestimenu.php
//frank
"Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
# [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200:
Hello,
I just noticed when I published a new menu system that it does
NOT work
in
the ISP hosted server. However it works ok on my test server.
Here's the
test I have done all in same client machine (=unchanged browser
settings):
My test server:
IE6 & 7 ->OK
Opera 9.02 -> OK
Firefox ->OK
ISP server:
IE6 & 7 ->OK
Opera 9.02 -> DOES NOT WORK!
Firefox ->OK
The system relies on JS also I can see from the browser source
code that
all
PHP has printed out all JS like it should but the menu is not
printed to
browser. Could you give me some pointers how to troubleshoot
this? It
must
be something server related but not folder or file rights
according to my
testing.
Might be a content-type issue. http://www.wireshark.org/
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thanks,
I got the html sorter and the page now passes validation. But still with
Opera 9.02 on WinXP nothing is printed out. (can see the javascript in the
source code though)
This must be some js shit. I just can't understand how the same script(s)
work with the same client pc/browser when the files are in my test server...
-W
"Frank Arensmeier" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
7 feb 2007 kl. 09.50 skrev William Stokes:
> If there's an opera expert around could you please check out the
> following
> link:
>
> http://www.fcviikingit.com/new/testimenu.php
>
> This script contacts a DB and prints out the results as javascript to the
> client browser. As I mentioned earlier It works ok with IE, FF, Netscape
> but
> not with Opera. However the same script works with all mentioned browsers
> on
> my test server.
>
> I can't get this sorted!
> Thanks
> -W
>
Opera 9.02 on Mac OS is fine, as far I can tell. However, I would
start by validating your html source.
Right now, your html code is little bit messed up.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fcviikingit.com%
2Fnew%2Ftestimenu.php
//frank
> "Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti
> viestissä:[EMAIL PROTECTED]
>> # [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200:
>>> Hello,
>>>
>>> I just noticed when I published a new menu system that it does NOT work
>>> in
>>> the ISP hosted server. However it works ok on my test server. Here's
>>> the
>>> test I have done all in same client machine (=unchanged browser
>>> settings):
>>>
>>> My test server:
>>> IE6 & 7 ->OK
>>> Opera 9.02 -> OK
>>> Firefox ->OK
>>>
>>> ISP server:
>>> IE6 & 7 ->OK
>>> Opera 9.02 -> DOES NOT WORK!
>>> Firefox ->OK
>>>
>>> The system relies on JS also I can see from the browser source code
>>> that
>>> all
>>> PHP has printed out all JS like it should but the menu is not printed
>>> to
>>> browser. Could you give me some pointers how to troubleshoot this? It
>>> must
>>> be something server related but not folder or file rights according to
>>> my
>>> testing.
>>
>> Might be a content-type issue. http://www.wireshark.org/
>>
>> --
>> How many Vietnam vets does it take to screw in a light bulb?
>> You don't know, man. You don't KNOW.
>> Cause you weren't THERE. http://bash.org/?255991
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
ShitSHitSHIT!!!
I had javascript disabled in Opera. The browsed just ignored it's own
settings while brosing my server??? Feeling stooooopid.
:O
-W
(Just costed me 3 hours)
""William Stokes"" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
> Thanks,
>
> I got the html sorter and the page now passes validation. But still with
> Opera 9.02 on WinXP nothing is printed out. (can see the javascript in the
> source code though)
>
> This must be some js shit. I just can't understand how the same script(s)
> work with the same client pc/browser when the files are in my test
> server...
>
> -W
>
>
> "Frank Arensmeier" <[EMAIL PROTECTED]> kirjoitti
> viestissä:[EMAIL PROTECTED]
> 7 feb 2007 kl. 09.50 skrev William Stokes:
>
>> If there's an opera expert around could you please check out the
>> following
>> link:
>>
>> http://www.fcviikingit.com/new/testimenu.php
>>
>> This script contacts a DB and prints out the results as javascript to
>> the
>> client browser. As I mentioned earlier It works ok with IE, FF, Netscape
>> but
>> not with Opera. However the same script works with all mentioned
>> browsers on
>> my test server.
>>
>> I can't get this sorted!
>> Thanks
>> -W
>>
>
> Opera 9.02 on Mac OS is fine, as far I can tell. However, I would
> start by validating your html source.
> Right now, your html code is little bit messed up.
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fcviikingit.com%
> 2Fnew%2Ftestimenu.php
> //frank
>
>> "Roman Neuhauser" <[EMAIL PROTECTED]> kirjoitti
>> viestissä:[EMAIL PROTECTED]
>>> # [EMAIL PROTECTED] / 2007-02-07 08:32:47 +0200:
>>>> Hello,
>>>>
>>>> I just noticed when I published a new menu system that it does NOT
>>>> work
>>>> in
>>>> the ISP hosted server. However it works ok on my test server. Here's
>>>> the
>>>> test I have done all in same client machine (=unchanged browser
>>>> settings):
>>>>
>>>> My test server:
>>>> IE6 & 7 ->OK
>>>> Opera 9.02 -> OK
>>>> Firefox ->OK
>>>>
>>>> ISP server:
>>>> IE6 & 7 ->OK
>>>> Opera 9.02 -> DOES NOT WORK!
>>>> Firefox ->OK
>>>>
>>>> The system relies on JS also I can see from the browser source code
>>>> that
>>>> all
>>>> PHP has printed out all JS like it should but the menu is not printed
>>>> to
>>>> browser. Could you give me some pointers how to troubleshoot this? It
>>>> must
>>>> be something server related but not folder or file rights according to
>>>> my
>>>> testing.
>>>
>>> Might be a content-type issue. http://www.wireshark.org/
>>>
>>> --
>>> How many Vietnam vets does it take to screw in a light bulb?
>>> You don't know, man. You don't KNOW.
>>> Cause you weren't THERE. http://bash.org/?255991
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
--- End Message ---
--- Begin Message ---
It appears to be working fine for me using Opera 8 and 9.10 on WinXP. Have
you fixed it?
If not, check your preferences in Opera. You may have JS disabled for
non-local sites or similar.
Edward
> -----Original Message-----
> From: William Stokes [mailto:[EMAIL PROTECTED]
> Sent: 07 February 2007 10:00
> To: [email protected]
> Subject: Re: [PHP] Opera advice needed!
>
>
> Thanks,
>
> I got the html sorter and the page now passes validation. But still with
> Opera 9.02 on WinXP nothing is printed out. (can see the
> javascript in the
> source code though)
>
> This must be some js shit. I just can't understand how the same script(s)
> work with the same client pc/browser when the files are in my
> test server...
>
> -W
>
>
>
--- End Message ---
--- Begin Message ---
On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote:
> ShitSHitSHIT!!!
>
> I had javascript disabled in Opera. The browsed just ignored it's own
> settings while brosing my server??? Feeling stooooopid.
While it works fine, I get a slew of warnings for your sloppy css since
you don't give units to a whole bunch of width settings :)
CSS - http://www.fcviikingit.com/new/testimenu.php
HTML style attribute
Invalid value for property: width
Line 1:
width:135;
Unfortunately the line information is usually crap in opera.
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 ---
William Stokes wrote:
Hello,
I just noticed when I published a new menu system that it does NOT work in
the ISP hosted server. However it works ok on my test server. Here's the
test I have done all in same client machine (=unchanged browser settings):
works fine in opera 9.10 ubuntu edgy eft.
clive
--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
> On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote:
>> ShitSHitSHIT!!!
>>
>> I had javascript disabled in Opera. The browsed just ignored it's own
>> settings while brosing my server??? Feeling stooooopid.
>
> While it works fine, I get a slew of warnings for your sloppy css since
> you don't give units to a whole bunch of width settings :)
>
> CSS - http://www.fcviikingit.com/new/testimenu.php
> HTML style attribute
> Invalid value for property: width
> Line 1:
> width:135;
>
> Unfortunately the line information is usually crap in opera.
the words "the line information" are like a lego brick, in so far that
you can plugin just about any combination of words in it's place
and the sentence still makes sense :-P
>
> Cheers,
> Rob.
--- End Message ---
--- Begin Message ---
Hey all,
I installed a new server with PHP5, but then had to
revert to PHP4 (attempted anyway) on a FreeBSD 6.0
install. I have PHP4 compiled, both the main BSD
port of lang/php4 and all of the extensions
individually.
However, the extensions, including basic ones like
MySQL are not getting loaded.
I have an identical server that is working fine that
was built some time ago, and the only difference I
can see is that the working server as options file
listed in
/var/db/ports/php4-extensions
The server that is not working had a smaller file in
/var/db/ports/php4
That did not list the additional extensions I
compiled individually.
The output of phpinfo() can be seen on each server at
bigskypenguin.com/info.php (working)
venomouspenguin.com/info.php (not working)
You can see that the venomouspenguin.com server the
extensions are not showing up, but I am certain they
are compiled and installed, because the make (s)
tell me so.
What I need to do is get Apache looking at a
/var/db/ports/php4-extensions
directory, which I did create with the options file
listing all the extensions I built individually.
Can someone tell me how this can be done? How I can
tell Apache to load the extensions in that directory?
It is way too late, I am way too exhausted and going
to bed.
Thanks so much for any help. I've been tracking this
down a bit chunk of the day and my brain is now
total guacamole.
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
=-=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatile
PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com
--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2007-02-07 00:00:57 -0700:
> What I need to do is get Apache looking at a
>
> /var/db/ports/php4-extensions
>
> directory, which I did create with the options file
> listing all the extensions I built individually.
>
> Can someone tell me how this can be done? How I can
> tell Apache to load the extensions in that directory?
/var/db/ports is a cache directory for the FreeBSD port system
configuration, Apache itself doesn't use is in any way.
Anyway, OT for this list, please use [EMAIL PROTECTED]
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--- End Message ---
--- Begin Message ---
Hi,
A campus web server (not under my control) returns an authentication
string in a cookie named AUTH. The cookie's value is an encrypted,
base64 encoded string. Unfortunately, when I examine $_COOKIE['AUTH'],
it is clear that all of the '+' characters have been replaced with a ' '
character in the base64 string. Why is this? Obviously, this corrupts
the data and makes it impossible to base64-decode the string correctly.
I believe this is a php issue and not, say, an apache issue because a
perl program can correctly authenticate the same cookie based on perl's
$ENV{'HTTP_COOKIE'}. i.e., the perl cookie contains the original '+'.
Does anyone know how to make php (v5.1.5) do the right thing with base64
encoded cookies?
Thanks
Fletcher
--- End Message ---
--- Begin Message ---
Hello Fletcher Mattox,
urlencode the string before set the cookie
or
replace array(' ',urlencode('/')) to array('+','/')
Best regards,
======= At 2007-02-07, 15:59:13 you wrote: =======
>Hi,
>
>A campus web server (not under my control) returns an authentication
>string in a cookie named AUTH. The cookie's value is an encrypted,
>base64 encoded string. Unfortunately, when I examine $_COOKIE['AUTH'],
>it is clear that all of the '+' characters have been replaced with a ' '
>character in the base64 string. Why is this? Obviously, this corrupts
>the data and makes it impossible to base64-decode the string correctly.
>I believe this is a php issue and not, say, an apache issue because a
>perl program can correctly authenticate the same cookie based on perl's
>$ENV{'HTTP_COOKIE'}. i.e., the perl cookie contains the original '+'.
>Does anyone know how to make php (v5.1.5) do the right thing with base64
>encoded cookies?
>
>Thanks
>Fletcher
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
= = = = = = = = = = = = = = = = = = = =
Nicholas Yim
[EMAIL PROTECTED]
2007-02-07
--- End Message ---
--- Begin Message ---
Are you a spammer? (I found your email on a spammer website!?!)
--- End Message ---
--- Begin Message ---
what's this qustion ??? where ?
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 07, 2007 9:34 AM
Subject: [PHP] Spamed?
Are you a spammer? (I found your email on a spammer website!?!)
--------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
ok, Fabio tour computer is infected by W32/MyDoom-AR (worm)
http://www.sophos.fr/security/analyses/w32mydoomar.html
----- Original Message -----
From: "Sébastien WENSKE" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[email protected]>
Sent: Wednesday, February 07, 2007 9:39 AM
Subject: Re: [PHP] Spamed?
what's this qustion ??? where ?
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, February 07, 2007 9:34 AM
Subject: [PHP] Spamed?
Are you a spammer? (I found your email on a spammer website!?!)
--------------------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Robert Cummings skrev:
On Tue, 2007-02-06 at 23:45 +0100, Keryx Web wrote:
Could you point out to me where exactly the discussion became about PHP4
versus PHP5? I seem to be smelling the red herring technique of changing
the conversation focus so as to inappropriately lend credence to the
initial argument because the secondary red herring argument can be
argued more in your favour despite its irrelevance.
The thread was started by Eric Gorr who wrote:
<blockquote>I haven't tracked this particular issue, but I know when
PHP5 was first released is wasn't recommended in a commercial/production
environment. However, a lot of time has passed and we're at v5.2
now...have things changed? Have Google&Yahoo, for example, moved to
PHP5? Or is PHP4 still the recommendation for such environments?
</blockquote>
Since I am unaware of what version of PHP Yahoo mainly uses (I've heard
some of their developers talk, and they use PHP 5) and since Google
seems to be a Java shop, I took the liberty of giving my oiwn view of
why PHP should be used for professional development.
And I said that for reasons of security and performance prepared
statements usually are the best way of interacting with a DBMS. To me
they are the main reason why I shun PHP 4 when developing new apps.
Other things I personally like about PHP 5:
- The OO model.
- Tidy 2.0
- All things XML (Simple, DOM, Reader, now also Writer, etc)
- Assign by reference in foreach loops
Can a professional app be developed without these? Probably, but why
limit your arsenal?
Lars Gunther
--- End Message ---
--- Begin Message ---
On Wed, 2007-02-07 at 09:47 +0100, Lars Gunther wrote:
> Robert Cummings skrev:
> > On Tue, 2007-02-06 at 23:45 +0100, Keryx Web wrote:
> > Could you point out to me where exactly the discussion became about PHP4
> > versus PHP5? I seem to be smelling the red herring technique of changing
> > the conversation focus so as to inappropriately lend credence to the
> > initial argument because the secondary red herring argument can be
> > argued more in your favour despite its irrelevance.
>
> The thread was started by Eric Gorr who wrote:
>
> <blockquote>I haven't tracked this particular issue, but I know when
> PHP5 was first released is wasn't recommended in a commercial/production
> environment. However, a lot of time has passed and we're at v5.2
> now...have things changed? Have Google&Yahoo, for example, moved to
> PHP5? Or is PHP4 still the recommendation for such environments?
> </blockquote>
Ah, quite true, though our particular branch wasn't about this :)
> Since I am unaware of what version of PHP Yahoo mainly uses (I've heard
> some of their developers talk, and they use PHP 5) and since Google
> seems to be a Java shop, I took the liberty of giving my oiwn view of
> why PHP should be used for professional development.
>
> And I said that for reasons of security and performance prepared
> statements usually are the best way of interacting with a DBMS. To me
> they are the main reason why I shun PHP 4 when developing new apps.
>
> Other things I personally like about PHP 5:
> - The OO model.
> - Tidy 2.0
> - All things XML (Simple, DOM, Reader, now also Writer, etc)
> - Assign by reference in foreach loops
>
> Can a professional app be developed without these? Probably, but why
> limit your arsenal?
You make a decent point, but then, due to the Turing complete nature of
languages anything PHP5 can do PHP4 can also do. And since PHP5 has a
smaller adoption arena and PHP5 can with run PHP4 apps (with some
attention to detail), why limit your audience?
As you can see, there are pros and cons to either decision and much
depends on your focus.
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 ---
Hey all!
Quick question (and hopefully a simple one)
I have a link on a page, when the client clicks that link it should show them a
JS prompt and ask for their name (so far I have done this)
When they write their name, I want that data to be sent to my php script via
AJAX (yes?) so the page does not reload or anything.... (actually, how can i
reload the page to reflect the change?)
I have googled but I see whole ajax classes and what not, I dont know if I am
using the correct keywords or what... you would happen to have a working piece
of code that you could share with me.. would you?
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
--- End Message ---
--- Begin Message ---
Ryan A wrote:
Hey all!
Quick question (and hopefully a simple one)
I have a link on a page, when the client clicks that link it should show them a
JS prompt and ask for their name (so far I have done this)
When they write their name, I want that data to be sent to my php script via
AJAX (yes?) so the page does not reload or anything.... (actually, how can i
reload the page to reflect the change?)
I have googled but I see whole ajax classes and what not, I dont know if I am
using the correct keywords or what... you would happen to have a working piece
of code that you could share with me.. would you?
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
Google Ajax How-to or Ajax How-to POST
The 3rd or 4th item for plain how-to is:
http://swik.net/Ajax/How+to+use+XMLHttpRequest
This first item for how-to POST:
http://www.captain.at/howto-ajax-form-post-request.php
--
_____________________
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/
--- End Message ---