Re: [PHP] Looking for help with forms/variables and an array!

2007-06-13 Thread Jim Lucas
Here is a link to the reworked source ran through highlight_file() so you can see the comments and such. I think I have caught everything that I can think of. Of course, not having the DB structure data to work with, I had to guess at a few things. Hope I got it right...

Re: [PHP] Going from simple to super CAPTCHA

2007-06-13 Thread Robin Vickery
On 12/06/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, June 12, 2007 9:33 am, Tijnema wrote: I meant reverse order :P That would be pretty broken. There's no guarantee that browsers will present the inputs in any order at all, even though they all seem (so far) to follow the convention

RE: [PHP] PHP list as a blog

2007-06-13 Thread Zoltán Németh
2007. 06. 13, szerda keltezéssel 07.20-kor Paul Scott ezt írta: On Tue, 2007-06-12 at 16:02 -0500, Richard Lynch wrote: OK, downed it. Will figure out a regular expression to strip out the email addresses when I have had some coffee in the morning I have added a regex to strip out the

RE: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 12:08 +0200, Zoltán Németh wrote: is this the link: http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blogaction=allblogs ? (this was in your original post) No, sorry, I have just updated the DNS. Try http://fsiu.uwc.ac.za/ now. --Paul All Email

Re: [PHP] need to collect credit card details

2007-06-13 Thread Stut
Please include the list when replying. [EMAIL PROTECTED] wrote: I know what you mean, however it is very common in his business to hold them as security if guests do not turn up. Then he takes a non-refundable deposit or full payment at the time of booking. If you try to implement a secure

Re: [PHP] need to collect credit card details

2007-06-13 Thread Stut
Ross wrote: I have a paypal account setup and am going to upgrade to the virtual terminal, however the client would like to collect the credit card details as security (he is a hotelier) Is it possible to securely send these details via the internet or should I suggest he just gets them to

[PHP] sending mail from localhost

2007-06-13 Thread Ross
I usually use a phpmailer class but am creating something from scratch. when I use the most basic example I can find: $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [EMAIL PROTECTED]' . \r\n . 'Reply-To: [EMAIL PROTECTED]' . \r\n .

Re: [PHP] sending mail from localhost

2007-06-13 Thread Stut
Ross wrote: ; For Win32 only. sendmail_from = mail.blue-fly.co.uk This should be an email address not just a domain. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP list as a blog

2007-06-13 Thread Colin Guthrie
Paul Scott wrote: I have set up our new Chisimba blog system (GPL, http://avoir.uwc.ac.za) to blog all of the posts to this list. Please check it out at http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blogaction=allblogs and let me know what you think! Erm, reinventing

RE: [PHP] PHP list as a blog

2007-06-13 Thread Zoltán Németh
2007. 06. 13, szerda keltezéssel 12.11-kor Paul Scott ezt írta: On Wed, 2007-06-13 at 12:08 +0200, Zoltán Németh wrote: is this the link: http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blogaction=allblogs ? (this was in your original post) No, sorry, I have just

Re: [PHP] Re: PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 11:51 +0100, Colin Guthrie wrote: Erm, reinventing the wheel? Not quite, more of a test of the code so that I know that Bad Things do not happen when there is a lot of traffic/posts. If it serves another purpose (like letting students etc see what is happening) all the

RE: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 12:57 +0200, Zoltán Németh wrote: okay, that works. just one problem: the UTF-8 characters are screwed up (for example á and é in my name - I send my mails in UTF-8 so that cannot be the problem) I noticed. What we did was tack this site (which normally runs of

[PHP] Re: PHP list as a blog

2007-06-13 Thread Colin Guthrie
Paul Scott wrote: On Wed, 2007-06-13 at 11:51 +0100, Colin Guthrie wrote: Erm, reinventing the wheel? Not quite, more of a test of the code so that I know that Bad Things do not happen when there is a lot of traffic/posts. If it serves another purpose (like letting students etc see what

Re: [PHP] Re: PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 12:26 +0100, Colin Guthrie wrote: Depends on the list settings - it can be turned on with the flick of a switch... just ask the guys at Gmane. Sure, but most lists do not do this by default... It's quite annoying for trying to contact someone tho' :) It's even more

[PHP] Re: Redirecting to a parent page

2007-06-13 Thread Man-wai Chang
Im using this instruction header( refresh:'3'; url=./file3.php); But I got the error that in http://localhost/file3.php does not exists any page What's the absolute path to file3.php? If it's in DocumentRoot, then use /file3.php (no dot). -- @~@ Might, Courage, Vision, SINCERITY.

RE: [PHP] need to collect credit card details

2007-06-13 Thread Jim Moseby
I have a paypal account setup and am going to upgrade to the virtual terminal, however the client would like to collect the credit card details as security (he is a hotelier) Is it possible to securely send these details via the internet or should I suggest he just gets them to

[PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread clive
Yamil Ortega wrote: Lets say that I have the next structure on my web directory /file1.php /procces/file2.php /file3.php http://localhost/apache2/file1.php try this: header( refresh:'3'; url=./apache2/file3.php); Regards, Clive. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] need to collect credit card details

2007-06-13 Thread Jochem Maas
Ross wrote: I have a paypal account setup and am going to upgrade to the virtual terminal, however the client would like to collect the credit card details as security (he is a hotelier) no he doesn't, no you don't. you are not visa, you are not paypal, you are not fill in the name of

[PHP] Address validation API's for PHP

2007-06-13 Thread Jay Blanchard
Good morning group, I am doing some searching and researching but I also know that this world famous group may have some insight and resources that I can benefit from. I am looking for an address validation database and API to use with our retail applications (does not have to be free). I would

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 07:45 -0500, Jay Blanchard wrote: I am looking for an address validation database and API to use with our retail applications (does not have to be free). Not sure entirely of what you are looking for here, but try http://www.geonames.org first. It's CC licenced so that

Re: [PHP] Going from simple to super CAPTCHA

2007-06-13 Thread Tijnema
On 6/13/07, Jake McHenry [EMAIL PROTECTED] wrote: I've been reading along, very informative :) I found Osama within 20 seconds and as someone posted already, looking for his head wouldn't be much of a task for a computer. It's just for if you want to keep normal people out ;) Has anyone

[PHP] Re: need to collect credit card details

2007-06-13 Thread Ross
I wasn't keen to do this anyway. A deposit it is. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Tijnema
On 6/13/07, Jay Blanchard [EMAIL PROTECTED] wrote: Good morning group, Actually, it was 2:45 PM here when you've sent this message :P I am doing some searching and researching but I also know that this world famous group may have some insight and resources that I can benefit from. I am

[PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi all, Can anyone think of a more elegant way of achieving the following? ?php $flags = array(); if ($allow_fraction) { $flags[] = FILTER_FLAG_ALLOW_FRACTION; } if ($allow_thousand) { $flags[] = FILTER_FLAG_ALLOW_THOUSAND; } if ($allow_scientific) { $flags[] =

Re: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Zoltán Németh
2007. 06. 13, szerda keltezéssel 14.13-kor Richard Davey ezt írta: Hi all, Can anyone think of a more elegant way of achieving the following? ?php $flags = array(); if ($allow_fraction) { $flags[] = FILTER_FLAG_ALLOW_FRACTION; } if ($allow_thousand) { $flags[] =

Re[2]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Zoltán, Wednesday, June 13, 2007, 2:21:18 PM, you wrote: 2007. 06. 13, szerda keltezéssel 14.13-kor Richard Davey ezt írta: Hi all, Can anyone think of a more elegant way of achieving the following? ?php $flags = array(); if ($allow_fraction) { $flags[] =

RE: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread Yamil Ortega
Ok, but what happens if I change server and there is no more apache2 directory? Do I have to change all the headers in my 37 web pages? Thanks in advance Yamil -Mensaje original- De: clive [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 13 de Junio de 2007 05:37 a.m. Para: PHP General

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 07:45 -0500, Jay Blanchard wrote: Good morning group, I am doing some searching and researching but I also know that this world famous group may have some insight and resources that I can benefit from. Your wish shall be answered. You can prevent dangling prepositions,

Re: Re[2]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Tijnema
On 6/13/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Zoltán, Wednesday, June 13, 2007, 2:21:18 PM, you wrote: 2007. 06. 13, szerda keltezéssel 14.13-kor Richard Davey ezt írta: Hi all, Can anyone think of a more elegant way of achieving the following? ?php $flags = array(); if

Re: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread Darren Whitlen
Yamil Ortega wrote: Ok, but what happens if I change server and there is no more apache2 directory? Do I have to change all the headers in my 37 web pages? The same code in 37 pages??? Place the code in 1 page, and use require(my_code_page.php); where you need it in your scripts. You will

RE: [PHP] Address validation API's for PHP

2007-06-13 Thread Jay Blanchard
[snip] You can download a complete database here: http://download.geonames.org/export/dump/ [/snip] The only problem with this is that there is not a database of street addresses. When I search for an address at maps.google.com, such as; 210 N.E. Loop 410 San Antonio, TX 78230 I get; Did you

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Stut [EMAIL PROTECTED] wrote: Ross wrote: ; For Win32 only. sendmail_from = mail.blue-fly.co.uk This should be an email address not just a domain. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It's also not

[PHP] Persistent MySQL Connection

2007-06-13 Thread PHP Mailing List
Hi everyone, I currently running my php as cgi as it is more controllable in shared hosting, the drawback is I cannot use mysql persistent connection so mysql_pconnect() function is not an option. Is there any mysql connection pool product for php running as cgi ? Thanks, Dino -- PHP

Re[4]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Tijnema, Wednesday, June 13, 2007, 2:42:28 PM, you wrote: Nice one, but you could also do it like this: ?php $filter['flags'] = FALSE; if ($allow_fraction) { $filter['flags'] = $filter['flags'] | FILTER_FLAG_ALLOW_FRACTION; } if ($allow_thousand) { $filter['flags'] =

Re: [PHP] Re: need to collect credit card details

2007-06-13 Thread Daniel Brown
On 6/13/07, Ross [EMAIL PROTECTED] wrote: I wasn't keen to do this anyway. A deposit it is. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Before you decide 100% on that, Ross, check out the Website Payments Pro option. It includes

Re: [PHP] sending mail from localhost

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 09:51 -0400, Daniel Brown wrote: It's also not necessary to combine single and double quotes with join marks (.'s) as you have it. While this isn't the problem, and Stut is absolutely correct, your code would look cleaner if you did it as follows: ? $to = [EMAIL

Re: Re[2]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Zoltán Németh
2007. 06. 13, szerda keltezéssel 15.42-kor Tijnema ezt írta: On 6/13/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Zoltán, Wednesday, June 13, 2007, 2:21:18 PM, you wrote: 2007. 06. 13, szerda keltezéssel 14.13-kor Richard Davey ezt írta: Hi all, Can anyone think of a more

Re[4]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Zoltán, Wednesday, June 13, 2007, 3:09:16 PM, you wrote: 2007. 06. 13, szerda keltezéssel 15.42-kor Tijnema ezt írta: On 6/13/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Zoltán, Wednesday, June 13, 2007, 2:21:18 PM, you wrote: 2007. 06. 13, szerda keltezéssel 14.13-kor Richard

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Daniel Brown
Someone needs to smack Robert. He's off on a tangent again. ;-P On 6/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-13 at 07:45 -0500, Jay Blanchard wrote: Good morning group, I am doing some searching and researching but I also know that this world famous group may

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-13 at 09:51 -0400, Daniel Brown wrote: It's also not necessary to combine single and double quotes with join marks (.'s) as you have it. While this isn't the problem, and Stut is absolutely correct, your code would

Re: Re[4]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 15:05 +0100, Richard Davey wrote: Hi Tijnema, Wednesday, June 13, 2007, 2:42:28 PM, you wrote: Nice one, but you could also do it like this: ?php $filter['flags'] = FALSE; if ($allow_fraction) { $filter['flags'] = $filter['flags'] |

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 10:13 -0400, Daniel Brown wrote: Someone needs to smack Robert. He's off on a tangent again. ;-P On 6/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-13 at 07:45 -0500, Jay Blanchard wrote: Good morning group, I am doing some searching and

RE: [PHP] Address validation API's for PHP

2007-06-13 Thread Jay Blanchard
[snip] Someone needs to smack Robert. He's off on a tangent again. ;-P [/snip] Nope, that is normal. [snip] Honestly, me either. I've built ZIP-code-to-longitude/latitude points, but nothing with address suggestion. Jay, are you also looking for the PLUS+4 ZIP code information? Is it

Re[6]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Robert, Wednesday, June 13, 2007, 3:15:39 PM, you wrote: It's terribly verbose and inefficient... ?php $filter['flags'] = 0; if( $allow_fraction ) { $filter['flags'] |= FILTER_FLAG_ALLOW_FRACTION; } if( $allow_thousand ) { $filter['flags'] |= FILTER_FLAG_ALLOW_THOUSAND;

RE: [PHP] Address validation API's for PHP

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 09:19 -0500, Jay Blanchard wrote: [snip] Someone needs to smack Robert. He's off on a tangent again. ;-P [/snip] Nope, that is normal. Just adding some light morning humour to the list :D At least... I hope it was taken as humour :^ Cheers, Rob. --

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Daniel Brown
On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:19 AM, Jay Blanchard wrote: [snip] Someone needs to smack Robert. He's off on a tangent again. ;-P [/snip] Nope, that is normal. [snip] Honestly, me either. I've built ZIP-code-to-longitude/latitude

[PHP] php / mysql performance resources

2007-06-13 Thread Guillaume Theoret
Hi everyone, Can anyone recommend any good books/resources for php and mysql performance management? I'm more interested in the software development side (as opposed to server configuration) of things. I'm looking for anything that would be good to know when working on websites that get millions

Re: Re[6]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 15:19 +0100, Richard Davey wrote: Hi Robert, Wednesday, June 13, 2007, 3:15:39 PM, you wrote: It's terribly verbose and inefficient... ?php $filter['flags'] = 0; if( $allow_fraction ) { $filter['flags'] |= FILTER_FLAG_ALLOW_FRACTION; } if(

RE: [PHP] Address validation API's for PHP

2007-06-13 Thread Zoltán Németh
2007. 06. 13, szerda keltezéssel 10.24-kor Robert Cummings ezt írta: On Wed, 2007-06-13 at 09:19 -0500, Jay Blanchard wrote: [snip] Someone needs to smack Robert. He's off on a tangent again. ;-P [/snip] Nope, that is normal. Just adding some light morning humour to the list

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 10:52 -0400, Daniel Brown wrote: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:19 AM, Jay Blanchard wrote: Hi Jay, I actually work with the post office on my day job, we do presorted mailings with them. And I can tell you that the post

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Jason Pruim
On Jun 13, 2007, at 10:52 AM, Daniel Brown wrote: Hi Jay, I actually work with the post office on my day job, we do presorted mailings with them. And I can tell you that the post office does not sell any addresses to private individuals. For the mailings we do where we need to get a list we

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Jochem Maas
Daniel Brown wrote: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: ... Jason: Tell them to stop raising the price of the damned stamps! Offer to take a pay cut and take one for the team I'll buy you a beer. Zoltán: Trade with me. I've been here for less than two hours

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Daniel Brown
On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:52 AM, Daniel Brown wrote: Hi Jay, I actually work with the post office on my day job, we do presorted mailings with them. And I can tell you that the post office does not sell any addresses to private individuals.

Re: Re[8]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 15:59 +0100, Richard Davey wrote: Hi Robert, Wednesday, June 13, 2007, 3:37:38 PM, you wrote: Personally I hate constants (can't use non-scalar values so why get used ot them... also they're just another point for name collision) so if it were my own code I'd do

[PHP] Google Talk Integration

2007-06-13 Thread Not�cias PHP
Hi, In the site http://www.imified.com/api/ it has a API that it makes the integration of the GTALK with any programming language. But I am not obtaining to make script php to send a message for my user in google talk. Somebody already used this api? Hermes Alves www.argohost.net -- PHP

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Zoltán Németh
2007. 06. 13, szerda keltezéssel 10.52-kor Daniel Brown ezt írta: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:19 AM, Jay Blanchard wrote: [snip] Someone needs to smack Robert. He's off on a tangent again. ;-P [/snip] Nope, that is normal.

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Jason Pruim
On Jun 13, 2007, at 10:19 AM, Jay Blanchard wrote: [snip] Someone needs to smack Robert. He's off on a tangent again. ;-P [/snip] Nope, that is normal. [snip] Honestly, me either. I've built ZIP-code-to-longitude/latitude points, but nothing with address suggestion. Jay, are you

Re[8]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Davey
Hi Robert, Wednesday, June 13, 2007, 3:37:38 PM, you wrote: Personally I hate constants (can't use non-scalar values so why get used ot them... also they're just another point for name collision) so if it were my own code I'd do something more like the following: Sure, but the filter

Re: [PHP] php / mysql performance resources

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 10:36 -0400, Guillaume Theoret wrote: Hi everyone, Can anyone recommend any good books/resources for php and mysql performance management? I'm more interested in the software development side (as opposed to server configuration) of things. I'm looking for anything that

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 17:16 +0200, Zoltán Németh wrote: 2007. 06. 13, szerda keltezéssel 10.52-kor Daniel Brown ezt írta: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: Jason: Tell them to stop raising the price of the damned stamps! Offer to take a pay cut and take one for the

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Jason Pruim
On Jun 13, 2007, at 11:10 AM, Daniel Brown wrote: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:52 AM, Daniel Brown wrote: Hi Jay, I actually work with the post office on my day job, we do presorted mailings with them. And I can tell you that the post office

[PHP] Is this code thread safe?

2007-06-13 Thread Christian Cantrell
I'm pretty sure this code is thread safe, but I just want to be 100% sure. I have a class called ViewHelper with a static function called is_signed_in. All it does is check the session for the existence of a particular variable, and if it's there, it returns true, otherwise false. Since the

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Daniel Brown
On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 11:10 AM, Daniel Brown wrote: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:52 AM, Daniel Brown wrote: Hi Jay, I actually work with the post office on my day job, we do presorted

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Daniel Brown
On 6/13/07, Daniel Brown [EMAIL PROTECTED] wrote: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 11:10 AM, Daniel Brown wrote: On 6/13/07, Jason Pruim [EMAIL PROTECTED] wrote: On Jun 13, 2007, at 10:52 AM, Daniel Brown wrote: Hi Jay, I actually work

Re: [PHP] Is this code thread safe?

2007-06-13 Thread Daniel Brown
On 6/13/07, Christian Cantrell [EMAIL PROTECTED] wrote: I'm pretty sure this code is thread safe, but I just want to be 100% sure. I have a class called ViewHelper with a static function called is_signed_in. All it does is check the session for the existence of a particular variable, and if

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 11:58 -0400, Daniel Brown wrote: Oh, and Zoltán and Robert --- just wanted you guys to know that I hate you both. I miss the days of working from home, too Drown your sorrows in beer... oh wait!! *teehee* ;) Cheers, Rob. --

Re: [PHP] Redirecting to a parent page

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 11:12 pm, Yamil Ortega wrote: Lets say that I have the next structure on my web directory /file1.php /procces/file2.php /file3.php So, when I see the file1.php on the browser I see the page in this route http://localhost/apache2/file1.php I have a button that

[PHP] Dom appendChild strips trailing text from within a node

2007-06-13 Thread Eric Wiener
I am trying to modify a node name and it mostly works, except that appendChild seems to strip the text that FOLLOWS after a subnode. Leading text and subnodes appear to be retained perfectly, just not text trailing the subnode. I tried using cloneNode, but that discarded the children even when I

[PHP] create file permission problem

2007-06-13 Thread tedd
Hi Gang: I'm sure this is obvious to most, but not to me. I working on a virtual host. If I want to save data in a file, I can ftpconnect(); change the permissions of an existing file from 0755 to 0777; write to the file; and change the permissions of the file back to 0755 -- no problem.

Re: [PHP] Is this code thread safe?

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 10:52 am, Christian Cantrell wrote: I'm pretty sure this code is thread safe, but I just want to be 100% sure. I have a class called ViewHelper with a static function called is_signed_in. All it does is check the session for the existence of a particular variable, and

Re: [PHP] php / mysql performance resources

2007-06-13 Thread Guillaume Theoret
Thanks for the response. On 6/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-13 at 10:36 -0400, Guillaume Theoret wrote: Hi everyone, Can anyone recommend any good books/resources for php and mysql performance management? I'm more interested in the software development

[PHP] IF with multiple values for a variable

2007-06-13 Thread Dan Shirah
Okay, I know this has got to be easy but it's not working any way I try it. When a record is selected it opens up a new page. My query will display the specific results based on the type of record selected. There can be multiple values in each if. However I am having a brain fart in my if

RE: Re[6]: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Ford, Mike
From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Wed 13/06/2007 15:19 To: PHP List Hi Robert, Wednesday, June 13, 2007, 3:15:39 PM, you wrote: It's terribly verbose and inefficient... ?php $filter['flags'] = 0; if( $allow_fraction )

Re: [PHP] create file permission problem

2007-06-13 Thread Daniel Brown
On 6/13/07, tedd [EMAIL PROTECTED] wrote: Hi Gang: I'm sure this is obvious to most, but not to me. I working on a virtual host. If I want to save data in a file, I can ftpconnect(); change the permissions of an existing file from 0755 to 0777; write to the file; and change the permissions of

Re: [PHP] php / mysql performance resources

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 10:17 am, Robert Cummings wrote: On Wed, 2007-06-13 at 10:36 -0400, Guillaume Theoret wrote: Hi everyone, Can anyone recommend any good books/resources for php and mysql performance management? I'm more interested in the software development side (as opposed to server

Re: [PHP] IF with multiple values for a variable

2007-06-13 Thread Daniel Brown
On 6/13/07, Dan Shirah [EMAIL PROTECTED] wrote: Okay, I know this has got to be easy but it's not working any way I try it. When a record is selected it opens up a new page. My query will display the specific results based on the type of record selected. There can be multiple values in each

Re: [PHP] Persistent MySQL Connection

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 8:53 am, PHP Mailing List wrote: I currently running my php as cgi as it is more controllable in shared hosting, the drawback is I cannot use mysql persistent connection so mysql_pconnect() function is not an option. Is there any mysql connection pool product for php

Re: [PHP] IF with multiple values for a variable

2007-06-13 Thread Dan Shirah
Excellent! Double pipes to seperate possible multiple variable values. lock in memory Thanks Daniel! On 6/13/07, Daniel Brown [EMAIL PROTECTED] wrote: On 6/13/07, Dan Shirah [EMAIL PROTECTED] wrote: Okay, I know this has got to be easy but it's not working any way I try it. When a record

Re: [PHP] create file permission problem

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 13:13 -0400, tedd wrote: Hi Gang: I'm sure this is obvious to most, but not to me. I working on a virtual host. If I want to save data in a file, I can ftpconnect(); change the permissions of an existing file from 0755 to 0777; write to the file; and change the

Re: [PHP] php / mysql performance resources

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 13:31 -0400, Guillaume Theoret wrote: Thanks for the response. On 6/13/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-13 at 10:36 -0400, Guillaume Theoret wrote: Hi everyone, Can anyone recommend any good books/resources for php and mysql

Re: [PHP] Need a more elegant way of bitwise ORing values

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 8:13 am, Richard Davey wrote: Hi all, Can anyone think of a more elegant way of achieving the following? ?php $flags = array(); $flags = 0; if ($allow_fraction) //Should we warn you that $allow_fraction is not actually defined?... //You don't have register_globals

[PHP] Calendar

2007-06-13 Thread Clint Tredway
Is there a decent free calendar? I just need to show a few events on a calendar. -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IF with multiple values for a variable

2007-06-13 Thread tg-php
Could try something like this: $types = array('T', 'D', 'L'); if (in_array($type, $types)) { // do something } But that's going to just check to see if $type is one of the valid types you're looking for. You might try something like switch. switch ($type) { case 'T': // Output 'T'

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 7:45 am, Jay Blanchard wrote: I am doing some searching and researching but I also know that this world famous group may have some insight and resources that I can benefit from. I am looking for an address validation database and API to use with our retail applications

Re: [PHP] php / mysql performance resources

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 12:39 -0500, Richard Lynch wrote: On Wed, June 13, 2007 10:17 am, Robert Cummings wrote: On Wed, 2007-06-13 at 10:36 -0400, Guillaume Theoret wrote: Hi everyone, Can anyone recommend any good books/resources for php and mysql performance management? I'm more

Re: [PHP] IF with multiple values for a variable

2007-06-13 Thread tg-php
double pipes constitutes an OR operation. You can use the keyword OR as well. Also, and AND are the same as well. http://us.php.net/manual/en/language.operators.logical.php -TG = = = Original message = = = Excellent! Double pipes to seperate possible multiple variable values. lock in

Re: [PHP] sending mail from localhost

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 8:51 am, Daniel Brown wrote: $from = [EMAIL PROTECTED]; //$reply_to = [EMAIL PROTECTED]; // Same address, so not needed. Some spam filters and some email clients will behave rather badly if you don't have Reply-to: as well. Use it. $headers .= X-Mailer:

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 9:13 am, Daniel Brown wrote: Jay, are you also looking for the PLUS+4 ZIP code information? Is it possible that the USPS (if you're looking for US addresses) has a free or low-cost API? Last I checked, USPS was anything but low-cost. Plus, they only work for US, afaik,

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 9:52 am, Daniel Brown wrote: Jason: Tell them to stop raising the price of the damned stamps! Offer to take a pay cut and take one for the team I'll buy you a beer. Or, better yet, raise it as high as they want, but STOP DELIVERING THE JUNK MAIL so you can

[PHP] Re: create file permission problem

2007-06-13 Thread Al
Doesn't ftp_chmod() work immediately after creating your file, while the resource is still open? Check the permissions for the directory. Check the file and dir permissions with your ftp utility [e.g., WinSCP]. Or, write a simple script that echoes them. It really should work, I do it

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 10:07 am, Jochem Maas wrote: I thought beer was free ;-P joke aside I never did get the 'free as in beer' argument, has nobody in the FOSS movement ever heard of a brewery cartel? http://en.wikipedia.org/wiki/Free_as_in_beer I get all my beer for free. Well, not

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, June 13, 2007 8:51 am, Daniel Brown wrote: $from = [EMAIL PROTECTED]; //$reply_to = [EMAIL PROTECTED]; // Same address, so not needed. Some spam filters and some email clients will behave rather badly if you don't have Reply-to: as

RE: [PHP] Calendar

2007-06-13 Thread Jim Moseby
Is there a decent free calendar? I just need to show a few events on a calendar. You could try your bank. They usually have free calendars, coffee mugs, pencils, etc. ;-) Seriously though, type 'php calendar' into google and see what happens. -- PHP General Mailing List

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Daniel Brown
On 6/13/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, June 13, 2007 10:07 am, Jochem Maas wrote: I thought beer was free ;-P joke aside I never did get the 'free as in beer' argument, has nobody in the FOSS movement ever heard of a brewery cartel?

RE: [PHP] PHP list as a blog

2007-06-13 Thread Richard Lynch
On Tue, June 12, 2007 11:39 pm, Paul Scott wrote: BTW, could I get your opinions on the blog software itself? This is running a CVS checkout of the Chisimba framework with the blog module installed. It's a blog. People type things. They show up, more or less in some kind of order. ... I

Re: [PHP] PHP list as a blog

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 12:21 am, Crayon Shin Chan wrote: On Wednesday 13 June 2007 12:39, Paul Scott wrote: Our interns and students specifically. They are all dead scared of joining mailing lists in general, and find that using a web based prettier interface is much easier and friendlier.

Re: [PHP] PHP list as a blog

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 12:29 am, Paul Scott wrote: This was done as well to give my blog code a bit of a test drive as well, I had no idea how it would perform with lots of posts too, so I will also be able to optimize queries etc as the posts fill up. Oh, we'll fill that sucker up pretty

Re: [PHP] IF with multiple values for a variable

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 13:57 -0400, [EMAIL PROTECTED] wrote: double pipes constitutes an OR operation. You can use the keyword OR as well. Also, and AND are the same as well. http://us.php.net/manual/en/language.operators.logical.php They aren't exactly the same. Make sure and read the

RE: [PHP] Calendar

2007-06-13 Thread Jim Moseby
I did that and either they are not free or suck... dont appreciate the comment On 6/13/07, Jim Moseby [EMAIL PROTECTED] wrote: Is there a decent free calendar? I just need to show a few events on a calendar. You could try your bank. They usually have free calendars, coffee

RE: [PHP] Going from simple to super CAPTCHA

2007-06-13 Thread Richard Lynch
On Tue, June 12, 2007 10:12 pm, Jake McHenry wrote: Has anyone tried cracking/hacking what Microsoft has done with the animal pictures? MS is using petfinder.com or whatever it is, as their source to know what is a cat and a dog So all you have to do is trick petfinder.com into giving you all

  1   2   >