You are here: Re: includes in php as cgi « PHP Programming Language « IT news, forums, messages
Re: includes in php as cgi

Posted by axlq on 06/22/07 00:01

In article <1182453968.263730.48010@p77g2000hsh.googlegroups.com>,
<maniactive@gmail.com> wrote:
><?php include("header.shtml");?>
>
>I tried that, too -- but no luck. I also tried the path...and the
>server path.
>Still no luck.
>Thanks anyway.
>Any other ideas?

Well, the php include directive is suppose to include other php
code. It appears (and I'm guessing) that you are including an HTML
file, which should be output rather than executed as PHP.

Why not just say
<?php readfile("header.shtml"); ?>

That's what you should do if the file you're reading is simply text
or HTML that you want to output.
See http://us.php.net/manual/en/function.readfile.php

If that doesn't work, then I think your next step is to contact your
hosting services tech support; after all, they are the ones who seem
to have provided a broken implementation of php.

-A

 

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

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