 | News Feed |
Sections
|
| feed this: |  |
Dhiraj Patra's Blog: Running PHP Scripts with Cron
by Chris Cornutt August 05, 2008 @ 08:45:03
Dhiraj Patra has posted a tutorial to his "LAM-PHP" blog today looking at a different-than-usual way for running PHP scripts - in the cron.
Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, "How to run PHP Scripts with crontab?"
He explains how cron can be used effectively to replace including a backend script into another file (bad practice) and how to get started with PHP and cron. He includes how to find if you're using a CGI or Apache version of PHP and how to locate the binary. He takes this knowledge and shows how to apply it and put a sample script into the cron file. You can check out sites like this or this for more information on cron itself.
voice your opinion now!
script cron crontab cgi apache module binary tutorial
DevShed: Sending MIME Email with PHP
by Chris Cornutt July 10, 2008 @ 08:49:20
In this new tutorial on DevShed Alejandro Gervasio explains how to send emails from PHP with MIME payloads attached.
One of the most common tasks that a PHP programmer has to tackle is the development of applications that send MIME email in one form or another. In simple terms, MIME email consists of an extension of traditional email technology and comes in handy for sending email messages in fancy HTML and handling file attachments in a wide variety of formats.
In this first part of the series he just lays the groundwork - creating the mailer class they'll use for the series and using it to send a sample email (a basic message with a plain text MIME block).
voice your opinion now!
mime email tutorial payload class binary
Developer Tutorials Blog: Testing PHP with the interactive shell
by Chris Cornutt May 12, 2008 @ 07:57:34
Akash Mehta shares a helpful hint in this new post to the Developer Tutorials Blog today - testing out PHP code via the command line PHP binary.
Thankfully, PHP provides the interactive shell, allowing you to test out PHP interactively with immediate feedback. Here's how to take advantage of this mature feature of PHP.
With the help of the "-a" flag on the command line, the PHP binary will hand you an environment where you can code PHP and instantly see the results. He does mention a few quirks that make it different than working with PHP through a web server, namely moving in and out of code blocks and remembering to finish out with a semi-colon when the line is done.
voice your opinion now!
test interactive shell binary tutorial commandline
PHP Web Services Blog: What is Missing in PHP SOAP Extension?
by Chris Cornutt January 24, 2008 @ 11:22:00
On the PHP Web Services blog today, Sami asks "what's missing from PHP's SOAP extension" that needs to be added or corrected.
PHP SOAP extension is good to get started, to play around with. However, it falls much short in meeting the enterprise demands in the SOA era.
He talks about things missing (like binary file features and lots of security features). He also notes something that most PHP developers love about the extension - the WSDL parsing that makes it so easy to simply call a remote service without having to go through the pain of hacking through it yourself.
voice your opinion now!
soap extension native wsdl security binary file transfer
WebReference.com: Unary, Binary, and Ternary Operators in PHP
by Chris Cornutt June 27, 2007 @ 14:51:46
WebReference.com has a new tutorial that looks at the difference sorts of operators that PHP has to offer - unary, binary and ternary - to help you with the logic in your applications.
An operator is a special character or combination of characters that operates on variables. There are 3 types of operators in PHP: unary, binary and ternary. They can be used to manipulate a variable with up to 3 arguments at a time. This article wasn't written to discuss the meaning and usage of each operator in PHP, but rather to explain the differences between these types of operators and to give examples about how each functions.
They look at the different types of operators (and include examples for each) - unary (like ! or ++), binary (things like + / == and &&) and a special case - ternary. This uses two characters in conjunction (the question mark and colon) to replace a simple sort of If statement.
voice your opinion now!
operator binary unary ternary example tutorial operator binary unary ternary example tutorial
Richard Davey's Blog: PDO SQLite support just doesn't work fully?
by Chris Cornutt April 19, 2007 @ 14:03:00
Richard Davey, after spending many an hour working on a PDO SQLite bit of functionality for his latest application, has come to one conclusion - "the PDO SQLite blob support is totally borked".
I really don't know why, or what is going on, but after spending hours trying various code permutations I'm just not getting anywhere. I tried asking on php_general to no avail, so I consider this blog entry my last ditch attempt to get someone to shed some light on this issue before I give-in and ditch PDO for good.
His mission was to store an image in the database, but everything he tried just didn't seem to work out. After partial image storage and parameters being ignored, he's still at a loss as to how to get his (seemingly) simple quest solved. The only comment so far, though, hasn't seemed to help much - he's even opened a bug report upon Wez Furlong's request.
voice your opinion now!
pdo sqlite image store blob binary pdo sqlite image store blob binary
|
Community Events
Don't see your event here? Let us know!
|