Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/graberp/public_html/library/kbase/archives/programming/index.php on line 34

Warning: include(http://www.grabers.com/lib/headNav.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/graberp/public_html/library/kbase/archives/programming/index.php on line 34

Warning: include() [function.include]: Failed opening 'http://www.grabers.com/lib/headNav.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/graberp/public_html/library/kbase/archives/programming/index.php on line 34

January 28, 2006

Ensuring AOL Email Delivery with -F

AOL recently made an adjustment to their email delivery system with new policies that are resulting in email from PHP scripts being blocked. This effects Apache virtual servers that use generic users when sending mail (nobody@, username@, root@, apache@, etc.) and thankfully, only requires a simple fix : the use of -F.

AOL can do whatever they want, its their network. Recently, however, they made an adjustment to what email they accept from outside sources that utilize PHP. What is even more interesting is that they haven't made the adjustment public - it was only through analysis of the logs and subsequent calls with the tech center that the new policy was uncovered. It is assumed it is an effort to combat spam from entering their network.

This has implications for PHP scripts that send the user communication. All scripts will need to be adjusted to add a valid email address to the 'Return-To' header. To do so, the '-F' modifier is used in the format: '-F valid@emailaddress.xxx'

PHP's mail function allows the addition of 'additional paramaters' (http://us3.php.net/manual/en/function.mail.php) that make it super easy.

So, if AOl users aren't getting email from your PHP scripts, add the -F flag (with a valid email address) and consider your problem solved..

Posted by pgraber at January 28, 2006 11:24 AM

November 15, 2005

Double vs Single Quotes in PHP

I picked up this little tid-bit online that helps explain something that has escaped me for awhile about PHP.

In PHP, you can seemingly freely use single quotes (') and double quotes (") around statements of various types. They often are used with echo or print_r commands where you are sending something to the screen.

I have read debates in the past about which one is beter and faster. Because double (") seemed to be easier to work with as far as production goes, I've been using it more lately.

I came across an neat little article on PHP tips at Evolt.org. One such one was regarding the major difference. While speed is a factor, double quotes tells PHP to interpret the code WHILE looking for a variable. If you are echoing a lot of variables and your script is short, double will do ya. Otherwise, single quotes are faster in the long run since they don't have to interpret anything. They serve as sort of a container.

There are so other excellent tips in the article. While many scripts I write are somewhat basic, optimizing them whereever possible can never be a bad thing. Clean coding is seems to be much like good writing. Shorter, simpler many times means better.

Posted by pgraber at November 15, 2005 03:42 PM

March 01, 2005

Autorun Issues on Windows/Mac

This article provides infor regarding auto-running a CDrom. This is used when making interactive presentations.

Good Windows Info: http://cloanto.com/kb/3-157.html
Solid Mac Info: http://www.trah.co.uk/starterfile/mac.htm

Hybrid CDs with Toast
The only thing that Toast allows for you to do is make a CD where users on each platform - Win/Mac or Unix - will only see the files for that suppoorted platform, and none other. Win/Unix utilize ISO 9660. Macs support that format, but use their own individual format too. By using Toast, you can hide these files from other platforms. Other Mac issues, like icons, window position, etc., are also supported with the hybrid format.

One thing to keep in mind is that even without hybrid software, all platforms can 'see' ISO 9660 cds - hybrids just make it prettier and more convenient.

Here's an explanation on hybrid production using Toast from Roxio: http://www.roxio.com/en/support/toast/toasthybrid.jhtml


A Thing About Macs and OS X
Autorun will not work on Mac OS X. According to Autorun-Autoplay-tools.com, " Mac autoplay behavior requires QuickTime 2.0 or above and System 9 or below. OS X does not support autoplay. Classic will autoplay a CD if Classic is already running before the CD is mounted. This would be useful if you're planning a presentation to work over all environments for the Macintosh. A few years ago there was a Mac virus which used the QuickTime Autorun feature to wreak havoc on Mac’s all over the world. Macintosh engineers came up with a solution for fixing the problem—they simply removed the autorun feature from the OS X operating system. Hence the inability for OS X users to autorun CDs."

Posted by pgraber at March 1, 2005 10:30 AM


Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/graberp/public_html/library/kbase/archives/programming/index.php on line 226

Warning: include(http://www.grabers.com/lib/footNav.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/graberp/public_html/library/kbase/archives/programming/index.php on line 226

Warning: include() [function.include]: Failed opening 'http://www.grabers.com/lib/footNav.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/graberp/public_html/library/kbase/archives/programming/index.php on line 226