php-general Digest 8 Apr 2009 03:47:36 -0000 Issue 6055

2009-04-07 Thread php-general-digest-help
php-general Digest 8 Apr 2009 03:47:36 - Issue 6055 Topics (messages 291179 through 291200): Re: Best Practices for Hiding Errors 291179 by: Michael A. Peters file_get_contents for URLs? 291180 by: Skip Evans 291182 by: Jan G.B. 291186 by: Richard Heyes Re:

Re: [PHP] difficult select problem

2009-04-07 Thread Jim Lucas
PJ wrote: I've searched the web, the tutorials, etc. with no luck and have asked on MySql list with no luck and have even posted here with no replies. So, let's try again: I am trying to limit the search for books to only those that start with A (does not have to be case sensitive); but within

[PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-07 Thread Peter Ford
O. Lavell wrote: Peter Ford wrote: O. Lavell wrote: [..] Any and all suggestions are welcome. Thank you in advance. So many people ask about manipulating, editing and generally processing PDF files. In my experience, PDF is a write-once format - any manipulation should have been done

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Yannick Mortier
2009/4/7 Chris dmag...@gmail.com: I guess there are multiple ways to engage this problem. It depends how deep you want to log the traffic. If you just want to count the traffic of each image, video etc you could just wrap up each image and video to go through php first with

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Yannick Mortier
2009/4/7 Chris dmag...@gmail.com: I guess there are multiple ways to engage this problem. It depends how deep you want to log the traffic. If you just want to count the traffic of each image, video etc you could just wrap up each image and video to go through php first with

Re: [PHP] Out of the blue question..

2009-04-07 Thread chris smith
Didn't really read Bruce's email didya Chris?!! Of course I read it - I guess I misunderstood the intent. No need to bite my head off - sheesh :P -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Yannick Mortier
2009/4/7 Phpster phps...@gmail.com: Misk.com is also good at $10/ yep Bastien Sent from my iPod Come on now, please. JD clearly said he wants to do this at home to learn something by doing it. I can understand that very well. Giving answers nobody asked for is like posing questions nobody

Re: [PHP] Out of the blue question..

2009-04-07 Thread Stuart
2009/4/7 Chris dmag...@gmail.com: bruce wrote: Hi Ladies/Gents of the list... I've got an issue/question and figured I'd fire it to the list. Over time, I've had a few projects that I've worked on, where I've required someone with skills way beyond mine for a given area. And rather than

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Phpster
Misk.com is also good at $10/ yep Bastien Sent from my iPod On Apr 6, 2009, at 23:57, Michael Kubler mdk...@gmail.com wrote: DO NOT USE GO-DADDY. Sorry, just had to say that Go-Daddy will cause all sorts of issues when your domain expires, or if you check for a domain but don't purchase

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread Igor Escobar
It's just an observation ;) If you have to use it or not, you have to decide better way. Regards, Igor Escoar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Mon, Apr 6, 2009 at 9:56 PM, Chris

[PHP] PHP-MYSQL Question

2009-04-07 Thread abdulazeez alugo
Hi guys, Please can anyone tell me what I'm doing wrong with the code below? It keep returning unsuccessful. $result=mysql_query(CREATE TABLE table2(table2_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, table1_id INT NOT NULL, name VARCHAR(100) NOT NULL,

Re: [PHP] PHP-MYSQL Question

2009-04-07 Thread HostWare Kft.
This isn't PHP but mysql question. You didn't mention that the table itslef is created or not. If not, then it is probably a mysql error, maybe your installation of mysql doesn't support INNODB. SanTa - Original Message - From: abdulazeez alugo defati...@hotmail.com To:

Re: [PHP] PHP-MYSQL Question

2009-04-07 Thread Per Jessen
abdulazeez alugo wrote: Hi guys, Please can anyone tell me what I'm doing wrong with the code below? It keep returning unsuccessful. Why don't you print out mysql_error() ? It'll tell you right away. /Per -- Per Jessen, Zürich (20.1°C) -- PHP General Mailing List

RE: [PHP] PHP-MYSQL Question

2009-04-07 Thread abdulazeez alugo
From: p...@computer.org Date: Tue, 7 Apr 2009 15:18:35 +0200 To: php-general@lists.php.net Subject: Re: [PHP] PHP-MYSQL Question abdulazeez alugo wrote: Hi guys, Please can anyone tell me what I'm doing wrong with the code below? It keep returning unsuccessful. Why

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Nick Cooper
Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back sometimes days later and they're still $7.95. 2009/4/7 Michael Kubler mdk...@gmail.com

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread Yannick Mortier
2009/4/7 Chris dmag...@gmail.com: Igor Escobar wrote: Becarefull, error supression is slow. If it's the only way to stop an error from showing up, what's the problem? php will still generate the warning/notice even if display_errors is disabled - which will be even slower. Plus I never

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread 9el
Intead of displaying errors to page. Its better to use error log file. And as @ error suppressors are expensive its always better if you can avoid using them. I'd also suggest the ZCE(Zend Certification Engineer) Exam Guide for this matter for best practices. Regards Lenin

Re: [PHP] PHP bandwidth control

2009-04-07 Thread JD
Awesome, you guys rock! Now I have a bunch of stuff to play around with and the more I read about these functions and try playing around with them the more I think I'll learn about this stuff. This is great! Thanks again! -- Original Message -- From: Yannick Mortier

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Michael A. Peters
Nick Cooper wrote: Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back sometimes days later and they're still $7.95. Same experience. I

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Michael A. Peters
JD wrote: Theres always something to learn in PHP Land. Yeah - and I always seem to find slick new one or two line solutions after I've written a bunch of lines to clumsily do the same thing. I guess that's how it is when you first start to get semi-serious about a language (emphasis on

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread Michael A. Peters
9el wrote: Intead of displaying errors to page. Its better to use error log file. I believe by default they are sent to the server error log file regardless of your error report setting. It wouldn't surprise me if there's a slick class out there for parsing the error log and extracting php

[PHP] file_get_contents for URLs?

2009-04-07 Thread Skip Evans
Hey all, I'm doing some maintenance work on an existing system and there is a piece of code that uses file_get_contents() to read data from a URL, which is fine in theory I suppose. But the problem is sometimes the server where that URL lives is not available, and the system hangs

Re: [PHP] difficult select problem

2009-04-07 Thread PJ
Gentlemen, First, let me thank you all for responding and offering suggestions. I appreciate it and I am learning things. However, it looks like my message is not getting across: The problem is not to retrieve only the authors whose last names begin with A: 1) which books have a second author?

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Jan G.B.
Well, you might want to do it with curl, you might want to write your own socketscript, or your just check the return variable of file_get_contents() - it'll be false on failure and it won't try to get an invalid URL forever. Guess the error is somewhere else, when your script continues

RE: [PHP] Out of the blue question..

2009-04-07 Thread bruce
chris... did you read the entire msg.. this isn't/wasn't a hunt for someone for a project... please re-read.. -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Monday, April 06, 2009 8:14 PM To: bruce Cc: php-general@lists.php.net Subject: Re: [PHP] Out of the blue

Re: [PHP] difficult select problem

2009-04-07 Thread Lex Braun
PJ, On Tue, Apr 7, 2009 at 11:37 AM, PJ af.gour...@videotron.ca wrote: $SQL = SELECT b.*, c.publisher, a.first_name, a.last_name FROM book AS b LEFT JOIN book_publisher as bp ON b.id = bp.bookID LEFT JOIN publishers AS c ON bp.publishers_id = c.id LEFT JOIN

RE: [PHP] difficult select problem

2009-04-07 Thread Bob McConnell
From: PJ First, let me thank you all for responding and offering suggestions. I appreciate it and I am learning things. However, it looks like my message is not getting across: The problem is not to retrieve only the authors whose last names begin with A: Actually, it appears you simply

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Richard Heyes
Hey all, Hello. I'm doing some maintenance work on an existing system and there is a piece of code that uses file_get_contents() to read data from a URL, which is fine in theory I suppose. But the problem is sometimes the server where that URL lives is not available, and the system hangs

Re: [PHP] Out of the blue question..

2009-04-07 Thread Daniel Brown
On Tue, Apr 7, 2009 at 11:56, bruce bedoug...@earthlink.net wrote: chris... did you read the entire msg.. this isn't/wasn't a hunt for someone for a project... please re-read.. It would've been fine even if it was, Bruce. This is the General list. As long as it's PHP-related, you're

Re: [PHP] difficult select problem

2009-04-07 Thread PJ
Bob McConnell wrote: From: PJ First, let me thank you all for responding and offering suggestions. I appreciate it and I am learning things. However, it looks like my message is not getting across: The problem is not to retrieve only the authors whose last names begin with A: Actually, it

Re: [PHP] difficult select problem

2009-04-07 Thread Michael A. Peters
PJ wrote: Bob McConnell wrote: From: PJ First, let me thank you all for responding and offering suggestions. I appreciate it and I am learning things. However, it looks like my message is not getting across: The problem is not to retrieve only the authors whose last names begin with A:

Re: [PHP] PHP bandwidth control

2009-04-07 Thread tedd
At 2:46 PM +0100 4/7/09, Nick Cooper wrote: Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back sometimes days later and they're still $7.95.

[PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-07 Thread O. Lavell
Peter Ford wrote: O. Lavell wrote: Peter Ford wrote: [..] I do accept that the metadata should be machine-readable: that part of your project is reasonable and I'm fairly sure that ought to be possible with something simple. The best bet I found so far is PDFTK

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Stuart
2009/4/7 tedd tedd.sperl...@gmail.com: At 2:46 PM +0100 4/7/09, Nick Cooper wrote: Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Michael A. Peters
tedd wrote: At 2:46 PM +0100 4/7/09, Nick Cooper wrote: Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back sometimes days later and

Re: [PHP] difficult select problem

2009-04-07 Thread Bastien Koert
On Tue, Apr 7, 2009 at 1:10 PM, Michael A. Peters mpet...@mac.com wrote: PJ wrote: Bob McConnell wrote: From: PJ First, let me thank you all for responding and offering suggestions. I appreciate it and I am learning things. However, it looks like my message is not getting across: The

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Bastien Koert
On Tue, Apr 7, 2009 at 1:36 PM, Michael A. Peters mpet...@mac.com wrote: tedd wrote: At 2:46 PM +0100 4/7/09, Nick Cooper wrote: Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I

Re: [PHP] PHP bandwidth control

2009-04-07 Thread 9el
I hate the bulky interface of Godaddy.com its too tough for slower connections to work with GoDaddy's control panels. Their domain charge seems bit high as well. But I'm liking www.umbrahosting.com it has good cPanel and controls are good. Their support are very sprint. Lenin

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Paul M Foster
On Tue, Apr 07, 2009 at 10:36:23AM -0700, Michael A. Peters wrote: tedd wrote: At 2:46 PM +0100 4/7/09, Nick Cooper wrote: Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often

Re: [PHP] Possible Server Infection?

2009-04-07 Thread sono-io
On Apr 4, 2009, at 6:51 PM, TG wrote: Anyway, just some thoughts. Good luck! Thanks to TG, Bastien, and Marc. I appreciate the input. Regards, Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] difficult select problem

2009-04-07 Thread Chris
PJ wrote: Gentlemen, First, let me thank you all for responding and offering suggestions. I appreciate it and I am learning things. However, it looks like my message is not getting across: The problem is not to retrieve only the authors whose last names begin with A: 1) which books have a

RE: [PHP] PHP require_once() opens some files but not others in same library

2009-04-07 Thread Henning Glatter-Gotz
Maybe ask on the zend list - http://framework.zend.com/community/resources since they will be familiar with it. Still sounds like a url is being used for a require/include but *shrug*. The issue resolved itself when I moved the domain to a different server. I had to do this for other