php-general Digest 31 Aug 2007 16:34:36 -0000 Issue 4992

2007-08-31 Thread php-general-digest-help
php-general Digest 31 Aug 2007 16:34:36 - Issue 4992 Topics (messages 261558 through 261563): PHP/MySQL not playing nicely. Server drops connection. . . 261558 by: Michael Williams 261562 by: brian Re: How to show proper time to users from around the world 261559

php-general Digest 1 Sep 2007 05:05:25 -0000 Issue 4993

2007-08-31 Thread php-general-digest-help
php-general Digest 1 Sep 2007 05:05:25 - Issue 4993 Topics (messages 261564 through 261581): Re: Reload page after form submit 261564 by: Afan Pasalic 261577 by: brian regular expression question 261565 by: Matthew Lasar 261566 by: Per Jessen 261567

Re: [PHP] How to show proper time to users from around the world

2007-08-31 Thread Per Jessen
Hemanth wrote: Hi friends, Is there a solution to showing the proper time and date at user browsers and also recording proper USER times in the database operations in mysql I think it's better to record UTC times only, but display them according to the users timezone. You can do that by

[PHP] Chisimba Framework Release

2007-08-31 Thread Paul Scott
The next release of the Chisimba PHP5 framework is now available. Major enhancements included in this release are: - Memcache support - Better caching of language items - Improved database performance - Bug fixes - Better code documentation - API docs - First draft of the Chisimba Book

[PHP] PHP Developer Required

2007-08-31 Thread Greg Gay
Title: Web Applications Developer Open August 30, 2007, Closing September 14, 2007 Formal Education: University Degree in computer science/engineering or related discipline Employer: University of Toronto, Faculty of Information Studies, Adaptive Technology Resource Centre, Description: Under

Re: [PHP] PHP/MySQL not playing nicely. Server drops connection. . .

2007-08-31 Thread brian
Michael Williams wrote: Hi All, I recently installed PHP, APACHE, MYSQL per the method at the following site: http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/ . . .I then attempted to connect to a database (but without executing any commands on it), and I keep

Re: [PHP] Reload page after form submit

2007-08-31 Thread Afan Pasalic
brian wrote: Instruct ICC wrote: From your rough code, I'd say the OP always needs the select block (just remove the else keyword and keep the block) for the current info at the present page refresh/load. But I'd like clarification on how the OP thinks about it. That's close, i think.

Re: [PHP] Reload page after form submit

2007-08-31 Thread brian
Instruct ICC wrote: From your rough code, I'd say the OP always needs the select block (just remove the else keyword and keep the block) for the current info at the present page refresh/load. But I'd like clarification on how the OP thinks about it. That's close, i think. But the select

[PHP] regular expression question

2007-08-31 Thread Matthew Lasar
Hello: I've adapted this regular expression script from a book, but I'm not clear why it works. $email = [EMAIL PROTECTED]; $pattern = /[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}/; ___ if ( preg_match($pattern,$email) ) { print yes! . $email . matches!; } else { print no match; }

Re: [PHP] regular expression question

2007-08-31 Thread Per Jessen
Matthew Lasar wrote: But I don't understand why the second half of the regular expression works. I'm talking about this part: @([-a-z0-9]+\.)+[a-z]{2,}/; why is it able to detect repeated sections of the email address after @ that are separated by periods? like @email.alaska.com . It

Re: [PHP] regular expression question

2007-08-31 Thread Matthew Lasar
At 11:32 AM 8/31/2007, Per Jessen wrote: Matthew Lasar wrote: But I don't understand why the second half of the regular expression works. I'm talking about this part: @([-a-z0-9]+\.)+[a-z]{2,}/; why is it able to detect repeated sections of the email address after @ that are separated by

[PHP] PHP + PDO + MySQL + Stored Procedure + PREPARE = Problem

2007-08-31 Thread Uzed
Hi all, I've found a bug when working on a PHP script using a PDO connector. When I made a Store Procedure using the PREPARE statement something messed up the result im my PHP script. Please go to my blog http://huzed.com/zed/?p=21 and see code. Tanks for help. ZED -- PHP General

Re: [PHP] regular expression question

2007-08-31 Thread Per Jessen
Matthew Lasar wrote: At 11:32 AM 8/31/2007, Per Jessen wrote: Matthew Lasar wrote: But I don't understand why the second half of the regular expression works. I'm talking about this part: @([-a-z0-9]+\.)+[a-z]{2,}/; why is it able to detect repeated sections of the email address

[PHP] Is a small memory footprint better for a php script?

2007-08-31 Thread Mark
Hey, I'm wondering something about memory usage. I just looked at how much memory the newest phpbb is using and that's over 2 mega bytes!! Now i'm working on a php script that is currently using around 600 kilo bytes. The question now is: what is better? a script with a small memory usage? or

Re: [PHP] Is a small memory footprint better for a php script?

2007-08-31 Thread Robert Cummings
On Fri, 2007-08-31 at 23:06 +0200, Mark wrote: The question now is: what is better? a script with a small memory usage? or is that something i don't need to look at? It depends... do you find the following script better? Better than what? It definitely has a small memory footpring: ?php

[PHP] Re: About Session And Cookies

2007-08-31 Thread Dan
Wow, you really need to be carefull when ever you're dealing with money, although if you're just handing the objects in a cart and passing that to a secure payment system then it's not as big of a deal. Cookies can be stolen. Sessions are vulnerable to snooping if you're on a shared server.

[PHP] Re: text to HTML

2007-08-31 Thread Dan
As I know there's no real WYSIWYG text to html converters. Plus this wouldn't do much more than handling paragraphs and new lines. If you're looking for a way to write html from a textbox check out FCKEditor. Sorry I couldn't help much. If you really do have only the limited need of

Re: [PHP] help with session

2007-08-31 Thread Dan
You should be sanatizing code here. When you save it to the session and when it's output. Look arround the newsgroups or online for info about it, it's everywhere. - Dan mike [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 8/26/07, Jason Cartledge [EMAIL PROTECTED] wrote: I

[PHP] Re: Which CAPTCHA is the besta?

2007-08-31 Thread Dan
Well what do you mean by best? Best at keeping spammers away, ease of use(playing sound for handicapped people), fastest? If you want to keep spammers away you could go with some super complicated script that distorts letters so much that it's really hard. This keeps away not only spambots

Re: [PHP] for loop inside a switch

2007-08-31 Thread Dan
Sanjeev is right. You're thinking about the problem backwards. You're trying to build a Switch inside a loop. Remember, if you ever have to do some operating multiple times you're using a forloop, then the thing that you want to repeat(switch case) is INSIDE the for loop. - Dan Sanjeev N

Re: [PHP] Reload page after form submit

2007-08-31 Thread brian
Afan Pasalic wrote: brian wrote: The problem that i see is here: if (isset($_POST)) This will always return TRUE. It should rather be: if (isset($_POST['name_of_your_submit_btn'])) or some other form element, at least. I don't know if this was simply because it was a rough draft of the

[PHP] Re: text to HTML

2007-08-31 Thread M. Sokolewicz
Dan wrote: As I know there's no real WYSIWYG text to html converters. Plus this wouldn't do much more than handling paragraphs and new lines. If you're looking for a way to write html from a textbox check out FCKEditor. Sorry I couldn't help much. If you really do have only the limited

Re: [PHP] for loop inside a switch

2007-08-31 Thread Robert Cummings
On Fri, 2007-08-31 at 15:56 -0700, Dan wrote: Sanjeev is right. You're thinking about the problem backwards. You're trying to build a Switch inside a loop. Remember, if you ever have to do some operating multiple times you're using a forloop, then the thing that you want to repeat(switch

[PHP] How to implement Open-ID on my web server?

2007-08-31 Thread Ronald Wiplinger
Hi, I am looking for a way to implement OpenID on my webserver. Can anybody point me on ONE place that describes ONE way, please! I found many links, but I am now confused what I really need ;-( I want that the customer can use his/her openid to login to signup/login to our web sites. Herby

[PHP] for loop inside a switch

2007-08-31 Thread jekillen
On Aug 31, 2007, at 6:26 PM, Robert Cummings wrote: On Fri, 2007-08-31 at 15:56 -0700, Dan wrote: Sanjeev is right. You're thinking about the problem backwards. You're trying to build a Switch inside a loop. Remember, if you ever have to do some operating multiple times you're using a