I am a fairly new PHP programmer (previous ASP programmer though) with a very weird problem. I am working on a site that will have different class types that are used to pass information from the DB (mySQL) to the front-end (my code) for display.
While programming the data layer I started getting blank pages being served from the service. After some experimentation I got the script down to the following so that it causes blank pages.
Code: Select all
<?php
class User {
var $user_id;
var $first_name;
var $last_name;
}
$joe = new User();
$joe->user_id = 1000;
$joe->first_name = "Joe";
$joe->last_name = "James";
echo("<html><body>");
echo($joe->user_id . " " . $joe->first_name . " " $joe->last_name . "<br>";
echo("Test... test...");
echo("</body></html>");
?>One thing to note is that I am using PHP on a shared server (SBC) so they could have changed a configuration to make this happen, but I have no idea what.
Also, the service is running PHP 4 (version 2).
Any ideas?
Thanks in advance to anyone that has suggestions... this is causing quite a lot of hair pulling on my side...
mcp