wamp

memcache not working on windows?

被刻印的时光 ゝ 提交于 2019-12-01 13:27:03
i installed memcached and I also started the service by typing net start "memcached Server" and it said the service already started so i restarted apache and tried a couple of codes for using memcached: <?php //phpinfo(); $memcache = new Memcache; $memcache->connect("localhost",11211); //change if necessary $tempArray = array('fish', 'cow', 'demon'); $temp = serialize($testArray); $memcache->add("key", $temp, 60); print_r(unserialize($memcache->get("key"))); ?> but it gives an error: Fatal error: Class 'Memcache' not found in C:\wamp\www\temp.php on line 3 does this mean memcache is not

Wamp Server: Online but inaccessible from outside

微笑、不失礼 提交于 2019-12-01 13:08:21
Config: OS-> Win 7 x64 Wamp server versions-> wampserver2.2e - php5.4.3 - httpd-2.4.2 - mysql5.5.24 Skype is not installed. Port 80 is available. hosts file has the lines-> 127.0.0.1 localhost ::1 localhost httpd.conf file has the required value `Require all granted` in #onlineoffline tag Issue: I need to put my server online (yes I understand the risks but this is a temporary thing that I need to do). I also understand that similar questions have been posted and I have gone through almost all of the them and their solutions (you will find out below). Problem statement: Wamp icon is Green.

Connection between PHP and SQL server using WAMP new approaches

流过昼夜 提交于 2019-12-01 12:08:27
what is the best way for create a connection between PHP and SQL server that are seperate?(two server: server a SQL and server b PHP) notice that I use wamp. I read some articles like below but I want to know is there any new idea? I test this code that works perfectly: try{ $user = 'user'; $password = 'pass'; $server="localhost";//or server IP $database="database"; $conn = odbc_connect("Driver={SQL Server};Server=$server;Database=$database;", $user, $password); } catch (PDOException $e) { echo "Failed : " . $e->getMessage() . "\n"; exit; } I use PDO_ODBC Method: 1- Install ODBC on server that

how to connect SQL server with php web application using wamp server?

旧巷老猫 提交于 2019-12-01 11:52:13
i am using wamp server 2.5 and php 5.5.12 and SQL server 2014 . i am trying to connecting a php application . but its giving me an error to connecting a database The MSSQL extension is not available anymore on Windows with PHP 5.3 or later. SQLSRV, an alternative driver for MS SQL is available from Microsoft: » http://www.microsoft.com/en-us/download/details.aspx?id=20098 Step by Step Download SQLSRV32.EXE (Microsoft Drivers for PHP for SQL Server) from: http://www.microsoft.com/en-us/download/details.aspx?id=20098 Choose path: C:\xampp\php\ext Uncomment or Append extension = php_sqlsrv_55_ts

memcache not working on windows?

丶灬走出姿态 提交于 2019-12-01 11:40:09
问题 i installed memcached and I also started the service by typing net start "memcached Server" and it said the service already started so i restarted apache and tried a couple of codes for using memcached: <?php //phpinfo(); $memcache = new Memcache; $memcache->connect("localhost",11211); //change if necessary $tempArray = array('fish', 'cow', 'demon'); $temp = serialize($testArray); $memcache->add("key", $temp, 60); print_r(unserialize($memcache->get("key"))); ?> but it gives an error: Fatal

安装wamp时,关于丢失msvcr100.dll

核能气质少年 提交于 2019-12-01 10:45:33
丢失MSVCR100.dll的解决办法 缺少msvcr100.dll之类的问题, 其实是系统没有安装VC 2010运行库的原因。 建议不要在网上单独下载msvcr100.dll文件,而是要安装了VC 2010运行库来解决此问题。 VC 2010运行库是很多精简版软件和游戏必备的运行库! Microsoft Visual C++ 2010 Redistributable Package 安装 Visual C++ 库的运行时组件,使用户能够在未安装 Visual C++ 2010 的计算机上运行使用 Visual C++ 开发的应用程序。 有童鞋发现在网上下载了VC 2010运行库安装了也没有解决这个问题啊?仔细看看自己的操作系统是32位还是64位 提示:建议同时安装Microsoft .NET Framework 4以上 Microsoft Visual C++ 2010可再发行组件包64位版本下载: http://www.xiazaiba.com/html/3589.html 来源: oschina 链接: https://my.oschina.net/u/346962/blog/77764

windows下搭建wamp环境

前提是你 提交于 2019-12-01 09:51:21
一、 apache的安装 Apache是一种服务器软件。 服务器: 从硬件角度来讲,服务器就是一台配置很高的电脑,使用者是服务器管理员。 从软件角度来讲,服务器就是安装了某一种软件的电脑, 例如: 安装了apache web服务器软件的电脑就是apache服务器。安装了msyql数据库服务器软件的电脑就是MySQL数据库服务器。 1、 安装 下载、解压 X64 64位操作系统安装软件 X86 32位操作系统安装软件 开始安装 设置域名、服务器名、管理员邮箱 选择自定义安装 自定义安装目录 执行安装 安装成功 管理服务 2、 Apache的目录结构 Apach的目录结构 Bin目录 Conf目录 Htdocs目录 说明:apache是以模块化进行设计,并不是所有的模块在启动时都加载,用户可以根据需地来自定义加载。 二、 主机的配置 1、 Httpd.conf详解 Httpd.conf文件是apache的主配置文件。 ServerRoot Apache的安装目录 Listen Apache的监听端口号 注:IP在计算机之间进行通讯是用于标识电脑,端口号是用于标识计算机内的具体进程/程序 Apache的默认端口号是80。 ServerAdmin 用于设置管理员邮箱 ServerName 域名 DocumentRoot 用于设置站点的根目录,即网站的代码存放位置 说明

web 环境搭建 (WAMP 搭建 web 环境)

大城市里の小女人 提交于 2019-12-01 09:50:47
1.使用XAMP 搭建Web环境 一个Web环境包含以下几个组件 1. Web服务器:如 Apache 和 Nginx 用于接收和处理Web请求 2. 数据库:最常用的即关系型数据库MySQL,用于存储和读取数据 3. 后端语言:如PHP 和 Python 等,用于开发Web项目 当然,不用一个个单独地安装以上提及的组件,而是像Anaconda那样,安装一个包含全部所需内容的套件即可,即 XAMP,主要是MAMP 和 WAMP, 分别对应Mac 和 Windows两大常用个人计算机操作系统,根据自己的操作系统选择相应的软件并下载安装即可。 MAMP : Mac 上的Apache,MySQL和 PHP: ( https://www.mamp.info/en/ ); WAMP:Windows上的Apache,MySQL 和PHP(http://www.wampserver.com/en/) MAMP 有普通版和升级版两种,前者免费而且功能足以满足需求,WampServer 下载时,根据系统配置选择64bit或32bit即可。 2.Web环境搭建 WamPServer 64位是一款windows系统下的Apache+PHP+Mysql集成环境整合包,这款工具拥有简单的图形和菜单安装和配置环境。PHP扩展、Apache模块,开启/关闭鼠标点点就搞定,再也不用亲自去修改配置文件了

wamp安装教程

Deadly 提交于 2019-12-01 09:48:47
1.【下载安装包】:在百度搜索wamp,然后下载相应版本的安装包。 2.【安装】:打开安装包,选择“next”。然后接受授权,选择“next”。 3.【选择安装路径】:在选择路径对话框选择安装路径,点击“next”。选择按桌面安装快捷方式,选择“next”,然后点击“install”开始安装。 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-x5ylc8C0-1571278229274)(https://img-blog.csdn.net/20171227095152844?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMzU5MDI4MzY=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)] 4.【完成安装】:完成安装后选择“finish”,在桌面出现了wamp的快捷方式。 5.【启动wamp】:双击快捷方式,启动wamp。如图说明启动成功。 来源: CSDN 作者: IT翅哥 链接: https://blog.csdn.net/qq_35902836/article/details/78909398

WAMP的安装与配置

青春壹個敷衍的年華 提交于 2019-12-01 09:48:31
Wamp Server 是一款功能强大的PHP集成安装环境,Wamp Server在windows下将Apache+PHP+Mysql 集成环境,拥有简单的图形和菜单安装和配置环境。安装Wamp Server后,在右下角的托盘进行控制 注意: 如果大家第一次安装wamp一定要先安装插件vc_redist.x64;不然会报错;下面提供百度云下载地址会包括此插件 下面给大家推荐一款比较适合的版本, wampserver3.0.6_x64 :仅提供64位;需要其他版本的道友可以去百度搜索查找适合自己; apache : 2.4.23 mysql:5.7.14 php:5.6.25;7.0.10 百度云下载地址:https://pan.baidu.com/s/1V5hsm6NqBScB7acPvTVxBw 百度云下载密码:fb7d 安装就不多多介绍了 ;安装目录最好不要放在C盘;因为我们要存放我们的项目,占用大量空间; 安装测试:1.测试集成环境是否成功;在浏览器头部url地址栏输入localhost显示如下界面证明安装成功; 2.点击图中phpinfo会显示你当前php版本信息,使用插件, 3.phpmyadmin是自带可视化mysql数据库(这里推荐第三方工具navciat) 配置Wamp: 1.找到Apache配置文件:httpd.conf文件,我安装目录在E盘所以文件位置如图;