If you use PHP to make a Dynamic Web page, how to write code? Help
Reply to discussion (solution)
I'm a rookie, too! I am now in the study, suggest landlord to look at this video is still good http://dvd.itcast.cn/?140312dsscsdn
Learn the
As for how to install vagrant,python,php, this article will not explain.
This paper mainly explains the local as the development environment, write code can be directly automatically synchronized to the virtual machine (test environment), improve
' TMap 116.123456,39.123456 '
There are spaces behind the TMap,
I want to get 116.123456
and 39.123456 two floating-point coordinates, how can I get it with a regular?
Reply to discussion (solution)
$str = ' TMap 116.123456,39.123456 ';p reg_
When you run to the signature function, the program reports that Apache HTTP Server has stopped working!
What is the reason for this and how to solve it? Ask the master advice!!!
Reply to discussion (solution)
Online solution!!!
See what's
Header ("content-type:text/html; Charset=utf-8 ");
function GetToken ($url) {
$ch = Curl_init ();
curl_setopt ($ch, Curlopt_url, $url);
curl_setopt ($ch, curlopt_returntransfer,1); Quite critical, this sentence is to let Curl_exec ($ch) Return the
If you know a function name, how do you know what the function is without looking at the source code?
Reply to discussion (solution)
You can only speculate by the reaction.
This is similar to guessing the chemical composition, and then to
In order to save time later, a class that operates SQL statements is encapsulated today, where it is saved and used later.
File name of this class: SqlTool.class.php
There are mainly DQL and DML two functions
Look at the following source code "
Because of the need to pass a secret ID, so the use of symmetric encryption, but the MCRYPT_ENCRYPT algorithm encryption after the string is too long, so want to implement a custom encryption algorithm, the idea is as follows
First, the key is
The following ideas are implemented:
With WIN's "task" function to execute a bat file at timed time, the bat file invokes the Php.exe file, Php.exe can pass parameters specifying which class and method to execute
Here's how:
One, thinkphp
I am directly in PHP mssql_connect connect MS SQL data, query data as long as you are using the PHP comes with the MSSQL, that read out the data encoding format must be GBK, this is because MSSQL itself only GBK code, and can not define
while
Array_sum () The sum of a three-dimensional array, the result is 0, the result of $count is 91125. Please explain to the great God, thank you.
$count = 0; $BRR =array (); for ($i =0; $i
Reply to discussion (solution)
Array_sum cannot be
Question: (1) when PHP connects Hive2 via thrift, where is the username and password set?
I see the net is a direct net of a Tsocket object, and then directly execute SQL, I try to not even! I don't think so. The user name and password must not be
if ($_get[' all ']== ' yes ') { echo "HI"; }
Error: notice:undefined Index:all in C:\Users\Administrator\Downloads\PHPnow-1.5.6.4237493736\htdocs\oa\manage.php on Line 71
Little brother is not clear, what is the difference between an equal
My C + + client sent the picture binary data +base64 encryption using HTTP POST to PHP server File_put_contents ($file, $_post["Zhaopian"]) receive data based on the client and PHP server received the data compared to the distribution of the
After the integration, I can already insert the picture in the textarea, for example:
However, I click the "Publish" button below, but always do not display the picture, text can be displayed normally, such as:
Edit Page Source code:
A.php the top part of the page has some HTML code, there is a form, the form has a SELECT, input, button,
Form submitted to yourself: Form action= "
"Method=" POST "
Now there is a problem, each time the page commits, the value of select is returned
(1)
$serial _number=1;
echo "";
?>
(2)
$serial _number=1;
echo "";
?>
(1) Frame output: 1
(2) No results, no prompt error
Excuse me, what is the reason, how to solve?
Reply to discussion (solution)
The connection string in PHP is ".",
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