Suoritettu

Use cURL to Obtain a Redirected URL and Store it in a Variable for Use on an Adult-Oriented Website

I have recently begun working on an adult-oriented website, www.smutscout.us. This website is designed around the idea of allowing visitors to view random adult videos from their favorite adult websites, such as [login to view URL], [login to view URL], [login to view URL], etc. To accomplish this goal so far, I have manually downloaded video identification numbers from the aforementioned sites, used PHP to manually store these numbers into arrays as strings, and then used PHP to echo a random string into a prewritten iframe code.

For example, for Pornhub, I would have something like the following:

<?php

$phrand = array(“1234”, “2345”, “3456”);

?>

<iframe seamless="seamless" src="[login to view URL]<?php echo $phrand[array_rand($phrand)]; ?>" allowfullscreen></iframe>

Here, Pornhub’s video identification number is a line of digits that appears at the end of their website URL. I tell PHP to take a random string of these digits and echo it into an iframe.

For Youporn, I would have something like this:

<?php

$yprand = array(“1234/this-is-an-example/”, “2345/this-is-another-example/”, “3456/this-is-the-last-example/”);

?>

<iframe src='[login to view URL]<?php echo $yprand[array_rand($yprand)]; ?>' frameborder=0 height='364' width='608' scrolling=no name='yp_embed_video' allowfullscreen></iframe>

Here, Youporn’s video identification “number” is a line of digits followed by the title of the video. For me, this is all in included into one string which I tell PHP to echo into an iframe.

Recently, I have noticed that both Pornhub and Youporn have URL redirects that allow viewers to type them into their browsers and be sent to a random video on the site. They are [login to view URL], and [login to view URL] Having access to these redirected URLs would allow me to stop manually writing arrays.

Therefore, I would like to hire someone who could use cURL in PHP to retrieve the redirected URLs from the aforementioned URLs so that I could store these redirected URLs into a variable which I could then modify to be used in an iframe.

To be clear: going to [login to view URL] for example would redirect you to [login to view URL], [login to view URL] would redirect you to [login to view URL] I want a script that can give me these redirected URLs.

Taidot: cURL, HTML, PHP

Näytä lisää: curl show all redirects, wget get redirect url, curl follow redirect php, curl follow redirect command line, php curl get redirect url, curl print redirects, curl follow redirect download file, curl redirect url php, adult oriented website, find redirected url php put variable, adult php website cms script escorts listing, blogs adult oriented, adult oriented joomla templates, curl post data url, adult oriented

Tietoa työnantajasta:
( 1 arvostelu ) Chester, United States

Projektin tunnus: #16444786

Myönnetty käyttäjälle:

amjohn

Greetings! I'm a full-time, full-stack PHP developer with 7+ years of web development experience. i read your whole description and also check that pornhub random link. yes i can get the video from that link and di Lisää

$100 USD 2 päivässä
(32 Arvostelua)
6.3

11 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

spiretech

Hello, I have gone through the post and yes; I will help you for sure to Use cURL to Obtain a Redirected URL and Store it in a Variable for Use on an Adult-Oriented Website [login to view URL] , https://www. Lisää

$100 USD 3 päivässä
(94 arvostelua)
6.9
costeldumitru

There is an option in cURL to get the last redirected URL. I created a prototype here: [login to view URL] It shows the redirected random URL and you can click it to visit.

$50 USD 1 päivässä
(71 arvostelua)
5.8
$25 USD 1 päivässä
(40 arvostelua)
6.1
travisyates31

Hi AS php expert I am very glad to see your post I can help you well if you give me your project. I have deep experience in CURL in php for scrap web sites. Please feel free contact me I can finish your project in Lisää

$100 USD 10 päivässä
(27 arvostelua)
5.3
TorarAbu

Just set true follow redirects in cUrl params and taht's all .

$61 USD 10 päivässä
(2 arvostelua)
2.3
Maclean007

Greetings!!!!!!! from Maclean Technologies Private Limited. Hello Dear Client, We have an experience more than 3 years with our domestic clients. We provide our best quality, assurance of project-delivery within ex Lisää

$61 USD 10 päivässä
(1 arvostelu)
0.0
pareshwebbleu

Greetings, We have gone through your requirement and would to take this opportunity to work on this project. Can you send a detailed requirement about your project. Feel free to browse through given below po Lisää

$100 USD 1 päivässä
(0 arvostelua)
0.0
inmortaltech

Hello, Hope all is going good..!! Your post caught my eyes and I think I'd be a great fit. Our portfolio: Portfolio [login to view URL] Overview of requirement specs is clear though a close discu Lisää

$61 USD 10 päivässä
(0 arvostelua)
0.0
$55 USD 10 päivässä
(0 arvostelua)
0.0
JuliusWt

This is easy: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '[login to view URL]'); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_RETUR Lisää

$15 USD 10 päivässä
(0 arvostelua)
0.0