One
Q: I have installed the UNIX version of the Apache module by step, but my php script source is displayed in the browser, or the browser prompts me to save the file. Why?
A: This is because the PHP module is not working properly. Please check the
PHP is often used with Apache Web servers for Linux/unix platforms. When we install PHP in the Apache environment, you have three installation modes to choose from: Static module, dynamic module (DSO) and CGI.
I suggest you better install PHP as
The development of the often encountered this situation, online testing is very good program, upload to the line (production environment) will appear strange errors, such as a blank page, also do not know where the problem, and the line is not
Example 1
The code is as follows
Copy Code
/** Function: PHP a variety of ways to achieve the perfect download remote pictures saved to local* Parameters: File URL, save file name, use the download method* Use the
An example is provided:In the Windows environment: Originally in the php4.3.0 of the program, in the 4.3.1 Why many errors, the general hint is: notice:undefined varialbe: variable name.
For example, code that resembles the following:
The code is as follows
Copy Code
Upload File Program /***********************Programs: Uploading FilesFunction: Upload files, thumbnails, watermark****************************/Include ("common/upfiles.class.php");$path = ".
Using PHP to refresh your browser requires several issues1.PHP script Execution time limit, the default is 30m solution: Set_time_limit () or modify php.ini set Max_execution_time time (not recommended)2. If the client browser is closed, the program
/*Array getimagesize (string $filename [, Array & $imageinfo])
The getimagesize () function determines any given image size of the file and returns the size of the text string with the file type and height/width used in a normal HTML img tag and
Class my_lib_upfile{
var $upfile, $upfile _name, $upfile _size;# $upfile temporary filename $_files[' tmp_name '], $upfile _name filename $_files[' name ', $upfile _size file size $_files[' size '];
var $new _upfile_name; # The file name after
The exception is used to change the normal flow of the script, if the specified error-------------------------------------------------- ------------------------------what is an exceptionIn PHP 5 comes a way to handle a new object in an
There are many ways to install nginx, here we still compile the source code for installation, use the following command:
$ wget http://nginx.org/download/nginx-1.6.2.tar.gz$ TAR-ZXVF nginx-1.6.2.tar.gz$ CD nginx-1.6.2$./configure--prefix=/usr/local/
Today, the installation PHP5.4.8 is compiled under CentOS 64 digits. The results were prompted at the time of configure
First of all, one of the most common is configure:error:libjpeg. (A|SO) Not found reason is that most of our software just
A blank line, which may include, line breaks,  , and spaces. When processing a string, it is unavoidable to encounter a blank line processing.1, replace blank lines, blank lines can include spaces, ,\t,\f,\n
$s = preg_replace ('/(^ (\s|) *$)/M '
Php_curl.dll extensionWhen phpnow is used in windows to configure the server, some extensions may fail to be started. This is recorded in apache logs (error. log), for example, php_curl.dll extension:PHP Warning: PHP Startup: Unable to load dynamic
In windows server 2008 R2, the php execute command fails to call the. Exe file, but the php file is executed in the command line, and the. Exe file can be called. The security mechanism of windows server is not the same as that of linux. Apart from
In PHP, set php. ini and find session. gc_maxlifetime = 1440 #(PHP5 is 24 minutes by default)You can set the expiration time as needed, but some people say that it does not work after the setting!In fact, it is not ineffective, but because the
The code is as follows:Copy code // Use a program to log on to a forum as an example.Function bbslogin ($ user_login, $ password, $ host, $ port = "80 "){// The post data to be submitted$ Argv = array ('cookie '=> array ('User _ login' => $ user_
Php header () page jumpI migrate the blog from http: // www. Your domain name/blog to the http://www.111cn.net domain name, when the user visits the previous blog address, automatically jump to the corresponding article of the current blog The code
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