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.

Difference between require, include, require_once and include_once?

In PHP: When should I use require vs. include? When should I use require_once vs. include_once?

php include require require-once
PHP - Failed to open stream : No such file or directory

In PHP scripts, whether calling include(), require(), fopen(), or their derivatives such as include_once, require_once, or even, move_…

php require fopen include-path
Nodejs cannot find installed module on Windows

I am learning nodejs at the moment on Windows. Several modules are installed globally with npm.cmd, and nodejs failed …

windows node.js module require npm
node.js require all files in a folder?

How do I require all files in a folder in node.js? need something like: files.forEach(function (v,k){ // …

javascript node.js directory require
What is the difference between include and require in Ruby?

My question is similar to "What is the difference between include and extend in Ruby?". What's the difference between require …

ruby include require
Ruby 'require' error: cannot load such file

I've one file, main.rb with the following content: require "tokenizer.rb" The tokenizer.rb file is in the same …

ruby require
is there a require for json in node.js

I would like to include a couple of JSON files in my JavaScript code that are in the same directory …

json node.js require
How to make node.js require absolute? (instead of relative)

I would like to require my files always by the root of my project and not relative to the current …

node.js require
Best way to require all files from a directory in ruby?

What's the best way to require all files from a directory in ruby ?

ruby file directory require
What is the difference between require_relative and require in Ruby?

What is the difference between require_relative and require in Ruby?

ruby require