<?php
require_once '/in/Bg0hc';
$uri1 = new uri('ftp://jdoe:pass1234@my-server.com/public_html');
// Lets upgrade to an admin account under sftp, but stay in the current directory.
$uri1->chain()->
prepend('SCHEME_NAME', 's')->
replace('PORT', '22')->
replace('USER', 'admin')->
replace('PASS', 'secure-pass-123');
// NOTE: chain() methods always return the chain object, even if a method fails.
echo $uri1;
Warning: require_once(/in/Bg0hc): Failed to open stream: No such file or directory in /in/lv1L3 on line 3
Fatal error: Uncaught Error: Failed opening required '/in/Bg0hc' (include_path='.:') in /in/lv1L3:3
Stack trace:
#0 {main}
thrown in /in/lv1L3 on line 3
Process exited with code 255.
Warning: require_once(/in/Bg0hc): failed to open stream: No such file or directory in /in/lv1L3 on line 3
Fatal error: require_once(): Failed opening required '/in/Bg0hc' (include_path='.:') in /in/lv1L3 on line 3
Process exited with code 255.