ElectronikBean
Programmer
Hello all,
I am a complete newbie to PHP, I am used to coding in VB.
I have been told the following from my host provider after I requested the functionality of creating / managing ftp logon accounts.
"Thank you very much for your mail dated Mai 29, 2003
You can do this using PHP functions which allow you setup ftp on your
site. Unfortunaltely, I am unable to give you further assistance on the
matter. I suggest that you consult books, websites on the matter."
- so here I am.
The site is hosted on a linux server - which I know little (sad yes - I do plan to get into 'real' Operating Systems one day).
I discoverd the following morsel on fooassociates.com
$ftpStream = ftp_connect("my.ftp.server"
;
$loginResult = ftp_login($ftpStream, "username", "password"
;
if ($loginResult) {
print "Login Successful!";
}
ftp_quit($ftpStream);
yet I am still unsure that I am going in the right direction for this. Do I use write a bit of code like this into an executeable directory like a cgi?
It just does not make sense to me that I can access the whole site using the master ftp access, yet ftp creation/management for other users is a matter of scripting? :S
If you know how this is done, please help!
DataJag.
I am a complete newbie to PHP, I am used to coding in VB.
I have been told the following from my host provider after I requested the functionality of creating / managing ftp logon accounts.
"Thank you very much for your mail dated Mai 29, 2003
You can do this using PHP functions which allow you setup ftp on your
site. Unfortunaltely, I am unable to give you further assistance on the
matter. I suggest that you consult books, websites on the matter."
- so here I am.
The site is hosted on a linux server - which I know little (sad yes - I do plan to get into 'real' Operating Systems one day).
I discoverd the following morsel on fooassociates.com
$ftpStream = ftp_connect("my.ftp.server"
$loginResult = ftp_login($ftpStream, "username", "password"
if ($loginResult) {
print "Login Successful!";
}
ftp_quit($ftpStream);
yet I am still unsure that I am going in the right direction for this. Do I use write a bit of code like this into an executeable directory like a cgi?
It just does not make sense to me that I can access the whole site using the master ftp access, yet ftp creation/management for other users is a matter of scripting? :S
If you know how this is done, please help!
DataJag.