1
Vote

Error : The configuration option 'ODataphp_path' is not set in the php.ini file, Please refer installation instructions for fix this issue!

description

Hello My name is Hafees. I used to do Odata SDK for php for my application, but I am facing some issue and error messages below while run the code in Command Prompt.
Error Message is below

“Error : The configuration option 'ODataphp_path' is not set in the php.ini file, Please refer installation instructions for fix this issue!”.

I did following steps.
  1. Installed Wamp ver 2.4 [Apache Ver 2.4.4 PHP Ver 5.4.12] in ‘C’ Drive
  2. Downloaded OData SDK for Php from odataphp.codeplex.com
  3. Created a new folder ‘PHPLib’ and inside this folder created a new folder name ‘odataphp’ and copied Framework folder files in to ‘odataphp’ folder in ‘C ‘drive. And it’s like ‘C:\PHPLib\odataphp’
  4. In php.ini I done the following changes
include_path = ".;C:\PHPLib\odataphp"
;OData SDK for PHP Library Path
ODataphp_path = "C:\PHPLib\odataphp"

Removed the semicolon (;) in front of
extension=php_xsl.dll and extension=php_curl.dll

[Date]
;Defines the default time zone used by the date functions
date.timezone = Asia/Calcutta
  1. Saved my php.ini and restarted my wamp server.
  2. Opend my Command prompt and located my ‘odataphp’ folder
  3. Now the CMD Prompt is C:\PHPLib\odataphp>
  4. I run C:\PHPLib\odataphp> php PHPDataSvcUtil.php
  5. It showed an error php is not and internal or external command likes that. So I Googled and found the things to changed the path variable inside environmental variable in my computer. I set it correctly and php issue solved.
  6. My svc source path is http://233.432.123.232/MobilityAPIService/MobilityAPIService.svc
  7. I created a destination folder in D: Drive and it’s like D:\samples\SimpleApplication
  8. I run the code in command prompt like the following
  9. php PHPDataSvcUtil.php /uri=http://233.432.123.232/MobilityAPIService/MobilityAPIService.svc /out=D:\samples\SimpleApplication
  10. But it showing the error as I mentioned like
“Error : The configuration option 'ODataphp_path' is not set in the php.ini file, Please refer installation instructions for fix this issue!”.

Can anyone help me out on this please?

IP Address I used in this document is fake. For the security purpose I used Fake IP. I apologies for that.

Thanks and Regards

Hafees

file attachments

comments