I learned that you can use an url for things like filesize(),filetype(),isdir() and etc.
This url is: ftp://user:password@example.com/pub/fichier.txt
But, I am wondering what if your username is lets say sjobs@apple.com
Would i write the url like this:
ftp://sjobs@apple.com:funpassword@ftp.apple.com/pub/ficher.txt
Also, CPanel on shared hosting does not appear to give the option to connect without an @ symbol.
In other words, how do I login via ftp://user:password@example.com when the username is dog@cat.com.
Thanks Cyrus
From http://www.ietf.org/rfc/rfc1738.txt
Use
rawurlencode()
- see Example #1