Tags » PHP 2

Sending emails based on templates and placeholders with attachments using php and smtp

Being a web developer I often need to send emails based on user requirements, some time these are simple emails but some times users want to take control of email contents and attachments. 260 more words


PHP funciton for recursive delete all sublevels of categories

function recursiveDelete($id) {
$result=mysql_query(“SELECT * FROM category WHERE id_parent=’$id'”);
if (mysql_num_rows($result)>0) {
while($current=mysql_fetch_array($result)) {
mysql_query(“DELETE FROM category WHERE id=’$id'”);


Yii 1 preserve flash message untill message print

Go to protected/config/main.php

set new value in component=>user array

‘autoUpdateFlash’ => false,

Now flash message will preserve unill message is print.


[PHP] PHP code showing on the page instead of being executed

Environment :
Ubuntu Server 14.04
PHP 5.5.9

Problem :
PHP code showing on the page instead of being executed

Reason :
The reason that I met this problem is because the PHP file I used begin with (<?) instead of (<?php) which the short tag is deprecated by default. 33 more words


Getting started with PHP on Azure

Hello Everyone, today let’s make ourselves ready to learn a new topic i.e. hosting PHP application on Azure. Many of us must have came across the word… 1,075 more words


Full SQL Injection Tutorial (MySQL)

In this tutorial i will describe how sql injection works and how to
use it to get some useful information.

First of all: What is SQL injection? 2,139 more words