Archive for the ‘Tutorials’ Category

Getting stock information from yahoo.

Here is a function to get stock quote information from yahoo:

function getquote($symbol)
{
if (empty($symbol)) {
$symbol = '^dji';
}
$fields = 'sl1d1t1c1ohgv';
// we use yahoo to get the quotes
//http://download.finance.yahoo.com/d/quotes.csv?s=%5EDJI&f=sl1d1t1c1ohgv&e=.csv
$host = 'http://download.finance.yahoo.com';
// construct the url
$url = $host . '/d/quotes.csv?s='. urlencode($symbol) .'&f='.$fields.'&e=.csv';
// ask yahoo for the .csv file
$csv = fopen($url, "r");
$data = fgetcsv($csv,10000,",");
return $data;
}

How to use the above function:
Forst of all [...]

Storing your session to database in php

I am developing a custom solutions for my projects. I was finding solution to secure my php applications. As security is top concerned when I develop my applications. I had to develop a solution for a shared hosting environment and found out that the session hijacking was a big problem while on shared [...]

Best tutorials site for web development

Today I am going to post some of the best available tutorial sites for web development and designing.
1. www.tizag.com
I find this site very useful for starter. It has tutorials on html, css, javascript, php, asp, xml, mysql etc. I refer this site if you are beginner and want to get some fundamentals on any of [...]

Tcpdf a pdf generating php class

I needed to generate a pdf dynamically from the website for one of my project. On my search for a good library i came across TCPDF . It is a Free Libre Open Source Software (FLOSS). You can see more about it here. What today i am going to write is to how quickly use [...]

Send sms to meromobile for free script

YOu might have seen some websites offering sms to meromobile for free. Ever windered how they did it. Ever wanted to use it in your website but didn’t knew how to, here is a quick tutorial for you to get started. Before you start below are some reuirements to meet.
Requirements:
Server with php support and mail [...]