I'm trying to change some fields of a website, what I want is to open this site in my address, but with some of its content changed.
I'm using file_get_contents
to open the site, but I have two problems:
background: url(.../.../s/images/ui/2011/cards-bg-RN.png)
0 1px no-repeat;
what you are looking for in the root of the original site. I would like to know if you can use cURL or another variable to open the site and manipulate certain fields, without having to save all the .css and .js files in the site.
ps; I am studying PHP at 3 months, and this is a project to present in my course, but I have already tried it in all the ways I know and can not do it correctly using a Regex.
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n"
)
);
$context = stream_context_create($opts);
;
$file = file_get_contents('https://urldosite.com/', false, $context);
echo $file
Okay, I made the page open, but it opens the wrong one because it looks for the .css inside my server, not the source server.
My main question is this: would I have to use file_get or cURL to open the site without it looking for .css and .js on my server? as if it were a frame?
To manipulate the content of the site I can try to turn myself alone!