[eluser]bpics[/eluser]
Hi guys, It really was the problem that short open tag was off, and by turning it on, everything works! thanks
Another question, regarding to the extension_dir in php.ini
When I manually downloaded and configured PHP and Apache, I set the extension_dir="ext", and put
#
LoadModule php5_module "c:/dev/project1/php5/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "c:/dev/project1/php5"
and the whole directory looks like
dev---
|
---project1
|
---php5
|
---Apache24
then when apache starts, everything works expect the short open tag was off, therefore the page is not loaded properly, but all the extensions are loaded.
Then I downloaded and started xampp (stop the apache server I manually installed above), and when I start Apache, it complains the extensions cannot be loaded since the path is pointed to
c:/dev/project1/php5/ext\php_mysql.dll
then I have to define the extension_dir in php.ini (the one in xampp/php)as absolute path
extension_dir="c:/dev/project1/php5/ext"
then apache can load the extensions.
Now since I know the issue that page not loading properly was the short open tag off, then I deleted xampp, uninstalled the apache service installed by xampp, and plan to use the manual installed environment, however, when I start the Apache in c:/dev/project1/Apache24/bin, it complains the dynamic extension cannot be loaded just like what xampp first did, but it displayed that it try to find the extension from c:/php/ext
I therefore change the php.ini in c:/dev/project1/php5 to set the extension_dir="c:/dev/project1/php5/ext"
then it started working again.
I don't really quite understand why it used to work, but just after xampp being used, the extension_dir stopped working with relative path, is there any cached configuration I need to delete after using xampp?
again, thanks