wamp

PHP ZMQ Extension: Unable to load dynamic library

眉间皱痕 提交于 2020-05-13 06:35:08
问题 I'm working on Wampserver on Windows 10. I'm using an extension called ZMQ. I downloaded the DLLS from: https://pecl.php.net/package/zmq/1.1.3/windows I previously used the version of the extension for PHP 5.6 and it worked. The extension however had a bug, so I decided to upgrade my php version to 7.0.4 and try the new version of the extension. The extension was successfully installed and it appears in the phpinfo(), but when I try to run "php -v" from the command line (or the CLI service

Not able to deploy Django restfule service using WAMP and mod_wsgi

浪尽此生 提交于 2020-04-30 06:32:48
问题 I am trying to deploy an API built on Django rest-framework using mod_wsgi and WAMP. When I created a new Django project using 'django-admin startproject Predictor' and deployed it on WAMP, it was working fine as I can see the default Django window. Now I created an app in the project using 'python manage.py startapp Predictor' I built an API which accepts GET call and tested it using 'python manage.py runserver' and it was working fine. Now I started WAMP service again and try to go to

wamp 配置

▼魔方 西西 提交于 2020-04-06 00:19:30
我的安装环境及版本: apache2.4+mysql5.5.19+php5.5.1+phpmyadmin3.5.4 apache, mysql,php 按顺序安装完后开始配置: 1.httpd.conf配置: DocumentRoot "E:/wamp/apache/htdocs" 项目默认的存放路径,可根据实际情况修改,注:如此节点修改则相应的Directory节点的目录也需进行修改。 <Directory " E:/wamp/apache/htdocs "> AddType application/x-httpd-php .php DirectoryIndex index.php index.html 注意:Apache Windows配置文件httpd.conf中要求的目录分隔符是用斜线”/”,而PHP Windows配置文件php.ini中书写目录时要求的是反斜线”\”,不要弄混了。 配置测试,在DocumentRoot节点所指定的目录中创建index.php 打印php配置信息。 开启重写,支持 .htaccess (可选) : LoadModule rewrite_module modules/mod_rewrite.so 去掉注释 <Directory /> AllowOverride none Require all denied </Directory> 改为:

WAMP Laravel - Sending API requests from one local site to another mixes up environment variables

自作多情 提交于 2020-04-05 05:57:08
问题 I am developing an API service that another site I've developed will be using. So locally when building and testing, obviously I want both local copies of the site to work. However, it seems to mix up the environment variables. For example: Site A has APP_URL=http://a.local Site B has APP_URL=http://b.local I send a GET Request (using Guzzle ) from Site A code to http://b.local/test The /test endpoing in Site B simply dumps out dump(env('APP_URL')) Result retrieved by Site A is "http://a

WAMP Laravel - Sending API requests from one local site to another mixes up environment variables

喜欢而已 提交于 2020-04-05 05:56:21
问题 I am developing an API service that another site I've developed will be using. So locally when building and testing, obviously I want both local copies of the site to work. However, it seems to mix up the environment variables. For example: Site A has APP_URL=http://a.local Site B has APP_URL=http://b.local I send a GET Request (using Guzzle ) from Site A code to http://b.local/test The /test endpoing in Site B simply dumps out dump(env('APP_URL')) Result retrieved by Site A is "http://a

PHP file wont connect to the sql database, it says error #1045 but the values on the code are right [duplicate]

丶灬走出姿态 提交于 2020-04-03 08:43:21
问题 This question already has answers here : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from `table`) (2 answers) Closed 20 days ago . I tried connecting my PHP file to MySQli database but when i ran the code it displays But when i logon to phpmyadmin it works fine no errors i can login to my account with no problems Credentials in the database: Connection Code: <?php $con = mysqli_connect('localhost','sotomango', '1234', 'mysql');

PHP file wont connect to the sql database, it says error #1045 but the values on the code are right [duplicate]

人盡茶涼 提交于 2020-04-03 08:43:00
问题 This question already has answers here : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from `table`) (2 answers) Closed 20 days ago . I tried connecting my PHP file to MySQli database but when i ran the code it displays But when i logon to phpmyadmin it works fine no errors i can login to my account with no problems Credentials in the database: Connection Code: <?php $con = mysqli_connect('localhost','sotomango', '1234', 'mysql');

WampServer 2.5设置外网访问/局域网手机访问(403 Forbidden错误解决方法)

吃可爱长大的小学妹 提交于 2020-03-29 17:30:40
安装好wamp后,想用手机通过局域访问电脑上wamp下的网页,结果出现如下提示。 (403 Forbidden)错误 1.打开http.conf文件 2.找到下图中红色方框中的onlineoffline tag - don’t remove,将原来的Require local替换为Require all granted; 注意几种常用格式,自己可以灵活配置: Require local 仅允许本地访问; Require all denied 拒绝所有访问; Require all granted 允许所有访问; Require ip 192.168.0.1 仅允许IP:192.168.0.1 访问; Require not ip 192.168.0.1 仅禁止IP:192.168.0.1访问; 3.完成修改好,重新启动所有服务。 <—————————————————————> 来源: https://www.cnblogs.com/bingokeith/p/7062021.html

windows2003 64bit 下让iis下支持WIKI(关键是配置IIS支持PHP)

孤人 提交于 2020-03-21 07:39:18
一、下载WAMP: WampServer2.0f 和MediaWIKI: mediawiki-1.13.3 建议尽量使用最新 1、安装WampServer2.0f,(建议别安装到非系统分区,如D:\Wamp)一路Next,中间会弹出选择IE浏览器,指向%systemdrive%\Program Files\Internet Explorer\iexplore.exe 就行 2、解压MediaWiki到一个指定的目录(建议摆放到Wamp 目录下的WWW文件夹下,如:D:\Wamp\www) 二、 因为下载到的PHP是32位的,而IIS是64位的,为了兼容,将IIS降为32位兼容方式运行,方法如下: 运行"CMD" 1.进入%systemdrive%\Inetpub\AdminScripts目录下 2.执行命令 cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 "true" 或者 cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 1 3.执行命令iisreset 技术文档地址: http://technet2.microsoft.com/WindowsServer/zh-CHS/Library/e7fa2e6b-148e

PHP常用的文件操作函数集锦

允我心安 提交于 2020-03-19 13:58:15
一、 解析路径 1、 basename--返回路径中的文件名部分 string basename(string $path [,string $suffix]) 给出一个包含指向一个文件的全路径的字符串,本函数返回基本的文件名。如果文件名是以suffix结束的,那这一部分也会被去掉。 <?php $filename = __FILE__ ; echo $filename ; // C:\wamp\www\demo.php echo basename ( $filename ); // demo.php echo basename ( $filename ,'.php'); // demo ?> 扩展内容--魔术常量: __LINE__:文件中当前的行号 __FILE__:文件的完成路径和文件名 __DIR__:文件所在的目录,等价于dirname(__FILE__) __FUNCTION__:函数名称 __CLASS__:类的名称 __METHOD__:类的方法名 __NAMESPACE__:当前命名空间的名称 <?php namespace Demo; header ("content-type:text/html;charset=utf-8"); echo '当前的行号是:'. __LINE__ .'<br>'; // 当前的行号是:4 echo '当前文件所在的目录是:'._