Display "Upload error" but actually uploaded successfully the picture
The page is configured as follows
thinkphp controller picture Processing as follows: The picture has been uploaded successfully
Public function upload () {///$this->checklogin ()
Inserting data using PDO in MySQL
try { $pdo = new PDO($dsn,$user,$pwd); $sql = "INSERT INTO ID (name,time) VALUES ('1',NOW())"; $pdo -> exec($sql); } catch (PDOException $erro) { echo '错误'; }
Database connection insertion is
Don't know if it will be closed. Because you want to use a certain function, do not know how to describe the function, and the key words of this function, resulting in a bad search, so I would like to invite experienced God to share.
I knew
The current scenario is this, I currently have 3 environments, the local development environment, the test environment extranet, the online environment, now the local code submitted SVN, will execute the script synchronization to test environment
The error was reported when the stress test was performed, but the concurrency was not large, 210 threads.The website is made with the CI framework. What do Windows Server 2012 do with the Linux system you're looking for on the internet?
Like Discuz, that reply can be answered.
Ask the great God to provide the next thought data sheet how to design
Reply content:
Like Discuz, that reply can be answered.Ask the great God to provide the next thought data sheet how to design
For example, I ask Baidu, I want to know that this time a total request for those resources, including pictures, js,css, but do not want to file_get_content later take these and then use regular analysis, there is a better way?
Reply content:
There is a MySQL data sheet with billions of levels of data being used online, and it is now found that 90% of the data is invalid. Now you want to delete this part of the data to save disk space. What is the better plan?
Reply content:
There
Simple to use Seaslog, but understand that he is not very suitable for distributed, so come here to recommend a
Environmental conditions: Two servers.Allocation down is 2*nginx load balancing, Db-mysql,cache-redis master-slave, language PHP, the
I use the YII2, is an article station, published articles with the pictures are kept relative to the address, in Frontend/web, because the background to review the article need to see the picture, but with the relative address is backend/web under
This is the code for AJAX.
$(".glyphicon-pencil").click(function(){ var id = $(this).attr('rel'); var URL = "
"; $.ajax({ type:'post', url:URL, data:{"id" : id}, success:
Little brother in the local installation of WordPress very smooth when you install on a Linux server access xxxx.xxxx.xxxx.xxxx/wordpress/wp-admin/install.php when you visit the 500 error site may be shut down for maintenance or incorrectly
After I downloaded the Appserv integrated development environment, a new Hello world.php file was created in the Appserv www directory, but the input http://localhost/helloworld.php in the browser always does not open. Display such a page:
But I
Display: Call to undefined function Yii\helpers\mb_strlen ()
PHP.ini in Mb_string has been opened, with the php-m display is open
Should not be an extension library path issue, because mysqli is not a problem to use.
Now puzzled there
Composer.json such a declaration can only load the file under the Composer.json directory vendor?
"autoload":{ "psr-4":{ "components\\":"components/" } },
If the components directory and the file Composer.json in the
PHP defines a class. Why the following first situation is not a problem, the second case of error??
Reply content: PHP defines a class. Why the following first situation is not a problem, the second case of error??
Class A {$
Linux under Laravel configuration data Uniqueness CheckThe resulting SQL query has a syntax error that causes the query to fail because the value queried in the statement generated by laravel name = 123@test.com is not a string and should be
Linux installed php memcached extension, without any error message, has modified the php.ini file. After restarting Nginx, it is found that the extension of the memcached module is not shown in Phpinfo.
Installing other PHP extensions also look like
Test Connection Http://shangbiao.zhekd.com/index.php/Menu/guoji
Reply content:
Test Connection Http://shangbiao.zhekd.com/index.php/Menu/guoji
Is this a procedural problem, or is it something that's been blocked in the construction method?
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