Re: [PHP-BETA] Is this beta or bad practice: require/include results in empty document
[email protected] (Zeev Suraski) Fri, 13 Aug 1999 12:42:58 +0200
| Newsgroups | php.beta |
|---|---|
| Message-ID | <[email protected]> |
If you're using a DSO module, this is Apache 1.3.6's fault. You'd have to
wait for the next version of Apache that will fix the problem - it's due
any day now.
Zeev
At 22:16 10/08/99 , Chad Streck wrote:
>I am not a php wizard. I have been fiddling around with PHP and MySQL
>for a project I'm working on. I had the beginings of a project going
>and came across where I wanted to do some stack operations with an
>array (use array_push and array_pop), so I saw that those functions were
>4.0 only, so I upgraded to php-4.0b2, and now no require or includes
>seem to work. It was working under my 3.0 install, but not the 4.0.
>
>System: RedHat 6.0, Apache 1.3.6
> Old: mod_php installed with rpm
> New: php-4.0b2 compiled and installed
>
>I feel I brought it down to base level where the following will not
>work. If I comment out the require and the printHeader(), and uncomment
>the echos, I will get a test page, otherwise I get "The document
>contained no data". I've played with the include_path and restarted
>apache and no luck.
>
>index.php:
><?
>require 'header.inc';
>printHeader();
>
># echo " <html> <head> <title>";
># echo " Test title";
># echo " </title> </head>";
># echo " <body>";
>?>
> This is a test.
></body> </html>
>
>header.inc:
><?
>function printHeader() {
>?>
> <html> <head> <title>
> Test title
> </title> </head>
> <body>
><?
>}
>?>
>
>This is more of a question of is this a bug that should be reported or
>am I configuring/doing something wrong here by stumbling on a big
>incompatibility from PHP3?
>
>chad
>
>
>
>--
>PHP Beta Testers' Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>To contact the list administrators, e-mail: [email protected]
--
Zeev Suraski <[email protected]> http://www.zend.com/
For a PGP public key, finger [email protected]