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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Here

Status
Not open for further replies.

tekpr00

IS-IT--Management
Jan 22, 2008
186
CA
Hello Everyone.

I am wondering if you could help me why I could not get this to show up on my server

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" xml:lang="an" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title> Welcome to this page </title>
</head>

<body>
<h1> Hello World version 2! <h1>
<h1> You can learn many things from children. How much patience you have, for instance.</h1>
<br />
<p> Even with <span style="font-size: 150%;">some</span> decoration, it's still not very exciting.<p>
</body>
</html>

Also, I can see this on my local server. But on the remote server it gives me an error:
Not Found

The requested URL /~james/Hellov2.php was not found on this server.

Note I saved the file as Hellov2.php.
thanks for you help.
 
Hi

tekpr00 said:
Newbie Here
But you are not newbie on Tek-Tips forums so please
[ul]
[li]Use descriptive subject.[/li]
[li]Post your code between [tt][ignore]
Code:
[/ignore][/tt] and [tt][ignore]
[/ignore][/tt] TGML tags.[/li]
[li]Specify relevant details. ( In this case, operating system and web server. )[/li]
[/ul]


Feherke.
 
Hi Tek,

feherke is correct. we need a little more info on the problem.

There are a number of reasons you could be seeing the problem, such as:

1. you are using a file:// URL (I noticed there is no actual PHP to be executed in the example)
2. You have virtual servers and are using the wrong name

Cheers,
Scott
 
Install wampserver and then drag your file into c:\wamp\www

Then goto
and Done.


If you ever want to make sure php is working just save a php file with this line of code:

<?php phpinfo(); ?>

If php is not working usually it will download the script instead of running it...

Jason

[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top