Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7800563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:40:42+00:00 2026-06-02T00:40:42+00:00

I have a template that uses a 3 PHP files. connector-fileimport.php connector-icon.php elFinder.class.php Is

  • 0

I have a template that uses a 3 PHP files.

connector-fileimport.php
connector-icon.php
elFinder.class.php

Is it possible to have these converted to asp.net?

connector-fileimport.php

<?php

error_reporting(0); // Set E_ALL for debuging

if (function_exists('date_default_timezone_set')) {
    date_default_timezone_set('Europe/Moscow');
}

include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinder.class.php';

/**
 * Simple example how to use logger with elFinder
 **/
class elFinderLogger implements elFinderILogger {

    public function log($cmd, $ok, $context, $err='', $errorData = array()) {
        if (false != ($fp = fopen('./log.txt', 'a'))) {
            if ($ok) {
                $str = "cmd: $cmd; OK; context: ".str_replace("\n", '', var_export($context, true))."; \n";
            } else {
                $str = "cmd: $cmd; FAILED; context: ".str_replace("\n", '', var_export($context, true))."; error: $err; errorData: ".str_replace("\n", '', var_export($errorData, true))."\n";
            }
            fwrite($fp, $str);
            fclose($fp);
        }
    }

}

$opts = array(
    'root'            => '../../../../examfilemanager/',                       // path to root directory
    'URL'             => "examfilemanager/", // root directory URL
    'rootAlias'       => 'Home',       // display this instead of root directory name
    //'uploadAllow'   => array('images/*'),
    //'uploadDeny'    => array('all'),
    //'uploadOrder'   => 'deny,allow'
    // 'disabled'     => array(),      // list of not allowed commands
    // 'dotFiles'     => false,        // display dot files
    // 'dirSize'      => true,         // count total directories sizes
    // 'fileMode'     => 0666,         // new files mode
    // 'dirMode'      => 0777,         // new folders mode
    // 'mimeDetect'   => 'internal',       // files mimetypes detection method (finfo, mime_content_type, linux (file -ib), bsd (file -Ib), internal (by extensions))
    // 'uploadAllow'  => array(),      // mimetypes which allowed to upload
    // 'uploadDeny'   => array(),      // mimetypes which not allowed to upload
    // 'uploadOrder'  => 'deny,allow', // order to proccess uploadAllow and uploadAllow options
    // 'imgLib'       => 'mogrify',       // image manipulation library (imagick, mogrify, gd)
    // 'tmbDir'       => '.tmb',       // directory name for image thumbnails. Set to "" to avoid thumbnails generation
    // 'tmbCleanProb' => 1,            // how frequiently clean thumbnails dir (0 - never, 100 - every init request)
    // 'tmbAtOnce'    => 5,            // number of thumbnails to generate per request
    // 'tmbSize'      => 48,           // images thumbnails size (px)
    // 'fileURL'      => true,         // display file URL in "get info"
    // 'dateFormat'   => 'j M Y H:i',  // file modification date format
    // 'logger'       => null,         // object logger
    // 'defaults'     => array(        // default permisions
    //  'read'   => true,
    //  'write'  => true,
    //  'rm'     => true
    //  ),
    // 'perms'        => array(),      // individual folders/files permisions    
    // 'debug'        => true,         // send debug to client
    'archiveMimes' => array(),      // allowed archive's mimetypes to create. Leave empty for all available types.
    // 'archivers'    => array()       // info about archivers to use. See example below. Leave empty for auto detect
     'archivers' => array(
        'create' => array(
            'application/x-gzip' => array(
                'cmd' => 'tar',
                'argc' => '-czf',
                'ext'  => 'tar.gz'
                )
            ),
        'extract' => array(
            'application/x-gzip' => array(
                'cmd'  => 'tar',
                'argc' => '-xzf',
                'ext'  => 'tar.gz'
                ),
            'application/x-bzip2' => array(
                'cmd'  => 'tar',
                'argc' => '-xjf',
                'ext'  => 'tar.bz'
                )
            )
        )
);

$fm = new elFinder($opts); 
$fm->run();

?>

connector-icon.php

<?php

error_reporting(0); // Set E_ALL for debuging

if (function_exists('date_default_timezone_set')) {
    date_default_timezone_set('Europe/Moscow');
}

include_once dirname(__FILE__).DIRECTORY_SEPARATOR.'elFinder.class.php';

/**
 * Simple example how to use logger with elFinder
 **/
class elFinderLogger implements elFinderILogger {

    public function log($cmd, $ok, $context, $err='', $errorData = array()) {
        if (false != ($fp = fopen('./log.txt', 'a'))) {
            if ($ok) {
                $str = "cmd: $cmd; OK; context: ".str_replace("\n", '', var_export($context, true))."; \n";
            } else {
                $str = "cmd: $cmd; FAILED; context: ".str_replace("\n", '', var_export($context, true))."; error: $err; errorData: ".str_replace("\n", '', var_export($errorData, true))."\n";
            }
            fwrite($fp, $str);
            fclose($fp);
        }
    }

}

$opts = array(
    'root'            => '../../../../examicon/',                       // path to root directory
    'URL'             => "examicon/", // root directory URL
    'rootAlias'       => 'Home',       // display this instead of root directory name
    //'uploadAllow'   => array('images/*'),
    //'uploadDeny'    => array('all'),
    //'uploadOrder'   => 'deny,allow'
    // 'disabled'     => array(),      // list of not allowed commands
    // 'dotFiles'     => false,        // display dot files
    // 'dirSize'      => true,         // count total directories sizes
    // 'fileMode'     => 0666,         // new files mode
    // 'dirMode'      => 0777,         // new folders mode
    // 'mimeDetect'   => 'internal',       // files mimetypes detection method (finfo, mime_content_type, linux (file -ib), bsd (file -Ib), internal (by extensions))
    // 'uploadAllow'  => array(),      // mimetypes which allowed to upload
    // 'uploadDeny'   => array(),      // mimetypes which not allowed to upload
    // 'uploadOrder'  => 'deny,allow', // order to proccess uploadAllow and uploadAllow options
    // 'imgLib'       => 'mogrify',       // image manipulation library (imagick, mogrify, gd)
    // 'tmbDir'       => '.tmb',       // directory name for image thumbnails. Set to "" to avoid thumbnails generation
    // 'tmbCleanProb' => 1,            // how frequiently clean thumbnails dir (0 - never, 100 - every init request)
    // 'tmbAtOnce'    => 5,            // number of thumbnails to generate per request
    // 'tmbSize'      => 48,           // images thumbnails size (px)
    // 'fileURL'      => true,         // display file URL in "get info"
    // 'dateFormat'   => 'j M Y H:i',  // file modification date format
    // 'logger'       => null,         // object logger
    // 'defaults'     => array(        // default permisions
    //  'read'   => true,
    //  'write'  => true,
    //  'rm'     => true
    //  ),
    // 'perms'        => array(),      // individual folders/files permisions    
    // 'debug'        => true,         // send debug to client
    'archiveMimes' => array(),      // allowed archive's mimetypes to create. Leave empty for all available types.
    // 'archivers'    => array()       // info about archivers to use. See example below. Leave empty for auto detect
     'archivers' => array(
        'create' => array(
            'application/x-gzip' => array(
                'cmd' => 'tar',
                'argc' => '-czf',
                'ext'  => 'tar.gz'
                )
            ),
        'extract' => array(
            'application/x-gzip' => array(
                'cmd'  => 'tar',
                'argc' => '-xzf',
                'ext'  => 'tar.gz'
                ),
            'application/x-bzip2' => array(
                'cmd'  => 'tar',
                'argc' => '-xjf',
                'ext'  => 'tar.bz'
                )
            )
        )
);

$fm = new elFinder($opts); 
$fm->run();

?>

The third file was too big to include in this post. But is this even possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:40:43+00:00Added an answer on June 2, 2026 at 12:40 am

    Even though there may exist some automated tool, I would strongly opt against it. Every language has its specifics and raw convert is rarely a good idea.

    Do as other suggested – rewrite it yourself, don’t rely on some tool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an EJB that uses additional resource files (textual template files placed in
I have that template class that uses a policy for it's output and another
I have a template class that I serialize (call it C), for which I
I have a template class that is only valid for couple of template parameters:
I have a WPF window that uses validation. I created an error template that
I have an excel template that uses a macro to save the file, so
I have a basic text template engine that uses a syntax like this: foo
I have a template that uses an unordered list to create the menu. See
I have a partial template that uses a User object as a model. The
Thank you one and all. I have an PHP MVC framework that uses XSLT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.