News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Should You Close Your PHP Code Tags?
September 20, 2010 @ 13:34:22

On the SitePoint PHP blog there's a new post with an interesting question for PHP developers that might go against how they were tought to code from their early days - should you close your PHP tags at the end of your code?

Even those with a modest grasp of PHP know that code must be enclosed within special tags. [...] However, if your file contains just PHP - and no escaped HTML code - the closing ?> tag is entirely optional. Many developers argue that unnecessary code should be removed but there's another reason you could consider scrapping the closing tag.

Their rationale is that, in some situations, extra characters or other information could pop up after that closing PHP tag and cause problems in your code. If you drop the closing tag completely, there's no risk that this could happen and PHP parses it the same way.

There's lots of great comments with opinions both for and against.

1 comment voice your opinion now!
opinion close tag end error


Padraic Brady's Blog:
Zend Framework Survive The Deep End Update
March 25, 2009 @ 07:54:35

For those wondering about the status of his book, "Zend Framework: Survive The Deep End", Padraic Brady has posted an update of where he's at.

Since the rumor mill has been active a while, I confirm two chapters of the book will be released this week. [...] To kick off a new spell of book updates, the next Chapter will be "A Simple Hello World Example", with an Appendix titled "Virtual Hosts On Apache 2". The following Chapter approximately one week later will be an introduction to the application to be built for most of the first half of the book.

He notes that, while normal print books usually have schedules, self-publishing is a bit more flexible. He does want to assure the readers of the book that work is actively being done and the chapters will keep coming.

0 comments voice your opinion now!
zendframework book padraicbrady deep end survive book release chapter


DevShed:
Benchmarking with the Xdebug Extension
March 09, 2009 @ 15:11:17

DevShed has posted their next-to-last article in their look at using XDebug in your applications - part six, a look at doing some benchmarking with functions the extension provides.

You'll be pleased to hear that the Xdebug extension comes equipped with additional functions that allow us to perform other debugging tasks, such as benchmarking PHP applications and checking in what order certain functions were called by the PHP engine. Therefore, in this sixth chapter of the series I'll be discussing in depth how to take advantage of the benchmarking abilities offered by the Xdebug library, which rely heavily on its "xdebug_time_index()" function.

Their benchamrking example uses the xdebug_time_index function to compare the start and end times of a script. Dropping it into a method in a class makes it even easier - they call the getTime method in their Timer class to grab the latest value.

0 comments voice your opinion now!
benchmark xdebug extension tutorial timer start end


Padraic Brady's Blog:
Zend Framework Survive The Deep End - Still Kicking )
February 10, 2009 @ 09:34:38

Padraic Brady has an update about his "Zend Framework: Survive the Deep End" book he's been self-publishing on his site including a change to his current donation set up.

In experimenting with making money (so I can buy that Macbook Pro) I'll be adding some changes to how donations work. One main change is that while the current PDF file for the existing chapters will remain available (including future updates), PDF files covering the entire book to date will only be available to those who donate.

The online HTML-only version of the chapters will always be free of charge, but the PDFs (from here on out) will be for those who donate. He is also considering adding screencasts to the series to provide a bit more interactive feel to the whole Zend Framework topic.

0 comments voice your opinion now!
zendframework book selfpublish survive deep end donate pdf html


Sean Coates' Blog:
php|tek CfP closing soon
October 30, 2007 @ 07:58:00

Sean Coates has a reminder posted to his blog for all of the aspiring PHP speakers out there to get their proposals in for this year's (well, next year's) php|tek 2008.

I just want to drop a quick reminder that the php|tek 2008 Call for Papers is about to close (on Oct. 31), so if you've been dragging your feet, now would be a good time to stop doing that and send in your proposals.

Some of the topics they're interested in this year are rich application development, PHP4->PHP5 migration and looks head at PHP6. Check out the Call for Papers page on the php|tek site for the full list of information you'll need to include along with the summary for your proposal.

0 comments voice your opinion now!
callforpapers phptek2008 end speaker talk callforpapers phptek2008 end speaker talk


Lukas Smith's Blog:
Its the end of the world as we know it.
July 26, 2007 @ 08:44:00

In a post from Lukas Smith, he gives responses to some of the questions/comments people have to say about PHP, specifically in how it's related to Java.

Whenever someone asks me why PHP is more "agile" than Java, I tell them that in PHP you can break most of the rules your comp sci course told you about and get away with it. Of course this means that you need PHP developers to constantly clean up their code.

He talks about rules for developing in PHP, one being not to change a method so make it incompatible with its parent. He recommends one way to avoid this - the E_STRICT warning to protect against possible conflicts and issues (the same kind of functionality in PHP6 is in E_FATAL though).

Please, lets get the sense back here. Lets not make things that are not fatal an E_FATAL. Lets use E_STRICT for the pedantic, lets add a E_DEPRECATED for all things deprecated. Lets not kill what makes PHP more agile than those other languages that think they know what I should be spending my time on.
3 comments voice your opinion now!
end world estrict efatal php5 php6 method parent child end world estrict efatal php5 php6 method parent child


Marco Tabini's Blog:
Someone please throw Hiveminds a comma key
November 21, 2006 @ 10:09:00

In response to this recent article from the Hiveminds website, Marco Tabini has a few choice words about some of the topics they cover in the article, and cover incorrectly.

Over the last few years, I've made it a point of trying to respond to at least some of the "PHP is dead"-type articles that crop up on the Net from time to time. The latest one comes from Hiveminds and reveals a complete misunderstanding of almost every point it covers.

He notes that though the article seems to be a coherent whole for why PHP is dwindling, it's "based on nothing more than a string of misinformed concepts cobbled together to give the appearance that the author knows what he or she is talking about". Marco comes back against each of the points made in the article, setting things right and eliminating some of the FUD (fear, uncertainly, and doubt) that the Hiveminds article spreads.

0 comments voice your opinion now!
editorial end life cycle correction hiveminds editorial end life cycle correction hiveminds


Derick Rethans' Blog:
Calculating start and end dates of a week
November 16, 2006 @ 15:13:37

Derick Rethans has posted a quick tip to his blog today:

A friend asked "How do I calculate start (monday) and end (sunday) dates from a given week number for a specified year?" Instead of having to come up with your own algorithm you can simply do the following in PHP 5.1 and higher.

The (technically) three-line code uses ISO format for the date to tell you which day is the starting day of that week and which is the end. He only explains this format just a bit, so if you want more information, check out the strtotime function page.

0 comments voice your opinion now!
start day end week date strtotime iso format start day end week date strtotime iso format


Derick Rethans' Blog:
Calculating start and end dates of a week
September 06, 2006 @ 07:03:24

With just a quick handy code snippet posted on his blog today, Derick Rethans shares these two lines to help grab the start and end dates of a week in question.

A friend asked "How do I calculate start (monday) and end (sunday) dates from a given week number for a specified year?" Instead of having to come up with your own algorithm you can simply do the following in PHP 5.1 and higher.

The code makes use of the ISO8601 datetime functionality to grab the correct value from a strtotime command. Derick also briefly explains how it all works.

0 comments voice your opinion now!
start date end week strtotime iso8601 datetime format start date end week strtotime iso8601 datetime format


Zend:
New Framework Preview Release by End of Week?
April 11, 2006 @ 08:06:47

Just a quick note for all of the Zend Framework fans out there waiting impatiently for a new updated package - your wait might be just about over!

According to a note from Andi Gutmans on the framework mailing list: We are working hard to get a new tarball rolled, bug DB up, etc. We should be getting this out the door this coming week. In the meanwhile, feel free to grab the latest version from SVN http://framework.zend.com/download/subversion. Also Mike has updated the manual just recently including some of the language translations contributed by the community (Thanks!).

The message was posted yesterday, so, if all goes well, something should be posted by the end of this week. There's been tons of work going on behind the scenes on the Framework by all sorts of talented people, and if you'd like to check out a bit of it, take a look at the mailing list archives for the project.

1 comment voice your opinion now!
zend framework preview release end week zend framework preview release end week



Community Events





Don't see your event here?
Let us know!


zendserver code deployment application development conference series podcast language api framework developer tips threedevsandamaybe list interview community laravel introduction release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework