1. #1
    purple Affiliate
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,177
    Thanks
    46
    Thanked 36 Times in 27 Posts

    Clook does not allow php includes???

    I moved some sites to clook and when I try to use paid on results content units via php includes I get this message

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in

    I understand clook have disabled includes for security.

    I just wonder if any other affiliates use clook, and use php includes. I would be interested how you get around it

  2. #2
    tbp
    tbp is offline
    tbp is an unknown quantity at this point Registered User
    Join Date
    Dec 2006
    Posts
    1,998
    Thanks
    0
    Thanked 19 Times in 19 Posts
    Not familiar with the POR content units, but are they just sending HTML to the browser, rather than containing PHP code that needs to be executed?

    If they are just HTML, try the following which may be allowed:

    PHP Code:
    <?php 
    $file_contents 
    file_get_contents('http://url.com/'); 

    // display file 
    echo $file_contents
    ?>

  3. #3
    gerry180 is an unknown quantity at this point Registered User
    Join Date
    Aug 2003
    Location
    Colchester
    Posts
    136
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Yup

    Just tried that with a POR content unit on Clook and it worked.

    Cheers

  4. #4
    purple Affiliate
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,177
    Thanks
    46
    Thanked 36 Times in 27 Posts
    Quote Originally Posted by tbp View Post
    Not familiar with the POR content units, but are they just sending HTML to the browser, rather than containing PHP code that needs to be executed?

    If they are just HTML, try the following which may be allowed:

    PHP Code:
    <?php 
    $file_contents 
    file_get_contents('http://url.com/'); 

    // display file 
    echo $file_contents
    ?>
    Fantastic this works cheers

  5. #5
    DioBach .com
    Join Date
    Dec 2006
    Location
    Tenby, Wales, UK
    Posts
    773
    Thanks
    15
    Thanked 15 Times in 9 Posts
    Just a thought - were you calling the include using the full URL or a relative path? Sounds like an error I had before as I was calling the include from the full URL.

  6. #6
    graeme is an unknown quantity at this point graeme's Avatar Registered User
    Join Date
    Aug 2003
    Posts
    288
    Thanks
    0
    Thanked 8 Times in 7 Posts
    Thanks guys for this, I will update our Content Units to also offer file_get_contents() in future for the PHP option as well as includes() for people who hosts are blocking includes() on a URL for security.

  7. #7
    purple Affiliate
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,177
    Thanks
    46
    Thanked 36 Times in 27 Posts
    Quote Originally Posted by graeme View Post
    Thanks guys for this, I will update our Content Units to also offer file_get_contents() in future for the PHP option as well as includes() for people who hosts are blocking includes() on a URL for security.
    Graaeme thanks for doing this, the work around tbp suggest works with Clook, so now I can add even more content units keep up the good work mate

  8. #8
    tbp
    tbp is offline
    tbp is an unknown quantity at this point Registered User
    Join Date
    Dec 2006
    Posts
    1,998
    Thanks
    0
    Thanked 19 Times in 19 Posts
    Glad its working for you all

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. PHP Includes
    By seekituk in forum Affiliate Marketing Lounge
    Replies: 11
    Last Post: 04-04-07, 03:34 PM
  2. Gambling "Portal" Websites For Sale: Setup & Ready To Profit
    By cashmirrors in forum Domains & Websites For Sale
    Replies: 0
    Last Post: 20-10-05, 12:23 AM
  3. Anyone anygood with xml, php, mysql and Affiliate Window
    By AnnonnyMouse in forum Affiliate Marketing Lounge
    Replies: 1
    Last Post: 23-09-04, 12:00 PM
  4. PHP or Browser Timeout?
    By Barry in forum Programming
    Replies: 6
    Last Post: 28-04-04, 02:04 PM
  5. PHP File Security for Includes
    By bonedome in forum Programming
    Replies: 0
    Last Post: 01-01-04, 09:11 AM

Bookmarks

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.0 RC2