[PHP] function - action

2007-08-03 Thread Ralph Kutschera
Hallo! I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word action as function? E.g.: public function doSomething() { } public action doSomethingElse() { ... }

Re: [PHP] Validating Email Conditional

2007-08-03 Thread Robin Vickery
On 02/08/07, CK [EMAIL PROTECTED] wrote: Hi Please see the notes below keeping in mind this RegEX is being used to validate emails for a newsletter signup form. It may not be possible, accommodating some of the formats you provided. If you have the Holy Grail of RegEx please share. Can you

[PHP] php SHOW

2007-08-03 Thread Hulf
Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen Ta, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output the schema

2007-08-03 Thread Hulf
Hi, I reword my last post. I want to take the result and generate the field info to the screen e.g id, int(10) name, varchar(30) age, varchar(30). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php SHOW

2007-08-03 Thread Hulf
I mean get the schema. Hulf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen Ta, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] php SHOW

2007-08-03 Thread Richard Heyes
Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen If you're referring to PHP data types (arrays, strings, ints etc) you could use either var_dump() or print_r(). -- Richard Heyes +44 (0)844 801 1072

RE: [PHP] output the schema

2007-08-03 Thread Uber Wannabe
assuming name=database value=MySQL NOT SPECIFIED You would probably want to use the combination of the MySQL query SHOW COLUMNS FROM tablename and the PHP function mysql_field_type(). An example would be: ? //Establish connection and select database here $sql = SHOW COLUMNS

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread tedd
At 12:57 AM +0200 8/3/07, M. Sokolewicz wrote: Now, as mentioned before: You have to decide for yourself if your application is the correct place to check for the stupidity of your users. Check for the ignorance of your users -- there's a difference. Cheers, tedd -- ---

[PHP] Re: php install problem

2007-08-03 Thread zerof
David McDivitt escreveu: I hate to ask a simple question, but I have two issues installing PHP. I have XP SP 2 with IIS. When I ran the install php-5.2.3-win32-installer.msi, it said it could not access httpd.config and I would have to configure the web server manually. I could not find

Re: [PHP] UTF-8 support

2007-08-03 Thread Jon Anderson
Naz Gassiep wrote: The functions trim() and explode() appear to be munging multibyte UTF-8 strings. I can't find multibyte safe versions of them in the manual, do they exist, or do I have to make my own? In what way are they munging the strings? I just tried with a bunch of UTF-8 characters

[PHP] Premature Ajax-ulation

2007-08-03 Thread Jay Blanchard
One of my developers saw the following article; http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve lopers-about-the-risks-of-premature-ajax-ulation.html How are you securing Ajax? I know that for the most part we send data to a PHP script for processing, so all of the

Re: [PHP] Premature Ajax-ulation

2007-08-03 Thread Stut
Jay Blanchard wrote: One of my developers saw the following article; http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve lopers-about-the-risks-of-premature-ajax-ulation.html How are you securing Ajax? I know that for the most part we send data to a PHP script for

Re: [PHP] php SHOW

2007-08-03 Thread Paul Scott
On Fri, 2007-08-03 at 11:56 +0100, Hulf wrote: Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen Well, not knowing what show does, my best guess would be that you are looking for __toString() --Paul All Email

RE: [PHP] php SHOW

2007-08-03 Thread Edward Kay
-Original Message- From: Hulf [mailto:[EMAIL PROTECTED] Sent: 03 August 2007 11:56 To: php-general@lists.php.net Subject: [PHP] php SHOW Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen Ta, R.

RE: [PHP] Validating Email Conditional

2007-08-03 Thread bruce
hey... there are reasonable perl based solutions to the email address validation issue. if you're willing to call the perl function, you can let it do the heavy lifting. however, there's no way you're going to have a 5-10 line regex be able to accommodate all the email address nuances..

[PHP] Downloading PHP 521

2007-08-03 Thread WyleySam
Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every link I clicked on at http://www.php.net/ took me to 523, which I don't want. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function - action

2007-08-03 Thread Ken Tozier
On Aug 3, 2007, at 9:39 AM, Ken Tozier wrote: On Aug 3, 2007, at 2:38 AM, Ralph Kutschera wrote: Hallo! I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the

Re: [PHP] Downloading PHP 521

2007-08-03 Thread Jim Lucas
WyleySam wrote: Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every link I clicked on at http://www.php.net/ took me to 523, which I don't want. http://us3.php.net/get/php-5.2.1.tar.gz/from/this/mirror -- Jim Lucas Some men are born to greatness, some

Re: [PHP] Downloading PHP 521

2007-08-03 Thread Stut
WyleySam wrote: Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every link I clicked on at http://www.php.net/ took me to 523, which I don't want. http://museum.php.net/php5/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread David Giragosian
On 8/3/07, tedd [EMAIL PROTECTED] wrote: At 12:57 AM +0200 8/3/07, M. Sokolewicz wrote: Now, as mentioned before: You have to decide for yourself if your application is the correct place to check for the stupidity of your users. Check for the ignorance of your users -- there's a difference.

Re: [PHP] Numbers, Numbers everywhere! Need some Dollar help.

2007-08-03 Thread Dan Shirah
Thanks for all of the suggestions. While I agree that I shouldn't have to write a check for stupid users, the supervisor of the employees that will be using this application is VERY insistent! I am going to try the Javascript route...too bad the javascript forums are not as helpful as all of you!

RE: [PHP] Setting group sticky bit on directory with chmod()

2007-08-03 Thread Ford, Mike
On 02 August 2007 17:45, Daniel Brown wrote: Well, you're pleasant today, Mike. H'mmm. I guess that was a little crabby. Sorry. All I can say is that it was practically the last thing I did before going home at the end of a particularly frustrating day Cheers! Mike

Re: [PHP] Premature Ajax-ulation

2007-08-03 Thread Chad Robinson
Jay Blanchard wrote: One of my developers saw the following article; http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve lopers-about-the-risks-of-premature-ajax-ulation.html How are you securing Ajax? I know that for the most part we send data to a PHP script for

RE: [PHP] function - action

2007-08-03 Thread Jay Blanchard
[snip] I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word action as function? E.g.: public function doSomething() { } public action doSomethingElse() { ... }

RE: [PHP] php SHOW

2007-08-03 Thread Sanjeev N
Hi, If I understood your problem correctly then, you can use ob_start and ob_end functions Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirectory.sanchanworld.com -Original Message- From: Hulf [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 4:26 PM To:

Re: [PHP] Premature Ajax-ulation

2007-08-03 Thread Jon Anderson
Stut wrote: Validation, validation, validation. The big danger with doing anything on the client-side is that it's all to easy to fall into blindly trusting what the client is giving you, even the smallest assumption can create a big hole in your app. Don't assume events will happen the way

Re: [PHP] output the schema

2007-08-03 Thread Richard Heyes
I reword my last post. I want to take the result and generate the field info to the screen e.g Well, if you're using MySQL you could use either DESC table; or SHOW CREATE But you can't really generate the schema from a result set. -- Richard Heyes +44 (0)844 801 1072

Re: [PHP] Which PHP-Editor to use?

2007-08-03 Thread Zoltán Németh
2007. 08. 2, csütörtök keltezéssel 18.12-kor Merlin ezt írta: Hi there, I have worked now for several years happily with homesite 4.5, but now it looks like I have to switch to another system as homesite will not run without admin rights on a XP machine. What editors do you use? Do you

Re: [PHP] function - action

2007-08-03 Thread Ken Tozier
On Aug 3, 2007, at 2:38 AM, Ralph Kutschera wrote: Hallo! I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word action as function? E.g.: public function

RE: [PHP] Downloading PHP 521

2007-08-03 Thread Uber Wannabe
http://www.php.net/releases/ -- N/A -Original Message- From: WyleySam [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 10:47 AM To: php-general@lists.php.net Subject: [PHP] Downloading PHP 521 Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every

RE: [PHP] Re: php SHOW

2007-08-03 Thread Warren Vail
That would be dependent on the database you are interfaced to, not your programming language. For MySQL 5.0 http://dev.mysql.com/doc/refman/5.0/en/charset-show.html Or 5.1 http://dev.mysql.com/doc/refman/5.1/en/charset-show.html Not all database systems support the SHOW command. Warren

[PHP] Re: function - action

2007-08-03 Thread Daniel Macedo
Ralph Kutschera escreveu: Hallo! I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word action as function? E.g.: public function doSomething() { } public

Re: [PHP] Premature Ajax-ulation

2007-08-03 Thread tedd
At 8:39 AM -0500 8/3/07, Jay Blanchard wrote: How are you securing Ajax? I know that for the most part we send data to a PHP script for processing, so all of the normal rules for sending that data apply (mysql_real_escape_string(), etc.) Jay: First, the subject title is LOL. Second, I don't

[PHP] Re: [pcre] backreferences to all matches of a repeated subexpression

2007-08-03 Thread Roberto Mansfield
Jack Bates wrote: I'm trying to pull all the components out of strings structured like: word followed by any number of ( dot word or square bracketed string ) This is an example: foo.bar[ab.cd].baz From the above example, I want: array('foo', 'bar', 'ab.cd', 'baz'); A regular expression

RE: [PHP] Premature Ajax-ulation

2007-08-03 Thread Jay Blanchard
[snip] First, the subject title is LOL. [/snip] I know... I wish I had thought of it! [snip] Second, I don't know about others but every ajax post/get data received is treated like any other post/get data -- it's validated and scrubbed. Most ajax data provided in my scripts are there to

[PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread blackwater dev
I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Thanks!

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Robert Cummings
On Fri, 2007-08-03 at 14:22 -0400, blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? No, you own it. Cheers, Rob. --

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Tom Ray [Lists]
Stut wrote: blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Network Solutions are expensive, GoDaddy are cheap. That's all there is to it. In my

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Stut
blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Network Solutions are expensive, GoDaddy are cheap. That's all there is to it. In my experience

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Austin Denyer
Robert Cummings wrote: On Fri, 2007-08-03 at 14:22 -0400, blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? No, you own it. But, don't make your final

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Afan Pasalic
I'm with GoDaddy since 1999 and have over 60 domains. Never had a problem with them. -afan Stut wrote: blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Rahul Sitaram Johari
On Fri, 2007-08-03 at 14:22 -0400, blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Ave, I think I have at least 13 domains (personal + business) with

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Rahul Sitaram Johari
Interesting read - although the whole thing is trumpeted upon their policy We have the right to terminate a service at any time without any reason - Well apparently, Network Solutions and most Major Domain Name Service vendors have a similar policy - so I wouldn't be surprised to see a

RE: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Warren Vail
Does anyone know the relationship between goDaddy.com and WildWestDomains.com? :W -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Friday, August 03, 2007 12:47 PM To: Austin Denyer; PHP Subject: Re: [PHP] OT- why is network solutions more than godaddy?

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Eric Holt (PHP List)
How about a middle-of-the-road solution? www.PairNIC.com The domain services of the very good webhost, Pair Networks. I've been with their hosting solutions since 1998, and with their domain registration services since whenever it opened (5 years ago, I spose). Not the cheapest, not the

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread tedd
At 2:22 PM -0400 8/3/07, blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Thanks! I have had good luck with iyd.com (http://www.itsyourdomain.com) for

RE: [PHP] Premature Ajax-ulation

2007-08-03 Thread tedd
At 1:17 PM -0500 8/3/07, Jay Blanchard wrote: All of my PHP/Ajax functions are in one file (per application) with a case for each one. I apply typical scrubbing to this too, so I never use stuff as is either. I guess I could take the step of using php to obscure the javascript code. You

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Micky Hulse
I use and love http://www.namecheap.com/ 8.88$, plus whois guard. The control panel is great. Fast customer service. Also, I personally would avoid mixing host and registrar. Cheers, M -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?:

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Daniel Brown
On 8/3/07, Micky Hulse [EMAIL PROTECTED] wrote: I use and love http://www.namecheap.com/ 8.88$, plus whois guard. The control panel is great. Fast customer service. Also, I personally would avoid mixing host and registrar. Cheers, M -- Wishlists: http://snipurl.com/1gqpj Switch:

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Daniel Brown
On 8/3/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Yes, but at the core, Namecheap (http://www.namecheap.com/) is just like me (http://domains.pilotpig.net/) - a domain reseller. A bigger, richer, more well-known reseller, but

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Robert Cummings
On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Yes, but at the core, Namecheap (http://www.namecheap.com/) is just like me (http://domains.pilotpig.net/) - a domain reseller. A bigger, richer, more well-known reseller, but still just a reseller. Their site looks fancy, mine

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Robert Cummings
On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Yes, but at the core, Namecheap (http://www.namecheap.com/) is just like me (http://domains.pilotpig.net/) - a domain reseller. A bigger, richer, more well-known reseller, but still just a reseller. Their site looks fancy, mine

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Daniel Brown
On 8/3/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Yes, but at the core, Namecheap (http://www.namecheap.com/) is just like me (http://domains.pilotpig.net/) - a domain reseller. A bigger, richer, more well-known reseller, but

Re: [PHP] UTF-8 support

2007-08-03 Thread adel
http://www.php.net/manual/en/ref.mbstring.php On 8/3/07, Naz Gassiep [EMAIL PROTECTED] wrote: The functions trim() and explode() appear to be munging multibyte UTF-8 strings. I can't find multibyte safe versions of them in the manual, do they exist, or do I have to make my own? - Naz. --

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Robert Cummings
On Fri, 2007-08-03 at 17:13 -0400, Daniel Brown wrote: On 8/3/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Yes, but at the core, Namecheap (http://www.namecheap.com/) is just like me (http://domains.pilotpig.net/) - a domain

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread tedd
At 1:56 PM -0700 8/3/07, Micky Hulse wrote: Also, I personally would avoid mixing host and registrar. I've held the other view in keeping them separate -- I have lot's of host, but only one registrar that doesn't provide me hosting. I had host disappear overnight. It's one thing to put

[PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Chris
When I run the following code (PHP 5.2.2, 5.2.3) via Apache (with an htaccess file), I get this error: Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer zlib output compression. in ... Can anyone explain what's going on? I'm assuming it isn't a bug and I've read the

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread tedd
At 5:11 PM -0400 8/3/07, Robert Cummings wrote: On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Your site is broken btw, it doesn't support Canadian Dollars you insensitive clod. Ahhh, ya frostback. Ya can't blame a man a boot dat, eh? Cheers, tedd -- --- http://sperling.com

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Robert Cummings
On Fri, 2007-08-03 at 19:05 -0400, tedd wrote: At 5:11 PM -0400 8/3/07, Robert Cummings wrote: On Fri, 2007-08-03 at 17:05 -0400, Daniel Brown wrote: Your site is broken btw, it doesn't support Canadian Dollars you insensitive clod. Ahhh, ya frostback. Ya can't blame a man a boot dat,

RE: [PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Jan Reiter
Hi! I'm not quite sure what you are trying to do ... Why do you use output buffering in your code, when you turn it off in the htaccess directive?? php_flag output_buffering Off The code worked for me. But I tested it without your htaccess settings ... Jan -Ursprüngliche Nachricht-

[PHP] Re: Output Buffering and zlib Compression Issue

2007-08-03 Thread Chris
I put set output_buffering off in the htaccess so i could have absolute control in my code. It doesn't matter what I was trying to do, actually. I created a very basic test case to illustrate the issue. And the problem won't happen if you don't bother using the htaccess code. Why would I

RE: [PHP] Output Buffering and zlib Compression Issue

2007-08-03 Thread Jan Reiter
Right! With zlib compression ob_start() or similar seems to get called before the user script execution. I'm not quite sure why. Anyhow ob_get_level() returns 2 after the ob_start() is called for the first time in the script. You can avoid the error with while (ob_get_level() 1) {