• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

ocilogon from cli (command line interface)

hello

i've got a problem with connecting to oracle from the cli (command line interface)...

error -->

<b>Fatal error</b>:  Call to undefined function:  ocilogon() in <b>D:\apps\Apache2\htdocs\test\scanner\test.php</b> on line <b>9</b><br />

the problem only exists by executing the php file from command line... with the webbrowser everything works fine...

can anyone help me plz ? thx

w2k/apache2/php4.3.1

g blackswan
0
blackswan
Asked:
blackswan
1 Solution
 
s-maximCommented:

can you give us (actually me as I am the maintainer of OCI8 PHP's extension) regarding your command like usage/options and/or the full PHP code.

It is an interesting question and might as well result into a bug for me to fix for PHP 4.4 release :)

Maxim Maletsky
maxim@php.net
0
 
blackswanAuthor Commented:
0
 
blackswanAuthor Commented:
additional notes...

i call the php.exe from a batchfile

@d:\apps\php\php.exe test.php %1

the call works perfect... 'every' other php code works well...

only the oci connect won't work...

perhabs i should test another call method ?

g tobi

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
blackswanAuthor Commented:
i've got the solution

copy the php.ini file to the apache homedir AND to the php homedir...

maybe if you copy the php.ini file to the win system32 directory it works for browser and cli use...

g blackswan
0
 
ThGCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

> PAQ/Refund
Reason: User answered his own question

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

ThG
EE Cleanup Volunteer
0
 
Computer101Commented:
PAQed, with points refunded (100)

Computer101
E-E Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now