. NET to PHP laraval Framework Learning Series,. Netlaraval
I have not written any blog before, perhaps the article structure is more chaotic, think of that write to.
The main is to write down the experience of their own learning.
Why choose the Laravel framework, because the Laravel framework is currently the most popular framework for PHP, in-depth research found and the ASP. NET MVC framework is essentially about in functionality. It's just that their implementation is different.
PHP in the development environment under Windows to build
1. Download the PHP address http://windows.php.net/download/Note the relevant version of my server with the iis7.5 32 system
VC11 x86 Non Thread Safe (2014-oct-02 02:43:40)
After decompression into the corresponding directory, configure the php.ini file, here Note the DLL enabled in the relevant configuration, this online has not said much.
2.iis Configuration
I use the fastcgi deployed, need to download Phpmanager https://phpmanager.codeplex.com/
After installing Phpmanager Click on the IIS site will appear phpmanager icon
The following interface will appear after the opening, the related setting function is also relatively simple, it is necessary to note that PHP extensions, this and the above php.ini DLL enabled is consistent.
Configure the Php_wincache.dll to be enabled in IIS fastcgi mode. Remember to enable this.
3. Download the Laravel framework, where you need to download a composer a PHP tool similar to that of NPM.
You will need to select a PHP version when installing. If you need to change the PHP version, reinstall it.
Extract the Laravel compressed package to the Laravel folder, shfit+ right-click in the Laravel folder to open the Command window
Input Compser intsall automatically downloads related dependent components into the vendor folder
Installation of 4.mysql
MySQL installation is not described in detail here, basically not much of a problem.
You may encounter an laravel eloquent ORM modeling error,
Need to put MySQL in the
# Set The SQL mode to strict
#sql-mode= "Strict_trans_tables,no_auto_create_user,no_engine_substitution"
Modified into
Sql-mode= "No_auto_create_user,no_engine_substitution"
Also find solutions on-line if no problem is best.
5. Start configuring the IIS PHP site after all components have been downloaded
As with. NET sites, note that the root directory of the site is not the Laravel folder, but the following public folder.
Configure the host file and the domain name of the Web site.
Configuration complete, click Check Phpinfo () in Phpmanager, view installation
The program pool does not need to change, 2.0 of the integration mode is available,
6. This is basically the installation of all components.
Access the site domain name set up in the previous step. You can see the Laravel welcome page.
Here is a special note, because the URL generated by Laravel is also without a suffix, there will be a 404 error,
Need to install IIS Url Rewrite component
After the installation is complete
Enter the rewrite interface and click on the right to import rules
Then select the. htaccess file under the public file
Apply the rules when you're done importing.
The above steps basically build up Laravel in Windows IIS run environment
Did 3 years net programmer to PHP good?
Multi-skill and no body pressing
Learning PHP doesn't have to give up. NET Ah
Beautiful pages to the extreme is not easy
No one's going to be a program.
It's only as good as you can do.
Q NET to PHP is not all rewritten?
. NET to PHP requires a full rewrite.
However, with the original frame structure, rewriting is much faster than re-development.
Requires the programmer to be proficient. NET and PHP two languages.
The database is a complex issue. It is mainly data conversion.
It all depends on the skill of the programmer. The conversion time is related to the size of the database and the complexity of the data structure.
In general, if data structures are developed on their own, they can be converted quickly.
No more than 1 weeks.
http://www.bkjia.com/PHPjc/893200.html www.bkjia.com true http://www.bkjia.com/PHPjc/893200.html techarticle . NET to PHP laraval Framework Learning Series,. Netlaraval did not write any blog before, perhaps the article structure is more chaotic, think of that write. The main is to learn from their own experience in writing down ...