Browse a Listing
Top > PHP > Tips and Tutorials > File Manipulation
Popular Tags
Free Script links
In the previous version of this tutorial I only covered how to paginate a flat file based application. In this updated version, I will discuss some improvements along with pagination for database content as well (specifically, MySQL). I will also cover how to retain any pre-existing query string variables that your application might be using without interfering with our pagination.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 17 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Databases really are wonderful pieces of software, they allow us to organize our content logically and allow easy access, updating and searching. However, sometimes a database is overkill and is not needed for the task. For example, what if you had a list of sayings or quotes, and you would like to display a random one each time the page loads. This could easily be represented in a database; however, it is equally as easy to do it using flat files
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 5 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
It is common to have downloads on your website, and sometimes you want to moderate your downloads by speed, or possibly hide the directory that the download is coming from, protecting all your other files. This is very possible and very simple to solve in PHP. All you need is the header() function and some files function
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 6 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
Well, tired of FTP'n everything up to your site? Or even want to allow other members to upload files but you dont' want to give them FTP access? Well lets create a file upload system that will take care of all your uploading woes. THis also employs some minimal security checks.
As of PHP 4.1 uploaded files can be accessed via the $_FILES superglobal, but in earlier versions you can use $HTTP_POST_FILES array and the last option but not recommended will be to use the $upload that corresoponds to the name of the file input. Note: You can only use the last method if register_globals is enabled.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 4 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
As Web pages have moved from static documents into dynamic database-driven applications, users are looking for the ability to upload data in the form of files. In today's article, we'll be looking at how files can be uploaded and then processed in PHP.
Let's assume that your Web site is devoted to a community of graphic artists from all backgrounds. As your site grew, you started devoting a section to displaying your members' works.
Until now, a member would send his or her contribution to an e-mail address listed on the Web site, and from there the image would be manually processed and added. With PHP 4, not only can your members upload images from the Web site directly, but also the majority of the processing that was done manually can now be automated. Here's how browser-based file uploading works:
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Oct 15, 2006 Hits: 6 Rating: 0.00 Votes: 0
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR
In spite of security issues that should be addressed before enabling file uploads, the actual mechanisms to allow this are straight forward. In this tutorial we will consider how to upload files to some directory on your Web server. We will also discuss security issues concerned with the file uploading.
Category:
Write a Review
Add Favorite
Refer it to Friend
Report Broken Link
Date Added: Jan 18, 2007 Hits: 161 Rating: 5.00 Votes: 2
Member Reviews
Visitor Ratings
Google PR
Member Reviews
Visitor Ratings
Google PR