Question about PHP

S

Steve Grosz

I'm trying to get started with SQL and PHP. I've installed my SQL server,
and I thought PHP was installed correctly as well. But when I try a simple
PHP file, the PHP line isn't displayed in the browser window. This was just
a simple file edited in notepad and saved to the hard drive of my server.

Here's my question. Does the PHP file need to be published to my Wk2 server
with the FP2002 extensions in order for it to work correctly?

Steve
 
J

Jack Brewster

Steve,

PHP and the FPSE have no relation at all. You can easily have one without
the other.

A great test for your PHP installation is to put a simple phpinfo page into
your site (which you may have already done, but just making sure).
Basically all that's needed is:
<?php
phpinfo();
?>

and save it as phpinfo.php (or any filename you choose).

When loaded from your web server, it should provide you with details about
your server and PHP environments. If instead all you see is the code of the
page in your browser, PHP is not configured correctly. You need to do a few
things within your web server confguration to ensure that PHP runs
correctly. Many times, just running the PHP installer is not good enough to
get IIS configured, you'll still need to make some changes manually.
Instructions are different based on your web server but you can find install
instructions in the documents folder in your PHP installation. I'm sorry I
can't be more specific, but this is one case where RTFM really holds true.

Once you're sure that PHP is running correctly within your server, then you
can move on to connecting to SQL.

Good luck!
 
S

Steve Grosz

I will take a look for that information when I get home,
thanks. Just curious what to look for within IIS.
Anyone???

Thanks!
Steve
 
S

Steve Grosz

Thanks for that site, but it doesn't tell me what to check
in IIS itself. Just what services are running.

Steve
 
T

Thomas A. Rowe

If you are talking about your local PC/server with IIS and SQL Server, MS
doesn't provide any support for PHP. However you can run PHP, but you will
have download and install the PHP engine from http://www.php.net/


--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top