Category: PHP 7.0
-
Post Views: 13 1. Edit \app\config\core.php, configure::write(debug, 2), as shown in Figure 1 2. Edit \App\View\Layouts\Base.ctp, <?php echo $this->element(sql_dump); ?>, as shown in Figure 2 3. After the GET request, print out the SQL statement that has been executed in the view, as shown in Figure 3 4. If it is a POST request, after the final execution is successful,…
-
Post Views: 15 1. Under PHP 7.0.22 and CakePHP 2.10.3, error: the datasource configuration tmp was not found in database.php., as shown in Figure 1 2. Print $this->UsedbConfig, its value is TMP, as shown in Figure 2 3. Make sure that $tmp does not exist in database.php, as shown in Figure 3 4. However, it was normal to confirm in…
-
Post Views: 12 1. Under CakePHP 2.6.4, the error is reported: Error: Cannot usestringAs class name as it is reserved, as shown in Figure 1 2. String is the reserved name in PHP 7.x, so the String class in the Cake cannot be used on PHP 7.x, upgrade to the latest 2.x, and use CakeText instead, as shown in Figure…
-
Post Views: 13 1. I wrote a blog under PHP 5.6.27 before:https://www.shuijingwanwq.com/en/2017/09/11/10209/, this time under PHP 7.0.22, as shown in Figure 1 2. Uninstall memcached, you can use the following command: as shown in Figure 2 schtasks /delete /tn memcached 3. Delete the directory: C:\memcached-1.4.5, as shown in Figure 3 4. Open the URL:https://github.com/nono303/memcached/tree/master/cygwin/x64, download: cygevent-2-0-5.dll, cygwin1.dll, memcached-1.5.1.exe, as shown…
-
Post Views: 76 1. Open the URL: https://wiki.swoole.com/wiki/page/7.html , check the environment dependencies, as shown in Figure 1 environment dependence Only supports Linux, FreeBSD, macOS, 3 types of operating systems Linux kernel version 2.3.32 or above php-5.3.10 and above, including php7 GCC4.4 or above or clang CMake2.4+, you need to use CMake when compiling to libswoole.so as a C/C++ library…
-
Post Views: 16 1. Install Laravel by running the create-project command on the command line by composer, and run the command:composer create-project –prefer-dist Laravel/Laravel Laravel, as shown in Figure 1 2. Generate directory: E:\wwwroot\Laravel, as shown in Figure 2 3. Using nginx, adding the following code to the website configuration will forward all requests to the index.php front-end controller, as…
-
Post Views: 14 1. Open the URL:http://www.yii2-app-advanced.dev/, the error directory: E:\wwwroot\yii2-app-advanced/vendor\bower/jquery/dist does not exist, as shown in Figure 1 2. Open e:\wwwroot\yii2-app-advanced\vendor , and confirm that the directory bower does not exist, as shown in Figure 2 3. Check the composer installation prompt and find that the bower has been replaced with the bower-asset directory, which is normal, as shown…