Archive for the ‘PHP’ Category

Symfony RESTful API example

Share

In this post we are going to create RESTfull APIs using PHP framework Symfony 3. This will be exemplified on a “Car” entity. 1. Creating Symfony Application

Share
Tags:      

Display custom language switcher in the desired position in menu

Share

This article will present a method to display a custom language switcher in the desired position in menu when using WPML plugin for WordPress. One client wanted the language switcher (with two languages, Romanian and English) to be on the second position in menu and to show just the inactive language.

Share
Tags:   

How to install Yii Framework on XAMPP for Windows

Share

  Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced as “Yee” or [ji:] and it’s an acronym for “Yes It Is! The first thing you need in order to use the Yii Framework is access to a Web server with PHP installed, of course. But if you’re reading […]

Share


SQL Injection. How to prevent it from happening in PHP.

Share

SQL injection as a matter of security can be approached from multiple angles. One must first be sure that the targeted application has a confidential database structure, since this is the main thing that makes SQL injection possible. Also, it’s important to notice that SQL injection is not something that happens arbitrary or from time […]

Share


How to put online the Apache 2.4 Server

Share

If you find yourself googling in order to make your new local server work online, you’ve come to the right place. Most Web Server packages today (WAMP, XAMPP or Uniform Server) are configured to work with the “old” Apache 2.2 version and have a major flaw. Since 2.4, Apache has dropped the directive “Allow” in […]

Share


Custom header images in WordPress

Share

In this post i will show you a easy way to add different header images for each page or post in your blog / website. The fastest way to achieve this is to use Custom Fields, this allows us to add additional meta information to posts. In the next example the header image it is […]

Share
Tags:   

Basic file encryption with PHP mcrypt using cryptastic class

Share

This post is about encrypting / drecrypting data, files more exactly. After google-ing for a while i found this to be very usefull for what i needed. This class uses RIJNDAEL-256 block cipher, which is based on a symetric key algorithm, this means that it’s using the same key for encryption and decryption.

Share
Tags:    

Testimonials extension for TYPO3

Share

Our client wanted a solution for displaying testimonials on his TYPO3 website. The easiest way to accomplish this was creating some items that can be edited in the backend of the website and a front end plugin for the list and detail view. One of the great things that TYPO3 provides is the TCA (Table […]

Share
Tags:    

osCommerce jQuery price calculator

Share

Let’s assume that we have to build a price calculator for a osCommerce website, that needs to have price based on dimensions(input from user – length, width), attributes,
for each attribute there are more than 1 options with different prices for each option.

Share
Tags:    

The access rules for each user on page in wordpress

Share

The client wanted to limit the access to certain pages based on user account and password. So some pages can only accessed by some users that gave them permission the site manager. For that i create two radio input type with “Yes” or “No” protect page options.When i selected “Yes” option i can chosen from […]

Share
Tags: