Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: PHP Includes

  1. #1
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default PHP Includes

    I have my site working on php includes and I created a page that has cutenews embeded on it and it works fine on there but it shows the error message.

    eg.
    ERROR! page not found!

  2. #2
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Try echoing out where you're looking for it.

    change; include to echo.

    You're probably looking in the wrong directory for it.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  3. #3
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    Ok sorry i forgot to mention I don't know PHP so make it easier

  4. #4
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Where is "Error: not found" generated in? Unless it's a PHP error, in which case it'll be "line XX in file.php", if so, paste that segment of the file please.

    (removing any sensitive data if required)
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  5. #5
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    heres the whats inside the document where when viewed in index.php?page=title.php

    Code:
    <html>
    Computer tutorials are posted here, they may be text, images or photos. If you need help and want to request a tutorial use the contact us form on the contact page! 
    <?PHP
    $category=2;
    include("/home/zipped/public_html/site/backend/show_news.php");
    ?>
    </html>
    Yes not all tags are there because they arn't really needed.

  6. #6
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Is..

    PHP Code:
    include("/home/zipped/public_html/site/backend/show_news.php"); 
    the line that's giving you the file not found error? If so, check it exists at that ^ location.

    Also I hate using absolute directories (unfortunately sometimes required), try using a relative path.
    Last edited by Heinous; 02-09-2009 at 11:44 AM.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  7. #7
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    http://zippedfiles.co.cc/site/index....e=tutorials_pc
    Username: zipped
    password: jack123

  8. #8
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by Shibby-Shabs View Post
    Cutenews works, and doesn't look like a cutenews error?
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  9. #9
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    I Know, it has to do with the site... any ideas..?

    Oh and incase you know, why when index.php is visited is it blank and not showing home.php?

  10. #10
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Either PM me or post the PHP code for index.php, and I'll have a look at both.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •