Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 21-11-07
purple's Avatar
Affiliate
 
Join Date: Aug 2003
Location: Bristol
Posts: 2,018
Thanks: 21
Thanked 11 Times in 9 Posts
purple is an unknown quantity at this point
  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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 21-11-07
tbp tbp is offline
Registered User
 
Join Date: Dec 2006
Posts: 1,999
Thanks: 0
Thanked 18 Times in 18 Posts
tbp is an unknown quantity at this point
  Re: Clook does not allow php includes???

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
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 21-11-07
Registered User
 
Join Date: Aug 2003
Location: Colchester
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
gerry180 is an unknown quantity at this point
  Re: Clook does not allow php includes???

Yup

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

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 21-11-07
purple's Avatar
Affiliate
 
Join Date: Aug 2003
Location: Bristol
Posts: 2,018
Thanks: 21
Thanked 11 Times in 9 Posts
purple is an unknown quantity at this point
  Re: Clook does not allow php includes???

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 21-11-07
DioBach's Avatar
.com
 
Join Date: Dec 2006
Location: Tenby, Wales, UK
Posts: 645
Thanks: 8
Thanked 0 Times in 0 Posts
DioBach seems to know their stuff
  Re: Clook does not allow php includes???

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 21-11-07
graeme's Avatar
Registered User
 
Join Date: Aug 2003
Posts: 246
Thanks: 0
Thanked 6 Times in 5 Posts
graeme is an unknown quantity at this point
  Re: Clook does not allow php includes???

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 22-11-07
purple's Avatar
Affiliate
 
Join Date: Aug 2003
Location: Bristol
Posts: 2,018
Thanks: 21
Thanked 11 Times in 9 Posts
purple is an unknown quantity at this point
  Re: Clook does not allow php includes???

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #8 (permalink)  
Old 22-11-07
tbp tbp is offline
Registered User
 
Join Date: Dec 2006
Posts: 1,999
Thanks: 0
Thanked 18 Times in 18 Posts
tbp is an unknown quantity at this point
  Re: Clook does not allow php includes???

Glad its working for you all
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Includes seekituk The Affiliate Marketing Lounge 11 04-04-07 02:34 PM
Gambling "Portal" Websites For Sale: Setup & Ready To Profit cashmirrors Domains & Websites For Sale 0 19-10-05 11:23 PM
Anyone anygood with xml, php, mysql and Affiliate Window AnnonnyMouse The Affiliate Marketing Lounge 1 23-09-04 11:00 AM
PHP or Browser Timeout? Barry Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 6 28-04-04 01:04 PM
PHP File Security for Includes bonedome Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 0 01-01-04 09:11 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7