-
Notifications
You must be signed in to change notification settings - Fork 103
Can't include class through PHP #90
Comments
@edgren Did you try |
No. I just want to download the files and include them to my project, like almost everything else. |
I dont think that will work, except you include every file from the project. |
session_start();
require ($_SERVER['DOCUMENT_ROOT'].'/includes/vendor/autoload.php');
use Sinergi\BrowserDetector\Browser;
use Sinergi\BrowserDetector\Os;
use Sinergi\BrowserDetector\Device;
use Sinergi\BrowserDetector\Language;
browser = new Browser();
$os = new Os();
$device = new Device();
$language = new Language();
$os = $os->getName();
$browser = $browser->getName();
etc
I used the above without much difficulty.
…On Thu, Nov 23, 2017 at 1:43 PM, Thomas Müller ***@***.***> wrote:
I dont think that will work, except you include every file from the
project.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEGBNoekMvYQYxZOYssR6duHfB9tE5Phks5s5bzKgaJpZM4QozJd>
.
--
Sincerely,
*Grant Mucha*
Degrama Online Superstars
|
I want also do a manual include without composer autoload. Any tutorial on topic would be welcome :-) |
If you don't use composer, you'll need to figure out the individual require_once statements, in the correct order. |
Ideal PHP script contains no require or include (it reduce script run times). I want to avoid composer because it increase run time. |
Thank you for your answers. I tried out Composer a while ago and today I love it :) Why I didn't like Composer at first, was because I want kind of anti against installing new things to a library that have basically everything already. |
great, keep loving it.. |
I think this issue can be closed, it makes no sense in 2022 to not use |
It seems it's impossible to include this class with the
require
function within PHP, without getting a error message! How can I include the function to my website?! Please, tell us others how to do this, in your guide!The text was updated successfully, but these errors were encountered: