Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Hello world script is not working!?
Old 08-25-2009, 07:18 AM Hello world script is not working!?
Novice Talker

Posts: 11
Trades: 0
Hey all,

i'm really sorry that i bother you with such a question, but i've been sitting on this for quite a while now and i just don't know what to do anymore.
I've got here a very simple php code (my first one), embedded in a html body.
It is an exact copy of an example on the internet. But it doesn't work for me.
I tried it first on my local server with no luck, and than uploaded it to my
hosts server (http://www.8lions.com.au/helloworld.html), but still no notable effect.
I'm sure there is a simple answer for it, please help me.
It's such a frustrating start to php.

<html>
<head>
<title>Hello World!</title>
</head>
<body>
<?php echo "Hello World!"; ?>
</body>
</html>
__________________
It's all happening for a reason.
honorfield is offline
Reply With Quote
View Public Profile Visit honorfield's homepage!
 
 
Register now for full access!
Old 08-25-2009, 10:10 AM Re: Hello world script is not working!?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
By default, PHP is only parsed in files which have a .php extension to them. Your file has a .html extension.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-25-2009, 04:42 PM Re: Hello world script is not working!?
Novice Talker

Posts: 8
Name: Nick
Trades: 0
When you have a php code to be executed, there must be always your file extension .php

__________________
>
Please login or register to view this content. Registration is FREE
- play and have fun!
>
Please login or register to view this content. Registration is FREE
- no reciprocal, no registration, no money, just add quick!
katsas is offline
Reply With Quote
View Public Profile
 
Old 08-25-2009, 09:26 PM Re: Hello world script is not working!?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Originally Posted by katsas View Post
When you have a php code to be executed, there must be always your file extension .php
Technically not true, but true by default. A server can be configured to parse any type of file as PHP, but the default must be manually overridden.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Hello world script is not working!?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13328 seconds with 12 queries