0

Pleas help me with this Glype proxy source code. I want to make a new proxy script but I have some big issue. When I access the website I get the styles and javascript src like this:

src="/images/"

And I want to change it with preg_replace or str_replace with src="http://example.com/images/"

I have tried this options:

$input = str_replace(PHP_EOL, '', $input);
    $input = preg_replace("/\r|\n/", "", $input);
    $input = str_replace('href="/images/', 'href="http://example.com/images/', $input);

but nothing change is still show me the website without styles.

hakre
  • 193,403
  • 52
  • 435
  • 836

0 Answers0