You are here: Include returns text ? « All PHP « IT news, forums, messages
Include returns text ?

Posted by Alan Searle on 05/14/05 00:23

Hi have a piece of code with an include statement ...

<?php
include("dbconnect.php");
.... code continues ...

.... and find that the program seems to find the include file but, rather
than executing the commands, it returns the text (ie source code).

That's strange, isn't it?

How can I get it to excute? Do I need to change a setting somewhere?
Maybe in php.ini? Or is there a library (php_xxxx.dll) that needs to be
made available?

In the meantime, I'm putting all my code into one file and it works OK
(but I'm starting to lose the overview).

Anyway, ideas would be gratefully received.

Regards,
Alan Searle.

PS: I'm using PHP5 under Windows on Apache.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация