Archive for the ‘LAMP’ Category

Top BookMarking Sites

Save your important links online with top bookmarking sites……

1 | twitter
2 | digg.com
3 | Yahoo! Buzz
4 | tweetmeme.com
5 | StumbleUpon.com
6 | reddit.com
7 | Technorati.com
8 | del.icio.us
9 | kaboodle.com
10 | mixx.com
11 | Propeller.com
12 | newsvine.com
13 | Fark.com
14 | Slashdot.org
15 | twine.com
16 | clipmarks.com
17 | dzone.com
18 | faves.com
19 | blinklist.com
20 | diigo.com

Wildcard DNS – subdomain profile

A wildcard DNS record is a record in a DNS zone that will match requests for non-existent domain names. A wildcard DNS record is specified by  “*” as the left most label of a domain name, e.g. *.example.com.

DNS zone Entry

example.com. 86400 IN SOA example.com. hostmaster.example.com.
IN NS ns1.example.com.
IN NS ns2.example.com.
IN MX 10      mail.example.com.
IN A 192.168.1.1
mail A 192.168.1.1
ns1 A 192.168.1.1
ns2 A 10.0.0.2
*.example.com. A 192.168.1.1

.htaccess file:
<IfModule mod_rewrite.c>

RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.example\.com
RewriteRule ^$ profile.php?uid=%1

</IfModule>

Now if you want sandeepverma.example.com it will redirect to profile.php with uid=sandeepverma

CIFS – Common Internet File System

Common Internet File System (CIFS) is a proposed standard protocol that lets programs make requests for files and services on remote computers on the Internet. CIFS uses the client/server programming model. A client program makes a request of a server program (usually in another computer) for access to a file or to pass a message to a program that runs in the server computer. The server takes the requested action and returns a response. CIFS is a public or open variation of the Server Message Block Protocol developed and used by Microsoft. The SMB Protocol is widely used in today’s local area networks for server file access and printing. Like the SMB protocol, CIFS runs at a higher level than and uses the Internet’s TCP/IP protocol. CIFS is viewed as a complement to the existing Internet application protocols such as the File Transfer Protocol (FTP) and the Hypertext Transfer Protocol (HTTP).

CIFS lets you:

  • Get access to files that are local to the server and read and write to them
  • Share files with other clients using special locks
  • Restore connections automatically in case of network failure
  • Use Unicode file names

Mount Windows File System on Linux

# mount -t cifs //192.168.0.x/projects -o username=uname,password=pwd /mnt/public

Install Fonts in Fedora

  1. Log in as root or use su at command line
    $ su
  2. Go to the font storage directory:
    # cd /usr/share/fonts
  3. Create a subdirectory for the Arial fonts:
    # mkdir arial
  4. Copy the Arial fonts into this directory from font sites or windows FONTS folder.
  5. Make the font files accessible systemwide:
    # chmod 0775 -R arial
  6. Run fc-cache to cache the arial fonts on system:
    # fc-cache arial

http://www.myvirtualdisplay.com/2009/06/28/installing-fonts-in-fedora/

Install the Alternative PHP Cache (APC)

The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code.

yum install php-pear
yum install php-devel httpd-devel
yum groupinstall ‘Development Tools’
yum groupinstall ‘Development Libraries’
pecl install apc

http://si2.php.net/manual/en/install.pecl.php

LAMP useful Resources

http://www.canavese.org/resume
http://thinkd2c.blogspot.com/2006_03_01_archive.html
http://www.sajithmr.com/smpp-library-in-php/
http://www.kannel.org/ (SMS)
http://developer.apple.com/internet/webservices/soapphp.html
http://www.vueling-sc.com/SMS-testPost.asp (SMS)
http://www.blogohblog.com/top-10-javascripts-for-image-manipulation/  (js img)
http://jquery.khurshid.com/ifixpng.php
http://phaedo.cx/archives/2007/07/25/tools-for-optimizing-your-website-etag-and-expire-headers-in-django-apache-and-lighttpd/
http://www.ultramegatech.com/blog/2008/12/creating-upload-progress-bar-php/2/

http://www.bigresource.com
http://www.mysqltutorial.org/  (mysql)
http://www.mysqlperformanceblog.com/2007/10/16/  (Mysql)
http://www.mysql-apache-php.com/  (LAMP)
http://myy.helia.fi/~karte/kurssit/lamp-linux-apache-mysql-php-quickstart.html (lamp)

How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum


http://www.mysql-apache-php.com/website_screenshot.htm
http://www.mysql-apache-php.com/apf-firewall.htm  (Firewall)
http://www.mysqlperformanceblog.com/2007/10/16/  (Mysql)
http://pingability.com/  (Monitor)
http://www.mysql-apache-php.com/dns-server-tutorial.htm  (DNS)
http://www.linuxjournal.com/article/7327  (SPF spam/junk for hotmail, aol etc.)
http://www.onlamp.com/pub/a/onlamp/2008/05/13/creating-applications-with-amazon-ec2-and-s3.html  (EC2)
http://ibiblio.org/g2swap/byteofpython/read/what-programmers-say.html  (Python)
http://jyotirmaya.blogspot.com/2008/11/xampp-python-django.html  (xampp + python)
http://blog.chomperstomp.com/?p=150 (xampp + python)
http://www.prosoxi.gr/2008/12/11/xampp-settings-with-plain-text-configuration-files/  (xampp + php)
http://www.cyberciti.biz/tips/redhat-enterprise-linux-4gb-plus-ram-support.html  (more RAM)
http://www.yolinux.com  (Articles)
http://www.solarenergyhost.com/content/view/157/155/  (Joomla)
http://fonefinder.net/  (us phone no)
http://www.tp2location.com/  (Phone finder)
http://ffmpeg-php.sourceforge.net/  (ffmpeg-php)
http://www.crucialp.com/resources/tutorials/server-administration/how-to-install-ffmpeg-centos-rhel-redhat-enterprise-easy-way.php   (cenOS 4.7 Final)
http://www.cyberciti.biz/faq/explain-mx-record-mx-priority/  (MX Record)
http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec295.html  (FTP user)
http://www.crucialp.com/blog/2008/09/27/how-to-install-webmin-on-ubuntu-7-or-8-by-using-ubuntu-deb-packages/  (Webmin)
http://blog.getasysadmin.com/2009/02/more-apache-benchmarks-using-ec2.html  (scalr + EC2 + ubuntu)
http://doxfer.com/Webmin/ProFTPDServer#Configuring_logging  (Webmin)
http://dev.sellingsource.com/2006/12/07/sending-wap-push-messages-with-kannel-php/  (Wap Push)
http://www.passitto.com/

http://techandother.wordpress.com/2006/02/01/rapid-web-prototyping-with-open-source-part-5/  (Joomla)
http://wiki.triangle-solutions.com/index.php/SMS_WAP
http://mu.wordpress.org/forums/topic.php?id=10540  (Paypal API)
http://valet.webthing.com/link/  (broken links)
http://codex.wordpress.org/Changing_File_Permissions
http://www.zimbio.com/PHP/articles/144/Htaccess+Example+Codes
http://codex.wordpress.org/htaccess_for_subdirectories  (stop script execution)
http://www.bigresource.com/PHP-Stop-Direct-Execution-kZxnWn2H.html
http://www.artzstudio.com/2008/08/using-modconcat-to-speed-up-render-start/  (Combine css, js etc.)
http://aciddrop.com/php-speedy/
http://www.ejeliot.com/blog/72
http://bizrules.info/weblog/2005/08/database_vs_rulebase_vs_knowle.html  (DB vs KB)

http://www.securityfocus.com/infocus/1818  (SSL)

http://www.vanemery.com/Linux/Apache/apache-SSL.html  (SSL)

http://www.tc.umn.edu/~brams006/selfsign_ubuntu.html  (SSL)

http://developer.apple.com/internet/opensource/php.html (PHP on MAc)

http://www.databaseanswers.org/data_models/
http://dhtmlkitchen.com/scripts/tabs/Tabs/demo/dual.html#content4  (key Tabs)
http://jquery.khurshid.com/ifixpng.php
http://blog.scubetech.in/?p=107

webMin tutorial

http://swelltech.com/support/webminguide/

http://www.webmin.com/

http://en.wikipedia.org/wiki/Webmin

Click to access 0131408828.pdf

http://doxfer.com/Webmin/Tutorials

HowTo: Get Cookies Across Subdomains PHP

Jotlab » Blog Archive » HowTo: Get Cookies Across Subdomains PHP

HowTo: Get Cookies Across Subdomains PHP

April 8th, 2008 by VoiDeT | Posted in PHP | With 2,413 views | Word Count: 110 |

So you are using cookies on your website, but when a visitor visits http://www.yourdomain.com and yourdomain.com the cookie doesn’t get set across both! That is because in essence, www. is simply a subdomain. The “www” component is not a protocol, it is not necessary, instead all it is, is just a marketing ploy. But anyway. Here is what you would do normally:

1.
setcookie(‘YourCookieName’, ‘Some Values’, time() + 3600, ‘/’, ‘mydomain.com’);

Damn! Almost there! The part you are missing to add a cookie irrespective of the subdomain is “.mydomain.com”. Yep, just add a . infront of your domain name. So you would have:

1.
setcookie(‘YourCookieName’, ‘Some Values’, time() + 3600, ‘/’, ‘.mydomain.com’);

All done ^^ Enjoy

Top 10 PHP Frameworks

1. Zend Framework – http://framework.zend.com/
2. CakePHP – http://www.cakephp.org/
3. Symfony Project – http://www.symfony-project.com/
4. Seagull Framework – http://seagull.phpkitchen.com/
5. WACT – http://www.phpwact.org/
6. Prado – http://www.xisc.com/
7. PHP on TRAX – http://phpontrax.com/
8. ZooP Framework – http://zoopframework.com/
9. eZ Components – http://ez.no/products/ez_components
10. CodeIgniter – http://www.codeigniter.com/

That’s the top ten framework. For more information on other framework. below is the link
http://www.phpwact.org/php/mvc_frameworks
http://www.dagbladet.no/development/phpcodingstandard/

Blog

Switch On The Code

http://blog.paranoidferret.com/

# Adobe AIR
# All Tutorials
# AutoHotkey
# Away3D
# Blender
# Blog News
# Book Reviews
# C#
# C++
# CSS
# Drupal
# Flex
# Google Chrome
# Interviews
# Javascript
# LINQ
# MySQL
# Neat Websites
# Photoshop
# PHP
# Rants
# Review
# Silverlight
# Snippet Tutorials
# Tech News
# Visual Studio
# WordPress
# WPF
# XAML
# XNA
# Zune

http://www.bennadel.com/blog