/* Creates a compressed zip file */
function Create_zip ($files = Array (), $destination = ", $overwrite = False) {
If the zip file already exists and overwrite is false, return false
if (file_exists ($destination) &&! $overwrite)
The data length limit for post can be modified in PHP via PHP.ini. Can modify the post_max_size in php.ini, and modify the upload_max_filesize to change the file upload size limitThe data length limit for post can be modified in PHP via PHP.ini.Can
Check whether Sphinx can connect, cannot retry two times, can connect without MySQL protocol, for reference only
function Checksphinxnomysql () {
$flag = true;
$retries = 0;
while ($flag && $retries
$s = new sphinxclient ();
phpMyAdmin can not import large SQL file resolution, there is a need for friends to refer to the next. If it is only phpMyAdmin, open the configuration file under the phpMyAdmin directory: config.inc.phpphpMyAdmin can not import large SQL file
!--? php
function Strtojson (str) {
var json = Eval_r (' (' + str + ') ');
return JSON;
}?>
copy code The parentheses on both sides of Str do not forget. Method two, new function form
if ($_post[' a '] && $_post[' B ']) {
echo ' Post data success! ';
Exit ();
}
?>
Copy CodeFile 2:indexx.php the main test file.
$url = ' http://www.test.com/index.php ';
System ("/usr/local/bin/webalizer/webalizer");
?>
Copy Codeexec () prototype: string exec (String command [, string array [, int return_var]])The exec () function, like system (), also executes the given command, but does not
/**
* Function: Check the running time of PHP code
* Date: 2012-12-29
* File: show_php_runtime.php
**/
Class runtime//page Execution time classes
{
private $starttime;//page Start execution time
private
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