PHP installation strategy: frequently asked Questions

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

Install PHP as Apachedso

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

To open the Error_log of PHP and troubleshoot errors encountered on the line

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

PHP Gets the remote picture and saves it to the local

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

PHP error_reporting (e_all ^ e_notice) Error Report detailed description

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:

PHP File Upload program (support thumbnail) (1/2)

The code is as follows Copy Code Upload File Program /***********************Programs: Uploading FilesFunction: Upload files, thumbnails, watermark****************************/Include ("common/upfiles.class.php");$path = ".   

PHP User Registration (front desk perfect JS verification)

/*CREATE TABLE ' member ' (' member_account ' varchar collate utf8_unicode_ci NOT NULL,' Member_password ' varchar collate utf8_unicode_ci NOT NULL,' member_name ' varchar collate utf8_unicode_ci NOT NULL,' Sex ' varchar (1) Collate utf8_unicode_ci

Introduction to various usages of extract functions in PHP

Directly on the code: The code is as follows Copy Code $my _array = Array ("A" => "Cat", "B" => "Dog", "C" => "horse");Extract ($my _array);echo "$a = $a; $b = $b; $c = $c ";?> Guess what will come out? Output:

The implementation method of PHP plan task, support Windows/linux running

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

PHP detects the length and width of uploaded images

/*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

PHP common File Upload class-can upload multiple files

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

PHP Exception Catch handling

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

Installation configuration Nginx and PHP tutorial for LNMP environment configuration

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/

PHP Configure:error:Cannot Find LDAP Libraries In/usr/lib

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

PHP Replace empty line mismatch empty line problem solution

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 '

How to solve the problem that php extension cannot be started in windows

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

The php exec () function cannot be executed in windows server 2008.

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

How to accurately set the session expiration time in php

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

Four Methods for simulating data submission using post in php

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 page jump to another page various jump page code

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

Total Pages: 12780 1 .... 2001 2002 2003 2004 2005 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.