Any help appreciated. There are no errors anywhere in these processes.
Permissions are correct.
In the action, the file is downloaded:
public function executeDownloadfile(sfWebRequest $request)
{
//download feed file
$connection = ssh2_connect($ftp_server, 22);
ssh2_auth_password($connection, 'user', 'password');
ssh2_scp_recv($connection, $filename, $path.$local_filename);
}
Using the way below, the file is not downloaded. However, if I "exit;"
in the getFile() function then the file is downloaded. WTF?
In the action
public function executeDownloadfile(sfWebRequest $request)
{
$category = CategoryPeer::retrieveByPk($request->getParameter('id'));
$category->getFile();
}
lib/model
class Category extends BaseCategory
{
public function getFile()
{
//download feed file
$connection = ssh2_connect($ftp_server, 22);
ssh2_auth_password($connection, 'user', 'password');
ssh2_scp_recv($connection, $filename, $path.$local_filename);
//exit; //uncommenting this will successfully download the file
}
}
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en