Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2004, 08:25 AM
Authorized User
 
Join Date: Aug 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is this possible

Hi there, I am a reasonable ASP coder but have been wanting to try my hand at PHP, now is it possible to have another web server such as apache server PHP type pages resident on the same system that I currently have PWS serving ASP type pages, bearing in mind that both tend to use the http://localhost area to serve pages from.

 
Old April 19th, 2004, 06:14 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I don't know much about PWS, but it is possible to have both exist on the same machine. If you want to use PWS server for both you'd configure it to use the PHP executable to process .php extension files. If you want to install Apache in the same enviornment, configure it to listen on a different port than the default port 80. Then all you have to do is type in the port with the address http://localhost:8080/, for port 8080.

hth,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
 
Old April 22nd, 2004, 02:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can have both pages served at the same time, as long as you configure your webserver properly. Each file type will have it's own file extension. The webserver will send all .asp files to ASP and all .php files to PHP. You can't, however, configure the webserver to send the output of PHP to ASP (or vice versa) before sending the output to the user. It's one or the other.


Take care,

Nik
http://www.bigaction.org/









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.