What's wrong with this code?
| From: | Tyler Longren | Date: | Sun, 22 Apr 2001 22:38:31 +0000 |
| Subject: | What's wrong with this code? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49769@lists.php.net to get a copy of this message | ||
$file = fopen("includes/about.inc", "r");
$data = fread($file, 24000000);
$stripped = stripslashes($data);
$formatted_data = nl2br($stripped);
echo "$formatted_data";
Any ideas why that doesn't work on one server but it will work on another
server? The server it works on is Win2k, IIS5, php4.0.4pl1. The server it
doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't
work? Just to be sure, I did a chmod 777 about.inc, so file permissions
isn't it.
Thanks everyone,
Tyler Longren