Problem viewing phtml files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm having a problem getting .phtml files to display in a web browser. I
can successfully display a test.php page as per PHP install instructions but
the phtml files show up blank (in firefox or IE).

I have added these entries to my apache httpd.conf:

LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php .phtml
AddType text/html .php .phtml
#AddType application/x-httpd-php .php .php3 .php4 .phtml (I tried with this
uncommented too and without the previous entry)
AddType application/x-httpd-php-source .phps

I have the default "recommended" php.ini installed under both:
/usr/local/apache2/conf
/usr/local/apache2/php
as I wasnt certain where it should go...

My system is: Apache/2.2.6 (Unix) PHP/5.2.5


The phtml files are from an opensource product called CDRTool which other
people
are using successfully so I think the most likely problem I have is I have
something
badly configured on my apache/php side (particularly as this isnt something
Ive
attemtped to configure before).
One thing I noticed regarding all of the CDRTool .phtml files is that they
all have a first line like:

<?

Is that normal? I suppose someone who knows php will know what it means :S


Thanks in advance for any advice,

Andy.

________________________________________________
Message sent using UK Grid Webmail 2.7.9

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux