http://www.stellarwebsolutions.com/en/articles.php
I just got the .pem to work with paypal but I cannot find a way to access the .pem without putting it on my public_html/ folder which I know is probably not the best way of doing it. Is there a way of accessing the root of my ssh from php? or other areas of my ssh?
You can easily access any file outside of your public_html folder, you just have to make sure that the file is accessible to the web server user. For instance:
And the following php script is reading the test.txt:
You can also put your file in your public_html folder and deny access with a .htaccess: