php tutorials to determine the existence of the file or directory method is very simple php file or directory to determine whether there is a function that comes with file_exists file exists to determine whether the directory exists we use is_dir ok. * / $ file = "data.txt"; $ dir = "www.jzread.com/newdata"; if (file_exists ($ file)) {& nb
This paper introduces how to build a network database application method by MySQL of the golden combination of Web database, PHP is a server-side embedded hypertext Processing language similar to Microsoft ASP, it is a powerful tool to build dynamic website. While MySQL is a lightweight SQL database server that runs on a variety of platforms, including Windows NT and Linux, and has a GPL version, MySQL is considered the best product for building a database-driven dynamic Web site. PHP, MySQL, and Apache are Linux ...
In this lesson, we're going to do some more complicated work to show the data in multiple rows, the database exchanging data one, the while loop in this lesson, we will continue to drill down and use PHP and MySQL to write some simple and useful pages. We start with the database we created yesterday and display the data in the library, but we'll touch it a little bit. First, we use the following code to query the contents of the database. <html> <body> <?php $db = Mys ...
recursive delete directory (folder) Here are two examples, one is to delete a separate empty directory code, a batch delete directory folder code. // delete a single empty folder $ dir = 'www.111cn.net'; if (is_dir ($ dir)) / / to determine whether the directory {if (rmdir ($ dir)) {echo 'directory delete success'; el ...
PHP file Zip compression/* Creates a compressed zip file/function create_zip ($files = Array (), $destination = ", $overwrite = False) {// If the zip file already exists and overwrite is false, return false I ...
Dbkiss is a database browsing tool made up of a single PHP file that supports MySQL and PostgreSQL databases, supports the import and export of data, can search the entire database or a single table, and provides an advanced SQL Editor, template retention, Multiple queries perform functions at the same time. Dbkiss is a one-file PHP database browser which is easy to upload and use. It su ...
- php tutorial to upload pictures and generate the specified size chart in proportion This is an image thumbnail function Oh, upload a new picture to $ srcfile Then file $ thumbwidth thumbnail width maximum size and $ thumbheitht thumbnail image maximum size Generate a thumbnail. Image thumbnail function parameters: $ srcfile original address; $ dir new map directory $ thumbwidth thumbnails width maximum size $ thumbheitht thumbnails thumbnails ...
Summary: Generate HTML static pages when adding articles, but if you want to delete the article, the HTML static page generated when you add the article should be deleted at the same time, otherwise it will be redundant file, so we should delete the useless article while deleting the generated HTML static page when adding the article. But if you want to delete the article, the resulting HTML static page should also be deleted, otherwise it becomes redundant files, so we should delete the useless article, while delete the generated HTML static page, the following look at the PHP article ...
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.