Php file upload is a simple file upload problem, but an error occurs after running.
After the code is simplified, it is found that the data is not transmitted when the file is transmitted to PHP or is not received later.
The code is as follows:
TitleTimestamp:
Upload. php
";print_r($_FILES);echo"
";
Final effect:
Reply to discussion (solution)
Check temporary files, upload configurations, and check whether
1. check that file_uploads = On in php. ini.
2. check upload_max_filesize <= post_max_size <= memory_limit in php. ini.
Then print_r ($ _ POST );
1. check that file_uploads = On in php. ini.
2. check upload_max_filesize <= post_max_size <= memory_limit in php. ini.
Then print_r ($ _ POST );
Make sure that upload_max_filesize is large enough.
The image I used for testing is very small.
1. check that file_uploads = On in php. ini.
2. check upload_max_filesize <= post_max_size <= memory_limit in php. ini.
Then print_r ($ _ POST );
Make sure that upload_max_filesize is large enough.
These three numbers are 32 m, 32 m, and 128 m respectively, and the files I uploaded are small enough.
1. check that file_uploads = On in php. ini.
2. check upload_max_filesize <= post_max_size <= memory_limit in php. ini.
Then print_r ($ _ POST );
The result of print_r ($ _ POST) is also array ().
What server are you using? Isn't it debugging in PhpStorm?
What server are you using? Isn't it debugging in PhpStorm?
PHPstorm, the latest version of 2016
Is it a problem?
What server are you using? Isn't it debugging in PhpStorm?
Mamp + PHPstorm, php version 5.5.23
Yes! The new PHPstorm version does not support POST due to piracy.
Yes! The new PHPstorm version does not support POST due to piracy.
What should I do?
Old version?
You can use the official web server for debugging.
You can use the official web server for debugging.
What should I do?
You can use the official web server for debugging.
What should I do?
Use a browser
You can use the official web server for debugging.
What should I do?
Use a browser
I want to know how to use a browser
In fact, phpstorm is finally opened with Firefox. is the address incorrect? What should I do?
Install one of apache, nginx, and IIS, and configure php support
Or download the Integrated Environment suite.
Install one of apache, nginx, and IIS, and configure php support
Or download the Integrated Environment suite.
I installed apache
But not configured
Add httpd. conf
PHPIniDir "/AMP/php54"
LoadFile "/AMP/php54/php5ts. dll"
LoadModule php5_module "/AMP/php54/php5apache2_2.dll"
Addtype application/x-httpd-php. php
Execute to modify the path name
Add httpd. conf
PHPIniDir "/AMP/php54"
LoadFile "/AMP/php54/php5ts. dll"
LoadModule php5_module "/AMP/php54/php5apache2_2.dll"
Addtype application/x-httpd-php. php
Execute to modify the path name
What path is displayed for each row?
Because my php version seems to be different, and the paths are also different.
Path of your actual file
Add httpd. conf
PHPIniDir "/AMP/php54"
LoadFile "/AMP/php54/php5ts. dll"
LoadModule php5_module "/AMP/php54/php5apache2_2.dll"
Addtype application/x-httpd-php. php
Execute to modify the path name
In other words, in the apache folder and in the php folder, find the file http. conf.
Then add the following code at the end.
PHPIniDir "/AMP/php54"
LoadFile "/AMP/php54/php5ts. dll"
LoadModule php5_module "/AMP/php54/php5apache2_2.dll"
Addtype application/x-httpd-php. php
What is the first line address ???
The second line is the address of the LoadFile + file php5ts. dll.
The third line is the address of the LoadModule php5_module + file php5apache2_2.dll.
What is row 4 ???
This is troublesome. The next wamp is directly configured. it should be okay if Google Chrome is used.
This is troublesome. The next wamp is directly configured. it should be okay if Google Chrome is used.
However, wamp does not contain an editor.
This is troublesome. The next wamp is directly configured. it should be okay if Google Chrome is used.
However, wamp does not contain an editor.
Editor ??? You just need to go to the next zend studio.
No one knows how to connect phpstorm to apache?
End the post on the last day.