PHP question

 
Post new topic   Reply to topic    Webmaster/SEO forum, WebPublishingForum forum Forum Index -> Web Design/Programming
Author Message
capebretoner



Joined: 18 May 2006
Posts: 167

PostPosted: Mon Jun 26, 2006 1:04 pm    Post subject: PHP question Reply with quote   

I have a picture that I want people to use via hotlinking, however I don't want them to know the direct path so I have written a script that will output it.
so the URL to teh pic is mysite.com/pic.php

Now I want to do something more, I want to log the URL of the sites that are grabbing the pic. Is there any code that I can use to do this? I am on a shared server if it makes a difference.

Thanks
_________________
Webmaster Blog | Free forums | Free Hit Counter
Back to top
                  
frankcow



Joined: 26 Jun 2006
Posts: 166

PostPosted: Tue Jun 27, 2006 1:11 pm    Post subject: Reply with quote   

this will automatically show up in your logs as a referrer, will it not?
_________________
get help with emarketing at the email marketing forum
discover new indie music
Back to top
                  
scolls



Joined: 31 May 2006
Posts: 242

PostPosted: Tue Jun 27, 2006 6:08 pm    Post subject: Re: PHP question Reply with quote   

capebretoner wrote:
I have a picture that I want people to use via hotlinking, however I don't want them to know the direct path so I have written a script that will output it.
so the URL to teh pic is mysite.com/pic.php

Now I want to do something more, I want to log the URL of the sites that are grabbing the pic. Is there any code that I can use to do this? I am on a shared server if it makes a difference.

Thanks


Doesn't matter that you're on shared hosting. Try using:

$referer=@$HTTP_REFERER;

Hope this helps.
_________________
WebWobot Search Engine & Forums | WebWobot PageTrade Multi-Exchange
Back to top
                  
capebretoner



Joined: 18 May 2006
Posts: 167

PostPosted: Tue Jun 27, 2006 11:03 pm    Post subject: Reply with quote   

Thanks there scolls

I have added that to the script and everything is working great.

I was making a VERY simple hit counter and now it is ready for the world.

I am going to be adding more to it in the near future like new background pics, and an easier way for people to customize the colour scheme

http://www.bluenoser.net/webmaster-tools/counter/
_________________
Webmaster Blog | Free forums | Free Hit Counter
Back to top
                  
scolls



Joined: 31 May 2006
Posts: 242

PostPosted: Fri Jun 30, 2006 8:20 pm    Post subject: Reply with quote   

Pleasure, man!

Let me know if you need anything else.
_________________
WebWobot Search Engine & Forums | WebWobot PageTrade Multi-Exchange
Back to top
                  
GlobalFusion



Joined: 18 Aug 2006
Posts: 7

PostPosted: Fri Aug 18, 2006 8:39 am    Post subject: Reply with quote   

Keep us informed of any updates. Wink
_________________
[:: DesignerFusion.com ::]
Back to top
                  
Display posts from previous:   
Post new topic   Reply to topic    Webmaster/SEO forum, WebPublishingForum forum Forum Index -> Web Design/Programming All times are GMT
Page 1 of 1

 

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Free postcard script 1 altyfc 147 Thu May 29, 2008 11:00 am
pakistanboy View latest post
No new posts groups script? 4 nazone 486 Wed Mar 28, 2007 9:18 am
seo View latest post
No new posts Which Adsense type makes more? 13 Damnz 874 Wed Nov 01, 2006 10:16 am
pfgannon View latest post
No new posts Choosing windows or Linux server 20 roxxy 1112 Wed Aug 09, 2006 9:14 pm
seo View latest post
No new posts Best search directory script 9 seo 1163 Sat May 20, 2006 2:55 pm
domainaddicted.com View latest post
 


Powered by phpBB © 2001, 2002 phpBB Group