Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-16 Thread Robert Cummings
On Thu, 2009-01-15 at 23:54 -0500, Paul M Foster wrote: On Thu, Jan 15, 2009 at 04:20:16AM -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: Incidentally, I would differ from the reviewer in the link above only in this respect: He maintains that

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-16 Thread Robert Cummings
On Fri, 2009-01-16 at 00:06 -0500, Paul M Foster wrote: On Thu, Jan 15, 2009 at 04:17:51AM -0500, Robert Cummings wrote: On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: snip The pages are significantly

Re: [PHP] print a to z

2009-01-16 Thread Jochem Maas
paragasu schreef: i have this cute little problem. sounds more like a homework assignment. by now you know range(), by all means have array_map() too: array_map(print_r, range(a,z)); i want to print a to z for site navigation my first attempt work fine for($i = '65'; $i '91'; ++$i)

[PHP] preg_match_all question

2009-01-16 Thread Phil Ewington - iModel Ltd.
Hi All, Having an issue with regular expressions, never been my strong point! The following pattern only picks up one instance per line, if more than one instance exists all text from first {{ to last }} is included, can anyone point out where I am going wrong?

Re: [PHP] preg_match_all question

2009-01-16 Thread Robert Cummings
On Fri, 2009-01-16 at 09:42 +, Phil Ewington - iModel Ltd. wrote: Hi All, Having an issue with regular expressions, never been my strong point! The following pattern only picks up one instance per line, if more than one instance exists all text from first {{ to last }} is included,

Re: [PHP] preg_match_all question

2009-01-16 Thread Phil Ewington - iModel Ltd.
Robert Cummings wrote: On Fri, 2009-01-16 at 09:42 +, Phil Ewington - iModel Ltd. wrote: Hi All, Having an issue with regular expressions, never been my strong point! The following pattern only picks up one instance per line, if more than one instance exists all text from first {{ to

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-16 Thread Ewen Cumming
Good question, according to the author 'There was only a little problem with _calculateSharedStringsSizes() and _storeSharedStringsTable() functions within the Workbook.php. They did not support unicode strings.' Ewen 2009/1/15 Thodoris t...@kinetix.gr Hi there, I'm not sure if this is the

[PHP] Server cannot send emails

2009-01-16 Thread Sergio Jovani
Hi! I have working at SourceForge.net project web space Drupal as CMS. I have many modules installed related with email like Contact, Notify... This modules never worked and I tried send an email from email php function. I did it with: ?php $to = myem...@gmail.com; $subject = Hi!; $body =

Re: [PHP] Server cannot send emails

2009-01-16 Thread Thiago H. Pojda
On Fri, Jan 16, 2009 at 10:36 AM, Sergio Jovani lese...@gmail.com wrote: Hi! I have working at SourceForge.net project web space Drupal as CMS. I have many modules installed related with email like Contact, Notify... This modules never worked and I tried send an email from email php

Re: [PHP] To check for existing user in database

2009-01-16 Thread tedd
At 11:01 PM -0800 1/15/09, Lars Torben Wilson wrote: 2009/1/15 tedd tedd.sperl...@gmail.com: You want to use mysql_num_rows() there instead of mysql_affected_rows(). (Just a typo in this case, I suspect, but for the benefit of the less experienced it's worth pointing out.) For the newer PHP

Re: [PHP] Server cannot send emails

2009-01-16 Thread Sergio Jovani
Hi, Thanks for replying. Adding From header did not solve the problem. I'm thinking is a server limitation. Could it be? 2009/1/16 Thiago H. Pojda thiago.po...@gmail.com: On Fri, Jan 16, 2009 at 10:36 AM, Sergio Jovani lese...@gmail.com wrote: Hi! I have working at SourceForge.net project

[PHP] ANN: Chisimba-2.1.0 release!

2009-01-16 Thread Paul Scott
The next release of the Chisimba PHP5 framework is now available (Chisimba-2.1.0). Major enhancements included in this release are: - Numerous enhancements to the database abstraction layer for increased performance - Numerous core bugfixes and enhancements - Patch descriptions added in

RE: [PHP] Looking for an app...

2009-01-16 Thread Boyd, Todd M.
-Original Message- From: bruce [mailto:bedoug...@earthlink.net] Sent: Thursday, January 15, 2009 12:18 PM To: php-general@lists.php.net Subject: [PHP] Looking for an app... Hi List! I know this is somewhat basic.. and I am searching google as I type! I'm looking for a

Re: [PHP] Mirroring/caching PHP webpages.

2009-01-16 Thread ceo
It is not the case that they are running your old PHP code. Their messages may be passing through your filters. Save one of them and try it yourself, with a lot of debug echo statements or whatever you like. They may be accessing your old PHP file still on your server, if you left it

Re: [PHP] To check for existing user in database

2009-01-16 Thread Shawn McKenzie
Lars Torben Wilson wrote: 2009/1/15 tedd tedd.sperl...@gmail.com: At 9:46 AM -0800 1/15/09, Chris Carter wrote: Chris: That's not the way I would do it. After establishing a connection with the database, I would use the query: $query SELECT email FROM owners WHERE email = '$emailAddress'

[PHP] Sometime the code works and sometimes doesn't

2009-01-16 Thread Chris Carter
Hi, Here is a code for PHP password sending. There is some strange thing happening. This code DOES WORK but not always. So I might be able to get the password in my mailbox once but not always. What could be wrong. ? // database information $host = 'xxx'; $user = 'xxx';

Re: [PHP] Sometime the code works and sometimes doesn't

2009-01-16 Thread Nathan Rixham
Chris Carter wrote: There must be something that I am doing wrong. Otherwise I could have always gotten the password in my mailbox. Please help. when the php mail function sends an email, there is a brief time while the connection to the mail server resets, if you hit again in this time

Re: [PHP] To check for existing user in database

2009-01-16 Thread Eric Butera
$result = mysql_query($query) or die(mysql_error()); You know guys, after seeing all this talk of sql injection over the past few days, I'd also like to point out or die is pretty bad too. Especially when coupled with mysql_error(). It can expose sensitive system info (security vuln) when a

Re: [PHP] To check for existing user in database

2009-01-16 Thread Nathan Rixham
Eric Butera wrote: $result = mysql_query($query) or die(mysql_error()); You know guys, after seeing all this talk of sql injection over the past few days, I'd also like to point out or die is pretty bad too. Especially when coupled with mysql_error(). It can expose sensitive system info

RE: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Boyd, Todd M.
-Original Message- From: farn...@googlemail.com [mailto:farn...@googlemail.com] On Behalf Of Edmund Hertle Sent: Thursday, January 15, 2009 4:13 PM To: PHP - General Subject: [PHP] Parsing HTML href-Attribute Hey, I want to parse a href-attribute in a given String to check if

[PHP] Vertical Search Engine

2009-01-16 Thread Neil Rosewarm
Dear Friends, I am planning to launch a Vertical Jobs Search Engine (Ref: www.linkup.com and www.indeed.com) which crawls, spiders and Indexes the job listings. I have com across couple of open sources like Nutch and Lucene which are very compatable for Java. But, I would like to know similiar

Re: [PHP] Vertical Search Engine

2009-01-16 Thread Eric Butera
On Fri, Jan 16, 2009 at 1:03 PM, Neil Rosewarm neil_rosew...@yahoo.com wrote: Dear Friends, I am planning to launch a Vertical Jobs Search Engine (Ref: www.linkup.com and www.indeed.com) which crawls, spiders and Indexes the job listings. I have com across couple of open sources like Nutch

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
Boyd, Todd M. wrote: -Original Message- From: farn...@googlemail.com [mailto:farn...@googlemail.com] On Behalf Of Edmund Hertle Sent: Thursday, January 15, 2009 4:13 PM To: PHP - General Subject: [PHP] Parsing HTML href-Attribute Hey, I want to parse a href-attribute in a given

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Eric Butera
On Thu, Jan 15, 2009 at 5:13 PM, Edmund Hertle edmund.her...@student.kit.edu wrote: Hey, I want to parse a href-attribute in a given String to check if there is a relative link and then adding an absolute path. Example: $string = 'a class=sample [...additional attributes...]

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 10:54 AM, Eric Butera eric.but...@gmail.com wrote: You could also use DOM for this. http://us2.php.net/manual/en/domdocument.getelementsbytagname.php only if it's parseable xml :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 10:58 AM, mike mike...@gmail.com wrote: only if it's parseable xml :) Or not! Ignore me. Supposedly this can handle HTML too. I'll have to try it next time. Normally I wind up having to use tidy to scrub a document and try to get it into xhtml and then use simplexml. I

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Eric Butera
On Fri, Jan 16, 2009 at 1:59 PM, mike mike...@gmail.com wrote: On Fri, Jan 16, 2009 at 10:58 AM, mike mike...@gmail.com wrote: only if it's parseable xml :) Or not! Ignore me. Supposedly this can handle HTML too. I'll have to try it next time. Normally I wind up having to use tidy to scrub

[PHP] Re: To check for existing user in database

2009-01-16 Thread Daniel Brown
On Fri, Jan 16, 2009 at 13:35, chandan9sha...@yahoo.com wrote: Hi Daniel, Thanks for your help, I appreciate it. My pleasure, Chris. Please keep all replies on-list, though, so that others from the list - and, for the future, in the archives - can benefit from the discussion. I went

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
Shawn McKenzie wrote: Boyd, Todd M. wrote: -Original Message- From: farn...@googlemail.com [mailto:farn...@googlemail.com] On Behalf Of Edmund Hertle Sent: Thursday, January 15, 2009 4:13 PM To: PHP - General Subject: [PHP] Parsing HTML href-Attribute Hey, I want to parse a

[PHP] Almost Recursion

2009-01-16 Thread Nathan Rixham
Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. more classes and interfaces can be added - if I get a solution I'll mail it in. additional question.. quite sure this isn't

[PHP] Re: Almost Recursion

2009-01-16 Thread Nathan Rixham
Nathan Rixham wrote: Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. to be very specific; the problem is caused by a serializer (which cannot change); now this serializer calls

RE: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Boyd, Todd M.
-Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Friday, January 16, 2009 1:08 PM To: php-general@lists.php.net Subject: Re: [PHP] Parsing HTML href-Attribute Shawn McKenzie wrote: Boyd, Todd M. wrote: -Original Message- From:

Re: [PHP] Re: Almost Recursion

2009-01-16 Thread Philip Graham
On January 16, 2009 14:45:13 Nathan Rixham wrote: Nathan Rixham wrote: Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. to be very specific; the problem is caused by a serializer

RE: [PHP] preg_match_all question

2009-01-16 Thread Boyd, Todd M.
-Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Friday, January 16, 2009 4:31 AM To: Phil Ewington - iModel Ltd. Cc: php-general@lists.php.net Subject: Re: [PHP] preg_match_all question On Fri, 2009-01-16 at 09:42 +, Phil Ewington - iModel Ltd.

[PHP] function_exists question

2009-01-16 Thread Matt Pagel
Is there a way to check not only if a function exists, but also to check that the number and types of parameters desired match a function definition? The reason being that additional options have been added in php 4 and 5 to various standard function calls, but I'm still running a php3 and

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
Boyd, Todd M. wrote: -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Friday, January 16, 2009 1:08 PM To: php-general@lists.php.net Subject: Re: [PHP] Parsing HTML href-Attribute Shawn McKenzie wrote: Boyd, Todd M. wrote: -Original Message-

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
I believe the OP wanted to leave already-absolute paths alone (i.e., only convert relative paths). The regex does not take into account fully-qualified URLs (i.e., http://www.google.com/search?q=php) and it does not determine if a given path is relative or absolute. He was wanting to take the

[PHP] Re: function_exists question

2009-01-16 Thread Nathan Rixham
Matt Pagel wrote: Is there a way to check not only if a function exists, but also to check that the number and types of parameters desired match a function definition? The reason being that additional options have been added in php 4 and 5 to various standard function calls, but I'm still

RE: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Boyd, Todd M.
-Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Friday, January 16, 2009 2:37 PM To: php-general@lists.php.net Subject: Re: [PHP] Parsing HTML href-Attribute Hey, I want to parse a href-attribute in a given String to check if there is a relative

RE: [PHP] preg_match_all question

2009-01-16 Thread Boyd, Todd M.
-Original Message- From: Boyd, Todd M. [mailto:tmbo...@ccis.edu] Sent: Friday, January 16, 2009 2:13 PM To: php-general@lists.php.net Subject: RE: [PHP] preg_match_all question -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Friday, January

[PHP] Re: function_exists question

2009-01-16 Thread Shawn McKenzie
Matt Pagel wrote: Is there a way to check not only if a function exists, but also to check that the number and types of parameters desired match a function definition? The reason being that additional options have been added in php 4 and 5 to various standard function calls, but I'm still

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Edmund Hertle
* http://www.google.com/search?q=php ... absolute path (yes, it's a URL, but treat it as absolute) * https://www.example.com/index.php ... absolute path (yes, it's a URL, but to the local server) * /index.php ... absolute path (no protocol given, true absolute path) * index.php ... relative

Re: [PHP] Re: Almost Recursion

2009-01-16 Thread Nathan Rixham
Philip Graham wrote: On January 16, 2009 14:45:13 Nathan Rixham wrote: Nathan Rixham wrote: Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality. to be very specific; the problem is

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Kevin Waterson
This one time, at band camp, mike mike...@gmail.com wrote: On Fri, Jan 16, 2009 at 10:58 AM, mike mike...@gmail.com wrote: only if it's parseable xml :) Or not! Ignore me. Supposedly this can handle HTML too. I'll have to try it next time. Normally I wind up having to use tidy to scrub

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Kevin Waterson
This one time, at band camp, Eric Butera eric.but...@gmail.com wrote: You could also use DOM for this. http://us2.php.net/manual/en/domdocument.getelementsbytagname.php http://www.phpro.org/examples/Get-Links-With-DOM.html Kevin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Shawn McKenzie
Edmund Hertle wrote: * http://www.google.com/search?q=php ... absolute path (yes, it's a URL, but treat it as absolute) * https://www.example.com/index.php ... absolute path (yes, it's a URL, but to the local server) * /index.php ... absolute path (no protocol given, true absolute path) *

[PHP] Website crawler auto image downloader

2009-01-16 Thread Sam Smith
I need a script that will crawl a list of websites and download all .jpg, .gif, .png files. I can think of some ways how to start like, fopen() or maybe curl(). And it downed on me I'd need to handle files writing over with the same name. And it would be cool to save the full URL to the file in

[PHP] Re: Website crawler auto image downloader

2009-01-16 Thread Shawn McKenzie
Sam Smith wrote: I need a script that will crawl a list of websites and download all .jpg, .gif, .png files. I can think of some ways how to start like, fopen() or maybe curl(). And it downed on me I'd need to handle files writing over with the same name. And it would be cool to save the

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Eric Butera
On Fri, Jan 16, 2009 at 6:18 PM, Kevin Waterson ke...@phpro.org wrote: This one time, at band camp, Eric Butera eric.but...@gmail.com wrote: You could also use DOM for this. http://us2.php.net/manual/en/domdocument.getelementsbytagname.php

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-16 Thread Al
port23user wrote: I have a site (done in CodeIgniter) where users can upload pictures. When they upload a picture, I want to rotate it (rotating is optional, depending on how much cpu/ram I end up needing), resize it, and create a thumbnail. Right now I'm doing it all in that order using GD,

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 5:38 PM, Al n...@ridersite.org wrote: Imagick class. Has more image manipulating functions than you'll ever use. You name, and there's function to do it. http://pecl.php.net/package/imagick/ it's very cool, although it does coredump often enough to where i had to