note 130351 added to function.require-once

From: Date: Thu, 05 Jun 2025 14:54:23 +0000
Subject: note 130351 added to function.require-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-222203@lists.php.net to get a copy of this message
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

« previous php.notes (#222203) next »