Help Article

Ask the Community

Find answers or join the conversation in the Community Help Forum.

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:
  1. Create a new file in: <SDK_ROOT>/samples/php/
  2. Name this file ppsdk_include_path.inc
  3. 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.
  1. Save the file.
  2. 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.

Examples

For UNIX/LINUX
<?php
set_include_path('/home/someuser/webapps/phpsdkv4_1/php-sdk' . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
?>

For Windows
<?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.
We’re sorry, the page you’re looking for is no longer available. Please try your search again in our Help Centre if you have a question or want to contact us.