PHP and Apache settings are normal, after installing WordPress, the database, log in to the background for content management, add a few test articles. But when I browse the home page, I can always see only the directory table (files and folders in
The following is my own transfer to PHP code
Function Na ($a) {if (! $a) return ""; $a = (string) $a; $h =array ( -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 , -1,-1,-1,-1,-1,-1,-1,-1,-1,62,
May I ask the next form I made two buttons two times post
Then press the first button and a table appears thinkphp page after the next page
The other button post is no effect.
Firebug look at the first button to see the post address how to solve
such as $a=1.2;
echo $a; I'm going to let it show up here as 1.5.
$a = 1.6;
echo $a; I'm going to let it show up here as 2.
That is, when the value after the decimal point of $ A is less than 5 o'clock (excluding 0), it is displayed as 5来, and
What are common Ides for developing PHP? Please recommend!
Reply to discussion (solution)
No one answered, do I have to answer a Zend studio this much useful?
Vim is very useful, I am from c development to PHP
Does vim have smart tips? Do
The code is as follows:
Not a legal domain name ';} Echo Isvaliddomain ("http://www.aixi.com");? >
Operation Result:
Warning:preg_match (): Unknown modifier '/' in D:\wamp\www\www.yoyou.com\this.php on line 3
Http://www.aixi.com is not a
PHP calculates string length and its intercept corresponding to Chinese string
To calculate the character length:
$gouWu = ' US-japan-http://www.hnzyxok.com/';
Echo Mb_strlen ($gouWu, ' utf-8 '); The result of the output is 26, which
Server is Windows 2008
Installed environment is WAMP.
I did the domain name www.xxx.com parsing, in the Vhost.ini file: * * has done a WWW domain binding
After that, a two-level domain name en.xxx.com was parsed. I did not modify any
I installed the XAMPP integrated environment, in the last few days to start the environment always talk about the box "Unable to locate the program input point ociclentversion and dynamic link library OCI.dll." "I have viewed ' D:\xampp\php\ext '
I am a PHP Development learning portal, in the Forum community at the beginning of the initial encounter "visitors to every post are error" problem
Visitors to the content of the specific post is always wrong, Google and Niang have found n times,
TXT file with one IP per line
Each request is now read in sequential order by a different computer request.
How do you write this?
Reply to discussion (solution)
What do you mean by a different computer request?
I didn't read it. Read one
First of all, our website, the background of the site after writing, is compiled by the editor according to the need to upload pictures, a lot of pictures are used QQ, the default is saved as PNG format. Image upload code is written by colleagues,
The file_put_contents () function is used to write a string to a file, successfully returning the number of bytes written to the data in the file, and FALSE if the failure is unsuccessful.
Instructions for use:
File_put_contents
An example of an online copy: Generate a index.php, as follows:
Defining thinkphp Frame paths
Define (' Think_path ', ' ... /thinkphp ');
Define the project name and path
Define (' App_name ', ' myphp ');
Define (' App_path ', '. ');
Loading Frame
1. Configure the Apache configuration, httpd.conf
#LoadModule rewrite_module modules/mod_rewrite.so //Speak front of # Remove
2. Change AllowOverride None to all
3. Configure in the project configuration file
' Url_model ' = ' 2 '
4
Class Aa{function __set ($pro, $v) {echo "a\n", $this->pro= $v; echo "$v \ n";}} $a =new AA; $a->b=1;
The output is a a 1 1;
2 questions, why output 2 times;
Why is a a 1 1 instead of a 1 a 1;
Reply to discussion (solution)
You put
This is the case, I started on a server test, CPU is 4 cores, 4G of memory, 5 gigabit Bandwidth, Web page open or very fast, and then switch to another server, 100 gigabit bandwidth, access speed is very slow, two server environment is
The code is as follows:
$catid =intval ($_request[' catid ');
$sql _store = ' SELECT * from Ecm_gcategory Where cate_id= $catid ORDER by cate_id ';
$my _category= Db::fetch_all ($sql _store);
Run the following error:
SELECT * from Ecm_gcategory
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