PHP programming tutorials
PHP: Upload Files to the Server
Contributed by William_Wilson on September 30, 2008 under PHP programmingWith PHP, it is simple to upload any file to your server.
CommentsPHP: Print the current year for copyright notices
Contributed by qmchenry on March 8, 2008 under PHP programmingHardcoding the year in a copyright notice is an easy way to get a blog or other website started, just placing the starting and ending years next to the copyright symbol. We have the very best of intentions to change this number right after the big ball drops in Times Square each year. We’re also human and, all too often, I see websites with copyright notices that are years behind. If your website is PHP-powered, this quick bit of code will put the current year in your copyright notice and off of your mind.
CommentsMake Wordpress Stop Replacing Double Dash with Em-dash
Contributed by johnnythawte on November 20, 2006 under PHP programmingWordpress by default replaces the double dash (–) with an em-dash character. If you are showing code or programming examples this will cause your visitors unnecessary confusion. This recipe shows the simple way to turn that behavior off.
CommentsPHP: Delete or expire a browser cookie
Contributed by qmchenry on July 14, 2006 under PHP programmingCookies may be created with an expiration time. It may become necessary to expire a cookie before the expiration time such as when a user logs out of a cookie-based authentication web application. This recipe describes expiring a cookie.
CommentsPHP: Read a browser cookie value
Contributed by qmchenry on under PHP programmingOnce your web application has set a cookie in a user’s browser, it is a simple matter to retrieve that value in subsequent page requests. This recipe describes reading a value from a cookie in PHP.
CommentsPHP: Set or create a simple browser cookie with setcookie
Contributed by qmchenry on under PHP programmingWeb applications overcome the lack of session support in the HTTP protocol primarily through the use of cookies. Transparent to the user and simple for the web developer, cookies provide the foundation of keeping up with who a web user is, where they’ve been, and what they had for lunch. Well, who and where, anyway.
CommentsPHP: Rename or move a file on the server
Contributed by qmchenry on July 10, 2006 under PHP programmingWorking with server-side files with PHP adds a great deal of flexibility to some applications. A common scenario when working with files involves creating a temporary file through uploading or other means and then renaming this file to a permanent location. This recipe describes changing the name of an existing file using the PHP function rename().
CommentsPOPULAR RECIPES
- Solve PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried...
- PHP if statement syntax
- Solve PHP error: Cannot modify header information - headers already sent
- Redirect to another web page using PHP
- PHP: determine the directory path of the server root
- PHP syntax: iterate over an array
- PHP: Delete or unlink a file on the server
- PHP: Rename or move a file on the server
- View our Top Tens
TECH-RECIPES BLOGS
- you're doing it wrong! (rant)
- thoughts of a launch psp owner (post 4 1/2 years)
- Facebook FishVille Cheat: Send Multiple Free Gifts to Your Neighbors
- post release: Windows 7, homegroups and me
- fall 2009 and some geek thoughts, reflections
- Facebook Cafe World Cheat: Close Your Cafe When You are Away for Long Periods of Time (to preserve your Buzz Rating)
- Facebook Cafe World Cheat: Serve Your Customers Instantly
- Facebook Cafe World Cheat: Send Multiple Free Gifts to Your Neighbors







