Let you learn good PHP learning materials in one week

1. Learn PHP in one week Ftp://ftp.cycu.edu.tw/CNA/Course/2004/0816_0820_PHP/videos/040816_PHP_1.wmv Ftp://ftp.cycu.edu.tw/CNA/Course/2004/0816_0820_PHP/videos/040817_PHP_2.wmv

PHP file type judgment code

$ Filename = "D: \ 296.mid "; $ File = fopen ($ filename, "rb "); $ Bin = fread ($ file, 2); // read-only 2 bytes Fclose ($ file ); $ Strinfo = @ unpack ("c2chars", $ bin ); $ Typecode = intval ($ strinfo ['chars1']. $ strinfo ['chars2']); $

PHP anti-leech Function

CopyCodeThe Code is as follows: $ Url = $ _ Get ['url']; $ Ext = pathinfo ($ URL, pathinfo_extension ); If ($ ext! = 'Jpg '& $ ext! = 'Gif') {// only jpg and GIF images are supported. Readfile ('/upload/20081209130557536.gif '); Exit; } $ File

Use discuz to implement PHP large file upload application instance code

If you really need to improve the uploading conditions of Forum attachments, you can try to set the parameters mentioned above in PHP. ini to meet the needs of uploading large files. At the same time, do not forget to set attachments in the

Summary of str_replace function usage in PHP

During this time, I read the book "PHP and MySQL web development" and saw the str_replace explanation. I wrote a small note: Three of str_replace can be passed in using arrays, but the explanation is relatively simple, so I decided to test the

PHP beginners write small programs that promptly replenish Skype users' phone charges

In fact, there are dozens of items, but because there is a large amount of data to be operated, a small section is added to the end. ProgramYou can process the data that was not processed yesterday as follows: CopyCodeThe Code is as follows: $

PHP script against web Scanners

Most Web scanners (including the upload and Management backend scanners) determine whether a page exists by judging the HTTP 200 return, these scans start to scan vulnerabilities. Since internal logic cannot be strictly controlled, the bottleneck of

Summary of PHP website basic optimization methods

1. Use Gzip Add the following to the top of each PHP page:Code: After this code is used, the server compresses all the code that needs to be sent to the client and decompress it in the browser to speed up website operation. This function can

Analysis on the principle of making a simple content collector using PHP

A novel was serialized a few days ago. Program For fear of updating, I wrote a collector to collect eight Chinese networks. The function is simple and cannot be customized, but the general idea is in it, custom rules can be expanded by yourself.

PHP Remote File Download class (supports resumable upload)

Easy to use: CopyCode The Code is as follows: $ object = new httpdownload (); $ Object-> set_byfile ($ file) % N # h # %; // server file name, including path $ Object-> filename = $ filename; // download the file name saved $ Object-> download (); 3

Php eot delimiters

The end identifier must start from the first column of the row. Similarly, the identifier must follow the naming rules for any other tag in PHP: it can only contain letters, numbers, underscores (_), and must start with an underscore or a non-digit

Common PHP function libraries and some practical tips

File Read Function // File Read Function Function php_read ($ file_name ){ $ FD = fopen ($ file_name, R ); While ($ bufline = fgets ($ FD, 4096 )){ $ Buf. = $ bufline; } Fclose ($ FD ); Return $ Buf; } ?> File Writing Function // File Writing

PHP cookie scope-do not use your cookie on the current page

Because there is no problem in the local test, SSH to the remote server (instead of the Publishing Server, we recommend that you do not directly modify the content on the publish server) and perform a breakpoint test, finally, it is found that a

PHP daodb inserts, updates, and deletes data

CopyCode The Code is as follows: Include ("ADODB/ADODB. Inc. php"); // contains the ADODB class library file $ Conn = newadoconnection ('mysql'); // connect to the database $ Conn-> connect ('localhost', 'root', '123', 'test '); $ Conn-> execute

PHP mkdir () Definition and usage

Usage: Mkdir (path, mode, recursive, context) Parameter description PATH is required. Specifies the name of the directory to be created. Mode is required. Required permissions. The default value is 0777. Recursive is required. Specifies whether

PHP encryption and decryption

However, the emergence of PHP decompilation systems quickly caused Zend's panic and even the entire PHP user base. Almost all of the large PHP products, including the above products, were cracked and even complete. Source code . As a result, Zend

Php adodb connects to different databases

CopyCode The Code is as follows: Include ("ADODB/ADODB. Inc. php"); // contains the ADODB class library file $ Conn = newadoconnection ('Seconds s '); $ Conn-> connect ('localhost', 'root', 'pass', 'mydb'); // connect to the PostgreSQL database ?>

FCKeditor PHP file rename settings

Here, I found a RENAME method. Let's see how it works. First, the files I want to upload are organized by date. Modify the config. php file in the editor \ filemanager \ connectors \ PHP folder. Find the following content: // Path to user files

PHP Document code annotation Specification

1. What is phpbench entor? PHPDocumentor is a tool written in PHP. For php programs with standardized annotations, it can quickly generate API documents with functions such as mutual reference and indexing. The old version is phpdoc. It was renamed

PHP programming instructions page 1/3

However, it is not easy to become a PHP programming expert. As many people think, as long as they can quickly write a few simple codes to solve a complicated problem, they are PHP programmers, real PHP experts also need to consider more other issues.

Total Pages: 12780 1 .... 5826 5827 5828 5829 5830 .... 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.