All Entries Tagged With: "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 return FALSE; } ?> Then another question How to enable cURL in your server ? [...]
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 (although other databases such as Postgres could also be used). Our recommended server platform includes [...]
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 a statement such as: <?php $a = ‘hello’; ?> A variable variable takes the value [...]
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 root and run the below code to send E mails. 1. class.phpmailer.php 2. class.pop3.php 3. [...]
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 scalable and maintain them easily . Symfony Features Symfony was built in order to fulfill [...]
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) * 10; $rs_result = QryExecute(“SELECT * FROM table_usp ORDER BY id DESC LIMIT $start_from,10″); while ($row [...]
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 copyrighted ). Take each of these images, and load it. Resize the image. Save the [...]
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 Create a table like this CREATE TABLE `category` ( `id` int(11) NOT NULL auto_increment, `name` [...]



