472,353 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

how to get redirected page url

Hi There,


i want to get link from redirected by php click counter


http://www.mymaza.com/songs/pakistani_pop/download/pakistan.php?id=168

this page redirect to

http://sound5.mp3pk.com/pakistani/sajjad_ali/babia/babia1(www.songs.pk).mp3

i want to get print redirected page link
Aug 23 '09 #1
15 6949
Markus
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

http://www.mymaza.com/songs/pakistan...tan.php?id=168

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...

Regards
Dheeraj Joshi
Aug 25 '09 #5
Dormilich
8,658 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
@Dormilich
please explain how i can set header for file in flash player.

i give its file location as below

http://www.domain.com/flash.php?url=...lay.php?id=112

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
Dormilich
8,658 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/5.0.2.2635.SR1.2 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
hsriat
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
@hsriat
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...

Regards
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
hsriat
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.

Regards
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


http://www.mymaza.com/songs/play.php...emix.php?id=10
Sep 2 '09 #15

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

Similar topics

1
by: Samuel | last post by:
Is there anyway to get IE to cache a redirected image? For example, I have an page with the following: <html><body> <img...
1
by: Agoston Bejo | last post by:
I understand that Request.ServerVariables("HTTP_REFERER") is empty when the page is redirected. Does that mean that it is also empty when...
3
by: Marco | last post by:
Hi All Could anyone help me, pls? I am trying to run a .net application from my computer. This app is in another server. Everytime I try to...
3
by: Vikrant | last post by:
Friends, Due an application (old) install program problem, Under AIX I could only create DB2 instance, I could also catalog it. Its complex...
9
by: GL | last post by:
I am running DB2 8.1.1 on AIX 5.1 Having a problem with a redirected restore. Once into the restore continue phase, I immediately get the...
1
by: Jack | last post by:
Is it possible to find out what the tablespace definitions are of database you are about to build using a redirected restore? What I am wanting...
4
by: darrel | last post by:
doable? Here's what we have: If a page is not found on our site, we redirect to the custom error page. I'd like to be able to grab the bad...
4
by: Opa | last post by:
Hi, I would like to know if there is an event that will tell me when a page is being redirected and also the url of where the page is being...
2
by: Steve | last post by:
Hi All I have an asp.net 2.0 web with a standard login control I want to pass some extra variables to the redirected page after the successful...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.