Re: newbie: error when invoke .php

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

 



Thank you very much, it works.

Andre.

------
On Monday, December 10, 2007 9:41 AM, John Mertic jmertic@xxxxxxxxx wrote:

Try not enabling every single extension in the installer, instead enable only the extensions you need.
You can go into Add/Remove Programs and make these changes as well.

John


On Dec 9, 2007 12:29 AM, Andre Junianto <juno.andre@xxxxxxxxx> wrote:

Dear all,

I'm newbie.
Install php-5.2.5-win32-installer.msi successfully.
Windows XP sp2
Web-server is Apache 2.2.6 no-ssl, win32

httpd.conf has 2 lines of additional texts:

PHPIniDir "C:/PHP5/"
LoadModule php5_module "C:/PHP5/php5apache2_2.dll"

--
i wrote a simple PHP web-page: "test.php"
<?php
echo "Test PHP";
?>

Put it on the folder c:\apache\htdocs
But Firefox - http://localhost/test.php - get only a blank page.

"error.log" showed the following lines:

[Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Warning:
require_once(SAM/php_sam.php) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in sam_factory on line 1
[Sun Dec 09 11:04:17 2007] [error] [client 127.0.0.1] PHP Fatal error:
require_once() [<a href='function.require'>function.require</a>]: Failed
opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in
sam_factory on line 1

while "access.log" showed the following line:

127.0.0.1 - - [09/Dec/2007:11:04:17 +0700] "GET /test.php HTTP/1.1" 500 -

---
what's wrong ?
somebody help me please..

T.I.A.
andre

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux