Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
PHP 5 not running functions

 
Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
View previous topic :: View next topic  
Author Message
Jim



Joined: 03 Jan 2006
Posts: 6
Location: Houston TX

PostPosted: Thu 19 Jan '06 2:20    Post subject: PHP 5 not running functions Reply with quote

I’m almost there but the PHP tags are not executed. My file has (index.php located in docs/club)
<HTML>
<BODY>
hello world

<?phpinfo();?>

goodbye world
</BODY>
</HTML>
returns hello & goodbye world and when I view the source shows the same text as above. Below is what I’ve done to set things up.


General Install
1. Unzipped and got the proper folders as explained on the www.php.net/manual
2. I added C:\PHP to the path (tried copying php5ts.dll to C:\Windows too – no help)
3. Copied and renamed php.ini-recommended to php.ini
4. Modified registry = HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath = C:\PHP
5. Set variable PHPRC to C:\PHP
6. DOC_ROOT – when I set this to anything I get document not found, left blank I get what is described above.
7. Set extension_dir = C:\PHP\EXT



Sambar Server Specific
Open mappings.ini and add the following line under [ISAPI]:
*.php = C:\PHP\PHP5ISAPI.DLL


8. ISAPI LOG
[2006-01-18 19:33:52] Loading PHP5ISAPI.DLL: isapi
[2006-01-18 19:50:23] PHP5ISAPI.DLL: Run for 192.168.0.101
[2006-01-18 19:50:23] PHP5ISAPI.DLL: GetServerVariable 'SCRIPT_NAME' returned: /index.php
[2006-01-18 19:50:23] PHP5ISAPI.DLL: ServerFunc() HSE_REQ_MAP_URL_TO_PATH_EX '/index.php'
[2006-01-18 19:50:23] PHP5ISAPI.DLL: GetServerVariable 'HTTP_COOKIE' returned:
[2006-01-18 19:50:23] PHP5ISAPI.DLL: ServerFunc() HSE_REQ_SEND_RESPONSE_HEADER_EX '200 OK'
[2006-01-18 19:50:23] PHP5ISAPI.DLL: WriteClient(89 bytes) <HTML> <BODY> hello world
<?phpinfo();?>
goodbye world </BODY> </HTML>
[2006-01-18 19:50:23] PHP5ISAPI.DLL: Returned HSE_STATUS_SUCCESS

9. Server log = shows no errors

10 . If I go to a command prompt set to the PHP folder I can type in PHP –H and get the help listing or PHP –I and get the “INFO” listing
Back to top
View user's profile Visit poster's website
Steffen



Joined: 07 Jun 2004
Posts: 413
Location: Netherlands

PostPosted: Thu 19 Jan '06 19:18    Post subject: Reply with quote

All looks good what you have done, only step 4, 5 and 6 is not usual to do. Maybe you can try without doing these steps.

The ISAPI.log shows that php is runnng.

Not made any other change in php.ini (by accident) ?

Steffen.

ps.
To get better help it is better to mention the versions you use. See the forum rules at http://forum.sambarserver.info/viewtopic.php?t=181
Back to top
View user's profile Visit poster's website
Jim



Joined: 03 Jan 2006
Posts: 6
Location: Houston TX

PostPosted: Fri 20 Jan '06 23:39    Post subject: PHP 5 not running functions Reply with quote

I’m running Sambar Pro 6.3 beta on XP Pro and trying to install PHP version 5.0.2

I “undid” steps 4, 5 and 6 with no change in performance.

The content of the ISAPI log is shown in step 8.

I unzipped and reinstalled all of PHP so as to be sure I hadn’t made an accidental change in the INI file with no change in performance.

Came home tonight and the #$@!@## thing is working………… I don’t know why but as long as it keeps working I’ll never complain.
Thanks for all the help.
Back to top
View user's profile Visit poster's website
Perlsol



Joined: 08 Aug 2007
Posts: 4

PostPosted: Mon 20 Aug '07 13:23    Post subject: Reply with quote

the other thing with php5 is the open tags must have php in them
<? ... ?> wrong
<?php ... /> right

it can be changed to allow it but a default install its turned off
Back to top
View user's profile
tage



Joined: 25 Dec 2008
Posts: 18
Location: denmark

PostPosted: Sat 24 Jan '09 16:21    Post subject: phpinfo Reply with quote

thats right
Back to top
View user's profile Visit poster's website
Liquid



Joined: 27 Feb 2009
Posts: 5

PostPosted: Fri 05 Feb '10 12:05    Post subject: Reply with quote

Here is the heads up with php5.2 most stuff like phpbb ect will not run on it you need to down grade to the older php, stuff runs then Smile
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> Coding & Script Corner
Page 1 of 1