Hello World don't work
Posted by: darkaria (---.dhcp.insightbb.com)
Date: September 29, 2009 05:33PM

I am trying to learn this stuff......I am doing the tutorials and the first thig it has me do is

/*


<html>
<head>
<title>Hello World</title>



</head>

<body>

<?php

echo 'Hello World.';

?>


</body>

</html>


*/

I save it as hello.php in my www folder, and when I click on it it launcheds a browser, but its black.......white nothing in it....the tutorial say it should say "Hello World" Mine does not........

now what?

Options: ReplyQuote
Re: Hello World don't work
Posted by: stevenmartin99 (86.40.60.---)
Date: September 29, 2009 06:04PM

open ur broser and type in [localhost]

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Hello World don't work
Posted by: darkaria (---.dhcp.insightbb.com)
Date: September 29, 2009 06:14PM

it opens my wampserver homepage?

Options: ReplyQuote
Re: Hello World don't work
Posted by: yfastud (Moderator)
Date: September 29, 2009 06:16PM


Options: ReplyQuote
Re: Hello World don't work
Posted by: darkaria (---.dhcp.insightbb.com)
Date: September 29, 2009 06:38PM

ok I made the folders named "prodject1" "website2"

in my www folder......

I guess in the website2 folder the index.html files is just a basic set of htlm tags?.......

what is in the index.php file?

I have a copy of a index.php that came with wamp in the www folder, but all it does when I click it is promp for a download.......when Iopen it in a text editor........it has....... what do I do with this?



Edited 1 time(s). Last edit at 09/29/2009 07:43PM by darkaria.

Options: ReplyQuote
Re: Hello World don't work
Posted by: toumimi (---.123.140-88.rev.gaoland.net)
Date: September 29, 2009 07:23PM

Can you remove your code please, too many lines !!

This is the content of Wamp homepage (configuration server, list of project, etc.)

You need to create a folder (project1) in www folder.
Then create an index.php file in that folder (project1/index.php)
Copy your code from your first post.
Open 'http://localhost/'
You will see your project under projects section.
Click on 'project1' to open url 'http://localhost/project1/' and see "Hello World".

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Hello World don't work
Posted by: darkaria (---.dhcp.insightbb.com)
Date: September 29, 2009 07:52PM

ok I think I understand now.........

I was just clicking the file from the www folder, and it gave me this url

C:\wamp\www\prodject1\hello.php

but I need this url

[localhost]

to get the php to work

Have I got that right now?


so for people reading this post with similar problems, you can't just click on the file......it gives you the wrong url, you need to go from [localhost] to get the php to process?



Edited 1 time(s). Last edit at 09/29/2009 07:57PM by darkaria.

Options: ReplyQuote
Re: Hello World don't work
Posted by: darkaria (---.dhcp.insightbb.com)
Date: September 29, 2009 08:00PM

once again thanks for all the help.......I am going to learn this......you people have been a great help.

any sugestions for online tutorials you people like, for folks trying to learn this stuff?

Options: ReplyQuote
Re: Hello World don't work
Posted by: yfastud (Moderator)
Date: September 30, 2009 12:57AM


Options: ReplyQuote


Sorry, only registered users may post in this forum.