Jump to content

Ftp Acess via php script ?


new_matrix

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.