Thread: Echo Problems

  1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Hi all..
    I'm just starting to learn PHP but even the "Hello Worlds" Script's don't run.
    If I do php.exe index.htm it runs but if i start it in my IE5 nothing appears..
    Here's the code :

    $myvar = "Hello World";
    echo $myvar;


    thnx in advance... laxin
  2. #2
  3. No Profile Picture
    rod k
    Devshed Newbie (0 - 499 posts)
    If your server isn't set up to execute php3 on .htm scripts it won't work. Either change the extension to .php3 or set a directive to tell your server to have php3 parse your .htm file.
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    >I'm having the same problem with >the "hello world!" program. Except, I >simplified the code to read:
    > <html>
    > <body>
    > <?php
    > echo "Hello World!";
    > ?>
    > </body>
    > </html>
    >I named the file test.php3.
    >If I double-click on it in NT explorer (I'm >running it on NT 4 with serv. pack 3) a >window pops up and parses the code >beautifully. But if I try and open it in >IE5, or NS4.6, I get a "page cannot be >found" error. I've made sure that it's in >the right spot, under my web's root >directory.
    >Anybody have any ideas?
    >Your help would be greatly appreciated.

    >Thank you.

    I posted the above message, but I just discovered the answer.
    It turns out that evidently somewhere in my IIS configuration, I had not made the root directory executable. I had already made the directory with the actual php3 script executable, but I guess that wasn't enough. I hope this will help anybody else that might get the same error.


    [This message has been edited by the_ocelot (edited 09-16-99).]

Similar Threads

  1. Replies: 2
    Last Post: January 30th, 2004, 09:11 AM
  2. mysql problem with joining tables , complicated!
    By toxical in forum PHP Development
    Replies: 6
    Last Post: January 27th, 2004, 03:43 PM
  3. echo problems??
    By liamtrop in forum PHP Development
    Replies: 3
    Last Post: January 3rd, 2004, 09:20 PM
  4. getting ip address from mac address
    By chibu68 in forum Networking Help
    Replies: 3
    Last Post: December 24th, 2003, 08:09 AM
  5. apostrophes in search field
    By jackass in forum MySQL Help
    Replies: 4
    Last Post: November 20th, 2003, 09:54 AM

IMN logo majestic logo threadwatch logo seochat tools logo