no display after my php script execution
Posted by: ahmed (148.61.178.---)
Date: January 12, 2006 08:34PM

hello there,
i have a small problem(hopefully small),when i try to execute the following simple php script..
<html>
<body>

<?php
$txt1="Hello World";
$txt2="1234";
echo $txt1 . " " . $txt2 ;
?>

</body>
</html>

i am getting no display at all. just the browser opens up and displays nothing.can some one please help me in providing me the solution for such a problem.

thanx in advance

ahmed

Options: ReplyQuote
Re: no display after my php script execution
Posted by: google (---.artelecom.net.218.115.217.in-addr.arpa)
Date: January 14, 2006 11:10PM

I have the same problem here. Anyone?


Options: ReplyQuote
Re: no display after my php script execution
Posted by: Filipe Melo (82.155.158.---)
Date: April 17, 2006 03:53PM

Exactly the same problem...
Apache doesn't seem to be parsing and executing PHP.

Options: ReplyQuote
Re: no display after my php script execution
Posted by: Filipe Melo (---.dsl.telepac.pt)
Date: April 17, 2006 03:56PM

Found the answer we were looking for:

Go to your PHP.INI and set this variable to "on"

; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

Hope it was useful!

Options: ReplyQuote
Re: no display after my php script execution
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: April 18, 2006 01:08AM

also make sure you put your php files in the www directory, or they will not get parced by apache. Also make sure you access the file like this in your browser:
[localhost]



Post Edited (04-18-06 04:43)

CyberSpatium
----------------------
WAMP Forum Admin

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote


Sorry, only registered users may post in this forum.