Finally achieve the effect:
Analyze the basic process of doing the project:
1. Create a database First
2. Write PHP server
3. Write iOS user side
1. Create a database
I'm using a wamp.
The database name is Ioslogin, and the table named
If you want to use the Fsockopen function we must set the Allow_url_fopen = on in the php.ini to the open state.
Cases
Fsockopen () Example
code is as follows
copy code
$fp = Fsockopen ("www.example.com",
The code is as follows
Copy Code
TV tree-like directory $globals ["id"] = 1;$jibie = 1;$sql = "SELECT * from Tvmenu where bid=0";$result =mysql Tutorial _query ($sql, $conn); if (mysql_num_rows ($result) >0)Treemenu ($conn, $result,
post.php a PHP program that reads files and displays the contents of the log.page.html Displays the HTML document for the log article.STYLE.CSS Tutorial page shows the effect of the CSS code.add.php Add a blog article PHP program.config/auth.php
Delete URL
The code is as follows
Copy Code
$string = Preg_replace ('/b (https?| Ftp|file)://[-a-z0-9+&@#/%?=~_|$!:,.;] *[a-z0-9+&@#/%=~_|$]/i ', ', $string);
Convert URLs to Links
code is as
Matching regular expressions for Chinese characters: [U4E00-U9FA5]Commentary: Matching Chinese is really a headache, with this expression will be easy to doMatch Double-byte characters (including Chinese characters): [^x00-xff]Commentary: can be
These tutorials are very useful for beginners, oh, this is a little bit of code on the following OH.
Member Login Interface (login.php) | Back User: Password:
Log in PHP processing code
Include ("config.php");?>if (Empty ($_post["Yd631_name"]))
By default, the session in PHP uses the Cookie of the client to save the session id. Therefore, when the cookie of the client fails, the session will be affected. It must be noted that the session does not necessarily depend on the cookie, which is
Html code: The code is as follows:Copy code & nbsp; Target = "uploadcvs". It is difficult to debug the code when adding the target. We recommend that you remove this line of code when debugging.Php code: The code is as follows:Copy code
I sorted out the common knowledge of some PHP classes to make it easier for new users to master the PHP classes, so that they can quickly understand the programs written by those elders, I hope you can add or correct the errors.Q: Can classes in PHP
1. ObtainRepeated elements in the array. The code is as follows:A. Method 1: The code is as follows:Copy code Function array_repeat ($ arr){ If (! Is_array ($ arr) return $ arr; $ Arr1 = array_count_values ($ arr ); $ NewArr = array ();
In this example, you need to have basic knowledge about PHP, Mysql, jQuery, html, css, and so on. Before developing an example, you need to prepare a Mysql data table. In this example, assume that there is a downloads file download table, used to
Traverse all files and folders in a folder and copy the matched files to the same directory. In the following example, all the html files in the "/www/pooy/Ke" directory are copied to the "/www/pooy/bk" directory. The code is as follows:Copy code
This is because haosf.com is stolen. You can steal other sites by yourself. Generally, you only need to steal the latest list of private servers. You can steal several more sites, it becomes a private server release site that does not need to be
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