Do you support phar (PHP Archive) files?
Ce contenu n’est pas encore disponible dans votre langue.
Yes. You can use phar (PHP Archive) files on Ruachost hosting.
A phar file packs a whole PHP application or library into a single file, much like a .jar file in Java. Many PHP tools are shipped this way, such as composer.phar and wp-cli.phar.
Running a phar file
Section titled “Running a phar file”Connect to your account with SSH and run the file with PHP:
php composer.phar --versionYou can also include a phar file in your own scripts:
<?phprequire 'phar://mylibrary.phar/autoload.php';If it doesn’t work
Section titled “If it doesn’t work”If you see an error about the phar extension, check it’s switched on:
- Log in to cPanel.
- Open Select PHP Version.
- Click Extensions and make sure phar is ticked.
Related articles
Section titled “Related articles”Cette page vous a-t-elle aidé ?
Merci pour votre retour.