Jump to content

Using the Codon Framework + phpVMS functions outside of the phpVMS system


Qantas94Heavy

Recommended Posts

Hi, I was wondering if it'd be possible to use some of the phpVMS functions on a non-phpVMS site, with the phpVMS stuff in a different folder. I've tried including the core Codon configuration file in other PHP scripts, but that fails. I then tried setting the root in that folder to the phpVMS folder - no better news. Am I just completely off-track or is there some sort of way?

Link to comment
Share on other sites

Depends what you want to use. If it's the modules and classes you want to use then just include it like this:

<?php include('/home/username/public_html/core/codon.config.php');?>

If I attempt that, I get:

Fatal error: Call to undefined method Config::Set() in /home/username/example.net/public_html/core/codon.config.php on line 67

What would be the cause of such an issue (directory root possibly)?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...