I am a PHP apprentice. And I have a problem I can not solve with my meager knowledge. Indeed, I want to open a page just by submitting my form. And every time I receive this message: "failed to open stream: A connection attempt failed because the connected party did not properly......". Would there be a reason for that? I remind you that I am fairly new to the language. This is my code :
My "You page" :
<?php
$query=file_get_contents('https://www.youtube.com/watch?v=SrqDqqy8Yok');
echo($query);
?>
And my form is just calling this page.
This is the entire answer when i want to submit my form :
Warning: file_get_contents(http://www.youtube.com/watch?v=XiFrfeJ8dKM): failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdocs\stpnet\You.php on line 2