php-general Digest 13 Oct 2010 09:45:35 -0000 Issue 6985
php-general Digest 13 Oct 2010 09:45:35 - Issue 6985 Topics (messages 308660 through 308668): Re: Scripts running twice 308660 by: Alexander Schrijver Google Calendar 308661 by: Floyd Resler 308664 by: Kranthi Krishna 308665 by: Govinda 308667 by: Kranthi Krishna Re: poll of 'public framework or roll your own' 308662 by: Daevid Vincent Zend studio location Cross-Domain Scripting Vulnerability 308663 by: Daevid Vincent 308666 by: Thijs Lensselink 308668 by: Richard Quadling Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- On Tue, Oct 12, 2010 at 07:52:46PM +0100, Ashley Sheridan wrote: On Tue, 2010-10-12 at 20:45 +0200, Alexander Schrijver wrote: On Tue, Oct 12, 2010 at 05:29:39PM +0100, [1]...@ashleysheridan.co.uk wrote: That's probably it then! Some browsers make multiple requests to speed up rend ering of a page. Do you have any examples of browsers which do this? Because that kind of behaviour would be wrong. I just know that a couple of years ago, I was working on a website that removed credits from a clients account upon a page visit. When the page was accessed via a link, two credits were always taken. We did all sorts of tests, from writing to the DB in a single call from that page, and every time, it was coming up with two hits. This was happening on all the main browsers: Fx, IE, Opera Safari. It's not the wrong behaviour, this is allowed behaviour when using the GET protocol, which most general page requests are I believe. Reading the HTTP RFC this is allowed for a GET request with a range specified. I'm not sure how PHP deals with this. ---End Message--- ---BeginMessage--- I am attempting to use the Zend Gdata framework to communicate with Google Calendars and am having a problem. If I start a new event like this: $event=$gcal-newEventEntry(), nothing happens. My code simply stops executing at that call. If I replace it with this: $event=new Zend_Gdata_Calendar_EventEntry() my code doesn't stop but I get the an error with this: $event-title = $gcal-newTitle($row-title); The error is Zend/Gdata/Calendar/Extension/Title.php - no such file or directory. I don't know enough about the Zend Framework to figure this one out! Thanks! Floyd ---End Message--- ---BeginMessage--- The exact error message will help understand your situation Most probable reason is Zend is not included in your include path develop with error_reporting set to E_ALL E_STRICT that will help you understand many trivial errors ---End Message--- ---BeginMessage--- develop with error_reporting set to E_ALL E_STRICT that will help you understand many trivial errors Krishna, allow me to jump in here and ask - is my understanding correct that some errors will never be reported... regardless of the setting for error_reporting? ...like when I put a tab before the heredoc closing identifier on the same line. -Govinda ---End Message--- ---BeginMessage--- in this case when you put a tab before the closing heredoc it is not an error in itself. Its equivalent to removing the closing heredoc. so PHP treats the rest of the code as part of the string. A Parse error is reported when ? OR end of the file is reached ---End Message--- ---BeginMessage--- That was my poll! :) Do you use a public framework or roll your own? I personally find most frameworks to be either too generic or too restricting. To do some tasks you have to jump through many hoops. I see the benefit and certainly for prototypes they may have use, but I tend to find that building a custom framework using some basic tools like a DB wrapper, debug routines, selectbox routines, dynamic menu creation, headers, footers, etc. gives all the MVC power I need. What do you do? What's a framework? 1 (1.9%) I don't use any framework (by choice or policy). 9 (16.7%) I use my own custom framework. 33 (61.1%) I use a public framework like Zend, Symfony, Cake, etc. 11 (20.4% P.s. the link works fine for me... http://www.rapidpoll.net/8opnt1e And here are two more of interest maybe: http://www.rapidpoll.net/show.aspx?id=awp1ocy http://www.rapidpoll.net/show.aspx?id=arc1opy -Original Message- From: Tommy Pham [mailto:tommy...@gmail.com] Sent: Friday, October 08, 2010 6:47 AM To: PHP Subject: [PHP] poll of 'public framework or roll your own' Hi, Does anyone know/remember what's the results of that old poll back in mid(?) January? http://marc.info/?l=php-generalm=126455173203450w=2 I can't seem to access http://www.rapidpoll.net/8opnt1e.
php-general Digest 13 Oct 2010 21:56:18 -0000 Issue 6986
php-general Digest 13 Oct 2010 21:56:18 - Issue 6986 Topics (messages 308669 through 308686): Re: poll of 'public framework or roll your own' 308669 by: Steve Staples Re: Google Calendar 308670 by: Floyd Resler 308671 by: Govinda 308680 by: Tommy Pham Eclipse, Komodo, Netbeans, Zend Studio, PHP Storm, other? 308672 by: Hansen, Mike 308673 by: Shreyas Agasthya 308674 by: James Diamond 308675 by: Floyd Resler 308676 by: Bastien Koert 308677 by: Matt Giddings 308678 by: Ashley Sheridan 308679 by: Floyd Resler 308681 by: musicdev.gmail.com 308682 by: Ashley Sheridan http://www.mytrash.mail.ua spam 308683 by: Ashley Sheridan 308684 by: Joshua Kehn 308686 by: Daniel P. Brown Re: Zend studio location Cross-Domain Scripting Vulnerability 308685 by: Daevid Vincent Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- I must have missed this poll but let me chime in (you've prolly already stopped reading now... :P ) to make a long story short, i use a custom variant that started life as cakephp. well, not even anywhere close. I started to comprehend how cakephp started/configured itself, and then wrote my own, and reduced a lot of the extra stuff it did that I didn't need. So, what I use is my own custom switchboard/index file, that does my magic, and then utilizes: smarty templates pchart (for graphs) fpdf (for pdf generation) pear mdb2 pear mailer (or sometimes phpmailer) jquery that is about all I use for every site i develop now. I am still fine tuning my classes/functions so that everything is more manageable and stream lined. my custom switchboard/index uses mod-rewrites, and does prolly a lot more than it needs to do, but i find it works quite nicely. -Steve On Tue, 2010-10-12 at 15:14 -0700, Daevid Vincent wrote: That was my poll! :) Do you use a public framework or roll your own? I personally find most frameworks to be either too generic or too restricting. To do some tasks you have to jump through many hoops. I see the benefit and certainly for prototypes they may have use, but I tend to find that building a custom framework using some basic tools like a DB wrapper, debug routines, selectbox routines, dynamic menu creation, headers, footers, etc. gives all the MVC power I need. What do you do? What's a framework? 1 (1.9%) I don't use any framework (by choice or policy). 9 (16.7%) I use my own custom framework. 33(61.1%) I use a public framework like Zend, Symfony, Cake, etc. 11(20.4% P.s. the link works fine for me... http://www.rapidpoll.net/8opnt1e And here are two more of interest maybe: http://www.rapidpoll.net/show.aspx?id=awp1ocy http://www.rapidpoll.net/show.aspx?id=arc1opy -Original Message- From: Tommy Pham [mailto:tommy...@gmail.com] Sent: Friday, October 08, 2010 6:47 AM To: PHP Subject: [PHP] poll of 'public framework or roll your own' Hi, Does anyone know/remember what's the results of that old poll back in mid(?) January? http://marc.info/?l=php-generalm=126455173203450w=2 I can't seem to access http://www.rapidpoll.net/8opnt1e. Thanks, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- ---BeginMessage--- I turned on E_ALL E_STRICT and I still don't receive any type of error message. My code simply stops. I'm not sure what the problem is but I found a Google Calendar wrapper that suits my needs and doesn't require Zend. Thanks! Floyd On Oct 12, 2010, at 10:22 PM, Kranthi Krishna wrote: The exact error message will help understand your situation Most probable reason is Zend is not included in your include path develop with error_reporting set to E_ALL E_STRICT that will help you understand many trivial errors ---End Message--- ---BeginMessage--- in this case when you put a tab before the closing heredoc it is not an error in itself. Its equivalent to removing the closing heredoc. so PHP treats the rest of the code as part of the string. A Parse error is reported when ? OR end of the file is reached OK, to be sure I understand.. if I get only a blank white screen (not a single char back from the server), then what does that mean? Do we call that fatal error? (as distinct from parse error - which always does give some error message if E_ALL E_STRICT are on?) And if I never close my heredoc, then does that produce a parse error or a fatal error? ..and