Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Don't use short tags, before you advise someone about using PHP, you should learn how it should be used.

    HTTP includes - just don't bother, use file_get_contents..

    PHP Code:
    <?php
    $site 
    file_get_contents"http://www.lol.com/testicals.php" );
    echo 
    $site;
    ?>
    Short tags basically means don't just do <? add "php" to the start tag, short tags are disabled on a lot of servers, they also interfere with XML, also the alternative to using short tags is proven faster.

  2. #22
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by Calon View Post
    Don't use short tags, before you advise someone about using PHP, you should learn how it should be used.

    HTTP includes - just don't bother, use file_get_contents..

    PHP Code:
    <?php
    $site 
    file_get_contents"http://www.lol.com/testicals.php" );
    echo 
    $site;
    ?>
    Short tags basically means don't just do <? add "php" to the start tag, short tags are disabled on a lot of servers, they also interfere with XML, also the alternative to using short tags is proven faster.
    Includes should be used in this situation though. If he used file_get_contents() with a relative path then it would echo the source code.

  3. #23
    Join Date
    Feb 2008
    Posts
    291
    Tokens
    0

    Default

    It still isnt working.
    If you look at page 1/2 my code is there, Maybe you could take a look at it?

  4. #24
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by -Adam View Post
    It still isnt working.
    If you look at page 1/2 my code is there, Maybe you could take a look at it?
    What's the url of the file?

  5. #25
    Join Date
    Feb 2008
    Posts
    291
    Tokens
    0

  6. #26
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    Quote Originally Posted by -Adam View Post
    No, the file you want the to be included in.

  7. #27
    Join Date
    Feb 2008
    Posts
    291
    Tokens
    0

    Default

    Huh, What do you mean

  8. #28
    Join Date
    Apr 2007
    Posts
    2,431
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jxhn View Post
    No, the file you want the to be included in.
    Thats the file, but he hasnt uploaded his actual site yet.

    [X] [X] [X]

  9. #29
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Pazza View Post
    Thats the file, but he hasnt uploaded his actual site yet.
    PHP doesn't work on computers that don't have PHP.. but simple to have guessed that? PHP Includes/file_get_contents and ANY other php function won't work unless you have PHP installed, just upload to your site for a mo and check that they work, then you can simply remove them.

  10. #30
    Join Date
    Feb 2008
    Posts
    291
    Tokens
    0

    Default

    None of this is working, Even when I upload!

Page 3 of 4 FirstFirst 1234 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
  •