Skip to content

Jean-Pierre Lambelet

Il n'y a pas de questions bêtes

  • Programming tips
  • About JP
  • English
    • Français

Author: JP

PHP 

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

March 13, 2015November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

PhpUnit – mock – internal set protected / private variable

October 30, 2014 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
yii 

Yii: Create a personalized relationship between two tables

July 17, 2014November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
Git 

Delete all local git branches while retaining the master

July 10, 2014November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
PHPUnit 

PHPUnit how to mocker / simulate an object and methods

April 23, 2014November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
Git 

Git – How to update its remote branches

March 5, 2014November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
PHP 

PHP, DOMdocument and xPath to spar an xml file

December 19, 2013November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
PHP 

PHP and simpleXML

December 19, 2013November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
PHP 

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

November 28, 2013November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • Facebook
Read more
PHP 

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

November 14, 2013November 19, 2019 JP 0 Comments

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

Share this:

  • Twitter
  • 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.