开发者

Include file in PHP form show error and content of included file

开发者 https://www.devze.com 2023-02-03 16:52 出处:网络
I have included php class file which contains all the classes as But in output it is showing content of classes.php file and fatal error class not found here i only want to use the classes written in

I have included php class file which contains all the classes as But in output it is showing content of classes.php file and fatal error class not found here i only want to use the classes written in "classes/classes.php".But it is showing contents of this file in output. please help me,i have tried all the ways. Thank U i开发者_运维知识库n advance.


Be carefull if you haven't put the php start tag ( <?php ) in classes/classes.php file.

It's not a joke, it's an usual error.


I tried to include a few pages in my PHP script and at first, they would print the contents of the file to the web page. I had forgotten to include the php qualifiers. Make sure your include page has the tags surrounding your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消