php-general Digest 15 Nov 2005 10:06:22 -0000 Issue 3795

2005-11-15 Thread php-general-digest-help
php-general Digest 15 Nov 2005 10:06:22 - Issue 3795 Topics (messages 225785 through 225808): Re: Walking through a bunch of MySQL Records 225785 by: Miles Thompson [EMAIL PROTECTED] 225786 by: Miles Thompson 225789 by: Jasper Bryant-Greene Re: Filtering and

[PHP] ignore: this is a test

2005-11-15 Thread adriano ghezzi
bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie to PHP5

2005-11-15 Thread Danny
Hi there, I´m familiar with PHP syntax, but I´ve been reading some sample scripts, in PHP5 and i´ve seen some strange things, like diferent ways to read a collection of rows, magic functions, wrapers, and operators like :: and -. I know that all is the manual, but before that anyone nows, a

Re: [PHP] Newbie to PHP5

2005-11-15 Thread Jochem Maas
Danny wrote: Hi there, I´m familiar with PHP syntax, but I´ve been reading some sample scripts, in PHP5 and i´ve seen some strange things, like diferent ways to read a collection of rows, magic functions, wrapers, and operators like :: and -. I know that all is the manual, but before that

Re: [PHP] Newbie to PHP5

2005-11-15 Thread Raz
-. I know that all is the manual, but before that anyone nows, a website or a simple tutorial or explained samples, in order that the transition from PHP4 and PHP5 were easiest as possible. http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php session in ie

2005-11-15 Thread sunaram patir
On 11/14/05, Ford, Mike [EMAIL PROTECTED] wrote: On 11 November 2005 18:47, sunaram patir wrote: array(1) { [PHPSESSID]= string(32) 337a44c0d6c9ed3cf4ba4e97d707589e } is returned by firefox on calling var_dump($_COOKIE). NULL in ie. If the very same piece of PHP produces different

Re: [PHP] Newbie to PHP5

2005-11-15 Thread Danny
Thanks. Any other source (some resume pdf or something like What´s new) On 11/15/05, Raz [EMAIL PROTECTED] wrote: -. I know that all is the manual, but before that anyone nows, a website or a simple tutorial or explained samples, in order that the transition from PHP4 and PHP5 were

Re: [PHP] Newbie to PHP5

2005-11-15 Thread Raz
http://uk2.php.net/manual/en/migration5.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Zend + Eclipse + Standized Framework

2005-11-15 Thread GamblerZG
Greg Donald wrote: On Mon, 2005-11-14 at 03:55 -0500, Roman Ivanov wrote: What features do you need from a framework? Convention over configuration. (Yaml, not XML. ActiveRecord not Propel/Phing.) Hard to do in pure PHP. But I tried:

Re: [PHP] Newbie to PHP5

2005-11-15 Thread Marcus Bointon
On 15 Nov 2005, at 10:06, Danny wrote: I´m familiar with PHP syntax, but I´ve been reading some sample scripts, in PHP5 and i´ve seen some strange things, like diferent ways to read a collection of rows, magic functions, wrapers, and operators like :: and -. I know that all is the manual,

[PHP] compiling php to use imagettftext

2005-11-15 Thread Jason
been fighting this for a while but can find no definitave docs that say how exactly and with what options are needed to enable this.. Here is what Im using for my config ./configure -v --with-oci8=/apps/oracle --with-apxs=/local/apache-1333/bin/apxs --with-gd=/local/stuff

[PHP] Is echo tag reasonably portable?

2005-11-15 Thread Roman Ivanov
Can '?=' be used for templates, or is it a bad thing? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Zend + Eclipse + Standized Framework

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, GamblerZG wrote: Convention over configuration. (Yaml, not XML. ActiveRecord not Propel/Phing.) Hard to do in pure PHP. But I tried: http://cvs.sourceforge.net/viewcvs.py/naturalgine/NECMS_0_3/tools/ori.php?rev=1.1.1.1view=markup Maybe Zend will get it right where all

[PHP] PHP Framework

2005-11-15 Thread Yonatan Ben-Nes
Hi All, I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some suggestions, recommenditions and even ideas. The framework need to achieve the

Re: [PHP] PHP Framework

2005-11-15 Thread Richard Davey
Hi Yonatan, Tuesday, November 15, 2005, 2:54:27 PM, you wrote: I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some suggestions,

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Roman Ivanov
Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant for

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jochem Maas
Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant for

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread John Nichel
Roman Ivanov wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are

Re: [PHP] PHP Framework

2005-11-15 Thread Yonatan Ben-Nes
Richard Davey wrote: Hi Yonatan, Tuesday, November 15, 2005, 2:54:27 PM, you wrote: I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are meant

[PHP] Validating Email addrs

2005-11-15 Thread Leonard Burton
Hi All, I know that it is pretty darn impossible to come up with a regular expression for validating emails. How do you all validated emails on form submission? Is it good just to do something like /[EMAIL PROTECTED]/ ? That (or a close derivative) should match that there is at least a @ and

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread lonewolf
Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Some of them don't even read .htaccess files in the directories where my scripts reside, so trying that type of hack would get you booted. just my $.02 -- PHP General

[PHP] Deatailed Email Publishing Record

2005-11-15 Thread Chirantan Ghosh
Hi All, Is there any way to develop a php scrip which generates reports of emails sent from a list? Basic records like open rate, click rate, opt out that is automatically generated from the email campaign list? I am trying to substitute our email publishing house because they don't have a

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Leonard Burton
HI All, Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Why turn off short tags? Does that make things more secure? Thanks, -- Leonard Burton, N9URK [EMAIL PROTECTED] The prolonged evacuation would have

Re: [PHP] Validating Email addrs

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Leonard Burton wrote: I know that it is pretty darn impossible to come up with a regular expression for validating emails. Nah.. just depends on how closely you want to follow the RFC. http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html -- Greg Donald Zend Certified

Re: [PHP] compiling php to use imagettftext

2005-11-15 Thread Jason
seems like as soon as I post to the list, I end up figgereing it out.. anyway, heres what ended up working. ./configure -v --with-oci8=/apps/oracle --with-apxs=/local/apache-1333/bin/apxs --with-gd=/local/stuff --with-mysql=/local/stuff --with-curl --with-imap=/local/jason/imap-2002d

Re: [PHP] Validating Email addrs

2005-11-15 Thread Richard Heyes
Leonard Burton wrote: Hi All, I know that it is pretty darn impossible to come up with a regular expression for validating emails. How do you all validated emails on form submission? Is it good just to do something like /[EMAIL PROTECTED]/ ? That (or a close derivative) should match that

Re: [PHP] Validating Email addrs

2005-11-15 Thread Matt Stone
- Original Message - From: Leonard Burton [EMAIL PROTECTED] To: PHP-General php-general@lists.php.net Sent: Tuesday, November 15, 2005 4:16 PM Subject: [PHP] Validating Email addrs Hi All, I know that it is pretty darn impossible to come up with a regular expression for validating

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread lonewolf
Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Why turn off short tags? Does that make things more secure? In some respects it does because it means shortcuts are not allowed, it also means that someone trying to

Re: [PHP] Validating Email addrs

2005-11-15 Thread Leonard Burton
Hi Greg, all, http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html That is a heck of a regex there. I am going to have to experiment with that one a little bit. Thanks for the replies to my post here. -- Leonard Burton, N9URK [EMAIL PROTECTED] The prolonged evacuation would have

Re: [PHP] PHP Framework

2005-11-15 Thread Robert Cummings
On Tue, 2005-11-15 at 09:54, Yonatan Ben-Nes wrote: Hi All, I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some suggestions,

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jochem Maas
Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries that are

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread John Nichel
Leonard Burton wrote: HI All, Every server I work on is set to not allow short tags, and I work on about 7 different state, federal, and commercial ones. Why turn off short tags? Does that make things more secure? Don't know if it makes it any more or less secure. I turn them off

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, [EMAIL PROTECTED] wrote: In some respects it does because it means shortcuts are not allowed, it also means that someone trying to hack through your site is going to be held to a higher standard (ASP tags are cut off as well, the only thing Most PHP site exploits I've

[PHP] Sending arrays from page to page

2005-11-15 Thread Ben Miller
I am trying to learn how to work with arrays, and have the basic concept down for working within a single page, but I am having trouble sending an array from one page to another. For example, I can send a variable from page to page using either the URL, such as www.domain.com/?foo=bar, or using a

Re: [PHP] PHP Framework

2005-11-15 Thread Yonatan Ben-Nes
Robert Cummings wrote: On Tue, 2005-11-15 at 09:54, Yonatan Ben-Nes wrote: Hi All, I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when developing applications or libraries

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jochem, Tuesday, November 15, 2005, 4:34:28 PM, you wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use of short-open-tags is probably not your

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Michael Crute
On 11/15/05, Jochem Maas [EMAIL PROTECTED] wrote: Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jim, Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority remaining, who write closed-apps for clients?? It will be when you have to

Re: Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Lynch
On Tue, November 15, 2005 11:35 am, Richard Davey wrote: Tuesday, November 15, 2005, 4:34:28 PM, you wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Miles Thompson
At 01:25 PM 11/15/2005, Jim Moseby wrote: Jim Moseby wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be

[PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
Real simple question How do I change this from disabled to enabled. Thanks Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 05:39:36PM +, Richard Davey wrote: Hi Jim, Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority

RE: [PHP] Virtual Directory Support

2005-11-15 Thread Jay Blanchard
[snip] Real simple question How do I change this from disabled to enabled. [/snip] Flip the switch? /subtle :) This an IIS question. Please see http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2 000/en/server/iis/htm/core/iicodirv.htm -- PHP General Mailing List

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Jochem Maas [EMAIL PROTECTED] wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use of short-open-tags is probably not your biggest issue

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread John Nichel
Robin Vickery wrote: snip Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they were turned off by default, but that's bound to annoy a lot of people who've ignored the warnings. Hey, we

Re: [PHP] Sending arrays from page to page

2005-11-15 Thread Dan Lowe
On Nov 15, 2005, at 12:07 PM, Ben Miller wrote: I am trying to learn how to work with arrays, and have the basic concept down for working within a single page, but I am having trouble sending an array from one page to another. For example, I can send a variable from page to page using

Re: [PHP] PHP Framework

2005-11-15 Thread Alessandro Rossini
On Tuesday 15 November 2005 16:09, Richard Davey wrote: I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some suggestions, recommenditions

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Robin Vickery wrote: On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote: Can '?=' be used for templates, or is it a bad thing? The manual's reasonably explicit on the subject: Note: Using short tags should be avoided when

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Dan Lowe
On Nov 15, 2005, at 8:39 AM, Greg Donald wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Robin, Tuesday, November 15, 2005, 6:18:06 PM, you wrote: Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they were turned off by default, but that's bound to annoy a lot of people

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file

[PHP] wierd error

2005-11-15 Thread Ross
When I test locally I get a weird error.. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: any ideas? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] wierd error

2005-11-15 Thread Jay Blanchard
[snip] When I test locally I get a weird error.. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: any ideas? [/snip] It is not nearly as weird as you may think. Have you looked at your error log? Can we see the

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change '?' to '?PHP'. Better to save the grief and do it right to start with, no? for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file

[PHP] Catch warnings

2005-11-15 Thread Mariano Guadagnini
Hi, i´m writting a php program that parses and saves some xml files on a server. The problem is that i want to catch warnings so as to be able to store them in a variable, but not to be put directly on client´s browser. I got the following code, but i cannot get it working:

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ On 11/15/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Real

Re: Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
Hiyah Richard, On 11/15/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Robin, Tuesday, November 15, 2005, 6:18:06 PM, you wrote: Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they

RE: [PHP] Virtual Directory Support

2005-11-15 Thread Jay Blanchard
[snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Jasper Bryant-Greene
Jay Blanchard wrote: [snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir

RE: Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Jim Moseby
cho tag reasonably portable? Hi Jim, Hi Richard. Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority remaining, who write

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 02:50:53PM -0500, Brad Glonka wrote: I think I may be headed down the wring direction. Yeah, the Virtual Directory Support isn't really what its name seems to be, it basically is enabled when php is compiled with Zend Thread Saftey which only effects how certain things

[PHP] Error Command failed for target 'ext/xml/xml.lo' during make process (Solaris 8)

2005-11-15 Thread Age Bosma
Hi, I'm trying to compile php 4.4.1 on Solaris 8 but I'm getting the error Command failed for target 'ext/xml/xml.lo' during the make process. [snip] /nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582: `XML_Char' undeclared (first use in this function)

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Jasper Bryant-Greene
Brad Glonka wrote: The script does not give me any output. I think this is what I need to enable. No, as has already been said on the list. That virtual directory setting has nothing to do with this AFAIK. Are you running PHP as an Apache module or as CGI? Jasper -- PHP General Mailing

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
The script does not give me any output. I think this is what I need to enable. On 11/15/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Jay Blanchard wrote: [snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass

[PHP] Regex for Amateur Radio Callsigns

2005-11-15 Thread Leonard Burton
Hi All, Does anyone know of a regex to work for Amateur Radio Callsigns that will work with any from across the world? Thanks and 73, -- Leonard Burton, N9URK [EMAIL PROTECTED] The prolonged evacuation would have dramatically affected the survivability of the occupants. -- PHP General

[PHP] Shared Memory Problem

2005-11-15 Thread Yaswanth Narvaneni
Hi! I have a server written in C++ and my webpages are in PHP. The PHP has to communicate with the server using shared memory. This was working fine on the server running FC-1 with php-4.3.8. We recently migrated to CentOS 4.1 (Equivalent to RHEL 4.1) running php-4.3.9. The error it displays is

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done I maintain: Better to save the grief and do it right to start with, no? Maybe at some point I too will be lucky enough to only work on code that I authored.

Re[4]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Robin, Tuesday, November 15, 2005, 7:53:55 PM, you wrote: I did quote the note concerning them in its entirety. If I had simply quoted the manual as saying be sure not to use short tags then I could see your point regarding lack of context. But I didn't. Not in the message I was replying

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done I maintain: Better to save the grief and do it right to start with, no? Maybe at some point I too

Re[4]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jim, Tuesday, November 15, 2005, 8:01:01 PM, you wrote: Still best practice is to use long tags. Suppose you write a closed-app for a client who makes a business decision to move it to a hosted server that does not allow short tags... The down side is, the app will break. The up side is,

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Robin Vickery
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done I maintain: Better to save the grief and do it right to start with, no? Maybe at some point I too

[PHP] include/include_once php_check_syntax() / E_PARSE errors

2005-11-15 Thread Thiago Silva
Hello all, Recently I had some problems with include/include_once. This is the scenario: My application uses only classes loaded through a centered __autoload() function (no require/include anywere in the scripts, but in __autoload() itself). Now, diverse libraries use diverse extensions. For

[PHP] Re: PHP Framework

2005-11-15 Thread Aaron Greenspan
Yonatan, And since I'm the Lampshade guy, I'll throw Lampshade out there, as well: http://www.thinkcomputer.com/software/lampshade/index.html Unlike a lot of frameworks, Lampshade is entirely procedural, and it's designed specifically for use with MySQL. I suppose that makes it less flexible

[PHP] unsubscribing

2005-11-15 Thread wayne
I tried to unsubscribe on several occasion without success. I followed the instruction at the bottom of the email. Can someone take me off the list. Thank You. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include/include_once php_check_syntax() / E_PARSE errors

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 10:48:56PM +, Thiago Silva wrote: ... So, __autload has to *try* include_once's. Something like that: function __autoload($className) { include_once(${className}.php); if(class_exists($className, false)) return; include_once(${className}.class.php);

Re: [PHP] unsubscribing

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 09:33:42PM -0500, wayne wrote: I tried to unsubscribe on several occasion without success. I followed the instruction at the bottom of the email. Can someone take me off the list. Thank You. you can always send an email to: [EMAIL PROTECTED] Curt. -- -- PHP

Re: [PHP] Catch warnings

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 04:39:05PM -0300, Mariano Guadagnini wrote: Hi, i�m writting a php program that parses and saves some xml files on a server. The problem is that i want to catch warnings so as to be able to store them in a variable, but not to be put directly on client�s browser. I

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 03:47:21PM -0500, Leonard Burton wrote: Does anyone know of a regex to work for Amateur Radio Callsigns that will work with any from across the world? What does a amateur radio callsign look like? And in what context are you trying to parse this callsign? Curt. --

Re: [PHP] Shared Memory Problem

2005-11-15 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 03:33:22AM +0530, Yaswanth Narvaneni wrote: Hi! I have a server written in C++ and my webpages are in PHP. The PHP has to communicate with the server using shared memory. This was working fine on the server running FC-1 with php-4.3.8. We recently migrated to CentOS

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-15 Thread Leonard Burton
HI Curt, Thanks for the reply, What does a amateur radio callsign look like? And in what context are you trying to parse this callsign? Basically here is the regex I used (I am not the best with regexes): $pattern = /^[0-9]?[A-Z]{1,2}[0-9][A-Z]{1,3}/; Here are how they look W1W W1AW WA1W

Re: [PHP] wierd error

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 06:05:20PM -, Ross wrote: When I test locally I get a weird error.. CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: any ideas? Not really, how did you set php up locally?

Re: [PHP] Validating Email addrs

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 11:16:15AM -0500, Leonard Burton wrote: Hi All, I know that it is pretty darn impossible to come up with a regular expression for validating emails. How do you all validated emails on form submission? Is it good just to do something like /[EMAIL PROTECTED]/ ?

[PHP] random row

2005-11-15 Thread John Taylor-Johnston
My question is simnple. I want to randomly select a row in a mysql table. I have a primary id. ?php $server = localhost; $user = foo; $pass = foo; $db=foo_db; $table=foo_table; $myconnection = mysql_connect($server,$user,$pass); mysql_select_db($db,$myconnection); $sql = ??; $news =

Re: [PHP] random row

2005-11-15 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: My question is simnple. I want to randomly select a row in a mysql table. I have a primary id. ?php $server = localhost; $user = foo; $pass = foo; $db=foo_db; $table=foo_table; $myconnection = mysql_connect($server,$user,$pass); mysql_select_db($db,$myconnection);

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 01:27:12AM +0200, Robin Vickery wrote: On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 15 Nov 2005, Jim Moseby wrote: for file in *.php; do cp $file $file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done ... for file in *.php; do

[PHP] Set Timezone to localtime in php.ini

2005-11-15 Thread The Doctor
IS their a way to set the time to localtime instead of GMT in the ini file? Some users are complaining that they are seeing GMT, which this server is set to. -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God Queen and country! Beware Anti-Christ

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 10:39:19PM -0500, Leonard Burton wrote: HI Curt, Thanks for the reply, What does a amateur radio callsign look like? And in what context are you trying to parse this callsign? Basically here is the regex I used (I am not the best with regexes): $pattern =

Re: [PHP] random row

2005-11-15 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 05:19:52PM +1300, Jasper Bryant-Greene wrote: John Taylor-Johnston wrote: My question is simnple. I want to randomly select a row in a mysql table. I have a primary id. ?php $server = localhost; $user = foo; $pass = foo; $db=foo_db; $table=foo_table;

Re: [PHP] [EMAIL PROTECTED]

2005-11-15 Thread Curt Zirzow
On Mon, Nov 14, 2005 at 06:01:21PM -0400, Miles Thompson wrote: Can someone get rid of him? Every time I post, which I admit is not often, I get a bounce. I put in a request to remove that email from the list, hopefully it will get remove shortly.. i had to look in my gmail spam to find that

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-15 Thread Leonard Burton
HI Curt, W1W W1AW WA1W AD4HZ N9URK WB6NOA 4N1UBG Ok, so i can conclude so far we have alpha numeric chars minimum of 3 chars up to 6, this would make a regex: /[A-Z0-9]{3,6}/ The only problem with this is that it would take 444 which is not a valid call. $pattern = /^;

[PHP] Query about gzinflate

2005-11-15 Thread kumar kumar
HI How to uncompress compressed data with php://input Which one of the following is correct 1 .$unzip = gzinflate(php://input,r); $getdata = fopen($unzip.r); 2. gzcompress(php://input,r); $getdata = fopen($unzip.r); what the best solution help me With regards Praveen

Re: [PHP] Query about gzinflate

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 09:28:22PM -0800, kumar kumar wrote: HI How to uncompress compressed data with php://input Which one of the following is correct 1 .$unzip = gzinflate(php://input,r); $getdata = fopen($unzip.r); 2. gzcompress(php://input,r); $getdata =

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-15 Thread Curt Zirzow
On Wed, Nov 16, 2005 at 12:25:22AM -0500, Leonard Burton wrote: HI Curt, W1W W1AW WA1W AD4HZ N9URK WB6NOA 4N1UBG Ok, so i can conclude so far we have alpha numeric chars minimum of 3 chars up to 6, this would make a regex: /[A-Z0-9]{3,6}/ The only problem with this

RE: [PHP] Validating Email addrs

2005-11-15 Thread George Pitcher
I grabbed the following from a web-published article (sorry, can't remember where): function validate_email($email) { if(preg_match(/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( \.[a-zA-Z0-9_-] +)+$/ , $email)){ list($username,$domain)=split('@',$email);