AW: [PHP] beginners question
| From: | Tobias Fichtner | Date: | Wed, 15 Oct 2014 05:40:34 +0000 |
| Subject: | AW: [PHP] beginners question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323958@lists.php.net to get a copy of this message | ||
Hi Sachin,
no. That's not the same.
In your first sample you have only a file name, this will be search into the include paths.
In your second sample you have a path to a file, the include path will be ignored.
from http://php.net/manual/en/function.include.php:
"If a path is defined — whether absolute (starting with a drive letter or \ on Windows, or /
on Unix/Linux systems) or relative to the current directory (starting with . or ..) — the
include_path will be ignored altogether. For example, if a filename begins with ../, the parser will
look in the parent directory to find the requested file."
Mit freundlichen Grüßen,
King regards,
Tobias Fichtner
--
[w] http://tobiasfichtner.com/ [gpg] 0x8498F4B2 [fp] 2978
57FB 155B 30BE 7316 AA7D D79C 4A0A 8498 F4B2
-----Ursprüngliche Nachricht-----
Von: Sachin Raut [mailto:imsachinraut@gmail.com]
Gesendet: Mittwoch, 15. Oktober 2014 07:25
An: PHP Mailinglist
Betreff: [PHP] beginners question
hi group,
i just want to know if the following statements are same or not.
require 'includes/config.inc.php';
&
require './includes/config.inc.php';
regards
Sachin
Attachment: [application/pkcs7-signature] smime.p7s
Attachment: [application/pkcs7-signature] smime.p7s