extragere link si sa downloadeze ce contine acel link

Ai o întrebare legată de PHP? Incercăm să îi găsim soluţie. Sau poate doar vrei să publici un cod interesant.

Moderatori: Zamolxe, Moderatori

voodoo
PHPRomania Supporter
Mesaje: 25
Membru din: Lun Apr 19, 2010 6:02 pm
Localitate: Iasi
Contact:

extragere link si sa downloadeze ce contine acel link

Mesajde voodoo » Sâm Feb 18, 2012 12:27 am

Am un script php care imi genereaza urmatoarele:

HTTP/1.1 200 OK Server: nginx Date: Fri, 17 Feb 2012 22:03:24 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=5 Set-Cookie: PHPSESSID=q68n0nt4jd9ravf4cna4gp30s1; path=/ Expires: Mon, 27 Feb 2012 22:03:24 GMT Cache-Control: max-age=864000 Pragma: no-cache Set-Cookie: __g=z5rz-j6rj; expires=Wed, 15-Aug-2012 22:07:12 GMT; path=/; domain=.undomeniu.ro&nqURL=http://undomeniu.ro/faf10775e44e3ea1baf974c5bd806fb3:4f3edda0&th=http://undomeniu.ro/82eq4z/0.jpg

Cum pot sa fac ca scriptul sa extraga acel link si apoi sa downloadeze ce contine acel link.

Vreau sa zic ca acel link variaza tot timpul, doar &nqURL= si &th nu se schimba.
Ar trebui sa ma leg de alea doua, cu un explode ceva. Nu stiu...
Ma poate ajuta cineva cu un cod complet?



voodoo
PHPRomania Supporter
Mesaje: 25
Membru din: Lun Apr 19, 2010 6:02 pm
Localitate: Iasi
Contact:

Mesajde voodoo » Sâm Feb 18, 2012 12:07 pm


starlays
PHPRomania Supporter
Mesaje: 26
Membru din: Joi Aug 25, 2011 3:00 pm

Mesajde starlays » Lun Feb 27, 2012 12:58 pm


keen
Senior Member
Mesaje: 254
Membru din: Joi Ian 28, 2010 5:05 pm
Localitate: Br?ila
Contact:

Mesajde keen » Vin Mar 30, 2012 2:31 pm



Înapoi la “Cod PHP”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 21 vizitatori