PHP not running scripts for 2nd pc
Posted by:
Apokalupsis
(---.sd.sd.cox.net)
Date: February 27, 2012 06:38PM
I've successfully installed WAMP on my desktop pc. I get the green light, it's currently "Online".
I can create and run PHP files/scripts on my desktop (where WAMP is installed) just fine. These are simple scripts used for a PHP college class, nothing fancy (50-100 lines of code). However, I'd like to use my laptop to do the same, by accessing the WAMP installation on the desktop.
I have shared the wamp/www directory with the Homegroup. My laptop can navigate to this directory and run html files. However, when it comes to processing the .php scripts, it just prints out the comments, echo/print statements and even small bits of the code. This doesn't happen at all on the desktop where the script runs perfectly (and it is likewise, verified to run perfectly on shared servers I operate).
It's like PHP isn't running when I access it from the 2nd pc (the laptop), even though I'm connected through Homegroup and have read/write permissions. Why would it work on the desktop and not laptop?
I don't recall any option in the install to enable for networks or to use a particular IP (which I'm not entirely sure which to use, so I just ran the default install settings), so I'm not sure if that's the trouble.
Any help would be appreciated, thanks.
PS I don't need the 2nd pc to access phpmyadmin or WAMP settings or anything fancy. I just need it to run the scripts that I'm creating, and do so from the primary pc (desktop where WAMP is installed).
Would this be needing to setup a virtual host or something? If so, are there simple instructions to follow?
Edited 1 time(s). Last edit at 02/27/2012 06:46PM by Apokalupsis.