Tag: php

How to call url from php using C-url :: alternative to file_get_contents()

This is a nice and simple substitute to get_file_contents() using curl, it returns FALSE if $contents is empty. <?php function curl_get_file_contents($URL) { $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, $URL); $contents = curl_exec($c); curl_close($c); if ($contents) return $contents; else

Tagged with: , , , , , , , , , ,

Project Management Tool in PHP under GPL:: DotProject

dotProject : the Open Source Project Management tool. dotProject is built using free open-source applications and is produced and maintained by a small, but dedicated group of volunteers. dotProject is programmed in PHP, and utilises MySQL for a backend database

Tagged with: , , , , ,

Variable Variables in PHP : Power of PHP

Power of PHP extended to use a variable variables. Example: Sometimes it is convenient to be able to have variable variable names. That is, a variable name which can be set and used dynamically. A normal variable is set with

Tagged with: , , , , , ,

How to send Emails From PHP using PHPMailer

PHP email transport class featuring file attachments, SMTP servers, CCs, BCCs, HTML messages, word wrap, and more. Sends email via sendmail, PHP mail(), QMail, or with SMTP. phpmailer_v21download or download it from sourceforge.net http://sourceforge.net/project/showfiles.php?group_id=26031 put these files in you website

Tagged with: , , , , , , ,

Symfony – The PHP Frame work :: Based on MVC architecture !!

Symfony is a full-stack framework, a library of cohesive classes written in PHP5 . Symfony provides an architecture, components and tools for developers to build complex web applications faster. Symfony help you to develop your applications @ early, low cost, secure

Tagged with: , , , , , ,

How to Display records page by page ? or how to do pagination using php and my sql

<?php include(‘includes/database.php’); //this is to execute the query /** * @author [“Arun Raj R , Software Engineer “] * @copyright 2008 */ if (isset($_REQUEST[‘page’])) { $page = $_REQUEST[‘page’]; if($page==” || $page<1) $page=1; } else { $page=1; } $start_from =($page-1) *

Tagged with: , , ,

How to create thumbnails ( Logic ) in PHP

How to create thumbnails ( Logic ) How to create thumbnails ? To generate thumbnails we do the following: Scan a folder for JPG and PNG files (gd does not support GIF anymore, because the packing algorithm in GIF is

Tagged with: , , ,

How to create a directory structure ?

How to create a directory structure ? or How to creata a tree structure  ? or How to design a database for a tree structure ? or How to design a database for storing hierarchical structure ? using single table

Tagged with: , , , ,