Answer the question
In order to leave comments, you need to log in
Are there CDNs for PHP libraries?
Are there CDNs for PHP scripts?
For example, if I need a plugin in JavaScript, I take it and quickly connect it from here:
https://cdnjs.com
Is there a similar practice for PHP or does no one do this because of the insecurity of running remote PHP code?
<?php
$code = file_get_contents('https://cdnphp.com/blablabla.php');
eval($code);
Answer the question
In order to leave comments, you need to log in
composer is an application level package manager for the PHP programming language that provides dependency management tools for a PHP application.
PEAR (an acronym for the English words PHP Extension and Application Repository) is an open source PHP class library distributed through the package manager of the same name. PHP comes standard with the PEAR class management system, which makes it easy to download and update them.
(this is an older and lower level mechanism, but still used on some systems)
This is your example
$code = file_get_contents(' https://cdnphp.com/blablabla.php ');You can even replace it with include , just don't forget to change the allow_url_include setting .
eval($code);
JavaScript I need some kind of plugin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question