Re: [PHP] Another parse problem

2010-06-16 Thread Daniel Brown
On Wed, Jun 16, 2010 at 21:42, Robert Cummings wrote: [snip!] > Anyways, those, by > virtue of your above description can have two or more parts and there's not > a simple way to extract that part without also extracting the sub-domain > portions. True. Not without some static rules and logi

Re: [PHP] Another parse problem

2010-06-16 Thread Robert Cummings
Daniel P. Brown wrote: On Wed, Jun 16, 2010 at 15:52, Robert Cummings wrote: Additionally, extracting top level domains is not so simple since it may have 2 or more parts. *Gasp!* The Great Cummings is incorrect. /me faints. Actually, ccTLD's are just the very last group of

RE: [PHP] User's IP Validation

2010-06-16 Thread Ashley Sheridan
On Wed, 2010-06-16 at 20:36 +0200, David Cesal wrote: > Please, don't forget IP address can be same for many users. I see only way > with cookies. When user deletes cookies, form pops up again. I don't know any > better way. > > David > > Sent from my HTC > > -Original Message- > From

Re: [PHP] Another parse problem

2010-06-16 Thread Daniel P. Brown
On Wed, Jun 16, 2010 at 15:52, Robert Cummings wrote: > > Additionally, extracting top level domains is not so simple since it may > have 2 or more parts. *Gasp!* The Great Cummings is incorrect. /me faints. Actually, ccTLD's are just the very last group of letters. For exampl

[PHP] Re: Another parse problem

2010-06-16 Thread Shawn McKenzie
On 06/14/2010 08:14 AM, tedd wrote: > Hi gang: > > Considering all the recent parsing, here's another problem to consider > -- given any text, parse the domain-names out of it. > > You may limit the parsing to the most popular TDL's, such as .com, .net, > and .org, but the finished result should

Re: [PHP] Another parse problem

2010-06-16 Thread Robert Cummings
Daniel P. Brown wrote: On Wed, Jun 16, 2010 at 13:22, tedd wrote: The given was to parse domain-names, but both routines pulled out sub-domains as well. Perhaps I am wrong in my understanding of what a domain name is, but I would normally look at sub domains as not part of the "domain name".

RE: [PHP] User's IP Validation

2010-06-16 Thread David Cesal
Please, don't forget IP address can be same for many users. I see only way with cookies. When user deletes cookies, form pops up again. I don't know any better way. David Sent from my HTC -Original Message- From: Juan Rodriguez Monti Sent: 16. cervna 2010 20:26 To: php-general@lists.p

RE: [PHP] User's IP Validation

2010-06-16 Thread Bob McConnell
If this is an open site, using the IP won't be any good. We have over 200 people behind our NAT firewall, all of which would show up as coming from the same IP on your server. Many other networks have the same or a similar configuration. If you only allow registered users, add a couple of flags to

[PHP] User's IP Validation

2010-06-16 Thread Juan Rodriguez Monti
Hi people, I would like to know the best way to perform some kind of validation for an application that I've written. I have a system that ask through an HTML Form some questions to users. I use some cookies to save some information from the user side. However, I would like to implement some code

[PHP] Re: Seeking developer for short term project

2010-06-16 Thread Dev Job
Just to clarify, we are looking for a single developer, not a team please. Thanks! On Mon, Jun 14, 2010 at 12:46 PM, Dev Job wrote: > Our company is looking to hire a PHP Developer for a short term project. > We're currently in the last couple weeks of the interview phase to narrow > down our

Re: [PHP] Another parse problem

2010-06-16 Thread Daniel P. Brown
On Wed, Jun 16, 2010 at 13:22, tedd wrote: > > The given was to parse domain-names, but both routines pulled out > sub-domains as well. Perhaps I am wrong in my understanding of what a domain > name is, but I would normally look at sub domains as not part of the "domain > name". Sub domains are si

Re: [PHP] Another parse problem

2010-06-16 Thread tedd
Rob and Daniel: As expected, both of your submission were excellent. If this was an assignment in one of my classes ("as if" I could teach either of you anything) you would both receive an A+. Daniel's routine also returned .ie TLD, but that was not stated as a requirement. Daniel's routin

RE: [PHP] SQL Syntax [improved SQL]

2010-06-16 Thread Tommy Pham
> -Original Message- > From: Jan Reiter [mailto:the-fal...@gmx.net] > Sent: Wednesday, June 16, 2010 8:55 AM > To: php-general@lists.php.net > Subject: Re: [PHP] SQL Syntax [improved SQL] > > Hi, > > this is the solution I came up with, that is over 10 times faster than my first > attemps

Re: [PHP] SQL Syntax [improved SQL]

2010-06-16 Thread Jan Reiter
Hi, this is the solution I came up with, that is over 10 times faster than my first attemps. Tested @31,871 entries in table 'picture' and 222,712 entries in table 'picture_attrib_rel'. Old Version: SELECT * FROM picture as p INNER JOIN picture_attrib_rel as pr1 ON (p.pid = pr1.pid) INNER

Re: [PHP] SQL Syntax

2010-06-16 Thread Andrew Ballard
On Tue, Jun 15, 2010 at 8:58 PM, Jan Reiter wrote: > Hi folks! > > I'm kind of ashamed to ask a question, as I haven't followed this list very > much lately. > > This isn't exactly a PHP question, but since mysql is the most popular > database engine used with php, I figured someone here might hav

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Jeff MacDonald
On 2010-06-16, at 11:44 AM, Richard Quadling wrote: > On 16 June 2010 15:37, Richard Quadling wrote: >> On 16 June 2010 15:26, Jeff MacDonald wrote: >>> Hi Everyone, >>> >>> One of my developers is reporting a problem on our Live server but not our >>> devel server. >>> >>> Specifically when

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Richard Quadling
On 16 June 2010 15:37, Richard Quadling wrote: > On 16 June 2010 15:26, Jeff MacDonald wrote: >> Hi Everyone, >> >> One of my developers is reporting a problem on our Live server but not our >> devel server. >> >> Specifically when someon uploads a photo taken by a KODAK EASYSHARE C813, >> and

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Jeff MacDonald
On 2010-06-16, at 11:37 AM, Richard Quadling wrote: > On 16 June 2010 15:26, Jeff MacDonald wrote: >> Hi Everyone, >> >> One of my developers is reporting a problem on our Live server but not our >> devel server. >> >> Specifically when someon uploads a photo taken by a KODAK EASYSHARE C813,

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Jeff MacDonald
>If your code is an accurate representation, and not just an > example to demonstrate the function source in action, then that's your > problem (which I doubt, of course), as you're specifically calling the > value of $_GET['i'] to determine which static image to display. Also, > you use $_GET

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Richard Quadling
On 16 June 2010 15:26, Jeff MacDonald wrote: > Hi Everyone, > > One of my developers is reporting a problem on our Live server but not our > devel server. > > Specifically when someon uploads a photo taken by a KODAK EASYSHARE C813, and > that image gets processed by imagecreatefromjpeg(), the f

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Daniel Brown
On Wed, Jun 16, 2010 at 10:26, Jeff MacDonald wrote: > Hi Everyone, > > One of my developers is reporting a problem on our Live server but not our > devel server. [snip!] > > Does anyone have any ideas or suggestions of where to look next? Error logs. See what the non-working error logs sho

Re: [PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Daniel Brown
On Wed, Jun 16, 2010 at 10:26, Jeff MacDonald wrote: [snip!] > > To see an example of this in action, > > Working function : http://www.equipmentsearch.com/~jeff/tmp/image.php?i=w > Not working function : http://www.equipmentsearch.com/~jeff/tmp/image.php?i=n > > http://www.equipmentsearch.com/~je

[PHP] Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.

2010-06-16 Thread Jeff MacDonald
Hi Everyone, One of my developers is reporting a problem on our Live server but not our devel server. Specifically when someon uploads a photo taken by a KODAK EASYSHARE C813, and that image gets processed by imagecreatefromjpeg(), the function returns false. Our Devel Server Info [this works

Re: [PHP] Re: SQL Syntax

2010-06-16 Thread Carlos Medina
Am 16.06.2010 15:50, schrieb Jan Reiter: Richard, Carlos, Simcha and Nigel, Thank you all for your answers on this matter. When I read Simcha's mail, it hit me like a hammer! That was what I was looking for! BUT: I have to see, that this creates way to much overhead, as I have to use INNER JOI

RE: [PHP] SQL Syntax

2010-06-16 Thread Jan Reiter
Thank you, for your response! I'm testing with exactly that table structure to evaluate flexibility vs speed. I only use images, as it gives me easy a vast amount of sample date. I'm testing with 30,000 images. :-) So far I was testing multi-table joins in various combinations, trying to help mys

RE: [PHP] Re: SQL Syntax

2010-06-16 Thread Jan Reiter
Richard, Carlos, Simcha and Nigel, Thank you all for your answers on this matter. When I read Simcha's mail, it hit me like a hammer! That was what I was looking for! BUT: I have to see, that this creates way to much overhead, as I have to use INNER JOIN instead of LEFT JOIN, or an equvalent su

[PHP] Re: SQL Syntax

2010-06-16 Thread Carlos Medina
Am 16.06.2010 02:58, schrieb Jan Reiter: Hi folks! I'm kind of ashamed to ask a question, as I haven't followed this list very much lately. This isn't exactly a PHP question, but since mysql is the most popular database engine used with php, I figured someone here might have an idea. I hav

Re: [PHP] export from one server to another

2010-06-16 Thread Richard Quadling
On 16 June 2010 09:42, Merlin Morgenstern wrote: > > > On Tue, 15 Jun 2010 11:26 +0100, "Richard Quadling" > wrote: >> On 15 June 2010 11:00, Merlin Morgenstern wrote: >> > HI there, >> > >> > I am thinking about building a partner network where partners can export >> > content to my server whic

Re: [PHP] SQL Syntax

2010-06-16 Thread Simcha Younger
On Wed, 16 Jun 2010 02:58:31 +0200 "Jan Reiter" wrote: > > I have 2 tables. Table A containing 2 fields. A user ID and a picture ID => > A(uid,pid) and another table B, containing 3 fields. The picture ID, an > attribute ID and a value for that attribute => B(pid,aid,value). > > > > Table B