|
||||
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 blog my IT Engineer LIFE at iCalvyn.com Last edited by calvynlee; 15-02-2008 at 06:10 PM. |
|
||||
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. |
|
||||
Quote:
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';?> Code:
<? include 'http://otherdomain.com/banner.php';?>
__________________
I blog my IT Engineer LIFE at iCalvyn.com Last edited by calvynlee; 16-02-2008 at 12:26 PM. |
|
||||
for a more simpler solutions you can use iframe to load the text links from your server...
Quote:
|
|
||||
Quote:
Iframe should be okie, but iframe not SE friendly... SE does'nt crawl iframe link
__________________
I blog my IT Engineer LIFE at iCalvyn.com |
|
||||
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 my IT Engineer LIFE at iCalvyn.com |
|
||||
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 |
|
||||
example:
Quote:
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 Quote:
__________________
I blog my IT Engineer LIFE at iCalvyn.com |
|
||||
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! |
|
||||
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... |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |

















