Skip to content

Jean-Pierre Lambelet

Il n'y a pas de questions bêtes

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

Non classé

Non classé 

Symfony – Doctrine – How to see where a sql query is executed

April 12, 2023 JP 0 Comments

When using Doctrine, it is sometimes important to find where a SQL query is executed. To do this, simply activate

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

Javascript – Iframe – the address where the iframe is located

September 9, 2013November 21, 2019 JP 0 Comments

For security, you can’t directly reach the page outside the iframe from it. On the other hand, we can recover

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

jQuery – Word and Character Counter

September 9, 2013November 19, 2019 JP 0 Comments

A small script to count the number of words and characters in a input or textarea field <input id="text" name="text"

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

PHP – mb_strlen to regain the size of a character chain and not strlen

September 4, 2013 JP 0 Comments

Basic I've seen a lot of codes using strlen to recover a character chain size, unfortunately this method, returns the

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

PHP – Replace accents with their counterparts.

September 2, 2013 JP 0 Comments

A small function to replace the character accented their pendants without. function normalize_str ($str) { $invalid ' array,'' 'S', '''s',

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

PHP – Delete Special Characters

September 2, 2013 JP 0 Comments

To effectively remove special characters in a thong, simply use the preg_replace method. $string – preg_replace ('[^a-zA-Z0-9]/s', '', $string);

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

WordPress – How to make a quere like – "%%"

August 30, 2013 JP 0 Comments

To make queries on WordPress, I'm used to using WP_Query ($args). In this example, we are talking about adding a

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

WordPress – Make WP functions accessible in a PHP script

August 30, 2013 JP 0 Comments

To make all wordpress functions accessible in a PHP script, just include the wp_load.php require_once('.. /wp-load.php'); to test, we can

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

PHP – How to change the value of the son of a DOM Object?

August 13, 2013 JP 0 Comments

Using the getElementsByTagName method to navigate and find the wire in question. $number-orders – $image-1–getElementsByTagName ('number_order'); foreach ($number-orders as $key

Share this:

  • Twitter
  • Facebook
Read more
Non classé 

WordPress – Know if the user is an administrator

August 13, 2013 JP 0 Comments

To find out if the current user is an administrator in WordPress, i.e. if they have the right to set

Share this:

  • Twitter
  • Facebook
Read more
  • ← Previous
  • 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.