php-general Digest 18 May 2008 05:18:25 -0000 Issue 5465

2008-05-17 Thread php-general-digest-help
php-general Digest 18 May 2008 05:18:25 - Issue 5465 Topics (messages 274469 through 274479): Persistent state applications 274469 by: James Colannino 274470 by: tedd 274471 by: Eric Butera 274472 by: James Colannino 274473 by: Larry Garfield

[PHP] String searching

2008-05-17 Thread Chris W
I need to find the position of the first character in the string (searching from the end) that is not one of the characters in a set. In this case the set is [0-9a-zA-z-_] I guess to be even more specific, I want to split a string into to parts the first part can contain anything and the second

Re: [PHP] String searching

2008-05-17 Thread Daniel Brown
On Sat, May 17, 2008 at 2:17 AM, Chris W [EMAIL PROTECTED] wrote: I need to find the position of the first character in the string (searching from the end) that is not one of the characters in a set. In this case the set is [0-9a-zA-z-_] To find the position of a specific character, RTFM

Re: [PHP] String searching

2008-05-17 Thread Richard Heyes
Chris W wrote: I need to find the position of the first character in the string (searching from the end) that is not one of the characters in a set. In this case the set is [0-9a-zA-z-_] I guess to be even more specific, I want to split a string into to parts the first part can contain

Re: [PHP] Threads PHP

2008-05-17 Thread Per Jessen
Richard Heyes wrote: Summary: experimental implementation of threads The word experimental makes me shudder. PHP and threads in the same sentence make me shudder too. There are just some things you shouldn't do with an interpreted language IMHO. /Per Jessen, Zürich -- PHP General

[PHP] euro currency convert

2008-05-17 Thread Yui Hiroaki
hi! Does anyone know how to convert euro ? For example; French to German, Italy to French currency so on. Regards, Yi\ui -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: euro currency convert

2008-05-17 Thread M. Sokolewicz
Yui Hiroaki wrote: hi! Does anyone know how to convert euro ? For example; French to German, Italy to French currency so on. Regards, Yi\ui I must be missing something, but the French Euro is the exact same currency as the German Euro, as is the Italian euro. There is nothing to

[PHP] Persistent state applications

2008-05-17 Thread James Colannino
Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive me if it's too broad in scope.) Basically, I'd like to be able to have a single PHP application that remembers its state as users click on links. When the user clicks on a link, though, the user unavoidably

Re: [PHP] Persistent state applications

2008-05-17 Thread tedd
At 12:34 PM -0700 5/17/08, James Colannino wrote: Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive me if it's too broad in scope.) Basically, I'd like to be able to have a single PHP application that remembers its state as users click on links. When the user

Re: [PHP] Persistent state applications

2008-05-17 Thread Eric Butera
On Sat, May 17, 2008 at 3:34 PM, James Colannino [EMAIL PROTECTED] wrote: Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive me if it's too broad in scope.) Basically, I'd like to be able to have a single PHP application that remembers its state as users click on

Re: [PHP] Persistent state applications

2008-05-17 Thread James Colannino
tedd wrote: James: Hey tedd, thanks for the response! 1. A $_SESSION variable; After googling briefly on the subject of sessions, it looks like this is probably the way I'd want to go. I like this idea, because I can modularize the code and call different php scripts for different

Re: [PHP] Persistent state applications

2008-05-17 Thread Larry Garfield
1) PHP applications are built on the concept of shared-nothing. Every page request is, and should be, entirely independent of another. That is by design. It's weird if you're used to stateful programming (desktop, JSP, etc.), but it is actually very powerful. 2) If you really need to

Re: [PHP] Persistent state applications

2008-05-17 Thread Eric Butera
On Sat, May 17, 2008 at 4:22 PM, James Colannino [EMAIL PROTECTED] wrote: I'm assuming that a session will last as long as the browser is open (or until it's explicitly destroyed), correct? Are there any security issues I should be aware of? Since there's a login, I'd be serving this over

Re: [PHP] Persistent state applications

2008-05-17 Thread tedd
At 1:22 PM -0700 5/17/08, James Colannino wrote: tedd wrote: James: Hey tedd, thanks for the response! 1. A $_SESSION variable; After googling briefly on the subject of sessions, it looks like this is probably the way I'd want to go. I like this idea, because I can modularize the code

Re: [PHP] Persistent state applications

2008-05-17 Thread Al
Ive starting using Pear cache_lite(). Works great for maintaining stuff between page refreshes. You can set the retention time to anything reasonable. tedd wrote: At 12:34 PM -0700 5/17/08, James Colannino wrote: Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive

[PHP] urlencode and urldecode

2008-05-17 Thread Chris W
Whenever you build a query string you need to us the urlencode to encode any characters that may be in there that aren't legal for a URL. On the server I am using now, when you access values using $_GET['xyz'], it does the urldecode for you. I'm not positive, but I am pretty sure, that at

[PHP] php training institutes

2008-05-17 Thread Sudhakar
hi can anyone suggest a best training institute to learn advanced php in INDIA and the city name is HYDERABAD. please advice. thanks.

Re: [PHP] php training institutes

2008-05-17 Thread Dan Joseph
On Sat, May 17, 2008 at 6:22 PM, Sudhakar [EMAIL PROTECTED] wrote: hi can anyone suggest a best training institute to learn advanced php in INDIA and the city name is HYDERABAD. please advice. thanks. Yeah -- this list, and php.net. You'll have all the resources you'll need to learn