/**
* Global Function
*
* @author Avenger
* @version 1.14 $Id 2003-05-30 10:10:08 $
*/
/**
* Popup Prompt box
*
* @access Public
* @param string $txt pop up a popup box $txt the content to be popped
* @return void
*/
function PopBox ($txt) {
echo "";
[Php]Class Curl { /** Get access to the specified address* @ Param string url the address to be accessed* @ Param string cookie: The storage address of the cookie. If no cookie exists, no cookie is sent.* @ Return string curl_exec () information
PrefaceLast night, a lab teacher @ me on the meager pages and sent me some basic php interview questions. Here I posted my answers.
Question
(1) Write a function to get the file Suffix of the URL, such as "http://www.feiyan.info/test.php? C = class &
Project website : http://code.google.com/p/httpsqs/ Working with documents : http://blog.s135.com/httpsqs/ Note: Because there are a lot of things to install, the original text may be written in some brief, so properly supplemented 1. Installing
Common php functionsStrstr (string, string) // truncate from the place where a string appears for the first time to the endStrrchr (string, string) // captures a string from its last position to its end.Strpos (string, string [, int]) // position
Copy Code code as follows:
?
/**
* Manipulating file Classes
*
Example
* Fileutil::createdir (' A/1/2/3 '); Test build folder Build a A/1/2/3 folder
* Fileutil::createfile (' B/1/2/3 '); Test build file Build a 3 file under the
The code is as follows
Copy Code
?/*** Manipulating file Classes*Example* Fileutil::createdir (' A/1/2/3 '); Test build folder Build a A/1/2/3 folder* Fileutil::createfile (' B/1/2/3 '); Test build file Build a 3 file under the b/1/2/
PHPclassmysql{/** * Error function * * @param string $error*/function Err ($error) {die ("Sorry, your operation is wrong, the cause of the error is:". $error);//Die has two functions, output and termination are equivalent to echo and exit
PHP operation file function code (create, copy, move, and delete files and folders ). Copy the code as follows :? * ** File type ** example: * FileUtil: createDir (a123); test the creation of a folder named a123. * FileUtil: createFile (b123)
The
Several php basic questions. Preface last night, a lab teacher @ me on the meager page, sent me some basic questions about php, and posted the answers I wrote here (1) write a function to get the file suffix of the URL.
Last night, a lab teacher @
PHP file operations (create, copy, move, and delete files and folders) are easy to use. For more information, see.
The code is as follows:
/**
* File operations
*
* Example:
* FileUtil: createDir ('a/1/2/3'); create a folder named a/1/2/3
*
;(function() { /** * Declare a function first. * Note that it is not possible to execute the parentheses with parentheses after execution, because the parser treats it as a function declaration. * @param {String} msg * @return {[type]}*/
Copy CodeThe code is as follows:
/**
* Manipulating file Classes
*
Example
* Fileutil::createdir (' A/1/2/3 '); Test build folder Build a A/1/2/3 folder
* Fileutil::createfile (' B/1/2/3 '); Test build file Build a 3 file under the b/1/2/folder
*
/**
* Manipulating file Classes
*
Example
* Fileutil::createdir (' A/1/2/3 '); Test build folder Build a A/1/2/3 folder
* Fileutil::createfile (' B/1/2/3 '); Test build file Build a 3 file under the b/1/2/folder
*
Preface last night, a lab teacher @ me on the meager page, sent me some basic questions about php, and posted the answers I wrote here (1) write a function to get the file suffix of the URL, such as http://www.feiyan.info/test.php? C = class & amp;
/**
* Global Function
*
* @author Avenger
* @version 1.14 $Id 2003-05-30 10:10:08 $
*/
/**
* Popup Prompt box
*
* @access Public
* @param string $txt pop up a popup box $txt the content to be popped
* @return void
*/
function PopBox ($txt) {
echo "";
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.