cancel
Showing results for 
Search instead for 
Did you mean: 

PHP problem -> saprfc_test.php

Former Member
0 Kudos

Question to the experts

I just installed Apache 2.2.4 with PHP 5.2.1 and saprfc-1.4-5.2.0.Win32.zip ( I had could not use saprfc-1.4.1-5.1.1.Win32 due to incompatibility)

Now everytime I run one of the test pages I get

SAPRFC-Class: Get List of Users in SAP-System

array( "ASHOST"=>"iwdfvm1035.wdf.sap.corp" // application server ,"SYSNR"=>"00" // system number ,"CLIENT"=>"100" // client ,"USER"=>"DEMO" // user ,"PASSWD"=>"WELCOME" // password ) ,"show_errors"=>false // let class printout errors ..

..

..

I get a similar source code comming from the PHP from other test pages

ANY Ideas?

All phps are located under c:\apache22\htdocs

Here is my config

php.ini

doc_root = "c:\apache22\htdocs"

extension_dir = "c:\apache22\php\ext"

extension=php_saprfc.dll

The php_saprfc.dll is is in the ext directory and librfc32.dll is also under windows/system32

saprfc.php is located in c:\apache22\htdocs

Your help will be appreciated

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

as far as I can see your PHP script isn't executed but simply echoed. This means, your webserver doesn't know how to handle *.php files or whatever you named your test scripts.

Get the manual of your webserver and configure it to execute *.php files.

regards,

anton

Former Member
0 Kudos

for apache you'll need <b>at least</b> something like:


ScriptAlias /php/ "c:/path/to/php/"
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php "/php/php-cgi.exe"

if you used the cgi version of PHP.

Former Member
0 Kudos

Thank you.... Your feedback solved the problem.

gregorw
Active Contributor
0 Kudos

Hello i005546,

why have you then marked your question as self solved and not given Anton the 10 Points?

Regards

Gregor