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 Michael Fesser on 08/01/07 17:42

..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.

>Then again, I would never never never get class definitions this way. Too
>much overhead, huge security risks, slow, waiting for a
>connection-error/incomplete file to happen etc.

ACK

Micha

 

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

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