sHTML file usage problems?!
I think some websites use shtml files.
I would like to ask what are the benefits of using such a file?
Under what circumstances do you usually use it well?
Will not affect the search engine included?
[ ]
I'll
Unable to log in after installing Appserv phpMyAdmin
After the installation of Appserv 2.5.10 successful, unable to log on to phpMyAdmin, previously installed in the notebook version can be used normally. The following page has been appearing:
Read files, regular replacement??
I want to replace the 2.xml in the attachment with the regular, so that it becomes as follows: (in fact, change the label)
That means
Programming
Rasmus Lerdorf
Kevin Tatroe
UltraEdit Find Chinese
Everybody, prawn, help me.
The younger brother just entered the company, the boss gave himself some tasks, mainly the text changes on the PHP page. Originally thought very simple, uses the UltraEdit "finds in the file"
Problem
__file's Problem
Workaround
Define (' ROOT ', DirName (__file__));
Copy the code, like a file I created.
Tested the next
Direct __fi:e__ is
d:appservwwwminlogtest.php
If we
Require_once (ROOT. ' /config.php ');
That's not
Problem
How to output the answer, and the error, see the code
Workaround
Define (pi,3.14);
for ($r = 1; $r {
$area = PI * $r * $R;
echo "R= $r, area= $area";
echo "
";
}
?>
The error message for the output is: Notice:use of undefined constant
Problem
Problems with Zend Studio
Workaround
My Zend Studio default encoding method is Utf-8
But I wrote the code, and when I wanted to save it, I always had the hint that I couldn't save it in Utf-8 encoding.
Reference answer
Use GBK to open the
Problem
About Str_pad
Workaround
This is what the code says.
$the _max = 32;
$the _max = (int) intval (strlen ($the _max));
Print (Str_pad (' 1 ', $the _max, ' 0 ', str_pad_left));
?>
Copy the code The result is still 1, what's going on?
[
D0000D sent to the forum-------------------------------------------------------
No0 Plate, Dedecms
d8888d posts Title-------------------------------------------------------
How PHP is exported in advance
d8888d Main Post Content----------------------
Problem
How can I learn the database PHP call MySQL knowledge AH
Workaround
Let's start with a simple message board procedure.
Reference answer
[url=http://www.digooe.com/] link marker Http://www.digooe.com/[/url]
Reference answer
Message board
D0000D sent to the forum-------------------------------------------------------
No0 Plate, Dedecms
d8888d posts Title-------------------------------------------------------
Ask a master to give a session to share the solution
d8888d Main Post
Question
SQL syntax issues in PHP
Answer
The PHP I just learned today is a tutorial at Zhongyuan University.
Now I'm writing that counter and I'm having a problem.
The insert command given by phpMyAdmin is this
$sql = ' INSERT into ' test '. '
Problem
Regular expression to determine the user name
Workaround
Preg_match ('/'/^\s*$|^c:\\con\\con$|[ %,\*\ "\s\t\\& ' \\]/', $username)
How do you understand copy code?
Thank you
Copy php content to clipboard PHP code: [%,* "\s\t\\& ' \ \ \]
Problem
Arrays into string problems
Workaround
Ask the number of questions, I now get a two-dimensional array variable: $postanswer =$_post["answer{$showarr [' cs_id '}"];
The copy code prints out the value: Array
(
[+] = Array
(
[A] = a
[B] =
In PHP static method we directly in the function or variable before adding a static, use the same time and static variables, do not need to instantiate, directly with:: Call, I will give you a few examples of static methods.
PHP is no exception! The
Problem
How can I get the installed version of Apache and the existing IIS to use port 80 at the same time?
Workaround
Now I have IIS on my server
My current forum bbs.9998.tv is using IIS
Now I want to install Apache, how can I get the installed
In PHP we sometimes write a simple website page access to the statistics, the following small series to introduce the use of PHP to implement the counter code, I hope this method is helpful to everyone.
Let's add a counter to the home page. Helps
Commonly used to prevent malicious registration is the use of verification code to achieve, when the user submits the registration information I randomly generated a graphics verification code, so that only people can recognize, of course, the
There are a lot of ready-made functions for sorting data, but if you want to sort the specified fields there is no built-in function, below I have sorted out some related array sorting functions to communicate with everyone to learn.
Let's not talk
Set the session in PHP there are many aspects of the package has to set the value of the session or directly set the expiration, expiration and validity period, the following small series to give you friends to introduce how to use.
Let's take a
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