[PHP-NOTES] note 130351 added to function.require-once

[email protected] ("[email protected]")
Newsgroups php.notes
Message-ID <[email protected]>
My five cents to the note by bimal at sanjaal dot com

One should avoid the common pitfall with <?php dirname(dirname(__FILE__); ?> construct especially when it is about examples in PHP manual.

Please consider to use either <?php dirname(__DIR__); ?> or <?php dirname(__FILE__, 2); ?> instead and update your note accordingly.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 176.37.146.183)
----
Manual Page -- https://php.net/manual/en/function.require-once.php
Edit        -- https://main.php.net/note/edit/130351
Del: integrated  -- https://main.php.net/note/delete/130351/integrated
Del: useless     -- https://main.php.net/note/delete/130351/useless
Del: bad code    -- https://main.php.net/note/delete/130351/bad+code
Del: spam        -- https://main.php.net/note/delete/130351/spam
Del: non-english -- https://main.php.net/note/delete/130351/non-english
Del: in docs     -- https://main.php.net/note/delete/130351/in+docs
Del: other reasons-- https://main.php.net/note/delete/130351
Reject      -- https://main.php.net/note/reject/130351
Search      -- https://main.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.