Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Question

Status
Not open for further replies.

grabrail

Technical User
Aug 15, 2001
269
GB
Hi

I have installed Apache 2 on my machine, and configured PHP

However whenever I write an html file which references a php file, it tries to open the file in Dreamweaver rather than displaying results in the browser

where have I gone wrong.

cheers
 
Are you running the HTML file through the web server, or locally? PHP is only processed if you're in the web server. If the file URL starts with file:\\, you're accessing the pages locally. They need to have a URL that begins with then maybe 127.0.0.1 or localhost, or something like that.

Lee
 
Cheers trollacious, I was accessing via unc path rather than url.

Sleipnir214 I am currently learning php and the example html file i have begins with

<form action="welcome3.php" method="get">

Thats what i mean by html file referencing php file

Yes Yes I know I am at the beginning of my learning curve.

:)
 
grabrail:
That's why I asked -- there were too many interpretations of your sentence. I would have phrased the description of your example as "an HTML page with a form that submits to a PHP script".


In general, I advice those who are just beginning to learn PHP to not use a complex IDE like Dreamweaver. It will, if you let it, do too much for you and can hinder your learning PHP. In particular, folks who are learning PHP by programming through Dreamweaver tend to lag a bit in getting used to the layout of the PHP online manual:


Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top