Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

Thread: hi Coder here! I need some coding help

  1. #1
    Join Date
    Jul 2006
    Location
    LittlePenang.com
    Posts
    1,778
    Rep Power
    191

    hi Coder here! I need some coding help

    hi all coder, is me again,a coding noob.

    I have create a banner or link, the banner stated "created by URL LINK"

    This banner will be install in... lets said a theme, a wordpress theme that i create. and will be distribute at alot website.

    on the URL LINK, i wish to change it in future, as time goes by...
    How to I add in a caller, that able to change the link, once i change in my website. it may point to a page that i create, and once i change the link, all will follow

    I have made as below
    Code:
    <div>Created by<a href="http://www.iCalvyn.com">iCalvyn.com</a>
    </div>
    I am having this banner on top of my current blog, have have a look if you no idea.
    Last edited by calvynlee; 15-02-2008 at 06:10 PM.
    I blog IT Engineer LIFE at iCalvyn.com

    DreamNetwork If you don't mind Pirated

  2. #2
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    err... this very tricky as the future website will be hosted at some other server and domain... unless those website that using your theme have something like a trigger/ping page that you can ping unto for triggering the url update...

    on second though...i just remember i've been looking for the same thing few years ago... lucky it still in my bookmark.... here the url that i refer too... WWW FAQs: How do I include one HTML file in another?

    the javascripts include look more stealth than the php include... but be sure it will cost extra bandwidth to your server.... i never implemented it back then coz its not that practical....
    Last edited by iamfreelancer; 16-02-2008 at 04:08 AM.

  3. #3
    Join Date
    Feb 2008
    Location
    Damansara
    Posts
    30
    Rep Power
    0
    Can't a javascript do the trick?
    and the banner called the javascript from your server.
    You can update the script at anytime.

  4. #4
    Join Date
    Jul 2006
    Location
    LittlePenang.com
    Posts
    1,778
    Rep Power
    191
    Quote Originally Posted by nyunyu View Post
    Can't a javascript do the trick?
    and the banner called the javascript from your server.
    You can update the script at anytime.
    yeah, i heard other recommended using js, does any website have this kind of guide?



    iamfreelancer > the bandwidth cost not much right, since it is only text link and not graphical link

    I have try the link you provide, it is helpful, and i have try it in the same directory, it works
    Code:
    <? include 'banner.php';?>
    but when i change to

    Code:
    <? include 'http://otherdomain.com/banner.php';?>
    this could not work, some thing wrong in my code?
    Last edited by calvynlee; 16-02-2008 at 12:26 PM.
    I blog IT Engineer LIFE at iCalvyn.com

    DreamNetwork If you don't mind Pirated

  5. #5
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    Quote Originally Posted by calvynlee View Post

    Code:
    <? include 'http://otherdomain.com/banner.php';?>
    this could not work, some thing wrong in my code?
    try this... i think you forgot the php word
    <?php include 'http://otherdomain.com/banner.php'; ?>

  6. #6
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    for a more simpler solutions you can use iframe to load the text links from your server...

    <iframe
    src ="http://yourdomain/banner.html" width="100" height="40">
    </iframe>
    for more i frame property -->> HTML IFRAME TAG

  7. #7
    Join Date
    Jul 2006
    Location
    LittlePenang.com
    Posts
    1,778
    Rep Power
    191
    Quote Originally Posted by iamfreelancer View Post
    try this... i think you forgot the php word
    <?php include 'http://otherdomain.com/banner.php'; ?>
    cant works too....any other solution?

    Iframe should be okie, but iframe not SE friendly... SE does'nt crawl iframe link
    I blog IT Engineer LIFE at iCalvyn.com

    DreamNetwork If you don't mind Pirated

  8. #8
    Join Date
    Feb 2008
    Location
    Damansara
    Posts
    30
    Rep Power
    0
    Quote Originally Posted by calvynlee View Post
    cant works too....any other solution?

    Iframe should be okie, but iframe not SE friendly... SE does'nt crawl iframe link
    make sure your "other domain" allow hotlinking

  9. #9
    Join Date
    Jul 2006
    Location
    LittlePenang.com
    Posts
    1,778
    Rep Power
    191
    Quote Originally Posted by nyunyu View Post
    make sure your "other domain" allow hotlinking
    i have googling and understand what is hotlinking...
    but so far infor there are prevent hot linking, did not show allow hot linking...

    any one have idea how to allow it?
    I blog IT Engineer LIFE at iCalvyn.com

    DreamNetwork If you don't mind Pirated

  10. #10
    Join Date
    Jan 2003
    Location
    KL
    Posts
    95
    Rep Power
    198
    allow_url_fopen in the php config must be enabled on the target server. (Assuming server is NOT a Windows machine running PHP < 4.3.0 )

    You can read more here
    PHP: Filesystem - Manual

  11. #11
    Join Date
    Jul 2006
    Location
    LittlePenang.com
    Posts
    1,778
    Rep Power
    191
    example:

    -----Other people website with my code:-----
    Create by iCalvyn.com


    this code install in alot people website, and one days, I change my one name to robert, and i have another new website name iRobert.com so want to change all the link in other people website which have my code to


    -----Other people website with my code:-----
    Create by iRobert.com
    without changing the code in their website
    I blog IT Engineer LIFE at iCalvyn.com

    DreamNetwork If you don't mind Pirated

  12. #12
    Join Date
    Sep 2005
    Location
    in my body lar...
    Posts
    1,325
    Rep Power
    0
    have you tried the javascript version of the links.... last time it works for me.. but i deleted my code coz my customer don't like that ....

  13. #13
    Join Date
    Aug 2004
    Location
    Kuching, Sarawak
    Posts
    27
    Rep Power
    0

    Guna CURL?

    Ada server tak benarkan include external file, try curl...

    <?
    $domain="http://www.icalvyn.com/footer.php";
    $homepage="temp.txt";
    $ch = curl_init($domain);
    $fp = fopen($homepage, "w");

    curl_setopt($ch, CURLOPT_FILE, $fp);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_exec($ch);
    curl_close($ch);

    $contents = fread($file,filesize($homepage));
    fclose($fp);
    echo $contents;
    ?>
    http|//www.jelajahborneo.uni.cc
    Semuanya Bermula Di Sini!

  14. #14
    Join Date
    Aug 2004
    Location
    Kuching, Sarawak
    Posts
    27
    Rep Power
    0
    Javascript lebih sesuai.
    http|//www.jelajahborneo.uni.cc
    Semuanya Bermula Di Sini!

  15. #15
    Join Date
    Jun 2001
    Location
    Mystic Kingdoms
    Posts
    2,749
    Rep Power
    272
    Quote Originally Posted by webek View Post
    Javascript lebih sesuai.
    javascript doesn't counted as backlink..
    since it's document.write(); function.. technically.. not a link. Same as iframe too..
    such a waste rite? Didnt help on pagerank increment.
    so that's the problem.

    for me.. it's better put the real link at footer.php.. there might be 1 or 3 or 50 people will remove your link.. but still more you got.

    But in case of changing domain / site.. nothing you can do lah...

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Freelance Php Coder
    By emmanuel in forum Website Programming
    Replies: 3
    Last Post: 07-07-2009, 09:41 AM
  2. PHP Coder
    By jalil in forum Looking To Hire
    Replies: 2
    Last Post: 12-02-2009, 03:56 PM
  3. Need a Wordpress theme coder?
    By CypherHackz in forum Advertise Your Services
    Replies: 0
    Last Post: 09-06-2007, 08:23 PM
  4. freelancer.. php coder & web designer
    By Filuren in forum Job Vacancies
    Replies: 0
    Last Post: 04-03-2005, 03:27 PM
  5. PHP Coder For Hire..
    By _iLLegal in forum Website Programming
    Replies: 14
    Last Post: 27-06-2004, 11:50 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
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37