Top "Require" questions

In interpreted languages like Lua, PHP and Ruby, "require" is a statement that tells the interpreter to include a certain source-file at that position where the "require" statement has been placed.

The difference between "require(x)" and "import x"

I've just started working on a small node project that will interface with a MongoDB. However, I cannot seem to …

node.js typescript import require
require_once :failed to open stream: no such file or directory

I have this testing code in "PAGE A": <?php require_once('../mysite/php/classes/eventManager.php'); $x=new …

php dreamweaver require fatal-error
How to include a class in PHP

I have file index.php, and I want to include file class.twitter.php inside it. How can I do …

php include require
NodeJs : TypeError: require(...) is not a function

I am trying to require a file and afterwards pass it to a var. I am following this tutorial to …

javascript node.js require
Difference between "include" and "require" in php

Is there any difference between them? Is using them a matter of preference? Does using one over the other produce …

php include require
cannot redeclare block scoped variable (typescript)

I'm building a node app, and inside each file in .js used to doing this to require in various packages. …

typescript require
When should I use require() and when to use define()?

I have being playing around with requirejs for the last few days. I am trying to understand the differences between …

require requirejs
Require() function in JavaScript

When I open console of Chrome 14 and type... require (or require(), if that matters) I get: ReferenceError. This means that …

javascript function reference markdown require
require file as string

I'm using node + express and I am just wondering how I can import any file as a string. Lets say …

string node.js express require
How to deal with cyclic dependencies in Node.js

I've been working with nodejs lately and still getting to grips with the module system so apologies if this is …

node.js module require circular-dependency cyclic-dependency