+ Reply to Thread
Results 1 to 8 of 8

 

Thread: Clook does not allow php includes???

  1. #1
    Affiliate

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,200
    Thanks
    52
    Thanked 36 Times in 27 Posts


    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
    Registered User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    1,998
    Thanks
    0
    Thanked 22 Times in 22 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
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Colchester
    Posts
    231
    Thanks
    30
    Thanked 17 Times in 16 Posts
    Yup

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

    Cheers

  4. #4
    Affiliate

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,200
    Thanks
    52
    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's Avatar
    .com

    Status
    Offline
    Join Date
    Dec 2006
    Location
    Tenby, Wales, UK
    Posts
    776
    Thanks
    15
    Thanked 16 Times in 10 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's Avatar
    Registered User

    Status
    Offline
    Join Date
    Aug 2003
    Posts
    321
    Thanks
    2
    Thanked 20 Times in 16 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
    Affiliate

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Bristol
    Posts
    2,200
    Thanks
    52
    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
    Registered User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    1,998
    Thanks
    0
    Thanked 22 Times in 22 Posts
    Glad its working for you all

+ Reply to Thread


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
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2