wamp

sqlsrv_connect: Data source name not found and no default driver specified

送分小仙女□ 提交于 2019-12-31 04:13:42
问题 I am facing difficulties in connecting PHP with SQL SERVER 2008 running on a remote computer. I have php version 5.4.3 and apache 2.2.22. I already have SQL SERVER 2008 running on my computer. I have following files included in my wamp\bin\php\php5.4.3\ext folder: php_sqlsrv_54_ts.dll php_pdo_sqlsrv_54_ts.dll On running simple code like $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn ) { echo "Connection established.\n"; } else { echo "Connection could not be established.\n";

Primary key column(s) (id) are not columns in this table ()

会有一股神秘感。 提交于 2019-12-31 01:49:09
问题 I am following the: http://framework.zend.com/manual/en/learning.quickstart.create-model.html. Keep hitting wall after wall of issues. My current one is the following error: An error occurred Application error Exception information: Message: Primary key column(s) (id) are not columns in this table () Stack trace: #0 C:\wamp\www\zendtest\quickstart\library\Zend\Db\Table\Abstract.php(982): Zend_Db_Table_Abstract->_setupPrimaryKey() #1 C:\wamp\www\zendtest\quickstart\library\Zend\Db\Table\Select

Wamp Server: Online but inaccessible from outside

跟風遠走 提交于 2019-12-30 13:25:26
问题 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

PHP inbuilt server gives “CLI has stopped working”

天涯浪子 提交于 2019-12-30 12:25:11
问题 I am trying to use the PHP inbuilt server feature php -S localhost:8888 to run a testing server for a project of mine. When I use it, an error appears: In the event log, the following error appears: Faulting application name: php.exe, version: 5.4.3.0, time stamp: 0x4fb15e42 Faulting module name: php5ts.dll, version: 5.4.3.0, time stamp: 0x4fb15f2c Exception code: 0xc0000005 Fault offset: 0x0000000000119940 Faulting process id: 0x1a40 Faulting application start time: 0x01ce84b22074fc3f

Connection between PHP and SQL server using WAMP new approaches

霸气de小男生 提交于 2019-12-30 11:48:13
问题 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) {

How to style 404 page in WAMP server

做~自己de王妃 提交于 2019-12-30 06:43:32
问题 I am using a WAMP server and I need to change the "404 not found page" style using CSS. How can I do it? 回答1: In your httpd.conf file, there will be an ErrorDocument section: # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info

How to style 404 page in WAMP server

廉价感情. 提交于 2019-12-30 06:43:09
问题 I am using a WAMP server and I need to change the "404 not found page" style using CSS. How can I do it? 回答1: In your httpd.conf file, there will be an ErrorDocument section: # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info

Create vhost in wamp 2.5 in different directory on win7 returns forbidden error

。_饼干妹妹 提交于 2019-12-30 02:29:07
问题 I have installed wamp in C:\wamp and I want to make DocumentRoot folder in E:\zf2 as virtual host for a dummy domain www.skeltonapplicaiton-zf2.local. Uncommitted the line Include conf/extra/httpd-vhosts.conf in httpd.conf file. httpd-vhosts.conf code is <VirtualHost *:80> ServerName www.skeltonapplicaiton-zf2.local ServerAlias skeltonapplicaiton-zf2.local DocumentRoot "E:\zf2" <directory "E:\zf2"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from all

wamp 安装redis扩展

强颜欢笑 提交于 2019-12-30 02:16:08
phpredis扩展下载地址 http://windows.php.net/downloads/pecl/snaps/redis/ VC11版本php扩展: https://windows.php.net/downloads/pecl/releases/redis/2.2.7/ 1.选择redis DLL文件扩展 phpinfo 查看VC版本 还有系统位数 再进行下载 所以选择上面这个 选择ts就行 2. 将下载好的php_redis.dll放入E:\wamp64\bin\php\php5.6.25\ext文件夹中,然后再E:\wamp64\bin\apache\apache2.4.23\bin\php.ini添加代码: extension=php_redis.dll 重启服务器 3.再打开phpinfo 就有了redis扩展 安装redis服务 https://github.com/MSOpenTech/redis/releases 下载zip文件后解压到创建的文件夹E:\redis 将这个文件夹地址 E:\redis 放到环境变量Path中 然后CMD命令行 这个时候可以写php文件进行测试 创建redis_connect.php <?php //连接本地的 Redis 服务 $redis = new \Redis(); $redis->connect('127.0.0.1',

Tunnel a localhost subdirectory through ngrok?

孤者浪人 提交于 2019-12-30 01:48:50
问题 Objective: want to share a website preview using ngrok, which creates a tunnel from which my localhost can be seen with an url of something like mywebsite.ngrok.io Problem: I use WAMP and my localhost folder looks something like this: localhostdirectory |-- website1 |-- website2 |-- etc To access a website I type to localhost/website1/ in the browser, I would like to tunnel only that URL, the possible solutions would be: Setting up a Virtual host, I would go through the hassle of manually