Welcome to Dream.In.Code
Become a PHP Expert!

Join 137,431 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,897 people online right now. Registration is fast and FREE... Join Now!




help with a really really EASY code.

 
Reply to this topicStart new topic

help with a really really EASY code.

b1exvq87
23 Jan, 2008 - 02:21 PM
Post #1

New D.I.C Head
*

Joined: 8 Dec, 2007
Posts: 11


My Contributions
Ok well i just started to learn PHP today, i mostly want to use php to make web basiced games im already having a hard time though

here is the code
CODE


<HTML>
  <HEAD>
  <TITLE> TEST PAGE </TITLE>
  </HEAD>
  <BODY bgcolor="#33CC33">
<?php
      echo("random text");
?>
     </BODY>
     </HTML>


can anyone tell my why isent " random text" isent showing up.
thanks.
and please not that i just started learning this about 40 min ago.

This post has been edited by Martyr2: 23 Jan, 2008 - 02:27 PM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Help With A Really Really EASY Code.
23 Jan, 2008 - 02:25 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,260



Thanked: 227 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Did you save the file with the extension .PHP? Does the host you are testing it on support PHP? Have you verified that PHP is installed correctly? smile.gif
User is offlineProfile CardPM
+Quote Post

dontKnowJava
RE: Help With A Really Really EASY Code.
23 Jan, 2008 - 02:28 PM
Post #3

D.I.C Head
**

Joined: 29 Sep, 2007
Posts: 213


My Contributions
how are you trying to display it? did you upload the file to your server or just looking at it in dreamweaver or something? does your file end in .php? another thing its probably better to use all lower case on html tags caps are not w3c compliant. it will still work but its not recommended.
User is offlineProfile CardPM
+Quote Post

b1exvq87
RE: Help With A Really Really EASY Code.
23 Jan, 2008 - 02:35 PM
Post #4

New D.I.C Head
*

Joined: 8 Dec, 2007
Posts: 11


My Contributions
thanks i forgot to put it into WAMP.
gosh this stuff is confusing..
Is there any good tuts that can teach me php or any books i can get that are begginer friendly.


This post has been edited by b1exvq87: 23 Jan, 2008 - 02:49 PM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Help With A Really Really EASY Code.
23 Jan, 2008 - 03:06 PM
Post #5

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,260



Thanked: 227 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Super easy beginner tutorial style book for PHP 5.

PHP 5: Your visual blue print

The book is not too thick, includes all the basics from installation right through code syntax. Examples at the bottom of every page showing you just the basics of how to use a particular function or get code to work.

They are not badly priced either. smile.gif
User is offlineProfile CardPM
+Quote Post

b1exvq87
RE: Help With A Really Really EASY Code.
23 Jan, 2008 - 03:13 PM
Post #6

New D.I.C Head
*

Joined: 8 Dec, 2007
Posts: 11


My Contributions
I will be using my php knowledge to build games btw
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/5/08 04:59AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month