For example, a user enters a string of characters through a text box
First input content: $w 1= "http://you.video.sina.com.cn/b/25323843-1272884840.html";
The second input content: $w 2= "http://v.youku.com/v_show/id_XMzIzNjA2NjE2.html";
The
The PHP CLI can implement parameter passing, as follows:
Fwrite (STDOUT, "Enter Your Name:");
$name = Trim (fgets (STDIN));
Now I want him to choose input, which can be done
Fwrite (STDOUT, "Please select the program run mode: 1 for one-click mode;
$i = -1;while ($i + +
Need to test data, to write 500 million data into 500 MySQL tables, directly executed with the PHP command code, why is memory exhausted?
Thanks a lot!
Reply to discussion (solution)
This previous hair, come to
I made a table, to browse a grade of students, normal browsing is to show all students, but I hope that there are some options, for example, I want to show, score in 90 or more students, or, I want to show the results in between 80 and 70, the
$result = mysql_query ("Select title from the hello where title like '% $info% '"), while ($row =mysql_fetch_array ($result)) Read the data contents by looping { if (! $row) { echo ' 1 '; } else { echo ' 2 '; } }
PHP Framework
Ask a question. After landing on the homepage index.php, go to check.php to verify, verify success, jump to main.php, how to let main.php in the frame of the home page
This Code database connection file is not a problem, the database can be connected properly! But no matter how I log in, the login page is always displayed without jumping to list.php! has not been able to solve, solve!
Session_Start ();
if
Directory of the website
D:\ Paving Mesh \nnpm.cn
D:\ more files and folders out of the storefront network
Boot. INI (folder)
-0.htm______.html
-0.jpg______.html
-0______.html
boot.ini______.html (file)
Etc
config.php
Array
' title= ' > ' 123 ',
' Title2 ' = ' 123 ',
' Title3 ' = ' 123 ',
......
Unlimited number of
)
At this point I only want to change the value of title2, such as change to 456
Do I have to read it all and write it back to the file
Suppose you load a file in a directory in a full PHP code,
Like what:
Include './source/temp.php ';
There is no way, without modifying the above code, so that the source directory to point to another folder I specify, so you can call the other
$mainframe =& jfactory::getapplication (' Administrator ');
Reply to discussion (solution)
Refers to the Getapplication function in Object Jfactory, and the passed in parameter is Administrator
$mainframe =& jfactory::getapplication ('
PHP seems to be able to automatically get the data for a post or GET request, without having to use a $_post or $_get array to get it. For example:
$userName =$_post["UserName"];
$PS =$_post["PS"];
echo "The user name you entered is:".
After the configuration of WordPress, using the administrator login is correct, but select "View Site" always display the directory instead of the form of Web pages, how to solve???
According to http://blog.csdn.net/i1369230032/article/details/8660
MySQL PHP
Table structure
ID int Master self-increment
MyDate datetime
Price int
A flag int value of 1,2,3,4,5,6 takes precedence over the value of the big price
Example
ID mydate Price Flag
1 2013-05-30 200 2
2 2013-05-30 300 3
3 2013-05-31 150 2
4
I want to output one months of data in the template page (this one months of data when the two-dimensional array, the daily data composition of the one-dimensional array inside), but some days there is no data, I would like to judge on the template
Rel= "nofollow" > 178th painting (updated: 2013-06-01 22:06) estimated update time: no update notice as the Wu Wangyi said, even the family here has no relatives, no near branches. Even the father is the only big parents, he has no elders
PHP-based Web site traffic is large, because PHP does not have database connection pool, resulting in poor database performance, there is no good way to solve? Can I just split the library? It is a hassle to develop and deploy the library.
See 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