Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

@ftp_connect causes 'PHP.Core.PhpException' in PhpNetCore.dll #80

Open
luminalpark opened this issue Apr 3, 2017 · 1 comment
Open

Comments

@luminalpark
Copy link

luminalpark commented Apr 3, 2017

Hi,

maybe it's my system, but when I try to execute a ftp connection command (@ftp_connect), PhpNetCore raises an exception ('PHP.Core.PhpException' in PhpNetCore.dll).
Surrounding the code with a try catch gives me details on the exception:

{"Call to undefined function: 'ftp_connect'"} PHP.Core.PhpException

$host = 'ftp.mozilla.org';
$port =21;
$timeout=900;

@ftp_connect($host, $port, $timeout);

Can you help me out? It seems that ftp_connect is not yet implemented

@bfistein
Copy link
Contributor

@luminalpark Phalanger's development is mostly discontinued in favor of PeachPie, the more modern compiler and runtime that also targets .NET Core. Please feel free to give that a try.

Note: ftp_connect isn't implemented yet either, but wouldn't be hard to do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants