$dir = "Load";
mkdir ("Load", 0777);
$opendir =is_dir ($dir);
if (! $opendir)
{
echo "exists";
}
Else
{
echo "does not exist";
}
?>
What's wrong with the code above? Why does it always show that it doesn't exist?
and change to other directories
This post was last edited by Xiaoshengbboy on 2013-06-14 00:42:16
To help you.
$sql = "SELECT * from Xym_pic";
$res =mysql_query ($sql, $conn);
while ($row =mysql_fetch_assoc ($res)) {
$data []= $row;
}//randomly extracts 9 records to simulate the
It's a traditional MySQL function.
or the MYSQLI function.
Or the method of the PDO interface.
What are the characteristics and applicability of these three methods?
In addition: I want to ask one thing:
Setting the character set, strictly
$filename = "//10.198.108.143/test/abc.xls";
$size =filesize ($filename);
Echo $size;
Error: Warning:filesize () [Function.fileseze]:stat failed for//10.198....on line 19
I read the forum on the post http://bbs.csdn.net/topics/390313277, why I
Title, if MP3 exists the server's music folder, how to ensure that only logged users can access the MP3 inside. Users who are not logged in can not access through Http://www.myhost.com/music/111.mp3?
Reply to discussion (solution)
Filter the URL,
PHP URL
During the development process, I need to access a URL http://www.***.com/api/abc?a=123&b=234¶m=2 But when I echo ' http://www.***.com/api/abc?a=123&b=234¶m=2 ';The http://www.***.com/api/abc?a=123&b=234 (special character) is
Ask for a database design problem!
I'm assuming an application. such as the Forum
We send a post we build a post table topic
Then support the visitors to prepare a reply form reply
My question is:
Suppose we want to know the number of replies
A framework for adding and deleting SQL Yii data
1. $sql = "INSERT INTO Tbl_user (' id ', ' username ', ' password ') VALUES (null, ' alu ', ' 123 ');
2. $sql = "SELECT * from Tbl_user where id=1;
3. $sql = "Update tbl_user set password=" 123456
Title: DEDECMS default Message form submitted to the database, to see in the background, how can I submit the form to send directly to my designated mailbox. And who has DEDECMS BBS invitation code AH. Thank you!
Reply to discussion (solution)
Learning PHP for some time, feel that PHP overall function is much more powerful than ASP, especially the function and function parameters provided more flexibility than ASP at least one order of magnitude. But PHP is not as good as ASP in some
Does not use the control, as if it can only be implemented with Flash?
Reply to discussion (solution)
Of course it is. PHP doesn't support it.
Does not use the control, as if it can only be implemented with Flash? No controls are basically not
My Site pages are encoded with gb2312 (can not change), I can change the MySQL database!
Can I change the MySQL database data from utf8_general_ci to Gb2312_chinese_ci to solve the problem from the root?
What are the essential differences between
I built a blog myself, and then Apache and PHP were all set up, but could not be accessed.
Then I changed a port, like 8080, and changed the Iptables,http://***:8080/blog to be accessible.
But to 80, and 8080 of the configuration exactly the same,
PHP Server Buffer
I have a page that is downloaded, the code is as follows
Header (' Cache-control:no-cache, Must-revalidate ');
Header (' Content-type:application/octet-stream ');
Header (' accept-ranges:bytes ');
Header (' content-length: '. $this-
My code, for example, is to write $array=array () $array= ()
Change to correct to open the page normally.
I added error_reporting in front of me (E_error | e_warning | E_parse | E_notice); The same is true for error alerts.
How should I configure it?
I don't use frames. Read a lot of information, are generated a static file put there, and then expired on the regeneration, not expired directly read the contents of this file, but in case of large concurrent access, because I this is an online room
I would like to use the Apache MySQL PHP construction site, I do not have this knowledge and technology, how to learn? How to learn? There are some writing apache+mysql+php, is this book suitable for me? What kind of books should I buy? Please give
Print function, print Express order
To do a printing function, some reports to print out through the printer; Another is to print a courier list; I don't know how to do it. I beg you, hero.
Reply to discussion (solution)
Using PHP to generate
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