PHP File Management and UploadMore than 730 titles from different sources. Prepared by gotAPI.com |
|
|
1 - 75 76 - 150 151 - 225 226 - 300 301 - 375 376 - 450 451 - 525 526 - 600 601 - 675 676 - 750 www.gotAPI.com |
Creating Your Own Log Files
What to do if your domain host does not allow you to read the server log for your domain, stopping you from analyzing your website traffic the way you d like to? Well, create your own logfile of course ! I recently set up a new domain (coolt.nu, it s in Swedish, you might not want to visit it :) and faced the problem that my domain host wouldn t generate the statistics I wanted. I also found that they would not let me read/process the logfile my...
File based, custom logging
In my opinion, the best thing about working in the development phase is the liberty to throw your errors to the browser, without too many worries of prying eyes. Once your project is live, however, these errors can be very risky business and naturally they should be supressed. This carries with it the disadvantage of complicating the debugging process if something goes wrong. One great way to suppress these demons, without losing any valuable in...
File Management with PHP
We can find many articles related to uploading, viewing, and downloading files. This article is written on the basic concept of uploading and managing files. File uploading is the process of copying the file from your machine to the remote server. Other users of the same system then share this file by viewing or downloading it. What happens when you upload a file that already exists in the remote folder to which you are uploading?
File uploads made easy
Every time I ve written some code to upload a file, either to send it off as an email attachment or as an image for some dynamic content piece, I ve always meant to write a few functions so I don t have to write the code again. Well, people on the Back-end.org support board have been asking for the ability to add images to news and articles recently, so I *finally* sat down and wrote this script in order that I can add that functionality to the ...
File Version Management in PHP
We can find many articles related to file upload, view, download, etc. This article is written on this basic concept of uploading and managing files. File upload is a process of copying the file from your machine to the remote server. Other users of the system then share this file by viewing / downloading. What happens when I upload a file that already exists in the remote folder to which you are uploading? While discussing this problem, various ...
Handling File Data with the Facade Pattern in PHP 5
Are you interested in learning the foundations of different structural patterns in PHP 5? If your answer is affirmative, then you should start reading this article immediately! Welcome to the last installment of the series Introducing the Facade Pattern in PHP 5. In two consecutive articles, this series shows you how to create and use facade classes in PHP-based development environments.
Multiple File PHP Scripts
Although it s not ever truly necessary, many times it becomes very important to have the ability to separate PHP code into multiple files to ease organization and promote the idea of reusing common functions within your PHP scripts. // ); //]] Thankfully, PHP supports four different language constructs and functions to allow for the import of code from other files, which I will discuss now. Including Code in Your PHP Script There are many ways ...
Private Pages with PHP and Text Files
You run a website that is simple enough it doesn t require a database. But your site features certain pages to which you d like to limit access. Most of the time, that implies using a database to store passwords and usernames. There is an easier way, however. It s less secure, but it involves a lot less coding.
Processing File Data with Template Classes in PHP 5
If you re looking for a friendly guide on how to implement the template design pattern with PHP 5, then this group of articles might be what you need. Welcome to the final installment of the series that began with Working with template classes in PHP 5. As the title indicates, this series steps you through creating template classes in PHP-controlled development environments, and also shows you how to use this rather uncommon pattern i...
Reading, Writing and Creating Files in PHP
Reading and writing to files can be useful if you do not require the storing of important data, such as a web counter. I must warn you though, that this method of storage should not be used to store passwords and other critical information, as it is not safe. Here we will discuss how to handle files and directories in PHP, specifically, how to create, read and write them.
The PHP Configuration File
One of the most powerful features of PHP is the ability to customize its behavior through a configuration file. In this first article, we re going to cover some of the ways the php.ini file can be used and how it might help you. The second article will outline in detail many of the more frequently used directives of the php.ini file. // ); //]] Using the PHP configuration file can make administration of PHP as simple as administration of Apache!...
Uploading Files and Navigating Directories in PHP
In this article we are going to look at how to upload files and also how to navigate through directories. It is the second part of a tutorial that began last week with Reading, Writing, and Creating Files in PHP.
Uploading Files within a PHP Script
Being able to accept uploads from your users is one of those surprisingly essential functions that re-occur in many applications. Examples are everywhere: on bulletin boards people are often allowed to upload attachments and custom avatars, content management systems allow administrators to upload images for posts and web site management scripts utilize uploads to give users to ability to edit and add new files. Adding file uploads to your own sc...
Using PHP with Files
The ability to work within the file system is the power to store and retrieve information from the server. Combined with forms, it s the basis for a range of applications like guestbooks, blogs, images galleries and more. In the next two articles, you will get an in depth look at how to work with files and directories. You will learn how to use text files as databases, perform basic tasks such as renaming and deleting files, and manipulate direct...
Using the Memento Pattern with a File Reading Class
The memento pattern can be used to maintain the state of a property that belongs to a specific class. If you want to learn more about how to do this, start reading this tutorial! Welcome to the final installment of the series Maintaining the State of Classes. In two parts, this series teaches you how to use the memento design pattern with PHP 5, and it accompanies the corresponding theoretical concepts with diverse hands-on examples.
Working with Files in PHP
Welcome back. In my last column, I finished my discussion of using references in PHP to do some pretty powerful things. This week, I ll be changing gears completely and begin my discussion of working with the file system through the use of an extensive set of PHP functions. I ll cover the fundamentals of reading and writing text files first, then cover some of the more advanced features and offer a few great shortcut functions. Let s get started....
Working with Files in PHP, Part 3
Welcome back. In my last article I introduced how to use PHP to read and write binary files. This week, I ll introduce the concept of working with directories in PHP, including creating new directories, changing directories, and getting a file list for a given directory using PHP s pseudo directory object. We ll be starting from reading directories from a list, and then we ll discuss creating new directories or changing the current directory usi...
Working with Files in PHP, Part Two
Welcome back to PHP Foundations. Last time I introduced you to the basic file access methods available to PHP: fopen(), fputs(), and fgets(). Although very useful, these functions work only with strings. This week I ll introduce to you more advanced file access functions that read and write binary files. We ll talk about fread() (used for reading), fseek() (used to find specific parts of a given file), along with a few other useful file access fu...
Working with Multiple Template Files to Separate Logic from Presentation
Welcome to the last part of the series Separating logic from presentation. In three tutorials, this series teaches you how to develop an expandable template processor class using PHP 5, which exposes some useful features, such as recursive placeholder replacement, MySQL result sets processing, and parsing of dynamic PHP files, among others.
|