Author Archive
php – mysql installation on RHEL and fedora core via yum
This tutorial will guide you step by step on php / mysql server installation via yum command on linux server.
First let’s install apache server :
# yum install httpd
Let's start the server manually after installation :
# /etc/init.d/httpd start
First time information on server start up :
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain [...]
Protect image hotlinking with php
Sometimes we want to protect our content from using our website traffic and images hotlinking, it is possible to do with mod_rewrite .htaccess method and mod_rewrite method is faster , but if you want to protect partial content from code , you can use php gd library to protect image from hotlinking.
Here is the code [...]
Inheritance and polymorphism curl tip
Inheritance is one of the best methods to shorten the thousands miles of code and your time in time of developing, it used in many programming languages like PHP, C#, Java , Python and more. This way of coding should be implemented after clear requirements for your application, well planed database, input and output.
I will [...]
Posting comments with PHP and curl automatically
Here is an experiment of posting comments with php curl library, this is the part of glurt seo tools. With a little imagination you may create a great auto commenting software for any blog cms and any website to promote your website on web or for another purposes. I created this script because I was [...]
Design Patterns for Web Programming in PHP
1. Singleton pattern
Name: Singleton
Problem: You need exactly one global instance of a class and a global point
of access to it.
Context: Any
Solution & Consequences: Make an encapsulated static variable holding
the single instance of a class. Provide a get-method that:
• has a static variable for holding the one and only instance
• instantiates the instance if it [...]
Search, hunt and download videos with feald
Feald search engine introduced as a “Twitter media center” was beta launched two weeks ago. Feald is a promising live search engine includes free twitter tools, youtube search and downloading features, flickr search and more. The difference between feald live search and other industry giants like scoopler, kosmix and other popular live search engines is [...]
Yahoo map service php tutorial
Yahoo provides simple, great maps service to be handled with php, if you need a fast dynamic solution for your website or web service, yahoo MapService api returns images of geo locations by request url. We will show you basic usage of yahoo maps with zoom in and zoom out. You can send the requests [...]
Shrink your url with tiny url api
Url shortening procedure could be much simple if you use url shortening api. Tiny Url api makes it possible to shorten urls with file_get_contents php function. the $u variable is a long variable inserted into the function . Function returns shortened url.
function TinyURL($u){
return file_get_contents(’http://tinyurl.com/api-create.php?url=’.$u);
}
Ubuntu Karmic Koala Climbs Into the Software Tree
Canonical plans to release Ubuntu 9.10, aka Karmic Koala, on Thursday. The open source operating system for both desktops and servers touches down around the same time as Windows 7. Code writers gave special attention to the core server product and kernel in this latest edition. They also asked the user community to list minor [...]
New phishing attack on twitter
Twitter announced on Wednesday about a new phishing attack in which direct messages to users link to a fake log-in page that steals passwords.
“We’ve seen a few phishing attempts today; if you’ve received a strange (direct message), and it takes you to a Twitter log-in page, don’t do it!” the Twitter spam warning says.
The direct [...]
