Browsing the archives for the PHP Tutorials category
Since I will be taking the ZCE exam in four days, I figured I’d post a study guide for the world while doing last minute studying. Enjoy!
PHP Basics
Syntax | WikiPedia
Operators | W3Schools
Variables | Further Reading
Constants | Official Reading
Control Structures | Official Reading
Language Constructs and Functions | Further Reading
Object Oriented Programming
Instantiation – $classInstance = New classname; [...]
http://renownedmedia.com/blog/zend-certified-engineer-zce-study-guide-links/
I was recently given a PHP application with the task of modifying it and making it more efficient. This application was originally written and executed only in a Linux environment. Personally, all of my development takes place on Windows based computers.
Well, the modifications were going well, until it came time to execute cURL against a [...]
http://renownedmedia.com/blog/php-curl-cookies-not-saving-on-windows/
Spidering, in its simplest form is the act of transferring data from one database to another. Spidering requires the use of Regular Expressions, the cURL library (if POST data or cookies are used), and the cron libraries (if we need to download information with a schedule).
http://renownedmedia.com/blog/web-spidering/
This article will explain the advanced topics of PHP classes, including polymorphism, abstract classes, and interfaces.
http://renownedmedia.com/blog/polymorphism-abstract-classes-and-interfaces-in-php/
Not too long ago I needed a web application to send text message updates to my cellphone. The application would interface with other applications and I would need an hourly statistics report which would also include any errors, which would need to be fixed ASAP. Email could take a while to be received, and this [...]
http://renownedmedia.com/blog/send-sms-cellphone-messages-from-your-website/
When working with dates, PHP uses the system time by default, which is dependent on the timezone the server is in. So, instead of doing tricky math with the results of the date function, you can simply change the timezone.
Here is the function used to change the timezone:
<?php
putenv(“TZ=US/Detroit”);
?>
One thing to keep in mind is that [...]
http://renownedmedia.com/blog/change-php-timezones/
We’ve developed a PHP Class for drawing a CSS graph. The CSS and XHTML code for this class was originally developed by Meyerweb, we just took it and wrapped a PHP class around it. This class is also hosted over at phpclasses.org if you prefer to get your stuff on that site, but keep in [...]
http://renownedmedia.com/blog/php-class-for-creating-css-graphs/
This script is loaded using an image tag and generates data based on information added as GET parameters.
For example:
<img src=”bar.php?value=100&max=256&info” />
Generates:
This script requires at least four files to use. The first is an HTML file which loads the image (of course), the second is the background “bar.png” image which the graph is built on, the [...]
http://renownedmedia.com/blog/php-bargraph-generator/
This script does a google image search for the term provided, then opens each result page from Google and downloads all images on those pages into a local folder called images/ with the filename being an MD5 hash of the URL.
PHP Google Image Search (In the Renowned Media CodeVault)
http://renownedmedia.com/blog/php-google-image-search/
Here is the source code for our user authentication model which we use in our CodeIgniter applications for interfacing with our users tables. Highly configurable to suit a variety of database schemas.
CodeVault CodeIgniter User Authentication Model
Please leave any feedback for the model on this blog post, not in the CodeVault!
http://renownedmedia.com/blog/codeigniter-user-authentication-model/