What is the difference between return and exit? I mainly put it in the php main code. What are the detailed usage differences?
Reply to discussion (solution)
Die () stops running the program and outputs the contentExit
The thinkphp framework has been studying the database configuration information in the Confconf. php file where thinkphp was read for several days, but it still cannot find the database configuration information obtained during Database
PDO data insertion problems this post was last edited by zhuzhaodan at 11:45:08
$ Dsn = 'MySQL: host = localhost; dbname = test1'; $ db = new PDO ($ dsn, 'root', '', array (PDO :: MYSQL_ATTR_INIT_COMMAND => 'set names utf8'); foreach ($ B as $ k =
How to interpret how PHP pages load php for the first time
If (! Ispostback)
{
.....
}
To determine whether the page is loaded for the first time!
Reply to discussion (solution)
Why is this decision? Php and. net are different.
Session
You
Please help me implement a small function! I am very grateful. I want to use the php file to delete a file name under this category and transmit it through a url.
Like http://xxxx.com/del.php? 123. txt
Open the connection and delete the
Php job requirements? PHP job qualifications
I am a junior and deeply understand the failure of jiaoyu. teachers are basically engaged in PPT lectures. some teachers teach when they do not finish their jobs, or even when they graduate, they do not
Php uploads Excle files in PHP Excel
To upload an EXCEL file in php, only the EXCEL file is displayed when you select a file, and how to determine $ upfile =$ _ FILES ["upfile"]; $ type = $ upfile ["type"]; $ type is excel. I tried $ type = "xls".
Php json generation by page
Recently, PHP is being generated to generate JSON. to implement paging, the following code can generate arrays. how can we implement paging? To achieve every 10 pages
// Connection information
$ Host = "XXX ";
$ User =
After mysql reads data, the encoding is incorrect.
This is a smarty function I registered.
Function charsetUTF8 ($ params) {extract ($ params); $ str = iconv ("gb2312", "UTF-8", $ text); return $ str ;} $ smarty-> register_function ("Util",
Php Framework problems
Question
After logging on to index. php on the home page, go to check. php for verification. the verification is successful and jump to main. php. how to make main. php framework on the home page
Experts who have questions about generating pdf files using HTML 2 pdf in php: Could you please tell me a question? I used php html2pdf to generate dynamic pdf and found a problem, for example, if you enter a character that exceeds the length of one
Thinkphp Template display problems I want to output the data for one month on the template page (the data for this month is a two-dimensional array, and the daily data is a one-dimensional array ), however, there is no data in some days. on the
For questions about phpc extension, please help me to use php extension to communicate with c program, php extension as client, c program as server and constantly listen to all connection descriptors;
If the connection is successful in the php
For a question about the include file, I 'd like to ask you a question:
I am writing a php webpage. all the functions are accessed locally through localhost/../index. php. everything works.
I copied the code to/var/www on the server because it was
PHPSQL Chinese garbled first statement, IE browser encoding format and database organizer are set to "UTF-8. Similarly, it is okay to print according to this. However, the result is that the information displayed on the webpage is normal, but the
There are many open-source php projects, such as wordpress, joomla, elgg, echop, dede, and so on. From a technical perspective, which one is better?
Reply to discussion (solution)
It's ecshop.
Wordpress blog platform developed in PHPJoomla is
Question about input form value
Can the value be an object? Not just a string?
Reply to discussion (solution)
I want to pass an object type variable to another page through $ _ POST for processing.
You passed it into a string.
I also
Why can't I use $ _ FILES ['filedata'] ['tmp _ name'] to retrieve the video of the uploaded file, however, you can obtain and upload the image files. what is the problem? please give me some advice. thank you. you are in a hurry!
Reply to
The ThinkPHP framework is used to read the configuration file in php.
There is a config. php file.
The content is as follows:
Return array (
'Server' => 'localhost ',
'User' => 'root'
)
I cannot read the data using the C () method.
The read
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