wampserver

How to send emails with Symfony 4 Swiftmailer from a local machine running on Windows 10?

雨燕双飞 提交于 2020-01-07 09:19:32
问题 I'm trying to send emails with Symfony 4, Wamp and fake sendmail on Windows 10 but without success, I'm hosted on OVH. I want to specify that I have a site hosted on OVH with same parameters running on Symfony 2 and Swiftmailer works perfectly. Here is my Symfony .env line for Swiftmailer: MAILER_URL=smtp://smtp.dnimz.com:465?encryption=ssl&auth_mode=login&username=simslay@dnimz.com&password=*** Here is part of my Symfony controller for Swiftmailer: $message = (new \Swift_Message('Hello Email

Google ReCaptcha 2 Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found

前提是你 提交于 2020-01-06 15:09:36
问题 I'm a google recaptcha v2 on a local machine running wamp. Everything looks fine except it keeps dying when its supposed to validate the form I'm getting this error: Fatal error: Class 'ReCaptcha\RequestMethod\Post' not found in C:\wamp\www\php\contactForm\Captcha\ReCaptcha.php on line 73 I've pretty much copy/pasted the example code from google: if (!empty($human)) { require_once('Captcha\ReCaptcha.php'); $recaptcha = new \ReCaptcha\ReCaptcha($secret); $resp = $recaptcha->verify($human,

PHP-Wamp集成包安装教程

随声附和 提交于 2020-01-06 09:24:11
在Windows平台上搭建PHP的开发环境可以下载WAMP(Windows、Apache、MySQL、PHP的首字母缩写)集成化安装包。这样就不需要单独安装Apache、MySQL和PHP了。 这款软件在安装的过程中就已经把Apache、MySQL、PHP继承好了,而且也做好了相应的配置,除此之外,还加上了SQLitemanager和Phpmyadmin,省去了很多复杂的配置过程,让我们能把更多的时间放在程序开发上。更值得高兴地是这款软件也是完全免费的,大家可以登录http://www.wampserver.com/en/下载。 重要提示:基本上每一步更改配置文件的操作结束之后,均在重启了相应服务之后才会生效,也就是说如果想要修改立即生效的话,必须在修改完毕保存之后重新启动一下相应的服务! 一、安装wampserver 可能会在安装过程中发生下面错误: 解决办法:访问地址 http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=30679 下载并安装对应版本(我这里是64位) 然后开始正式安装wampserver啦!安装步骤非常简单。 这里是选择默认浏览工具:安装过程中会提示要选择默认浏览工具,如图所示,不过要注意的是,这个浏览工具指的可不是浏览器,它指的是windows的浏览器,也就是explorer.exe

Windows下搭建PHP开发环境

六眼飞鱼酱① 提交于 2020-01-06 09:23:27
昨天。写了怎样在Linux下配置LAMP开发环境。今天说说Windows下怎样高速使用集成的软件来搭建Windows的PHP开发环境。 在考量了一些资料之后,认为靠谱是是Appserv和WampServer。于是搞个WampServer玩一玩儿,试试看。 WampServer这款软件在安装过程中已经把Apache。MySQL,PHP集成好了,并且还做了对应的配置。 第一步: 下载 WampServer:http://www.wampserver.com/en/ 选择所需版本号: 第二步: 安装:一路next 选择默认浏览工具,而不是浏览器。是windows的浏览器。找到explorer.exe打开就可以。 安装完毕! 右键单击,并设置语言。 单击左键,能够看到 注:www为默认存放网页的文件夹。 假设须要改动。则须要找到安装文件夹下的scripts文件夹下的config.inc.php文件,用记事本改动: $wwwDir = $c_installDir.'/www'; $wwwDir = 'D:/web'; 然后关闭WampServer之后再打开就能够了,只是这里仅仅是改动了连接而已。普通情况下我们不要改动。 第三步 配置MySQL以及phpMyAdmin 左键单击选择phpMyAdmin,打开后选择用户,编辑每一个root用户的权限,设置password。 重新启动全部服务:

codeigniter - send email wamp gmail

怎甘沉沦 提交于 2020-01-06 06:53:51
问题 I read other topics but not resolved my problem.. I have this in my controller: $this->load->library("email"); $this->email->from(set_value("email"), set_value("nome"),set_value("msg")); $this->email->to("my@gmail.com"); $this->email->subject("Mensagem"); $this->email->message(set_value("msg")); $this->email->send(); echo $this->email->print_debugger(); and my library email: var $useragent = "CodeIgniter"; var $mailpath = "/usr/sbin/sendmail"; var $protocol = "smtp"; var $smtp_host = "smtp

WAMP: phpmyadmin suddenly broke down

感情迁移 提交于 2020-01-06 01:07:05
问题 Hi okay here is the case, i was just recently developing my project when this happend. I tried to update my phpmyadmin manually bevause the one included in the wamp is an old one. After that everything went fine and i continued my work. Then all when i try to convert a password to md5 in phpmyadmin, an error appeared saying something about missing PMA etc. Then i tried to revert to my old version of phpmyadmin when when i try to open it in wamp this message appeared. Fatal error: main(): The

Wordpress portal not accessible from intranet

谁说胖子不能爱 提交于 2020-01-05 23:18:48
问题 I'm trying to build a portal for my organization, using Wordpress. I have installed windows server 2008 R2, Wampserver 2.5 and the WP 3.9.1. I followed the Wampserver's guide to setting a virtual host for the site. On the server machine everything works ok. Localhost at the address bar shows Wamp's main page and the link to the site shows only the site's name (without localhost) and when I click it it loads ok. The problem is when trying to access it form a client machine on the intranet.

Wampserver not changing the PHP version [duplicate]

倖福魔咒の 提交于 2020-01-03 08:47:08
问题 This question already has answers here : How To Run PHP From Windows Command Line in WAMPServer (11 answers) Closed 2 years ago . I have Wampserver 3.0.6 32 bit installed and it comes with PHP versions 5.6.25 and 7.0.10. When I switch from 5.6.25 to 7.0.10 from the server tray icon it does not update the actual php version my pc is using. I can test this with running this in the command prompt: php -v : PHP 5.6.25 (cli) (built: Aug 18 2016 11:40:20) Copyright (c) 1997-2016 The PHP Group Zend

wampserve部署

柔情痞子 提交于 2020-01-03 08:35:56
全名 WampServer 来自法国的软件 http://www.wampserver.com/en/ 一、下载方法: 1、一级导航点击download(发现只不过是本页的跳转,硕大的 wampserver(64 BITS % PHP 5.5) 2.5 点上去,就是不能下载!) 2、上面一行字写着 "Older WampServer versions are available on SourceForge ."(神经病的思维)点SourceForge。 3、出来了文件列表,点WampServer2文件夹,然后再点 Wampserver2.5,上面文件是32bit,下面是64bit。 4、终于可以下载了。 二、安装 1、安装目录 :下载下来,安装时可以自选目录。 2、改端口:如果本机存在 IIS端口那么安装完成后 更改端口 安装目录 bin\apache\apache2.4.9\conf 下 httpd.conf 两个文件中 Listen 80 改成 90就行了 右键单击 右下角 W 图标 语言 chinese 左键单击 右下角 W 图标 后点击 切换到在线状态 完成 二、定义网站主目录 打开文件 httpd.conf 1、DocumentRoot 示例:DocumentRoot "C:/php/phpCenter/www/" 2、<Directory "C:/php

wamp server php extension PECL Missing

99封情书 提交于 2020-01-03 00:44:07
问题 Does any one know why the PECL extension in wamp server does not exists? I am trying to use the http_build_url() but I get this error: Fatal error: Call to undefined function http_build_url() in ... 回答1: The function http_build_url() is part of the PECL extension pecl_http . In your WAMP directory locate pecl.exe and open a command shell. Type: pecl install pecl_http and the function call should work. 回答2: i have found this source of pecl_http package, but dont know how to make it work on