The code is as follows
Copy Code
Class HTML{var $dir; Dir for the htmls (www.111cn.net/)var $rootdir; Root of HTML files (www.111cn.net/): HTMLvar $name; HTML File Store pathvar $dirname; The specified folder namevar $url; Gets the
Z.asp
Copy Code code as follows:
s= Server.MapPath ("z.asp")
Set fso = CreateObject ("Scripting.FileSystemObject")
If FSO. FileExists (s) Then
Fso. DeleteFile (s)
End If
Set FSO = Nothing
%>
z.php
Copy Code
I often see people on the Internet to ask how the entire dynamic Web site static, in fact, the implementation of the method is very simple.
Copy Code code as follows:
Add Ob_start () at the beginning of your service;
Ob_start ();
It's been known long ago that there is a class called Phpexcel (Official web site) can be used to operate Excel, has not had the opportunity to try, today, the trial found extremely powerful, download the source package has a detailed document, can
Copy Code code as follows:
Class HTML
{
var $dir; Dir for the htmls (without/)
var $rootdir; Root of HTML files (without/): HTML
var $name; HTML File Store path
var $dirname; The specified folder name
var $url; Gets the source page
First, the introduction
On the speed, static page than dynamic page for example PHP much faster, this is no doubt, but because the static page flexibility is poor, if not with the help of the database or other equipment to save the relevant
The example of this article describes the PHP custom APK installation package method, share for everyone to reference. The implementation methods are as follows:
As we all know, the APK format installation file is an Android Smart system
One of my customers has the demand: Upload files, can be doc,docx,xls,pdf,txt format, now need to read the contents of these files in PHP, and then calculate the number of words in the file.
1.PHP read DOC-formatted files
PHP does not have a class
This example summarizes the common PHP data file cache classes. Share to everyone for your reference. The specific analysis is as follows:
The practice of data file caching we often have PHP file caching and using Memcache to cache data, below I
One: Introduction
In any computer device, files are all necessary objects, and in Web programming, the operation of files has always been a headache for Web programmers, file operations in the CMS system this is necessary, very useful, we often
Open file: Fopen:fopen (Filename,mode);//fopen ("Test.txt", "R"); Open mode: R read-only open, point file pointer to file header r+ read-write mode open, point file pointer to file header W Write, point to file header, If it does not exist, try to
This article brings you the content is about PHP fastcgi_finish_request introduction and implementation of non-blocking code, there is a certain reference value, the need for friends can refer to, I hope to help you.
Objective
In the actual project
I often see people on the Internet to ask how to static the entire dynamic site, in fact, the method is very simple.
The code is as follows
Copy Code
Add Ob_start () at the beginning of your service;Ob_start
PHP$file= "Ueditor\php\upload\image\*\*.png";foreach(Glob("$file") as $filename) {Echo"$filename." \ ">";Echo"";//echo "Destination folder path: ";//The cause of the error is $file, but $filenameEcho"$filename' > ';//type= ' Submit ' will not post
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.