web analytics

How To

How to read and write INI files in PHP?

INI files are simple text files with a basic structure consisting of sections, property and value. INI files can be used across different platform which is a great advantage as a single INI file can be used in various versions of the same application for various platforms. INI files are used to store configurations for applications in a manner of property = value. Values can be single or one dimensional array. Also sections can be used to group same type of configurations. The last thing is comments, we can write comments in INI files. Comments in INI files starts with ; (semicolon)

How to Save PHP Array in Database in PHP?

We will see how we can store PHP array in database. We will store the PHParray in database and we get it back, as PHP array. When we create management system or a CMS like application, we need to store a lot of configuration per user, per module etc. Multidimensional array is the best ever thing to work with in such situation. Configuration can be of two different types; searchable and not searchable. Searchable configurations are those which are used to filter a search result. For example various flags, tags, categories that we store with contents. We might need to filter contents with this flags, tags etc. No searchable configurations are like widget settings. We do not search for settings of an widget, rather we need those settings while rendering the widget.

How to read comment blocks into PHP array?

We might need to read comment blocks into PHP array. Comment blocks in php files describes a file & we might need this info in array. These comment blocks are not there just because the developer wanted to. These lines can be there as the system may require those lines to describe the file in terms such as the name of the theme or plugin, create date, author name, update date, version number etc. These information about the file then can later be used in the system or CMS.

How To Add/Remove a Label To/From Multiple Posts at a Time in Blogger?

Dear blogger users, when we start blogging with blogger we misuse labels in blogger in blog posts. We generally forget that labels in blogger blog posts are like categories. Sometimes we might also not use meaningful labels to blog posts. Instead we use meaningless labels to our blog posts. Thus after a year, when we …

How To Add/Remove a Label To/From Multiple Posts at a Time in Blogger? Read More »

How to add adsense ads in the middle of the content in blogger template?

Middle of the Content is the best performing ad position for me so far among all the 5 Best Ad Positions I discussed earlier. This ad position is so effective as the reader sees the ad while reading your post and if you can blend the ad style with the style of the content then …

How to add adsense ads in the middle of the content in blogger template? Read More »

How to add adsense ad code AFTER the CONTENT in blogger template?

After the content is one of the recommended ad positions I have already mentioned in the post 5 Best Ad Positions to Increase Adsense Revenue. In this post, we will see how we can add adsense ad code after the content of each post and page. We will do this in the blogger template so …

How to add adsense ad code AFTER the CONTENT in blogger template? Read More »

How to add adsense ad code BEFORE the CONTENT in blogger template?

Before the content is one of the recommended ad positions I have already mentioned in the post 5 Best Ad Positions to Increase Adsense Revenue. In this post, we will see how we can add adsense ad code before the content of each post and page. We will do this in the blogger template so …

How to add adsense ad code BEFORE the CONTENT in blogger template? Read More »

How to find the data:post.body or post body in blogger template?

In blogger template, <data:post.body/> is the tag which prints out the full body of your post. This is important to know where this tag is to do things around post body. But the problem is, in some templates there can more than one <data:post.body/>. So how to find which one is the one that prints …

How to find the data:post.body or post body in blogger template? Read More »

RSS
Follow by Email
Scroll to Top