Use of ADODB-PHP source code

Use of ADODB --> $velocityCount--> --> [PHP] code Adodb User Guide 1. download adodbat official website https://www.php1.cn/and import the core file adodb.inc.phpexample in php, such as: include ('adodb/adodb. inc. php') 2. connect to

Php adds text watermark code to existing images-PHP source code

Php adds text watermarks to existing images and jumps Img (image path, watermark text, font path, font size, font angle); for example: $ tpl-> img('abc.jpg ', 'This is the watermark text', 'ziti. ttf', 30, 0) */class image_fu {private $ image;

Session-type database interaction-PHP source code

Session-type database interaction jumps Query ("update ". self: $ table. "set value = '$ session_data', expiry = '$ session_expire' where session_id = '$ session_id'"); self: close ();} self :: $ is_del = TRUE;}/*** destroy ***/public static

The verification code class supports numbers, letters, Chinese characters, and hybrid-PHP source code

Verification code supports numbers, letters, Chinese characters, and mixing Width = $ width; $ this-> height = $ height; $ this-> codeNum = $ codeNum; $ this-> codeType = $ codeType; $ this-> fontSize = $ fontSize; $ this-> fontType = $ fontType; $

Use simple_html_dom to capture oschina's news-PHP source code

When simple_html_dom is used to capture oschina's news, I feel like the space hole in the website. I found my own IT information website and crawled the content. in this way, no website can be browsed. // Title + preview public function to_oschina (

Php-PHP source code

Chat applications are very common online, and developers also have a lot of choices when building such applications. This article introduces how to implement a chat application based on PHP-AJAX, and do not need to refresh the page can send and

MySQL master/slave data configuration-PHP source code

A friend on Weibo asked me how to configure the master and slave data of mybb. actually, I am not very familiar with Mybb, I have roughly looked at the DB and found that the master and slave nodes can be configured in inc/config. in php, configure $

BlankspiderPHP crawler-PHP source code

BlankspiderPHP crawler php code function spider($url, $spider = 'Blankspider', $port = 80, $timeout = 15) {$content= '';$resolve = parse_url($url);$host = $resolve['host'];$path = empty($resolve['path']) ? '/' :

Use and example of PHP's complete AES encryption and decryption algorithm (256 bits)-PHP source code

PHP complete AES encryption and decryption algorithm use and example (256 bits) php code _ Secret_key = $ key;} public function encode ($ data) {$ td = mcrypt_module_open (MCRYPT_RIJNDAEL_256, '', MCRYPT_MODE_CBC ,''); $ iv = mcrypt_create_iv

DES encryption and decryption implemented by pure PHP-PHP source code

DES encryption and decryption based on PHP: Function des_encrypt ($ str, $ key) {$ block = mcrypt_get_block_size ('Des ', 'ECB'); $ pad = $ block-(strlen ($ str) % $ block); $ str. = str_repeat (chr ($ pad), $ pad); return mcrypt_encrypt

PHP requests webpage data in Post mode-PHP source code

PHP requests webpage data in Post mode /*** Request webpage data in Post mode ** @ param string $ url webpage address * @ prarm string $ host * @ param string $ session value * @ prarm string $ type (POST, GET) * @ prarm string $ port * @ prarm

Php implements two-way linked list-PHP source code

Php implements bidirectional linked list jump $ N = 10; // number of class links {public $ val; public $ next = null; public $ pre = null; static $ num = 0; // initialize function _ construct ($ num) {$ this-> val = $ num; self: $ num ++; // do not

Php operation XML addition, deletion, query, modification-PHP source code

Php operation XML addition, deletion, query, modification I used xml to replace the database for a small website with a small amount of data. The execution efficiency of this short code is too low. Inserting 1000 data records cyclically will time

Three modes for generating thumbnails in php-PHP source code

Three modes for generating thumbnails in php: 1. scale down a large image to the specified range of the thumbnail, which may be left white (the details of the original image are not lost) 2. scale down a large image to the specified range of the

PHP source code

PHPPush server code push server function server() { for ($i = 0, $timeout = 10; $i where($where) -> find(); $where['id'] = $data['id']; //dump($model); if ($data) { sleep(1); $model -> where("id=" .

Redis sorting set-PHP source code

Redis sorting set business requirements require sorting statistics on data. there is a concept of Sorted sets in redis data storage to meet our needs. the specific performance has not been tested yet. PHP code Connect ('2017. 168.1.233 ', '123'

Use PHP to sniff the real address of the youku video! -PHP source code

Use PHP to sniff the real address of the youku video! PHP code Data [0]-> streamfileids AS $ k => $ v) {$ sid = getSid (); $ fileid = getfileid ($ v, $ data-> data [0]-> seed); $ one = ($ data-> data [0]-> segs-> $ k ); if ($ k = 'flv' | $ k =

Ecshop remote product details Image localization-PHP source code

Ecshop remote product details Image localization php code ";}Exit () ;}sleep (1 ); $ SQL = "select 'goods _ desc' from 'p _ goods 'where 'goods _ id' =' $ ID' limit 1 "; $ res = mysql_fetch_array (mysql_query ($ SQL); preg_match_all ('/src = [\' |

PHP-PHP source code

This article mainly introduces the PHP method for querying express delivery information. The example analyzes the skills for querying express delivery information through third-party platform interfaces, which has some reference value, for more

Simple example of extjs + php addition, deletion, repair, and query-PHP source code

Extjs + php add, delete, repair, and query simple instance extjs2.0 I did my own research, there are SQL files in the package, create it myself! It should be suitable for beginners! // Operation edit var onedit = function (id) {Ext. onReady

Total Pages: 12780 1 .... 9924 9925 9926 9927 9928 .... 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.