Top "Require-once" questions

The PHP require_once function

Include, require & require_once

Today I've tried to include file that returns object. I always use require_once, however now I've noticed weird behavior …

php object include require require-once
What is the scope of require_once in PHP?

Simple question: Is the scope of require_once global? For example: <?PHP require_once('baz.php'); // do some stuff …

php scope server-side-includes require-once
What is the best way to include PHP libraries when using static factory pattern?

I have several static factory patterns in my PHP library. However, memory footprint is getting out of hand and we …

php include polymorphism require require-once
How to require_once from different directories?

I am trying to require my "library" files from php files in different folders, but it gives errors when trying …

php permissions directory require require-once
How to add a require_once('file.php') statement in twig templates?

I'm new to this symfony2 and twig so I'm not very familiar with it. I need to add a require_…

php symfony twig require-once
Is it better to use require_once('filename.php') or require_once 'filename.php';

Is this just a stylistic difference, or does using require_once('filename.php') vs require_once 'filename.php' have actual …

php require-once
How can I tune the PHP realpath cache?

Recent versions of PHP have a cache of filenames for knowing the real path of files, and require_once() and …

php optimization require-once realpath
required_once issue in Google API Client for PHP

I have been trying to import/include file in my php script file and somehow it is not working. I …

php google-analytics include-path google-api-php-client require-once
How to know if php script is called via require_once()?

My webapp has a buch of modules. Each module has a 'main' php script which loads submodules based on a …

php require-once
require_once with subfolders

I have Folder Home with two subfolders like the following +Home +include - membersite_config.php +iDiscover -index.php in …

php require-once