469,338 Members | 8,076 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

how to get redirected page url

Hi There,

i want to get link from redirected by php click counter


this page redirect to


i want to get print redirected page link
Aug 23 '09 #1
15 6684
6,050 Expert 4TB
It could possibly be in $_SERVER['HTTP_REFERER'] - try it out. How're you redirecting?
Aug 23 '09 #2
Thanks for your answer

but its not solved my problem

i want to add an option play song online on site where in online flash player i want to use click counter link so that if songs location change i do not need tp edit html just change location in click counter database file

for example here is link that i point in flash player in my site


but flash player does not accept this type link its required .mp3 link
i want to convert this link to original file location in online player file thats is play.php
Aug 23 '09 #3
i think no one in this forum thats can solve my problem and i should leave this forum
Aug 25 '09 #4
Dheeraj Joshi
1,123 Expert 1GB
Its up to you to leave the forum or stay in...

Dheeraj Joshi
Aug 25 '09 #5
8,651 Expert Mod 8TB
@Sheraz Aslam
if that link is an mp3 file, did you send the headers for a mp3 file (like audio/mpeg)?
Aug 25 '09 #6
please explain how i can set header for file in flash player.

i give its file location as below


as www.domain.com/songs/play.php?id=112 is click counter link on opening this url in brower downloading start
Aug 27 '09 #7
8,651 Expert Mod 8TB
send a http header
Expand|Select|Wrap|Line Numbers
  1. // sends a content-type header, regardless if itís correct or not
  2. $mime = "audio/mpeg";
  3. header("Content-Type: $mime");
Aug 27 '09 #8
not working

i work on it and get Server Header

HTTP/1.1 302 Found Date: Sun, 30 Aug 2009 11:19:14 GMT Server: Apache/1.3.37 (Unix) PHP/4.4.6 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/ mod_ssl/2.8.28 OpenSSL/0.9.7a X-Powered-By: PHP/4.4.6 Location: http://sound16.mp3pk.com/indian/thre....songs.pk).mp3 Transfer-Encoding: chunked Content-Type: text/html Took 0.107574 seconds to send a request to text/html

in header i want to get
Location: http://sound16.mp3pk.com/indian/thre....songs.pk).mp3

how i can get these value
Aug 30 '09 #9
1,654 Expert 1GB
@Sheraz Aslam
Honestly Sheraz, this is a very vague and confusing question.


What I understand from your conversation is that you want to redirect the browser from your URL to some other link (mp3 link), but you also want to make sure you count every time you redirect the browser to that target mp3 link. With this, you end up having a non-mp3 link, which is not supported by the flash player.

So if that's the case, I can help you. But I will not, as any help for this should be considered as promoting music piracy.

I'm pretty sure both mymaza.com (your site) and songs.pk (target) do not have legal rights of any of the songs listed there, so I am afraid, no help from my side.
Aug 30 '09 #10
its hindi music site not english songs thats comes in promoting music piracy.
Hindi Music is free of cost and you can download it every where free, there is no objection for its downloading.
Aug 31 '09 #11
Dheeraj Joshi
1,123 Expert 1GB
Hsriat is correct..... Even hindi songs are copyright protected they are not free.
You can see the copyright issues on the back cover of those CD's...

No music track is free...

Please ask questions, if one wants to help they will help . else not..

But better not to do copyright violations...

Dheeraj Joshi
Aug 31 '09 #12
Thanks for you answer. i have search it on many forum, on search engines but did not get any result that solve my problem.

but now i have solved my problem, it took some time but i have made a script that solved my problem and play songs from click counter
if any one need it, can contact me
Aug 31 '09 #13
1,654 Expert 1GB
@Sheraz Aslam
Too glad to know you have a solution to the problem. I would really appreciate if you can post that magic script here as well so that others, who have similar problem, can be helped.

Sep 1 '09 #14
sorry brother i could not give script at this time as 1stly i use it on my site then i can give it anyone

if you want to check it demo you can check it here

Sep 2 '09 #15

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Samuel | last post: by
1 post views Thread by Agoston Bejo | last post: by
9 posts views Thread by GL | last post: by
1 post views Thread by Jack | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.