To connect to oracle using php, you must first go to php. in ini, remove the semicolon ";" Before extension = php_oci8.dllextension = php_oracle.dll, and restart apache to connect to oracle in php. in ini, remove the semicolon ";" Before extension =
Summary of methods for getting File extensions using php may not be very comprehensive. they are all Summary of common methods for getting File extensions using php. they may not be comprehensive and are all common methods.
// Operated file
$
Syntax: voidheader (stringstring [, boolreplace [, inthttp_response_code]) the header () function in php is used to send an original HTTP header.
Syntax: void header (string [, bool replace [, int http_response_code])
The optional parameter
In smarty, there are sections and foreach used for loop. which one should be chosen based on your habits. Foreach is available in php, and section is generated to solve the shortage of foreach. like foreach, it is used to design the loop blocks in
The collector we call is also called a thief program. it is mainly used to capture others' webpage content. It is not difficult to create a collector, that is, to remotely open the webpage to be collected. the collector is also called a thief
In PHP, there are two formatting time functions: date () and gmdate (). the description in the official document is that there are two formatting time functions in PHP: date () and gmdate (), which are described in the official document as follows:
PDO (PHPDataObject) is new to PHP5. when PHP6 comes out, PHP6 only uses PDO to process databases by default, moving all the database extensions to pecl pdo (PHP Data Object) is new to PHP 5. When PHP 6 is coming out, PHP 6 only uses PDO to process
In PHP development, we often use the data encryption function. one-way encryption md5 () is commonly used, and the other useful function is crypt. In PHP development, we often use the data encryption function. one-way encryption md5 () is commonly
Parse_ini_file is used to parse a configuration file. the returned array parse_ini_file is used to parse a configuration file and an array is returned.
Configuration file
For example, config. ini
[Host]
Hostname = localhost
Dbname =
This function can obtain some basic information about the image, including the width, height, type, and size of the image. it mainly uses the getimagesize function provided by php. for specific usage, see The php Manual. This function can obtain
Use the Replace function, namely the str_replace function of php, to Replace the keywords in the content read in the template file with the content in the variable, thus achieving simple template separation. Use the Replace function, namely the
You need to use the iconv encoding conversion function to transcode Chinese. you need to use the iconv encoding conversion function to transcode Chinese.
Header ("Content-type: image/png");/* notify the browser to output the image */$
Recursively traverse objects in a specified directory, mainly using php functions such as opendir, opendir, and is_dir. For more information about function usage, see The php Manual. Recursively traverse objects in a specified directory, mainly
[1] The get and post variables cannot be passed between pages. in the latest php version of the session, the automatic global variables are disabled. Therefore, you need to obtain the submitted variables from the previous page.
[1] The get and post
One of the powerful advantages of smarty is that it can directly use the prereserved variables of smarty in the template, saving a lot of code and making it very convenient. One of the powerful advantages of smarty is that it can directly use the
In the past, we used direct query and JS call methods for homepage calls and friendly calls. this was done only by the caller. For example, JS call
In the past, we used direct query and JS call methods for homepage calls and friendly calls. this was
Without apachemod_rewrite, you can directly use php code to achieve pseudo-static effects, after reading this, you will find that php is very convenient to use the following generation during program initialization without using apache mod_rewrite
We needed to use the Discuz template engine, so we did not take some time to complete the encapsulation and tested it. the speed was good. By the way, I also used it in my own program. You are welcome to download it and provide comments to use the
This program uses the anti-brush counter implemented by the session. when a user comes to this page, it only counts once and refresh the page again, only when the user closes the page and re-enters the page can the page be counted again to implement
Total number of entries per page the url address after clicking on the current page the js function of the get application shows several displayed addresses the total number of entries per page the url address after clicking on the current page the
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