Hi,
i have installed apache 2.2 and have installed php 5.2.9. The installation has taken place succssfully. However when I try to test my php script with a simple <? phpinfo(); ?> I dont get any output in my browser. I have looked throuh the folurms and have tried a few things. but still no luck. When I look at the error_log file I dont see any errors.

my httpd.conf file contains the following:
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php .phps
AddType test/html .php
PHPIniDir "/home/rskdev/eqmodd1/php5/lib"

and I can see the libphp5.so file in the correct directory.
I am using linux system.

Please can someone help?

Regards

Recommended Answers

All 7 Replies

use long php open tags instead.

Oh my god that has worked perfectly. Have been mind boggled for ages. :-) and it was such a small thing.

Thanks so much djjjozsi.

Your welcome!

use long php open tags instead.

Hi,
Wht does long php tags mean ? for my update

hi,
short open php tag: <? ?> in use: <?=$value>

long php tags: <?php ?> in use: <?php echo $value; ?>

jjozsi.

hi,
short open php tag: <? ?> in use: <?=$value>

long php tags: <?php ?> in use: <?php echo $value; ?>

jjozsi.

:) thank you

the short open tag looks like this, there was a typo error in my previous post
<?=$value ?>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.