-
21-11-07 #1
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
-
21-11-07 #2
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;
?>
-
21-11-07 #3
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
-
21-11-07 #4
Affiliate
- Join Date
- Aug 2003
- Location
- Bristol
- Posts
- 2,177
- Thanks
- 46
- Thanked 36 Times in 27 Posts
-
21-11-07 #5
.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.
-
21-11-07 #6
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.
-
22-11-07 #7
Affiliate
- Join Date
- Aug 2003
- Location
- Bristol
- Posts
- 2,177
- Thanks
- 46
- Thanked 36 Times in 27 Posts
-
22-11-07 #8
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
-
PHP Includes
By seekituk in forum Affiliate Marketing LoungeReplies: 11Last Post: 04-04-07, 03:34 PM -
Gambling "Portal" Websites For Sale: Setup & Ready To Profit
By cashmirrors in forum Domains & Websites For SaleReplies: 0Last Post: 20-10-05, 12:23 AM -
Anyone anygood with xml, php, mysql and Affiliate Window
By AnnonnyMouse in forum Affiliate Marketing LoungeReplies: 1Last Post: 23-09-04, 12:00 PM -
PHP or Browser Timeout?
By Barry in forum ProgrammingReplies: 6Last Post: 28-04-04, 02:04 PM -
PHP File Security for Includes
By bonedome in forum ProgrammingReplies: 0Last Post: 01-01-04, 09:11 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks