+ Reply to Thread
Results 1 to 1 of 1

Thread: PHP question regarding require()

  1. #1
    idlehands is offline x10Hosting Member idlehands is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    16

    PHP question regarding require()

    Hi,

    I'm trying to use a very simple PHP script on my site; however when I naviagte to the page the script does not operate. It's in the source, it just doesn't seem to want to work.

    I'm on intermediate PHP (upgrade pending) and I'm trying to use the require() function, but first i need to use the echo function.

    Thanks!

    Rob

    EDIT: If it helps the page source looks like this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>

    <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
    <title>comment test</title>


    </head>
    <body>

    COMMENT TEST<br>

    <br>

    <?php echo dirname(__FILE__); ?>
    </body>
    </html>
    Last edited by idlehands; 12-11-2007 at 02:55 PM.

+ Reply to Thread

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. Warning: noob! php require directory not found
    By boneless in forum Free Hosting
    Replies: 5
    Last Post: 10-22-2007, 08:25 PM
  3. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers