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