Skip to content

Jean-Pierre Lambelet

Il n'y a pas de questions bêtes

  • Programming tips
  • About JP
  • English
    • Français
PHP
March 13, 2015 JP

PHP: Create a date/ timestamp with strtotime by setting the time

Everyone knows the strtotime function. With this one, for example, we can recover the date of 2 weeks ago, strtotime

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
Non classé
October 30, 2014 JP

PhpUnit – mock – internal set protected / private variable

Using mock it is often necessary to give a value to a private or protected variable. To do this, just

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
yii
July 17, 2014 JP

Yii: Create a personalized relationship between two tables

To make a personalized relationship between two tables in a model, it is possible to add an additional option in

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
Git
July 10, 2014 JP

Delete all local git branches while retaining the master

After a sprint, all the local branches you have are useless and take up space. Below is a small order

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
PHPUnit
April 23, 2014 JP

PHPUnit how to mocker / simulate an object and methods

When you start using PHPunit, you often find yourself faced with the need to simulate a method or object. Fortunately

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
Git
March 5, 2014 JP

Git – How to update its remote branches

To view its local and remote branches $ git branch -a only remotes $ git branch -r For the list

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
PHP
December 19, 2013 JP

PHP, DOMdocument and xPath to spar an xml file

When we have to process a very large xml, it is unfortunately not possible to use simpleXML. Fortunately for this,

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
PHP
December 19, 2013 JP

PHP and simpleXML

When you want to process an XML file in PHP, there are two possibilities. Either we use simpleXML or we

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
PHP
November 28, 2013 JP

PHP – How to load a FILE in PHP from a form

To find out how to load a file in PHP from a form you have to start by formatting the

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
PHP
November 14, 2013 JP

PHP – How to find the origin of the call on a PHP function

It can happen that a function is only called from an interface (console, apache …). There is a function that

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Read more
  • ← Previous
  • Next →
  • Français
  • English

Recent Posts

  • Symfony – Doctrine – How to see where a sql query is executed
  • Install drupal/console on drupal 9
  • PHP Spaceship Operator <=>
Copyright © 2025 Jean-Pierre Lambelet. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.
Jean-Pierre Lambelet
Proudly powered by WordPress Theme: ColorMag.