ShareCode

ShareCode

After starting JS and PHP courses at 3W Academy, I quickly needed something to live-type and share the corrected version of their exercises. Some tools exist but none of them matched my needs : share a code in which I can type and others can only watch and copy it. I then decided to create ShareCode, which is dead simple to use : the first to access a slug is the admin one (he can edit the code), all the next ones are read-only users.

As usually, you don’t have to install anything (not even a database), just download/clone it within an Apache-managed directory.

read more

[Symfony] How to fix the “Warning: SessionHandler::read()” exception ?

[Symfony] How to fix the “Warning: SessionHandler::read()” exception ?

If you too you got an error like this one :

Warning: SessionHandler::read(): open(\xampp\tmp\sess_hagg7jkmp7l7fmh5ec4k6jmgu0, O_RDWR) failed: No such file or directory (2) in [...]\app\cache\dev\classes.php line 423

I let you know that you just have to add/change these 2 lines in app/config/config.yml to fix it :

framework:
    session:
        handler_id: session.handler.native_file
        save_path: "%kernel.root_dir%/sessions"

read more

[PHP] Short Syntax Cheatsheet

[PHP] Short Syntax Cheatsheet

Whether you need them to shorten your code, to understand code from someone else, or to use them to write your templates, here is a list of short syntax you can use in PHP :

read more