 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPMaster.com: Sending Emails with PHP
by Chris Cornutt October 24, 2011 @ 20:08:52
In a new tutorial from PHPMaster.com Jason Pasnikowski takes a look at sending emails with PHP - an introduction to what the language offers and how it can be used to send an HTML version.
In most cases your installation of PHP will be capable of sending emails. If you are using a shared host, or if you installed PHP using a package management system like apt-get, more than likely you're all set. You'll really only need to worry about extra configuration if you're compiling PHP from source or if you're running it on Windows. In either case, there are plenty of resources available online to help you out. Because that's all beyond the scope of this article, I'll assume you're set. If not, Google will be your friend.
He starts with a simple example using the mail function but quickly moves on to sending a multi-part email with an attached zip file and HTML content. He includes the all code you'll need and explains each part in detail so you'll know exactly what's going on.
voice your opinion now!
send email tutorial html multipart zip file
NETTUTS.com: How to Open Zip Files with PHP
by Chris Cornutt December 31, 2008 @ 12:04:06
The NETTUTS.com site has a new tutorial/screencast posted looking at their method for opening up uploaded zip files with PHP:
ThemeForest has a nice feature; It allows the authors to upload zip files containing screenshots of their themes. A script then extracts these files and displays the images accordingly. Though I doubt that the developers used PHP to accomplish this task...that's what we're going to use!
They create a simple form with one field - a file input - and write some basic PHP around it. The script ensures that it was a zip file that was uploaded (based on the mime type) and passes it through a ZipArchive class to do the hard work. This class and the rest of the source can be downloaded from the site.
voice your opinion now!
open zip file tutorial upload mime type download source
IBM developerWorks: What's new in PHP V5.2, Part 4 Using the new ZIP extension
by Chris Cornutt May 02, 2007 @ 14:44:15
There's a recently posted article on the IBM developerWorks website today that's part four in a series they've been doing on what's different in PHP 5.2. This time, they focus on a handy little extension that can really work wonders - the Zip extension.
ZIP? It's about time! PHP just added ZIP features to PHP V5.2. Now they're now built-in. This article, Part 4 of a five-part "What's new in PHP V5.2" series, shows you how to make the most of this new feature by creating, editing, uploading and reading, and creating and downloading ZIP files. After reading this article, you will be well versed in the art of ZIP files using the latest ZIP PHP extension in PHP V5.2, so you can reduce bandwidth overhead or storage usage when handling large files with PHP.
The article is broken up into the four obvious sections:
- what is compression?
- what's in a zip file?
- making a zip archive with PHP
- uncompressing a zip archive with PHP
The last two come with their own code examples, using a simple text file to make the archive.
voice your opinion now!
zip extension tutorial create compress uncompress zip extension tutorial create compress uncompress
|
Community Events
Don't see your event here? Let us know!
|