php-general Digest 12 Mar 2006 12:39:06 -0000 Issue 4011

2006-03-12 Thread php-general-digest-help
php-general Digest 12 Mar 2006 12:39:06 - Issue 4011 Topics (messages 231797 through 231800): Re: Possible hacker using php script to send e-mails? 231797 by: Manuel Lemos 231799 by: Julius Hacker Re: PHP/CSS/Javascript question 231798 by: Jesús Fernández

[PHP] what would a c extension buy me

2006-03-12 Thread joseph
hi, my site is www.myowndictionary.com i use javascript to create definitions for words (from open source dictionaries) as pop-ups and hook word-lists for vocabulary study with that. i can now parse the html from rss feeds and match only text of interest. i just wrote my own multibyte html

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread tedd
Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when the entire table is developed dynamically using PHP? Thanks, Paul Paul: I am sure that you can change css via javascript, but you can as well with php -- see:

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread Satyam
Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when the entire table is developed dynamically using PHP? Thanks, Paul You don't need to change the CSS (I don't even know if it is possible), but you can change specific styles of any element within the

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread tedd
Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when the entire table is developed dynamically using PHP? Thanks, Paul Satyam said: You don't need to change the CSS (I don't even know if it is possible), but you can change specific styles of any element

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread Satyam
- Original Message - From: tedd [EMAIL PROTECTED] Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when the entire table is developed dynamically using PHP? Thanks, Paul Satyam said: You don't need to change the CSS (I don't even know if it is

[PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter the phone number in the following ways I get errors (123) 456 7890 123 456 7890 (123) 456 - 7890 123 456-7890 I am using the

Re: [PHP] Phone number validation

2006-03-12 Thread Curt Zirzow
On Sun, Mar 12, 2006 at 12:09:42PM -0700, Paul Goepfert wrote: Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter the phone number in the following ways I get errors (123)

Re: [PHP] Why Session can't be timed out!

2006-03-12 Thread Curt Zirzow
On Sat, Mar 11, 2006 at 09:44:01PM +0800, wrote: Excuse me,when i develop programe php in linux FC3 , i want the life time of the session to be 20 minutes ,i do the follow things in the php.ini file What version of PHP are we talking about with FC3? 1.change session.gc_maxlifetime = 1200

Re: [PHP] PDOStatement::execute() Return Values

2006-03-12 Thread Curt Zirzow
On Fri, Mar 10, 2006 at 12:09:44PM -0500, Chris wrote: Under what circumstances does PDOStatement::execute() return false? It seems to always return true. I'm assuming you have some code like: $sth = $dbh-prepare($sql); if(! $sth-execute() ) { // false } else { //true } When it returns

Re: [PHP] DB calls vs Session solution

2006-03-12 Thread Curt Zirzow
On Fri, Mar 10, 2006 at 02:10:54PM +0200, Thomas wrote: Hi there, Quick question on performance: I have got some expensive sql queries (doing lots of LEFT JOINS) that result in anything between 10 to 1 results. I need to do paging on those. So far I have used a LIMIT solution which

Re: [PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
On 3/12/06, Curt Zirzow [EMAIL PROTECTED] wrote: On Sun, Mar 12, 2006 at 12:09:42PM -0700, Paul Goepfert wrote: Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter the

Re: [PHP] X-Mailer and headers when sending mail

2006-03-12 Thread Curt Zirzow
On Thu, Mar 09, 2006 at 05:27:11PM -0800, Angelo Zanetti wrote: Hi guys. When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? Any X-* header is generally a header that is not a standard but a way to trace things. Or still in

Re: [PHP] Phone number validation

2006-03-12 Thread Curt Zirzow
On Sun, Mar 12, 2006 at 01:48:28PM -0700, Paul Goepfert wrote: On 3/12/06, Curt Zirzow [EMAIL PROTECTED] wrote: With US phone numbers I always use this approach to avoid what format people use to enter the phone: - Remove any non digit $check_phone = preg_replace('/[^0-9]/', '',

Re: [PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
I didn't realize that those were single quotes. I printed out the email message and it looked like one set of double quotes for the second parameter rather the two single quotes. Is it possible for anyone to tell me what php method is used to grab the first charater of a string? And onece I

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread Anas Mughal
JF on March 11th answered it appropriately. Please take this topic off this group. Thanks. On 3/12/06, Satyam [EMAIL PROTECTED] wrote: - Original Message - From: tedd [EMAIL PROTECTED] Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when

Re: [PHP] Phone number validation

2006-03-12 Thread tedd
Paul: Also check out: http://www.weberdev.com/get_example-3605.html tedd Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter the phone number in the following ways I get

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread tedd
Yes, it's just a text file -- it can be re-written. However, it needs to be loaded again to take affect. And it affects all documents of all users. Suddenly, by the action of one user, all other users reaching the same page will see things as per the actions of another user. Unless you

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-12 Thread Rick Emery
Quoting Rory Browne [EMAIL PROTECTED]: I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't

Re: [PHP] PHP/CSS/Javascript question

2006-03-12 Thread Satyam
- Original Message - From: tedd [EMAIL PROTECTED] Yes, it's just a text file -- it can be re-written. However, it needs to be loaded again to take affect. And it affects all documents of all users. Suddenly, by the action of one user, all other users reaching the same page will

Re: [PHP] what would a c extension buy me

2006-03-12 Thread Chris
joseph wrote: hi, my site is www.myowndictionary.com i use javascript to create definitions for words (from open source dictionaries) as pop-ups and hook word-lists for vocabulary study with that. i can now parse the html from rss feeds and match only text of interest. i just wrote my own

Re: [PHP] Phone number validation

2006-03-12 Thread Anthony Ettinger
On 3/12/06, tedd [EMAIL PROTECTED] wrote: Paul: Also check out: http://www.weberdev.com/get_example-3605.html tedd Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter

[PHP] determining client's external IP

2006-03-12 Thread David Calkins
My web page needs to determine the client's external IP address, i.e., the IP address that others viewing the web page would be able to use to contact that user's machine (assuming they've setup the appropriate forwarding into their actual machine of course). In this environment the clients want

[PHP] php, fastcgi, mpm-worker and apache bottlenecks

2006-03-12 Thread Dan Rossi
Hi there, im am planning to spec the software install for one of our machines that gets an insane ammount of hits and traffic from referring sites. Im looking into if running the php for this server under fastcgi instead of as a php apache module will help reduce and apache bottlenecks ? Most

Re: [PHP] php, fastcgi, mpm-worker and apache bottlenecks

2006-03-12 Thread Chris
Dan Rossi wrote: Hi there, im am planning to spec the software install for one of our machines that gets an insane ammount of hits and traffic from referring sites. Im looking into if running the php for this server under fastcgi instead of as a php apache module will help reduce and apache

Re: [PHP] php, fastcgi, mpm-worker and apache bottlenecks

2006-03-12 Thread Dan Rossi
Source is fine, i never install php with binaries, lets see how i go. On 13/03/2006, at 1:12 PM, Chris wrote: Dan Rossi wrote: Hi there, im am planning to spec the software install for one of our machines that gets an insane ammount of hits and traffic from referring sites. Im looking into

Re: [PHP] Phone number validation

2006-03-12 Thread 2dogs
Paul Goepfert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I didn't realize that those were single quotes. I printed out the email message and it looked like one set of double quotes for the second parameter rather the two single quotes. Is it possible for anyone to tell me what

RE: [PHP] Phone number validation

2006-03-12 Thread Daevid Vincent
I do this for phone numbers: $row['mobile'] = ereg_replace([^0-9], '', $_POST['mobile']); if ((strlen($phone)) = 14) return preg_replace (/[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).*/, (\\1) \\2-\\3, $phone); Is it possible for anyone to tell me what php method is used to