From: http://bbs.phome.net/ShowThread/?threadid=9247&forumid=2
In PHP programming, we often encounter some functions that produce output directly, such as PassThru (), ReadFile (), var_dump (), etc. But sometimes we want to import the output of
PHP is very difficult to upload the progress bar because when we upload files to the server, to wait until the file is all sent to the server, before the corresponding PHP file execution. Before that, the file data was saved in a temporary file, and
Many friends of the newly-learned PHP may be a bit troublesome in the database, especially after mysql4.1.x will appear garbled problem. Here is a simple tutorial, hoping to help a little beginner. Perhaps a lot of friends before is to learn ASP (I
Refer to the opening remarks of the previous article:
I am not in touch with PHP for a long time, so there is no shortage of places, you are welcome to correct, let everyone laughed at.
This small tutorial is the object of PHP beginners, are some
Pattern-matching characters:
\: Escape character example: \b escaped B
^: Regular expression Start symbol
$: Regular expression End symbol
*: Matches the preceding character to appear 0 times or n times
+: Match the preceding character to
PHP Mysqli_free_result () and Mysqli_fetch_array () functions
Mysql_free_result () only needs to be invoked when considering the amount of memory that will be consumed when a large result set is returned. All associated memory is automatically
The example in this article describes how PHP custom functions implement the format of seconds. Share to everyone for your reference, specific as follows:
function Vtime ($time) {
$output = ';
foreach (Array (86400 => ' Day ', 3600 => '
Code in the PHP controller
Public Function downfile ($path = ') {
if (! $path) Header ("Location:/");
Download ($path);
Download File Download function code
function Download ($file _url, $new _name= ') {
if
First, introduce the requirements background:
Invoice method:
0= donation (Don't ask me why, historical reasons)
1= sent to China
2= Request
3= Electronic Invoice
Now you want to test the data submitted by the User:
Yesterday, the PHP space opened, the server is installed PHP4 version, nearly 20 days to start writing with PHP, their own platform is php5, of course, when the writing is still very careful, because almost every piece of code is the main point of
PHP runs under 64-bit Windows2003 and IIS
First modify IIS from 64-bit mode to 32-bit mode, as long as one command:
cscript%systemdrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1
Revert to 64-bit mode
Use PHP to write a weather forecast module
Weather data is collected by the Chinese meteorological website. Originally China weather website also gave the data API interface. The following is the address of the API. The returned data format is in
Original question: How to turn php into EXE file.
The result of course is no such software, but there are two of ASP's Dongdong, you can make the site into an EXE file release. I do not have time to try, we can see, what results can be posted over,
Object-oriented Programming (OOP) is a basic skill in our programming, and PHP4 provides good support for OOP. How to use OOP idea to do advanced PHP programming is very meaningful for improving PHP programming ability and planning web development
This article describes the Cart.class.php definition and usage of the PHP shopping cart class. Share to everyone for your reference, specific as follows:
The previous developers used JS technology to develop a set of front-end shopping cart (delete
This example describes the AES encryption algorithm for PHP. Share to everyone for your reference, specific as follows:
key = hash (' sha256 ', $this->key, True); echo $this->key. '
';
function Encrypt ($str) {$td = Mcrypt_module_open
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
Building a simple interactive website (vi)
9. Simple Banner Dynamic replacement
I do not know if you have found the major sites on the banner ads banner, each time we visit these sites, will see a different advertising icon, or if you refresh the
This article illustrates the simple implementation of PHP's timestamp for today, yesterday, and tomorrow. Share to everyone for your reference, specific as follows:
Echo strtotime (' Now '), ' '//Present
echo strtotime (' Today '), '
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service