Aswin Lutchanah

Hybrid Social Media Specialist + Php/MySql Developer Metz (Développeur Php/MySql Metz) + SEO-SMO

Wordpress Remove version

Now that you have your WordPress installed on your own server, you think that this is it. You think that you may concentrate on the tedious task of creating awesome content. Between you and me, this is definitely time-consuming but necessary! Don’t forget it! Sorry, but you have more work to do with your WordPress blog. In this blog post, I’ll focus on how to remove WordPress version from your blog to improve your blog security. Note that there are other issues to tackle to have a highly secured WordPress blog. I might write more about it; let me know if you want me to do so in the comments’ section. (more…)

Posted In: PHP, Web Development

Tags: , , , , , ,

Leave a Comment

How to show the the week date range in for any month ?
Like: 3november-9november ,10nov-16nov so on…

Following a question of Rajiv Kumar on Facebook, I’ve developed a first version of the php function below to get the first and last day of each week of a month. There are four parameters:

  1. $iYear is the variable for the year
  2. $iMonth is the numerical representation of the month (1 – 12)
  3. $sFirstDayOfWeek takes either Monday or Sunday as the first day of the week; default is Monday.
  4. $bExclusive is a boolean which when true takes only weeks within the chosen month but when false, it allows overlapping to take into account all weeks that are related to the chosen month.

DEMO (more…)

Posted In: PHP, Web Development

Tags: , , ,

Leave a Comment

TYPO3 logoFew days back, I was looking for a way to clear the cache of a single page in TYPO3 version 6 with PHP. Desperate, I even tweeted about it expecting some clues but in vain… Finally, I got the answer while diving in the source code of TYPO3. The objective of this article is to provide an answer to my own tweet and thus avoiding you the pain. And yes, it will also act as a reminder for me. (more…)

Posted In: PHP, TYPO3, Web Development

Tags: , ,

2 Comments

Shuffle est un mot anglais qui signifie mélanger. En php, c’est aussi un mot-clé pour une fonction qui prend un tableau en entrée, mélange ses éléments et retourne TRUE en cas de succès et FALSE si une erreur survient.

Utilisation

Cette fonction est utile si vous souhaitez afficher aléatoirement des informations sur votre site web par exemple.

(more…)

Posted In: PHP, Web Development

Tags: , , , ,

Leave a Comment

I was looking for a way to check if a string contained only numerical values.  I thought that the php function is_numeric() would do the job. I was wrong.

  1. echo is_numeric(555); // 1
  2. echo is_numeric(55.55); // 1
  3. echo is_numeric(+55.55); // 1
  4. echo is_numeric(-55.55); // 1
  5. echo is_numeric(+55.55); // 1

Facebook ids (for developers)

(more…)

Posted In: PHP, SMO, Web Development

Tags: , , , ,

Leave a Comment

Next Page »