0

Why this ivalid code??

#include <file.php>

19th Oct 2019, 10:09 AM
MD BELAL HOSSAIN
MD BELAL HOSSAIN - avatar
2 Antworten
+ 2
It's seems you try to mix C and PHP syntax. In PHP : include "file.php"; Generaly you should use require_once instead include.
22nd Oct 2019, 7:28 PM
S K Lurk //\●●/\\
S K Lurk //\●●/\\ - avatar
+ 1
Did you get any error message? what did it say? Are you doing this in SoloLearn Code Playground or in your machine? Have you checked for file existence? is it empty file? #include and #require behaves differently on failure to load a file.
19th Oct 2019, 10:24 AM
Ipang