PHP outputs files such as Excel

$ Filename = "FILENAME "; Header ("Content-Type: text/CSV; charsets = UTF-8 "); // 'Text/csv' is a CSV file, and 'application/vnd. MS-Excel 'is an Excel file Header ("Content-Disposition: attachment; filename = ". $ Filename . ". CSV "); //

PHP windows emails

1. from http: // Glob.com. au/sendmail/download sendmail.zip 2. decompress the package to D: \ Apacheserver \ PHP \ Sendmail is the best short path, which may cause problems. 3. php. Configure SMTP in ini = Smtp.126. Comsendmail_from = Zdy_521 126.

Delimiters in PHP

Because PHP is a WebProgramming LanguageIn the programming process, it is inevitable to use echo to output large HTML and JavaScript scripts. If you use the traditional output method-output by string, there must be a large number of escape

) Use PHP functions in smarty

Require 'Libs/smarty. Class. php'; $ Smarty=NewSmarty; $ Smarty-> Compile_check = true; $ Smarty-> Debugging = true; $ Str1='Testtesttesttest'; $ Str2='This is'; $ Str3='Commandid too many commandid'; $ Str4='This is four'; $

Share a PHP version push server building process

From: http://www.cocoachina.com/bbs/read.php? Tid = 30410   BeginnerIPhoneDevelopment, After repeated verification, combined with the following two

Set and retrieve cookies in PHP

Setcookie ('mycooker', 'value ');// Function prototype: int setcookie (string name, string value, int expire, string path, string domain, int secure)Echo ($ mycookie );Echo ($ http_cookie_vars ['mycooker']);Echo ($ _ cookie ['mycooker']); Delete

Pay attention to this security knowledge during PHP website development

Pay attention to this security knowledge during PHP website development 1. Ancient spoofing SQL statements In the default mode, even if you forget to copy PHP. ini to/usr/local/lib/PHP. ini, PHP still opens magic_quotes_gpc = on. In this

An example of how PHP + Ajax transmits data. Solution with Chinese garbled characters

==================== 1 2 3. How are you? ==================================== Indextest1.php ====================================== untitled document If (empty ($ id) {$ id = 3 ;} $

The idea of registering a user name using Ajax + PHP is as follows:

File: ajax.htmCode: UTF-8  Ajax Username: File: request. phpCode: UTF-8  Sleep (1); // LetProgramFirst sleep for one second$ TMP = $ _ Get ["userid"];If ($ TMP = 'yary') // If you enter "yarn" on the client, it indicates that it has been

Collect common statements in PHP

  1: connect to the database: $ Conn = mysql_connect ("localhost", "root", "www.xunjobs.com") or die ("database connection failed". mysql_error ());Mysql_select_db ("db_pursey", $ conn) or die ("Database Access failed". mysql_error ());Mysql_query ("

PHP compression HTML webpage code: clear spaces, tabs, comment mark

How to optimize the webpage loading speed is a problem. Yahoo once made 36 optimizations. In fact, there are still many ways to optimize web pages. The following describes how to increase the loading speed of the front-end by reducing the page size:

Set up a PHP environment in IIS

The system win2003 (32bit), 32-bit system suggests that you can directly use zendserver ce to integrate IIS perfectly, and it is more convenient.   System win2003 (64bit), 64-bit system is no longer available, you can only configure IIS on your own.

How PHP sends emails

(From: http://blog.163.com/tu_xing_long@126/blog/static/665971972010109114247408)   A script that sends a E-MAIL may be one of the most common scripts you can find on the web site, although it is very simple, a mail script can sometimes make

PHP job search book-PHP language Basic notes 3

Traverse all files and subfolders in a folder:   Obtain the content of a specified webpage: File_get_contents ($ PATH );   Watermark website images:    1/* 2 imagefttext: write text to the image 3 imagecreatefromjpeg: introduce an image 4 */5 6

PHP file folder operations

"; die ('no');} does not exist ');} // ======================== determine if the file does not exist (file_exists ($ file) = false) {echo ""; die ('no file ');} // ================================================ ================== Read File Content

Some PHP skills

Many people do not remember to write the exit () statement when using the header (location) for jump. In fact, this method has serious risks. From the browser, the header (location) is used to jump to another page, but in fact, PHP will still

How to connect PHP to Ms sqlserver in Linux

There is no problem with the PHP script to read and write sqlserver. It works well in Apache for Windows and Windows IIS. Generally, it can be connected through ODBC or sqlserver client, which are all ready-made in windows. However, ODBC and

Internationalization of PHP programs

Here we will mainly introduce how to use the extended gettext of PHP in the window platform to internationalize the program. Step 1: Build the environment1. First check whether the php_gettext.dll file exists in your PHP extension directory. If not,

The JPG file is empty during PHP file download.

Some time ago, I learned something about PhP. This time, my company encountered some problems when downloading and opening the bugfree attachment. The symptoms are as follows: In JPG format, click to open the file in the browser and display it as a

Iis7.5 configure PHP 5.3.5

First, check that CGI is enabled in IIS: In IIS 7.5, the PHP manager module is added to facilitate the installation of PHP programs. As long as you set it up, other tasks are automatically put in place! :

Total Pages: 12780 1 .... 9291 9292 9293 9294 9295 .... 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.