wampserver

YII2.0使用YII2-USER实现用户注册邮件验证

匿名 (未验证) 提交于 2019-12-03 00:21:02
YII2-USER需要PHP7,否则会提示类似以下截图的错误: 使用WampServer安装好PHP7后,将系统环境变量Path中的php目录更改到PHP7,这是必须的步骤(我安装的是PHP7.2.5),要不安装YII2-USER时还会提示需要PHP7。如果你也使用WampServer,并且对WampServer支持多版本PHP有困难,可以查看我的另一篇博客: WampServer支持多版本PHP配置 https://blog.csdn.net/waterlily_5/article/details/80375816 之后安装YII2的advanced框架,如果对安装YII2.0高级版程序有疑惑,也可以参照我的另一篇博客: YII2.0使用归档文件安装advanced高级版 https://blog.csdn.net/waterlily_5/article/details/80330548 然后是创建数据库,我使用了默认的数据库名称yii2advanced,整理编码为utf8-unicode_ci。 然后是安装YII2-USER,安装YII2-USER使用composer进行安装。 首先需要使用cd命令将目录设置到网站目录 然后运行 composer require "dektrium/yii2-user:0.9.*@dev" 安装YII2-USER,命令运行之后大概是这样的:

Integration of postgreSQL on WAMP

柔情痞子 提交于 2019-12-02 23:57:44
I have just installed the postgreSQL on windows 7. I am trying to integrate postgreSQL with WAMP server. For this i have done the following changes in httpd.conf and php.ini file 1 LoadModule c:/path to libpq.dll in httpd.conf and then 2 extension=php_mod_pgsql.dll , extension=php_pgsql.dll -- enable(reemove ;) in php.ini If I do the above changes the localhost does not work. If I do the second changes the localhost work but does not load the libpq.dll . I checked the pgsql by php script by this <?php echo extension_loaded('pgsql') ? 'yes':'no'; ?> The script shows "yes", but apache is not

Eclipse PHP 环境完整搭建运行

匿名 (未验证) 提交于 2019-12-02 22:10:10
一、下载Eclipse PHP 编译器     登陆eclipse官网下载       Eclipse 是一个开放源代码的、基于Java的可扩展开发平台(如果未安装JDK,则需要先 下载 JDK 安装)。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse 附带了一个标准的插件集,包括Java开发工具(Java Development Kit,JDK)。 支持 Windows、Linux 和 Mac OS 平台。 Eclipse for PHP 官方下载地址:https://www.eclipse.org/downloads/packages/ 找到这个PHP 开发工具根据自己的系统选择进行下载: 下载完成解压后就是这个,点击eclipse.exe即可运行开发工具     Windows 系统可以使用 WampServer,下载地址: http://www.wampserver.com/ ,支持32位和64位系统,根据自己的系统选择版本。       WampServer 安装也简单,你只需要一直点击 " Next " 就可以完成安装了。     将wampserver安装完成后打开安装路径: 在这里的  bin  和  www   路径在接下来的环境配置中需要 在安装目录中的  bin  目录集成了apache+php+mysql的环境

PHP:Internal Server Error using WAMP (at startup)

北慕城南 提交于 2019-12-02 17:38:42
i had a problem wth php.It display error like below. It work well in other computer, but when i tried to run it in another computer it display error like below. I think i had a problem with my wampserver 2.0 configuration. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log. Aslam

Repair WAMP Server [closed]

喜你入骨 提交于 2019-12-02 16:31:42
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I cannot put my WAMP server online. I recently add a php extention (php_mssql.dll) and after checking the extension, my wamp server does not start

Import SQL file by command line in Windows 7

北慕城南 提交于 2019-12-02 15:11:20
I want to import an SQL file (size > 500MB) into a database. I have wamp on my PC. Phpmyadmin does not work well with this size. I changed all parameters in php.ini (max_upload_size etc.). But it does not work for me. So I want to import it by command line. I used these commands for import the file: mysql -u root -p sysdat < D:\Nisarg\ISPC\Database\sysdat.sql mysql -u root -p -D sysdat < D:\Nisarg\ISPC\Database\sysdat.sql mysql -u root sysdat < D:\Nisarg\ISPC\Database\sysdat.sql -p These all are not working. Try like this: I think you need to use the full path at the command line, something

Have WAMP start automatically upon Windows start-up (without logging on or any UAC interference)

*爱你&永不变心* 提交于 2019-12-02 14:03:55
I'm looking to have WAMP start when I switch on the computer. Ideally it would start without users even having to log on. I've added WAMP to the start-up in the registry but a user needs to have logged on and UAC is still playing it's annoying part. Is there a way to accomplish this without logging on or UAC interfering? Thanks. Follow these instructions to start the appropriate WAMP services on start-up. UAC will not interfere here and there is no need to log in to start your web-server: Log in as an administrator. Start -> Run "services.msc" Right click the service wampapache (may also be

im trying to change the date format when im display the result [duplicate]

有些话、适合烂在心里 提交于 2019-12-02 13:28:24
This question already has an answer here: Convert one date format into another in PHP 15 answers In the database, date format is Y-m-d, im trying to display my result with this format d-m-Y. This is my code: <input name="personal_ic_from" type="text" class="tcal" id="personal_ic_from" value="<?php echo $personal_ic_from ?>" readonly="readonly"/> Follow the procedural style in php <?php $databaseDate = '2013-09-29 01:02:03'; $date = date_create($databaseDate); echo date_format($date, 'd-m-y'); ?> You can also try strtotime() <?php $queryResultDate = mysqli_query("SELECT column_name FROM table

Input my php in mysql without repeat?

帅比萌擦擦* 提交于 2019-12-02 13:07:41
I create this code to add some data in my db without repeat. but that is not work and I can't add data create by this php to my table. what's the problem ? P.S: I have no error! P.P.S:I do this on wamp server. <?php $con=mysqli_connect("localhost","root","","kosar"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } for ($i=0;$i<10;$i++) { $n1 = rand(100000,999999); $n2 = rand(100000,999999); $pincode = (string)$n1; echo $pincode; echo nl2br("$pincode\n"); mysql_query ("INSERT IGNORE INTO kosar(ID, Code, Type, Used) VALUES('', '".

CREATE TABLE in MySQL syntax error

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 12:54:38
i am trying to use the db to link it with my java project and i am using wampsarver to create the db. what should i do to fix this please . 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') NOT NULL , Phone DOUBLE( 20 ) NOT NULL , Id INT( 20 ) NOT NULL AUTO_INCR' at line 6 CREATE TABLE `Laptop` ( `serial number ` INT( 20 ) NOT NULL , `Device Model` VARCHAR( 20 ) NOT NULL , `Device Manufacturer` VARCHAR( 20 ) NOT NULL , `Device Color` VARCHAR( 20 ) NOT NULL , `Screen size` DOUBLE( 20 ) NOT NULL ,