Results 1 to 9 of 9
  1. #1
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    Allow Remote Execution
    How can I get my Unix host to allow remote execution (using Goldencan)?

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in .... etc etc (huge error here)
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  2. #2
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    I think you can use curl to get around this (for php) - find out from your host if curl is enabled first. I provided a solution to Herb when he had a similar problem (but I think his was the fopen that was the problem for him) - it seemed to fix it for him.

    cheers
    Oscar
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  3. #3
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    ok, yes herb pm's me earlier & asked what my problem was, I have yet to hear back again..

    anyway I have found the following info online from an archived post at their support for my host which is Dreamhost (im unnsure if this is still current but I could try first with your workaround otherwise I will contact them):

    Do you have curl installed in your php?
    We sure do! It should just work with your php scripts, including php-cgi.
    And here's the CURL Information:

    libcurl 7.9.5 (OpenSSL 0.9.6c) (ipv6 enabled)

    Last updated: May 01, 2003.

    User Post (2004-02-26 13:35:18 by alexlam)
    /usr/bin/curl
    User Post (2003-11-29 08:07:09 by wireles1)
    Is there an aboslute path to Curl?
    there is an interesting post here about someone else wanting to use external links with Dreamhost

    here is my hosts official support page on CURL

    my problem is how to integrate all this with the GC php "get data" feature...
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  4. #4
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    Herb posted the solution on one of the posts here in GC - I can't remember if it was the Get data php code that he used - I'm not in Oz at the moment an so I don't have the actual code I sent him. Perhaps if you posted the code as is here (what you would've normally used in php which is causing the error and I can see the php code you're using) I can whip something out on the fly.

    Found the post - http://forum.abestweb.com/showthread.php?t=80421

    cheers
    Oscar
    Last edited by oscar; January 20th, 2007 at 07:48 AM. Reason: found post from Herb
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  5. #5
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    hi oscar,

    I ran that code from that thread and it does work but there is one problem, that code is for a store and this particular page is a multistore coupon/pricedrop page. I will use this store code though for another site but I would still like to get this code below to work which is for this multistore coupon/pricedrop page:

    <?php
    $SID="xxxxxx";
    $IPAddress = urlencode($_SERVER['REMOTE_ADDR']);
    $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']);
    $PageURL = urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']);
    $URL = "http://si.goldencan.com/GetData.aspx?SID=".$SID;
    $URL = $URL.'&IPAddress='.$IPAddress;
    $URL = $URL.'&UserAgent='.$UserAgent;
    $URL = $URL.'&PageURL='.$PageURL;
    include($URL);
    ?>
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  6. #6
    notary sojac Herb ԿԬ's Avatar
    Join Date
    January 18th, 2005
    Location
    Central/Western NY State
    Posts
    7,741
    PM sent, but it is the same as shows above. And thanks to Oscar again for working this out for me.

    I've managed to use this for a single coupon integration but not sure how well it works or if it helps with the serps. Just tried it yesterday. It looks normal.

    Still need search function to work but that's another story.

    Glinted: here I'm talking about a modification to the above code so it can be aimed to a specific item or subject, not the simple searchbox that is offered.

  7. #7
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    ok thanks, i got your pm. im off to sleep now but will try this out in the morning cheers!
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  8. #8
    ABW Ambassador
    Join Date
    November 1st, 2005
    Posts
    2,064
    Hey, I think I must have grabbed the wrong SID yesterday and is the reason I got a store. I got a fresh start this morning & I now see this code works on every type of Getdata store by the looks including single store, single merchant coupon & multi merchant coupon (just by changing the SID), thanks a lot, this is been very helpful.
    Hosting Discounts from Professional Rates Hosts - Deals and Coupons on Domain Names from GoDadday, Namecheap, Domain.com and more top registers.

  9. #9
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    Glad it worked out.

    cheers
    Oscar
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  10. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Remote OPM's?
    By CGard12 in forum Midnight Cafe'
    Replies: 4
    Last Post: January 4th, 2014, 08:20 PM
  2. Stay of Execution....
    By cowboysfan in forum Connecticut Affiliate Tax
    Replies: 1
    Last Post: May 8th, 2010, 02:10 PM
  3. Remote Reporting from LS?
    By KGP in forum Rakuten LinkShare - LS
    Replies: 6
    Last Post: July 27th, 2006, 11:27 PM
  4. Perl execution limit.
    By jazzylee77 in forum Cusimano.com Scripts
    Replies: 9
    Last Post: August 6th, 2005, 08:16 PM

Posting Permissions

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