Hi everyone,
I've used PHP in school using Linux and Apache. Now, however, I'm trying to build and maintain a company website using PHP. We rent a webserver from Network Solutions (www.networksolutions.com) (PHP is supported) and I've built a rather plain website using FrontPage. I installed Apache 2.2 for Windows, MySQL, and PHP 5 on this computer (using the msi installer -- I tried the manual way first but without much of what most people would call "success") and ConTEXT. I made a simple test.php file (contents: <? phpinfo(); ?> ) but when I go to IE or Firefox to test it (localhost/test.php) all I get is the code. When I go to just localhost I get Apache's "It Works!" page so I'm thinking my Apache install works.
Anyway, as I started to try and figure out what the problem is, I wondered if there might be a much simpler solution for me (since I already have a webserver). From what I understand (which isn't much), I should be able to write PHP scripts on this computer, upload them to the webserver, and see the results in my browser. I was trying to get everything functional on this computer so I can test and debug without using our monthly bandwidth but with 400 gigs of it I think I'll be fine.
Any advice/opinions/suggestions would be greatly appreciated, thanks!
Edit: I forgot to mention -- our webserver runs Linux and all of our office computers and our server run Windows. I know Linux can deal with Windows but I'm not sure if Windows can handle Linux.
Edit again: Well, the problem was that I wrote <? phpinfo(); ?> instead of <?php phpinfo(); ?>. That fixes that, but I'm still wondering if I write a website in PHP and upload it to the webserver (something I still need to figure out how to do exactly) if everything will work the way it works when I test it on my machine. Ideas?