Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-04 Thread Jochem Maas
Ben Edwards schreef: Our server has just been upgraded to PHP 5.2.5 and suddenly I am getting the following error: Fatal error: Call to a member function web_order_change() on a non-object in /var/www/vhosts/cultureshop.org/httpdocs/cart.php on line 32 The code is:

RE: [PHP] Crop part of existing pdf

2008-03-04 Thread gary liang
e.g. Draw a box in the middle of page with mouse, then crop it. CC: php-general@lists.php.net From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 3 Mar 2008 22:25:07 -0800 Subject: Re: [PHP] Crop part of existing pdf On Mar 3, 2008, at

Re: [PHP] imap_setflags_full Seen

2008-03-04 Thread Jochem Maas
Richard Lynch schreef: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); 3 things: 1. shouldn't it be ST_UID iso FT_UID? 2. the imap bos is opened readonly? 3. er ... I l-i-e-d :-) to mark a message as read It does not

Re: [PHP] PHP performance

2008-03-04 Thread Jochem Maas
Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris [EMAIL PROTECTED] wrote: Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all adds up. If you remove it, then you remove functionality - so before you go and rip it

RES: [PHP] PHP performance

2008-03-04 Thread Thiago Pojda
-Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris [EMAIL PROTECTED] wrote: Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all adds up. If you

[PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too basic. I¹m a bit new to php. The first question has to

Re: RES: [PHP] PHP performance

2008-03-04 Thread Nathan Rixham
Thiago Pojda wrote: -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris [EMAIL PROTECTED] wrote: Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all

[PHP] Re: 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Nathan Rixham
Svevo Romano wrote: Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too basic. I¹m a bit new to php. The

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Jochem Maas
Svevo Romano schreef: Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too basic. I¹m a bit new to php. The

Re: [PHP] PHP performance

2008-03-04 Thread Eric Butera
On Tue, Mar 4, 2008 at 5:51 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris [EMAIL PROTECTED] wrote: Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all adds up.

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-04 Thread Eric Butera
On Tue, Mar 4, 2008 at 5:09 AM, Jochem Maas [EMAIL PROTECTED] wrote: Ben Edwards schreef: Our server has just been upgraded to PHP 5.2.5 and suddenly I am getting the following error: Fatal error: Call to a member function web_order_change() on a non-object in

[PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jochem Maas
hi people, hi Stut! Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could give an idea about the write way to

RE: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jay Blanchard
[snip] Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could give an idea about the write way to do it in terms

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 14:05, Jay Blanchard wrote: [snip] Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Bojan Tesanovic
Hi, It depends what do you need to track, if you need to track small amount of variables you can do it by cookie I often use it eg here is the state for one user $state = array{ 'logedin'=true, 'n'='Peter', 'id'='5', //anything else you need } //at end of you script before outputing any content

Re: [PHP] Get country from Phone number

2008-03-04 Thread Jim Lucas
Dani Castaños wrote: As a little project, I took the link provided by the other Rob and make this little search tool. It only looks at the beginning numbers. It does no number validation. I don't validate the length of the number. ie: I would have to know the min/max lenth of each phone

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread tedd
At 4:42 PM -0500 3/3/08, Daniel Brown wrote: On Mon, Mar 3, 2008 at 3:13 PM, Keikonium [EMAIL PROTECTED] wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 10:44 AM, tedd [EMAIL PROTECTED] wrote: While people are giving demo's, check this out: http://webbytedd.com/c/access-color/ The code is there, it's javascript. Ooh, it's purdy and shiny and I like it. -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me

Re: [PHP] Making sure an include file works

2008-03-04 Thread tedd
At 6:58 PM -0800 2/28/08, Richard S. Crawford wrote: I'm trying to figure out a way to make sure an included PHP file has no syntax errors before actually including it as a part of project. Is this even possible? I'm running into brick walls. I'm not sure if this is what you are asking for,

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done. Is it done yet? -- /Dan Daniel P. Brown Senior Unix

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Hi there, Many thanks for your answer. I've also gone through your example and it took me 10 minutes to understand how the operator precedence was working there. Was expecting 1 on the first call :) But this is not the point. You've nailed my question very preciseley in your first answer: 'the

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 7:16 AM, Svevo Romano [EMAIL PROTECTED] wrote: The second question has to do with the online manual. I¹ve found several things on that manual specified in comments and not in the actual manual part of it. What is the nature of the manual? Contributions from voluteers?

Re: [PHP] Making sure an include file works

2008-03-04 Thread tedd
At 7:52 PM + 2/29/08, Richard Heyes wrote: 1. My host does not allow command line access and has disabled shell execution of PHP; 2. Error reporting has been turned off and I can't seem to turn that on with ini_set or error_reporting (which is fun when I have minor syntax errors to fix);

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jason Pruim
On Mar 4, 2008, at 11:11 AM, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 16:11, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread David Giragosian
I would hazard a guess that the 'static' keyword and functionality comes from ANSI C. I just pulled The C Programming Language by Kernighan and Ritchie from the book case and it is described there in it. Essential book, by the way, IMHO. -- -David. When the power of love overcomes the love of

RE: [PHP] GPS Locator

2008-03-04 Thread Bastien Koert
http://www.phpclasses.org/browse/package/3507.html bastien Date: Tue, 4 Mar 2008 10:18:15 -0600 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] GPS Locator Howdy group! I know that this is not a PHP question (but it will work with a PHP app) but I thought I would ask

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jochem Maas
Daniel Brown schreef: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Just one word, Thanks :) S In 4/3/08 16:22, David Giragosian, [EMAIL PROTECTED] ha scritto I would hazard a guess that the 'static' keyword and functionality comes from ANSI C. I just pulled The C Programming Language by Kernighan and Ritchie from the book case and it is described there in

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:12 AM, Svevo Romano [EMAIL PROTECTED] wrote: Still, I jusy wonder how Jochem knew that the line is only executed the first time a function is called while this info is not available on the online manual. It's maybe all about how close you are to the community and how

[PHP] GPS Locator

2008-03-04 Thread Jay Blanchard
Howdy group! I know that this is not a PHP question (but it will work with a PHP app) but I thought I would ask the smartest group of people I know if they have any clue or would be familiar with a device I can use. I need to purchase a small GPS receiver/antenna that will plug into a USB port.

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:14 AM, Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: You're full of crap. I have a day job, too, but I still feel like I spend half of my time reading and responding to list posts. ;-P you should check the stats mail you send out ... I think

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Hi Daniel, Many thanks to you as well. I really appreciate your effort in answering my queries guys. It means I'll do my best with books and the online manual. And today I've probably found the best resource. The community! Still, I jusy wonder how Jochem knew that the line is only executed the

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Jochem Maas
Stut schreef: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done.

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done. Is it done yet?

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Jochem Maas
Svevo Romano schreef: Hi there, Many thanks for your answer. I've also gone through your example and it took me 10 minutes to understand how the operator precedence was working there. Was expecting 1 on the first call :) But this is not the point. You've nailed my question very preciseley in

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Ok Jochem, It makes a lot of sense. Now I know what I can expect from the manual and what kind of approach I should have. I hope to contribute as well in the future. Many thanks, S In 4/3/08 16:11, Jochem Maas, [EMAIL PROTECTED] ha scritto Svevo Romano schreef: Hi there, Many thanks for

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread Jim Lucas
Along the lines of tedd, I will share this one. http://www.colourlovers.com/blog/2008/01/16/free-advanced-dhtml-color-picker/ -- 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

[PHP] RE:

2008-03-04 Thread Jay Blanchard
[snip] Tell me please before what operation system You will use ? Linux or Windows? There are different ways to do You task ☺ [/snip] The GPS device will be attached to computers using a Windows operating system.

Re: [PHP] imap_setflags_full Seen

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 4:26 am, Jochem Maas wrote: Richard Lynch schreef: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); 3 things: 1. shouldn't it be ST_UID iso FT_UID? Yes, it should... Fixed that, but no better.

RES: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Thiago Pojda
-Mensagem original- De: Svevo Romano [mailto:[EMAIL PROTECTED] Hi there, Many thanks for your answer. I've also gone through your example and it took me 10 minutes to understand how the operator precedence was working there. Was expecting 1 on the first call :) But this is not the

Re: [PHP] GPS Locator

2008-03-04 Thread Danny Brow
Wintec makes a nice unit. http://www.wintec.com.tw/en/home.php But you are screwed if the system is in doors. I doubt you would get a GPS signal inside a building. Dan On Tue, 2008-03-04 at 10:18 -0600, Jay Blanchard wrote: Howdy group! I know that this is not a PHP question (but it will

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread tedd
At 4:12 PM + 3/4/08, Svevo Romano wrote: Hi Daniel, Many thanks to you as well. I really appreciate your effort in answering my queries guys. It means I'll do my best with books and the online manual. And today I've probably found the best resource. The community! Still, I jusy wonder how

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:22 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Mar 4, 2008, at 11:11 AM, Daniel Brown wrote: You're full of crap. I have a day job, too, but I still feel like I spend half of my time reading and responding to list posts. ;-P Ummm... Mr. Brown... I'm pretty

[PHP] RE:

2008-03-04 Thread tedd
At 10:48 AM -0600 3/4/08, Jay Blanchard wrote: [snip] Tell me please before what operation system You will use ? Linux or Windows? There are different ways to do You task ? [/snip] The GPS device will be attached to computers using a Windows operating system. That makes sense, they usually

Re: [PHP] imap_setflags_full Seen

2008-03-04 Thread Jochem Maas
Richard Lynch schreef: On Tue, March 4, 2008 4:26 am, Jochem Maas wrote: Richard Lynch schreef: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); 3 things: 1. shouldn't it be ST_UID iso FT_UID? Yes, it should... Fixed

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread tedd
At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time with the pre-wife? You're working on wife 1.0 beta -- wait

Re: [PHP] Making sure an include file works

2008-03-04 Thread tedd
At 12:05 PM -0500 3/4/08, Daniel Brown wrote: No, that would work fine in any case. In fact, code should always be thoroughly tested before going into production. Yeah, but that rules out all the fun. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Sometimes I wonder why I even started programming...

2008-03-04 Thread tedd
At 12:36 PM -0500 2/28/08, Eric Butera wrote: And I'd appreciate it if you kept all your posts about wearing dresses to yourself but it isn't going to happen. :) What ain't going to happen-- him posting or wearing dresses? tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Making sure an include file works

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 11:29 AM, Mike Potter [EMAIL PROTECTED] wrote: On Fri, Feb 29, 2008 at 2:25 PM, Daniel Brown wrote: On Thu, Feb 28, 2008 at 9:58 PM, Richard S. Crawford I'm trying to figure out a way to make sure an included PHP file has no syntax errors before actually

Re: [PHP] imap_setflags_full Seen

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 11:15 am, Jochem Maas wrote: Richard Lynch schreef: On Tue, March 4, 2008 4:26 am, Jochem Maas wrote: Richard Lynch schreef: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); 2. the imap bos is

Re: [PHP] Sometimes I wonder why I even started programming...

2008-03-04 Thread tedd
At 1:18 PM -0500 2/28/08, Daniel Brown wrote: There is a time and a place to presume at least a small piece of intelligence on behalf of the poster. And when does that happen? It never happens when I post things. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] GPS Locator

2008-03-04 Thread Richard Lynch
Almost for sure, browser security will not let you do this in a web browser. You'll probably have to write a custom desktop C application, or get the user to install some kind of glue widget... PEAR|PECL *might* have some USB stuff in a library you could use to write the PHP desktop widget and

Re: [PHP] string effect

2008-03-04 Thread tedd
At 9:51 PM +0100 2/29/08, Alain Roger wrote: What is the basic rule ? Text is cut off based on (numbers of words, number of characters,..) ? Yes. Use whatever you want. You can use the number characters or find the last *space* in a string that's just long enough to fit your limit. Let's

Re: [PHP] GPS Locator

2008-03-04 Thread Paul Scott
On Tue, 2008-03-04 at 11:42 -0600, Richard Lynch wrote: Almost for sure, browser security will not let you do this in a web browser. You'll probably have to write a custom desktop C application, or get the user to install some kind of glue widget... PEAR|PECL *might* have some USB stuff

Re: [PHP] imap_setflags_full Seen

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 11:39 am, Richard Lynch wrote: On Tue, March 4, 2008 11:15 am, Jochem Maas wrote: Richard Lynch schreef: On Tue, March 4, 2008 4:26 am, Jochem Maas wrote: Richard Lynch schreef: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to

Re: [PHP] imap_setflags_full Seen

2008-03-04 Thread Jochem Maas
Richard Lynch schreef: On Tue, March 4, 2008 11:39 am, Richard Lynch wrote: On Tue, March 4, 2008 11:15 am, Jochem Maas wrote: Richard Lynch schreef: On Tue, March 4, 2008 4:26 am, Jochem Maas wrote: Richard Lynch schreef: I am trying to use this: imap_setflag_full($imap, $uid, Seen,

Re: [PHP] imap_setflags_full Seen [SOLVED]

2008-03-04 Thread Richard Lynch
On Mon, March 3, 2008 7:04 pm, Richard Lynch wrote: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); to mark a message as read Ah-ha!!! The docs specify for Flags that the values are: \\Seen \\Answered... But the actual

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Nathan Rixham
tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time with the pre-wife? You're working on wife 1.0

Re: [PHP] imap_setflags_full Seen [SOLVED]

2008-03-04 Thread Jochem Maas
Richard Lynch schreef: On Mon, March 3, 2008 7:04 pm, Richard Lynch wrote: I am trying to use this: imap_setflag_full($imap, $uid, Seen, FT_UID) or die(Unable to mark message as \\Seen); to mark a message as read Ah-ha!!! The docs specify for Flags that the values are: \\Seen

Re: [PHP] Text Color

2008-03-04 Thread tedd
At 10:21 AM -0500 2/29/08, Jason Pruim wrote: On Feb 29, 2008, at 10:07 AM, Richard Heyes wrote: echo TRTD.$myrow[char_name].TD.$myrow[char_level].TD.$class[class].TD.$myrow[kara].TD.$myrow[karateam].TD.$myrow[karasub]; Either CSS styling or the dreaded HTML font color=\#FF\

Re: [PHP] Text Color

2008-03-04 Thread tedd
At 10:29 AM -0500 2/29/08, Andrew Ballard wrote: Let's just get all purist and go back to the class=highlight so we don't find ourselves a year later with a stylesheet that includes .red { color: green; } That's much less likely than: .thisIsFridaysColor { color: green; } The

Re: [PHP] Text Color

2008-03-04 Thread tedd
At 10:44 AM -0500 2/29/08, Daniel Brown wrote: On Fri, Feb 29, 2008 at 10:29 AM, Andrew Ballard [EMAIL PROTECTED] wrote: On Fri, Feb 29, 2008 at 10:21 AM, Jason Pruim [EMAIL PROTECTED] wrote: style .red { color: red; } /style Let's just get all

Re: [PHP] Text Color

2008-03-04 Thread tedd
TRTD.$myrow[char_name].TD.$myrow[char_level].TD.$class[class].TD.$myrow[kara].TD.$myrow[karateam].TD.$myrow[karasub]; Either CSS styling or the dreaded HTML font color=\#FF\ /.$myrow['char_name']./font tags. But you should use CSS: echo 'trtd style=color: red' ... Everyone:

Re: [PHP] PHP performance

2008-03-04 Thread Jochem Maas
Eric Butera schreef: On Tue, Mar 4, 2008 at 5:51 AM, Jochem Maas [EMAIL PROTECTED] wrote: Eric Butera schreef: ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Jochem, This is probably true. I was just referring to an old

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread tedd
At 6:05 PM + 3/4/08, Nathan Rixham wrote: tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time

Re: [PHP] imap_setflags_full Seen [SOLVED]

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 1:04 PM, Richard Lynch [EMAIL PROTECTED] wrote: I've added a note and submitted a Docs bug report. I submitted a patch about a half-hour ago. I don't have karma to the phpdocs tree, so Phillip or Hannes will probably take care of it in a little while. -- /Dan

[PHP] regular expressions question

2008-03-04 Thread Adil Drissi
Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted. I tried eregi('[a-z]', $fname) but this allows the

Re: [PHP] regular expressions question

2008-03-04 Thread David Giragosian
On 3/4/08, Adil Drissi [EMAIL PROTECTED] wrote: Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted.

Re: [PHP] regular expressions question

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 2:19 PM, Adil Drissi [EMAIL PROTECTED] wrote: Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this

[PHP] Re: regular expressions question

2008-03-04 Thread Shawn McKenzie
Adil Drissi wrote: Hi, Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted. I tried eregi('[a-z]',

Re: [PHP] regular expressions question

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote: Is there any way to limit the user to a set of characters for example say i want my user to enter any character between a and z (case insensitive). And if the user enters just one letter not belonging to [a-z], this will not be accepted. I

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 8:22 am, Bojan Tesanovic wrote: Hi, It depends what do you need to track, if you need to track small amount of variables you can do it by cookie I often use it eg here is the state for one user $state = array{ 'logedin'=true, 'n'='Peter', 'id'='5', //anything else

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 10:22 am, Jason Pruim wrote: On Mar 4, 2008, at 11:11 AM, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 6:16 am, Svevo Romano wrote: Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too

Re: [PHP] mail() function HELP

2008-03-04 Thread Stut
On 4 Mar 2008, at 21:18, Sofia Jacob (CA) wrote: I'm getting problems with the mail() function. ERROR: Warning: mail() [function.mail]: Failed to connect to mailserver at port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in

[PHP] Re: mail() function HELP

2008-03-04 Thread Shawn McKenzie
Sofia Jacob (CA) wrote: I'm getting problems with the mail() function. ERROR: Warning: mail() [function.mail]: Failed to connect to mailserver at port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\wamp\www\php_sandbox\user_auth_fns.php on line 170

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Richard Lynch
On Tue, March 4, 2008 10:12 am, Svevo Romano wrote: Still, I jusy wonder how Jochem knew that the line is only executed the first time a function is called while this info is not available on the online manual. It's maybe all about how close you are to the community and how many degrees are

Re: [PHP] mail() function HELP

2008-03-04 Thread Shawn McKenzie
Stut wrote: On 4 Mar 2008, at 21:18, Sofia Jacob (CA) wrote: I'm getting problems with the mail() function. ERROR: Warning: mail() [function.mail]: Failed to connect to mailserver at port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in

Re: [PHP] Fatal error: Call to a member function web_order_change() on a non-object

2008-03-04 Thread Richard Lynch
register_globals got turned off. All your $_SESSION variables (in your case, $_SESSION['SESSION']) need to be reference explicitly now. Add this at the top: $SESSION = $_SESSION['SESSION']; right after session_start(); On Mon, March 3, 2008 5:48 pm, Chris wrote: Ben Edwards wrote: Our server

RE: [PHP] Crop part of existing pdf

2008-03-04 Thread gary liang
Ya, you are right. So there is no non-commercial option? Date: Tue, 4 Mar 2008 16:06:42 -0600 Subject: Re: [PHP] Crop part of existing pdf From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: php-general@lists.php.net On Mon, March 3, 2008 8:14 pm, gary liang wrote: Is there any command

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Daniel Brown
On Tue, Mar 4, 2008 at 5:05 PM, Richard Lynch [EMAIL PROTECTED] wrote: After you've learned a couple computer languages, the rest are mostly about differences and gotchas rather than learning something new. Ok, except the Lisp/Scheme/Prolog stuff, where you have to think inside-out. :-)

Re: [PHP] mail() function HELP

2008-03-04 Thread Stut
Please include the list when replying. And please don't top-post, it makes proper quoting difficult. On 4 Mar 2008, at 22:10, Sofia Jacob (CA) wrote: Yes, I did that first and I get the error: Warning: mail() [function.mail]: Failed to connect to mailserver at mail.yahoo.ca port 465,

Re: [PHP] Crop part of existing pdf

2008-03-04 Thread Richard Lynch
On Mon, March 3, 2008 8:14 pm, gary liang wrote: Is there any command line tool, which is able to crop part of pdf file? I ask for command line tool, because it can be used in php code. Any hint? The commercial version of phpLib might do that. -- Some people have a gift link here. Know what

RE: [PHP] GPS Locator

2008-03-04 Thread Daevid Vincent
While this has deteriorated way off topic from PHP, I will just mention that I've purchased several GPS from these cats and had great luck: http://www.buygpsnow.com You *might* be able to write a custom PHP extension that you compile into PHP that can access the USB/Serial port as well. (and if

Re: [PHP] mail() function HELP

2008-03-04 Thread Shawn McKenzie
Stut wrote: Please include the list when replying. And please don't top-post, it makes proper quoting difficult. On 4 Mar 2008, at 22:10, Sofia Jacob (CA) wrote: Yes, I did that first and I get the error: Warning: mail() [function.mail]: Failed to connect to mailserver at mail.yahoo.ca

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread Richard Lynch
for ($red = 0; $red 256; $red++){ for ($green = 0; $green 256; $green++){ for ($blue = 0; $blue 256; $blue++){ $output = EOC \$drawrect(\$get... EOC; } } } On Mon, March 3, 2008 2:13 pm, Keikonium wrote: This may not be exactly what you think, but I didn't know how else to

Re: [PHP] PHP performance

2008-03-04 Thread Richard Lynch
#1 Get the code, install it on a box in the closet, run valgrind --callgrind This will give you a stack trace of what gets called the MOST in your application. Look for tall trees in the call graph, and fix those first. #2 You can use 'ab' (apache benchmark) or similar to test it externally.

Re: [PHP] Weird Zend IDE Issue

2008-03-04 Thread Richard Lynch
On Mon, March 3, 2008 10:49 am, Jochem Maas wrote: Richard Lynch schreef: On Sun, March 2, 2008 11:07 pm, Steve Finkelstein wrote: Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1

Re: [PHP] Question about PHP Licence and it's future!

2008-03-04 Thread Richard Lynch
On Sat, February 23, 2008 10:50 pm, Tamer Higazi wrote: I have asked myself a question. After I saw, that SAP will no more release future Versions of their open source Database MaxDB under the GPL License, I have asked myself either if this could happen with PHP. No. For starters, all the

Re: [PHP] regular expressions question

2008-03-04 Thread Adil Drissi
Thank you guys, The answers you gave me not only solved the problem, but i included more characters like space and -. Thank you again --- Richard Lynch [EMAIL PROTECTED] wrote: On Tue, March 4, 2008 1:19 pm, Adil Drissi wrote: Is there any way to limit the user to a set of characters for

Re: RES: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Cheers Thiago, In fact this was going to be my next question. I think I will report a documentation bug, just because, after all the discussion we had today, I realize that this is quite a common behaviour in other languages, but for somebody new to languages, being them programming or scripting

Re: [PHP] 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Svevo Romano
Yes Richard, In fact I know ActionScript and JavaScript and I'm trying to nail the peculiarities of php. I totally agree. I am not used to use ' - ' to call a method if you know what I mean, but the rest is quite familiar, phew! :) Aside from that, this was just one of the things I could not

Re: [PHP] Importing and exporting from MySQL, escape slash problem

2008-03-04 Thread Dave M G
Richard, Jed, Thank you for replying. Richard said: It's possible that there is an .htaccess file in phpMyAdmin that has Magic Quotes on that is messing you up... The .htaccess file for phpMyAdmin says php_flag magic_quotes_gpc Off, so I guess that means I'm okay there. Other than that,

[PHP] validating mysql bound date

2008-03-04 Thread Larry Brown
Does anyone know if there is a builtin function for checking the formatting of an incoming date to verify it is /MM/DD. I know how to convert between formats but want a quick way to check an incoming variable to ensure it will be handled properly by mysqld. Larry -- PHP General Mailing

Re: [PHP] validating mysql bound date

2008-03-04 Thread Larry Brown
Its been a long week already... -MM-DD. On Tue, 2008-03-04 at 20:16 -0500, Larry Brown wrote: Does anyone know if there is a builtin function for checking the formatting of an incoming date to verify it is /MM/DD. I know how to convert between formats but want a quick way to check an

Re: [PHP] Making an interactive RGB color picker

2008-03-04 Thread Casey
On 3/3/08, Keikonium [EMAIL PROTECTED] wrote: This may not be exactly what you think, but I didn't know how else to word the title. I basically need to make a script that will go through every possible color combination and print them to look just like (or similar) to the windows color picker.

Re: [PHP] validating mysql bound date

2008-03-04 Thread Chris
Larry Brown wrote: Its been a long week already... -MM-DD. On Tue, 2008-03-04 at 20:16 -0500, Larry Brown wrote: Does anyone know if there is a builtin function for checking the formatting of an incoming date to verify it is /MM/DD. I know how to convert between formats but want a

Re: [PHP] validating mysql bound date

2008-03-04 Thread Larry Brown
Thanks, I ended up doing: $incomingQuestDatePieces = explode(-, $incomingQuestDate ); if(checkdate($incomingQuestDatePieces[1],$incomingQuestDatePieces[2], $incomingQuestDatePieces[0])) { return true; } else { return false; } I was just wondering since a lot of people have to

  1   2   >