xampp

Laravel : Integrity constraint violation

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a SQLSTATE Integrity constraint violation error with the default register form. I have a add a rank row to a new table. Here's my migration; Schema::create('users', function(Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email')->unique(); $table->string('password', 60); $table->string('rank'); $table->rememberToken(); $table->timestamps(); }); I want that the server send the value of default , so I add this to \app\Services\Registrar.php ; public function create(array $data) { return User:

How can I execute multiple procedures continuously?

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here is my code: $query = "CALL user_top_categories_score(?, 'ALL', 0, 1)"; $sth = $this->dbh->prepare($query); $sth->execute([$user_id]); $category = $sth->fetchAll(PDO::FETCH_ASSOC); $query = "CALL user_top_tags_score(?, 'ALL', 0, 3)"; $sth = $this->dbh->prepare($query); $sth->execute([$user_id]); $tags = $sth->fetchAll(PDO::FETCH_ASSOC); It throws this error: Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll().

Access to the requested object is only available from the local network phpmyadmin

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just installed xampp 1.8.0 for linux and when I opened phpmyadmin I got this error Access Forbidden!! New XAMPP security concept: Access to the requested object is only available from the local network. This setting can be configured in the file "httpd-xampp.conf". I tried this post but with no luck. please help. I am opening it from my own PC not from any other network. 回答1: open your http.conf file vim /opt/lampp/etc/extra/httpd-xampp.conf Comment " Deny from all " in the following section, # # New XAMPP security concept # Order deny

PHP mail() no longer works after update to OSX Mountain Lion

♀尐吖头ヾ 提交于 2019-12-03 00:55:16
问题 I just updated OS X to Mountain Lion yesterday, but the php function mail() does not work anymore. Before updating, the PHP mail() function worked fine, Apple mail works fine. After updating, Apple mail works fine, but PHP mail() function DOES NOT work. Webserver: XAMPP 1.7.3 I use this code to test the mail() function: if (mail($to, $object, $content, "From: ". $from)) { echo 'send '; } else { echo "not send"; } It shows: not send Anything I have to change? such as the php.ini or something

Restore MYSQL Dump File with Command Line

一曲冷凌霜 提交于 2019-12-02 23:02:59
I have file.sql, and I want to restore it. I found this command: mysql -u username -p database_name < file.sql Where should I put 'file.sql' in file system? I'm using Windows and XAMPP. Thank you. *) The dump file is 3GB++ You can put it anywhere, where there is enough diskspace available of course. A good place for this would be either /tmp (on linux or similar) or c:\temp (on windows or similar) But assuming you use that exact line you need to change your working directory to that which holds the file. cd /path/where/sql/file/is And then mysql -u username -p database_name < file.sql If you

xampp2016-apache2.4.18-配置python cgi-bin

匿名 (未验证) 提交于 2019-12-02 22:51:30
为了配置python cgi-bin,遇到了好多坑,403,404,500等报错。 先将配置过程记录如下: 环境: 1.xampp 2016 2.apache2.4.18 过程: 1.在xampp目录下新建cgi-bin文件夹(如果没有cgi-bin文件夹)。 2.新建测试用的python脚本,如hello.py, 代码如下: 1 #!G:/python3.6/python.exe 2 # -*- coding: utf-8 -*- 3 print("Content-type:text/html") 4 print() # 空行,告诉服务器结束头部 5 print('<html>') 6 print('<head>') 7 print('<meta charset="utf-8">') 8 print('<title>HelloCGI Program!</title>') 9 print('</head>') 10 print('<body>') 11 print('<h2>Hello Word! CGI PROGRAM</h2>') 12 print('</body>') 13 print('</html>') 3.修改 xampp\apache\conf\httpd.conf 文件 https://www.cnblogs.com/feifeidxl/p/5556696.html

在 WINDOWS 7 的 XAMPP 安裝 MEMCACHED 擴展

半腔热情 提交于 2019-12-02 22:28:19
步驟一: 修改 C:/xampp/php/ php.ini 在 php.ini 中加入或找出 ;extension= php_memcache.dll 改成或加入 extension= php_memcache.dll 另外找出或加入 [Memcache] memcache.allow_failover = 1 memcache.max_failover_attempts=20 memcache.chunk_size =8192 memcache.default_port = 11211 儲存修改. 步驟二: 安裝 Memcached 擴展 安裝並執行 Memcached 擴展 需要兩個檔案 php_memcache.dll 和 memcache.exe . php_memcache.dll : http://downloads.php.net/pierre/php_memcache-cvs-20090703-5.3-VC6-x86.zip 已失效了 http://thinkam.googlecode.com/files/php_memcache-cvs-20090703-5.3-VC6-x86.zip <–用這個 memcache.exe : http://code.jellycan.com/files/memcached-1.2.6-win32-bin.zip 由於兩者要

XAMPP PHP date function time is different from local machine time

天大地大妈咪最大 提交于 2019-12-02 22:12:28
My computer local time is 12-03-2013 4:30pm . My XAMPP date function prints the time as 12-03-2013 10:49:56 . How can I set the XAMPP server time to display the system time? Go to C:\xampp\php\php.ini , or your custom path where php.ini is, open it. Look for the following: date.timezone = "Europe/Warsaw" . Probably You have different value than my Europe/Warsaw . So search just string: date.timezone . Change value Europe/Warsaw to the proper value, for example date.timezone = "Asia/Kolkata" If someone's looking for his location, check valid values http://php.net/manual/en/timezones.php Don't

Windows系统XAMPP安装Moodle教程

匿名 (未验证) 提交于 2019-12-02 22:10:10
   一.安装工具下载:     系统环境:    集成软件:     xampp最新版下载地址: https://www.apachefriends.org/index.html    Moodle下载:     Moodle最新版下载地址: https://download.moodle.org/releases/latest/      Moole 3.5.2+ :  后面的+表示Moodle是稳定版     如果要使用和我一样的版本的话,使用下面的下载地址:          链接:https://pan.baidu.com/s/1b0j2MLhdz1GzrXRiRVhFnA         提取码:tg73 二.安装环境配置:   由于我的电脑上已经有IIS服务器了,IIS服务器使用的是80端口,你如果安装apache的话也会使用80端口,这样会造成冲突,所以我们需要配置IIS的端口。当然你的电脑上没有IIS的话不用执行下面的步骤:    1.使用Windows+R打开运行,输入compmgmt.msc 打开计算机管理       2.定位到IIS管理,点击关闭       3.点击绑定,修改端口       4.点击开始,然后在浏览器中输入localhost:81,可以看到已经可以访问到IIS了,这样端口就修改完成了。    三.开始安装    1.xampp安装:  

涉及安装xampp、NetBeans、PHP

匿名 (未验证) 提交于 2019-12-02 22:10:10
此部分为xampp和NetBeans 1、https://www.apachefriends.org/zh_cn/index.html页面下载XAMPP,安装位于D盘 2、打开XAMPP Control Panel,然后打开此链接https://blog.csdn.net/aoshilang2249/article/details/46934419 3、然后依次点击Apache、MySq最前面service、start,启动服务器、数据库。数据库启动不成功,很可能是电脑里面另外安装的数据库A占用了xampp里数据库B的端口,此时手动关掉A 5、还有一点需要特别注意: 6、对于手机: 7、对于项目中有MySQL交互的,一定要配置好与数据库的链接,通过Xammp control panel界面右边的shell可进入cmd与mysql进行交互。 9、netbeans下PHP调用python失败的原因 10、关于system和exec的输出问题 11、很重要的一点,调试时,file = sys.argv[1] 12、如何把php界面的值传给另一个php页面参考:http://blog.sina.com.cn/s/blog_906a5acc0100xq9k.html 13、一定要学会看服务器的Logs,特别是Apache(erorr.logs),有服务器运行错误的原因 14