Jump to content

PHP Server


CNT

Recommended Posts

http://www.wampserver.com/en/http://php.iis.net/http://www.php.net/I am confused. I did asked those questions before in here, then I took a break from Web Development. Now, I clean installed Win7 Pro. I decided to use VS2008 as my HTML Editor (since MS only has the Intellisense). I enabled IIS7.So, when I do Web stuff, I use VS2008 (I am not even doing ASP.NET yet). When I test the HTML/CSS, I use the "arrow" button (Debug). It brings up IE browser and runs everything. Upon clicking the "X" on the browser, it turns off the Debug and returns to VS2008. simple.When I want to upload the Web stuff to a hosting site, I use "Copy Website" from VS2008 and works great.I am going into PHP now (I want to use navmenu.php once and only use one line in every HTML page, in which every page must now end with .php). That's my question, how to install PHP Server?Yes, before the clean install, I download, screwed up everything on my laptop (to test. try things out, trails, etc). I did tried www.php.net (W3S recommended), didn't work. Also, tried the www.wampserver.com, didn't work either. Maybe it's because I have other things enabled "first" (like can't run two or three AV at same time). Honestly, the instructions with www.php.net weren't clear to me.This is where I really wish I could afford the https://www.jcxsoftware.com/jcx/buy/vsphp-2008. I can NOT afford it, so it's a NO for now.Another question... is http://php.iis.net website a MS official site? Is it free? Is it PHP Server or just PHP editor?I just want to download, install, reboot, then run it (without all kinds of configurationzzzz). I don't want to start this all over again (meaning download all kinds of trials, screwups, etc).OT: Why is the browser's Spellcheck not work? I download it from CNET. When it does check the spellings, when click "Change", it put the correct spelling over on other words, sometime right in between the incorrect word? Is it not compatible with IE9?Chuck
Link to comment
Share on other sites

Yes, iis.net is a Microsoft web site supporting IIS. When you download PHP you're not downloading a server or an editor, PHP is an application for an existing server. You install PHP and then configure IIS to use it. The PHP installer for IIS7 may do certain configuration tasks for you. I haven't gone through that process with IIS7 so I don't know what the actual steps are. There's a link on that page to the PHP Manager for IIS, and there's also a link for FastCGI. You'll need to use FastCGI, but I don't know if the PHP installer will install that and set it up or not. I recommend starting with the installer. The PHP manual also has instructions for installing PHP manually, without using an installer.http://www.php.net/manual/en/install.windows.iis7.php

Link to comment
Share on other sites

So, I need to download the INSTALLER version of VC9 x86 Non Thread Safe (I am using Win7 64-bit) :http://windows.php.net/download/Correct?Next question (after installing the above link), how to run PHP website from localhost? When I run HTML/CSS, I just click the "Debug" and it runs the browser and localhost. With PHP, do I have to open IE first and then type something in URL?Chuck

Link to comment
Share on other sites

I was suggesting using the installer on the iis.net site, since it's specifically for IIS7.

Next question (after installing the above link), how to run PHP website from localhost? When I run HTML/CSS, I just click the "Debug" and it runs the browser and localhost. With PHP, do I have to open IE first and then type something in URL?
Yes, you need to open a browser and point it to a URL that starts with http://.
Link to comment
Share on other sites

The website cannot display the pageHTTP 500Most likely causes:•The website is under maintenance.•The website has a programming error.What you can try:Refresh the page.Go back to the previous page.
Sigh... It works for my other pages, but not below. Is there something wrong in there? I placed both file in C:\inetpub\wwwroot\. Notice both file ends with .php. Also, it's everything I copy/paste, so there isn't anything you can assume I have something in else where...index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>	<title>Hey</title></head><body><?php include("menu.php"); ?></body></html>

menu.php

<?php<ul><li><a href="index.php">Home</a></li><li><a href="#">Something</a></li><li><a href="#">History</a></li><li><a href="#">Contact me</a></li></ul>?>

Link to comment
Share on other sites

Remove the PHP tags in your included file. The code inside the PHP tags is not PHP code.
I see. Now it works!New questions regarding CSS (yeah, OT now)... how to do the CSS? Stylesheet.php ?? I tried and it doesn't seem to get the CSS? I also googled, nothing helps. I have the menu navigation file as "nav.php" (with all the li and href, etc). Now, I need a CSS (call it style.css, since seems I will only have one CSS file). Can I use external CSS file or it would have to be internal (with "style" codename) in the nav.php?Chuck
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...