fix URL from php script