Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 49

Thread: .php headers?

  1. #11
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:


  2. #12
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by BoyBetterKnow View Post
    zip ur stuff and PM me
    I don't know how to do that lol but the thing I downloaded originally is a zip so you could just check that out.. http://www.habbville.com/site/files/...s/zips/L22.zip

    Thanks for helping, +rep btw and I'll owe you another .

    Edit: need to spread so I'll owe you two .

    I have PMed --ss-- btw given it is his layout and coding but he hasn't been online all day so I thought I'd see if anyone else could help.
    Last edited by Black_Apalachi; 18-07-2009 at 09:28 PM.

  3. #13
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Ohhh I've found something which I think is a step forward....

    Code:
    <!-- Start Main Content -->
    <?php
        $page = $_GET['p'];
          if(!isset($page))
          {
            include("main.php");
          }
          elseif
    
    (file_exists("". $page . ".php"))
          {
            include("" . $page . ".php");
          }
          else
          {
            print("The 
    
    page <b>" . $page . ".php</b> does not exist.");
          }
        ?>
    <!-- End Content -->
    ..only that this just makes it display:

    Code:
    " . $page . ".php does not exist.");       }     ?>
    I assume I'm supposed to edit this somewhere? I see it has the $_GET['p'] as you mentioned, but adding 'main.php' didn't make a difference...


    I always get stuck on something trivial whenever I attempt websites!
    Last edited by Black_Apalachi; 18-07-2009 at 10:08 PM.

  4. #14
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Quote Originally Posted by Robald View Post
    Ohhh I've found something which I think is a step forward....

    Code:
    <!-- Start Main Content -->
    <?php
        $page = $_GET['p'];
          if(!isset($page))
          {
            include("main.php");
          }
          elseif
    
    (file_exists("". $page . ".php"))
          {
            include("" . $page . ".php");
          }
          else
          {
            print("The 
    
    page <b>" . $page . ".php</b> does not exist.");
          }
        ?>
    <!-- End Content -->
    ..only that this just makes it display:

    Code:
    " . $page . ".php does not exist.");       }     ?>
    I assume I'm supposed to edit this somewhere? I see it has the $_GET['p'] as you mentioned, but adding 'main.php' didn't make a difference...


    I always get stuck on something trivial whenever I attempt websites!
    Why did nobody ask the main question? Do you have PHP installed?
    If you don't, either install it or upload the files to a server with PHP installed. Bish bash bosh.

  5. #15
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Trinity View Post
    Why did nobody ask the main question? Do you have PHP installed?
    If you don't, either install it or upload the files to a server with PHP installed. Bish bash bosh.
    Oh, where do you go to do that? :/ if it wasn't installed wouldn't i get a lot more problems?

  6. #16
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Quote Originally Posted by Robald View Post
    Oh, where do you go to do that? :/ if it wasn't installed wouldn't i get a lot more problems?
    Install something like xampp (http://www.apachefriends.org/en/xampp.html), then you get apache, php etc, easy peasy. Then go to http://localhost/whereveryouwant/index.php
    BOOSH.
    And no, you should only get a couple of problems because I'm guessing the majority of index.php is HTML.

  7. #17
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Trinity View Post
    Install something like xampp (http://www.apachefriends.org/en/xampp.html), then you get apache, php etc, easy peasy. Then go to http://localhost/whereveryouwant/index.php
    BOOSH.
    And no, you should only get a couple of problems because I'm guessing the majority of index.php is HTML.
    Ohhh so for script type things you need that? Okies thanks +rep

    I might just do the headers normally because this is only to edit their titles easily but it won't really be neccessary.

    Thankiess!!


    btw would that make the content work as well?
    Last edited by Black_Apalachi; 19-07-2009 at 02:04 AM.

  8. #18
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    This made no difference btw. sigh.

  9. #19
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Trinity View Post
    Why did nobody ask the main question? Do you have PHP installed?
    Rofl, I assumed he was building it on his web server or at least had php installed.


    Quote Originally Posted by Robald View Post
    This made no difference btw. sigh.
    You need to find the directory you have xampp in. If you installed it in C:/ go to C:/ and look for xampp. IF you can't remember then search for the folder called "xampp" and then find httdocs. Then delete everything inside httdocs and put ur files there. Then do what Trinity said and go to localhost/blah. Also, I often have problems when I install it, I have to go to xampp and manually start the mysql php etc.

  10. #20
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by BoyBetterKnow View Post
    Rofl, I assumed he was building it on his web server or at least had php installed.




    You need to find the directory you have xampp in. If you installed it in C:/ go to C:/ and look for xampp. IF you can't remember then search for the folder called "xampp" and then find httdocs. Then delete everything inside httdocs and put ur files there. Then do what Trinity said and go to localhost/blah. Also, I often have problems when I install it, I have to go to xampp and manually start the mysql php etc.
    Yay that must be all I need to do: move all my files into there. I have a folder called "htdocs" rather than "httdocs", is that the right one?

Page 2 of 5 FirstFirst 12345 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
  •