Is there an alternative to command-line access when setting up the PHP SDK samples?
If you don't have command-line access to install the PHP SDK samples, here's how to manually set up the samples:
- Create a new file in:
- Name this file
- Open this file and add the following:
<?php set_include_path('path_to_sdk_root'. DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path()); ?>
Where path_to_sdk_root is the path to your PHP SDK folder on your server.
- Save the file.
- Open a browser, navigate to the URL of the samples folder, and see if the sample index page comes up with any errors.
- If you find errors, something is probably incorrect in the path you've provided.
- Review the error messages and make sure the path_to_sdk_root is correct.
<?php set_include_path('/home/someuser/webapps/phpsdkv4_1/php-sdk' . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path()); ?>
<?php set_include_path('C:\Inetpub\wwwroot\PHP\php-sdk' . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path()); ?>
Note: If you're not sure of the path to the SDK root, ask your host.