You are here: Re: remote include doesn't work with class « All PHP « IT news, forums, messages
Re: remote include doesn't work with class

Posted by Rik on 08/01/07 18:03

On Wed, 01 Aug 2007 19:42:24 +0200, Michael Fesser <netizen@gmx.de> wrote:

> .oO(Rik)
>
>> On Wed, 01 Aug 2007 19:26:50 +0200, charliefortune
>> <google@charliefortune.com> wrote:
>>
>>> When I go to the url, I get nothing because, like you say, the script
>>> doesn't produce anything, it is just a single class definition, and is
>>> being parsed before being returned.
>>
>> On the server with the definition:
>> file: givememyclassdefinitioninplainphp.php
>> <?php
>> readfile('myClass.php');
>> ?>
>
> Or simply use a file extension other than '.php', so the server won't
> parse the file. '.inc' or '.txt' would be fine.

Which would defeat the whole purpose of having your class in just one
single file. If he can rename it, why not just ftp it to its desired
location on alterations?
--
Rik Wasmus

 

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

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