* You are missing the square brackets around the [http]
* You do not have a proper URL in $p
Try this:
$ua->proxy(['http'], "http://$p");
...The words of the Prophets are written on the Facebook wall.
In reply to Re^5: Can't call method "proxy" on an undefined value at
by NetWallah
in thread Can't call method "proxy" on an undefined value at
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |