Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP: bootstrap.php

What is bootstrap.php? I got a project that in the .htaccess reads SetEnv AE_BOOTSTRAP /full/path/to/_app/bootstrap.php

However, that file does not exist in the project... Is this something from PHP?

like image 840
luqita Avatar asked Jul 19 '11 18:07

luqita


People also ask

What is a PHP bootstrap?

bootstrap. php is just a conventional name for a PHP file that loads up your project environment. If you have a . htaccess that's pointing to one that doesn't exist, that sounds like garbage left over from a dead software installation. Follow this answer to receive notifications.

Can PHP be used with bootstrap?

PHP is a server-side programming language, which means that you will need a local server to run PHP code. Developers who use Bootstrap with PHP will be able to enjoy plenty of benefits. Here is a step-by-step guide on how you can use the Bootstrap framework with PHP.

Is bootstrap a programming language?

Nope! Bootstrap is a CSS framework and toolkit. Developers can't use it to write programs, but because Bootstrap contains massive amounts of reusable code and website element templates, the framework can remove some of the “busy work” and significantly speed up the process of building a website.

What is this bootstrap?

Bootstrap is a free, open source front-end development framework for the creation of websites and web apps. Designed to enable responsive development of mobile-first websites, Bootstrap provides a collection of syntax for template designs.


2 Answers

No, bootstrapping is not a part of PHP. Rather it is a file that is generally ran at installation time, or with PHP for every request, that takes care of making sure everything is included and general startup procedures are taken care of.

like image 64
Charles Sprayberry Avatar answered Oct 14 '22 01:10

Charles Sprayberry


You can find more information about BootStrapping here .

It's not a PHP feature but just some code that is executed at the start.

With regards to computer technology, “bootstrap PHP code” means creating a bootstrapper that handles all the dynamic requests coming to a server and apply the true MVC (Model View Component) framework so that in future you can change the functionality for each unique component or application without changing the entire code or application.

This file should be on the server otherwise, nothing can be assigned via code...

like image 43
Patrick Desjardins Avatar answered Oct 14 '22 01:10

Patrick Desjardins