While Xampp with PHP7 is great there are times when you need PHP5 for an old project. I found this great article on medium the other day on how to have two different PHP versions and one Xampp installation. The alternative is a pain as running two Xampp versions is just too much hassle.
The below article allows you to setup xampp to use PHP 5 and 7 when ever you want. So for normal projects you would use the address’s below, basically it makes xammp listen on port 8888 (or whatever u want) for requests and then uses PHP5 to interpret/compile any Php5 code.
Im currenlty running my way though Laravel 5 the PHP framework and following some tutorials. If your starting this framework you will most likely run into the error below when you run your migrations;
Illuminate\Database\QueryException : SQLSTATE: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
The fix is simple;
Open the AppServiceProvider file and add the following line to the boot function;
class AppServiceProvider extends ServiceProvider
* Bootstrap any application services.
* @return void
public function boot()
//add this line to fix the error
* Register any application services.
* @return void
public function register()
If this is your first time using Django, you’ll have to take care of some initial setup. Namely, you’ll need to auto-generate some code that establishes a Django project – a collection of settings for an instance of Django, including database configuration, Django-specific options and application-specific settings.
From the command line, cd into a directory where you’d like to store your code, then run the following command:
In addition to use an auto-increment key as the primary key, you may also use UUID columns. CakePHP will create a unique 36 character UUID (Cake\Utility\Text::uuid()) whenever you save a new record using the Table::save() method.
Ive finally gotten around to releasing this little app i was working on for Cakephp3. I decided a while ago to abandon Cakephp 2 and go with the new version 3.
Its been a steep learning curve so i wanted to learn as much as i could. So thats where this app/plugin came in.
The goal of the plugin was to allow a way to simply log tasks, changes or articles about the cakephp project your working on.
If your working on a website/project on your own you need a way to record your changes and tasks so i thought this would be an ideal way to learn and release something. Sure you could do the same with Github and better but i think its better to have something like this integrated into your application.