php-script with blank screen in preview

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
larshgf
Posts: 8
Joined: Fri Nov 03, 2006 12:29 pm
Location: Denmark

php-script with blank screen in preview

Post by larshgf »

I want to see this "Hello World.php" script that comes with "Rapid PHP 2006 (ver 7.3.0.69).....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Hello!</title>
</head>

<body>

<?
echo("Hello, World!" );
?>

</body>

</html>


but in my preview window (and in my browser too - IE6) it give only a blank screen.
If I make a "clean" php-script like this...

<?
echo("Hello, World!" );
?>


It shows the text "Hello World" as expected in preview (and browser)

Is there something wrong with my settings in "Rapid PHP 2006" ??

Best Regards
Lars - DK
larshgf
Posts: 8
Joined: Fri Nov 03, 2006 12:29 pm
Location: Denmark

Post by larshgf »

Nobody seems to be able to answer this. I'll try the tech support then.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: php-script with blank screen in preview

Post by chrisjlocke »

larshgf wrote:If I make a "clean" php-script like this...

It shows the text "Hello World" as expected in preview (and browser)

Is there something wrong with my settings in "Rapid PHP 2006" ??
This 'clean' file. What do you call it (ie, whats the extension?) How do you view it in your browser - browsing to it, dragging it in, etc?
Has your PC got its own web server?

Theoretically, the 'clean' file you gave, would simply view 'as is' in your browser, as it needs a PHP pre-processor to make it 'work'. IE itself will not be able to process .php scripts.
Post Reply