wamp

PHP session variables not being maintaned

谁说我不能喝 提交于 2019-11-27 15:50:53
I have an application that has been working with session variables no problem. I start the session before the headers on every page that uses when, it has been fine then it seems all of a sudden I'm getting an undefined index error when I navigate to a page other than the one that sets up the session variables. But only on some browsers . Sometimes sessions are maintained and sometimes they aren't. It seems that cookies aren't being stored some of the time. I've done checks using different browsers and sometimes cookies are stored and sometimes not. I did an experiment. I was using firefox to

How to get around or make PHP json_decode not alter my very large integer values?

瘦欲@ 提交于 2019-11-27 15:44:00
So I'm using php 5.2.6 in a WAMP environment. I'm trying to use the json_decode function to make a json string into an array. The JSON is coming from a REST API elsewhere so I have no control over formatting of the JSON string. Here is an example of one of the json strings I'm trying to use: [{ "webinarKey":795855906, "sessionKey":100000000041808257, "startTime":"2011-12-16T13:56:15Z", "endTime":"2011-12-16T14:48:37Z", "registrantsAttended":2 }] I'm specifically after the sessionKey value here. PHP is treating the value as a float and I can't seem to do anything to retrieve the original value.

Cannot access wamp server on local network

你。 提交于 2019-11-27 15:02:24
I want to host a website on my local network. For some reason I can only access wamp in my local computer. I have 2 computers in my network. Both computer A and computer B have wamp server installed. when I type the ip address of computer A from computer B I am able to connect to it. But when I do it the other way around it does not work! In other words when I type the ip address of computer B from computer A the browsers says: server at 192.168.0.120 is taking to long to respond. Things that I have done in order to solve the problem on computer B: (remember I want to connect to computer B

All localhost pages via WAMP blocked?

南笙酒味 提交于 2019-11-27 14:48:25
问题 I've been trying to fix a weird 403 Forbidden error I get when I try to go to one of my pages via WAMP on the localhost. After adding a rule to open up port 80 via Windows Firewall, which apache uses, I notice that this does NOT fix my problem and instead gives me a 403 forbidden for ALL my pages via localhost. Removing the rule I just made (which caused this to begin with) does not fix it. Disabling Windows Firewall does not fix it. Restarting my computer does not fix it. Any ideas? EDIT2: I

how to setup built-in webserver in PhpStorm

早过忘川 提交于 2019-11-27 14:39:48
问题 Set up: 1) OS - Win 8.1 2) WAMP 3) PhpStorm 7.1.3 I have been working on Dreamweaver for quite a long time and recently I ditched it because of its limited features. Setting up a local env using Dreamweaver is fairly simple and I had no problem with it. So I installed PhpStorm thinking it would quite easy to run my PHP web app in the same way when I was using DW, but When I try to run my web app in PhpStorm using its built-in webserver I get 502 Bad Gateway error, What I did is simply import

Running Python from a virtualenv with Apache/mod_wsgi, on Windows

不问归期 提交于 2019-11-27 13:56:30
问题 I'm trying to set up WAMP server. I've got Apache working correctly, and I've installed mod_wsgi without a hitch. Problem is, I'm using virtual environments (using virtualenv) for my projects. So obviously, mod_wsgi is having problems locating my installation of Django. I'm trying to understand how I can get mod_wsgi to work well with the virtualenvs. The documentation seems to think this isn't possible: Note that the WSGIPythonHome directive can only be used on UNIX systems and is not

WAMP: Missing http://localhost/ in urls , wrong wamp projects links

夙愿已清 提交于 2019-11-27 13:18:53
I have a problem with Wamp which never happened to me before, cannot find what's wrong. I have a few projects located in my www folder ( running windows 7 ). My hostfile has the line 127.0.0.1 localhost uncommented When I go to http://localhost/ or http://127.0.0.1/ and click on a project name like "mysite" from the main Wamp panel page, the link just points to "mysite" and not "http://localhost/mysite" Therefore I can't see any sites, what should I do ? Adeniji Olasunkanmi After thorough research, I found out the solution which worked for me as well.. open wamp/www/index.php. Change this line

How to allow remote access to my WAMP server for Mobile(Android) [closed]

这一生的挚爱 提交于 2019-11-27 12:50:45
I have created a website for mobile using PHP and jQuery. It works on my PC but now I want to test it with my Android device. How can I do that? How can I access a WAMP server's IP from my Android device? My mobile and PC are connected within the same router. Should I directly connect to my PC or can I do that through the router? I have searched about it and found that I have to change permissions in phpmyadmin.conf but still it does not work. Any ideas why doesn't it work? My httpd.config has something like this. <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny

Where is the web server root directory in WAMP?

♀尐吖头ヾ 提交于 2019-11-27 12:17:33
问题 Also is the web server root directory the place where you put your site files and later acces them with localhost/file_name in the browser? 回答1: If you installed WAMP to c:\wamp then I believe your webserver root directory would be c:\wamp\www , however this might vary depending on version. Yes, this is where you would put your site files to access them through a browser. 回答2: In WAMP the files are served by the Apache component (the A in WAMP). In Apache, by default the files served are

Installing Zend framework with WAMP server

青春壹個敷衍的年華 提交于 2019-11-27 11:43:04
问题 I'm trying to install Zend framework on a WAMP server but it is not working properly. I downloaded the Zend framework and created the folder in C:\wamp\library\Zend , and then in php.inc I have something like this: ; Windows: "\path1;\path2" ;include_path = ".;c:\php\includes:C:\wamp\library" Now when I try to run the sample blogger.php it is giving me the following error: Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in C: