This topic is locked

Only Source in Browsers

4/15/2009 1:11:27 PM
PHPRunner General questions
A
Abes author

When trying to view my newly generated Index.htm in the browser, IE and Firefox, all I see is the source code. I am on a XP machine with Xampp installed, everything else works fine. Where have I gone wrong?

Thanks - any help will be appreciated. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=11563&image=1&table=forumtopics' class='bbc_emoticon' alt=':o' />

vin7102 4/15/2009

Hi Abes,
Did you make sure that your output source is set to the C:\xampp\htdocs folder of xampp when building your project? And also, make sure that apache and mysql are running in xampp!
Regards,

Vince

A
Abes author 4/16/2009

Hi Abes,

Did you make sure that your output source is set to the C:\xampp\htdocs folder of xampp when building your project? And also, make sure that apache and mysql are running in xampp!
Regards,

Vince


Thanks Vince, but:
Apache and MySQL are both running as services

I made my output dir C:\xampp\htdocs\output

Still just source in browser.....
IE looks for http://localhost/PHPRunner/index.htm as the URL - is this correct?

Could the functioning of IIS have an effect as I have to stop the service when starting my machine else Apache wont start (IIS uses port 80 and Apache wants it), IIS is set on automatic and later (and now) I see it has started although the Apache service is still running?

vin7102 4/16/2009

Hi Abes,
Actually, I'm using firefox and my projects open with http://localhost/login.php, and I just tried it with IE and it does the same.
This is the code in my index.htm file which is right in the C:\xampp\htdocs folder:

<html>

<meta http-equiv=refresh content="0;url=login.php">

</html>


as for IIS, I have disabled it all together due to some other issues it was causing so that may also be a factor.
What happens when you just type in "localhost" in the browser's address nav bar?

A
Abes author 4/16/2009

Vince
My index.htm has got "menu.php" where you have got "login.php"
Typing "localhost" in the nav bar brings up Xampp interface where it shows everything (PHP, MySQL) to be installed and activated.
Typing "http://localhost/menu.php"; gives me code 404 error (URL not found) with the regular Apache signature at the bottom.

J
Jane 4/16/2009

Hi,
if your files are in the C:\xampp\htdocs\output directory use this URL:

http://localhost/output/menu.php

A
Abes author 4/16/2009

Hi,

if your files are in the C:\xampp\htdocs\output directory use this URL:

http://localhost/output/menu.php


Thanks Jane - that did it!
Vince - thanks for your persistence, I think your questions got the mouse to come out of its hiding place!