dexter dexter - 1 year ago 60
PHP Question

how to change link from image url using php

i want to get image from google plus, url image like here

how to can replace
for full size

my code but not work

$file = preg_replace("/.+\\/\\/(\\d+).+/", "s0", $file);

Answer Source

The PHP str_replace function can do the trick.

$file = str_replace("s200-c", "s0", $file);

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download