background preloader

Web Hosting

Facebook Twitter

Top 10 Pro Tips and Tools for Budding Web Developers and Designers. How to Send Email from a PHP Script Using SMTP Authentication. Sending an email from a PHP script is simple, fast and easy; if it works. PHP mail() and SMTP Authentication Part of what makes the PHP mail() function is so simple is its lack of flexibility. Most importantly and frustratingly, stock PHP mail() does not usually allow you to use the SMTP server of your choice, and it does not support SMTP authentication — required by many a mail server today — at all. PEAR Mail for SMTP Authentication and SSL Connection Fortunately, overcoming PHP's built-in shortcomings is not difficult either, complicated or painful. Send Email from a PHP Script Using SMTP Authentication To connect to an outgoing SMTP server from a PHP script using SMTP authentication and send an email: Make sure the PEAR Mail package is installed.

Sending Mail from PHP Using SMTP Authentication - Example <? Sending Mail from PHP Using SMTP Authentication and SSL Encryption - Example <? How to remove watermark from an image or picture. A watermark is any recognizable text, logo or pattern that appears over an image to identify the owner of the image and generally used to prevent unauthorized reuse of the image. Watermarks are usually transparent and can be difficult to remove. The difficulty or ease of removal depends on the content of the image and the position, color, size etc of the watermark. There are several resources out there that teaches you how to remove watermark from pictures, but most of them are old. Although these guides are still relevant, in light of some new tools that has recently become available in our hands, I decided a new guide was necessary. Removing water mark using Photoshop CS5 The new iteration of Photoshop, Creative Suite 5 or CS5 in short, includes some handy tools that really helps in such tasks as removing watermarks.

For our example we will use an image from iStockPhoto and try to remove the watermark right across the face of the image. Release it, and the line is gone. Now press D. About W3C Standards. Website Templates | Free Web Templates | Free Templates. Corporate » Free Business Template | Just another WordPress site from FREE CSS TEMPLATES. Free CSS business template. Well commented html and css code, so you can edit it with minimum efforts. Suitable for your business website, personal portfolio, corporate website etc.

Free Business Template Width: 980pxSources Available: .HTML .CSS .JSFile Size: 118 KB. How to convert a psd file into an html page?? - Free website templates. How to Improve Website Load Times. I’ll admit it: I’m addicted to speed. No, not the psychostimulant; I’m talking about website speed. I’m not alone, either. Google recently announced that they consider website speed when determining search engine rankings. Oh, did I mention that a slow website can literally kill your revenue stream? Check out what the experts at websiteoptimization.com have to say about the topic: Google found that moving from a 10-result page loading in 0.4 seconds to a 30-result page loading in 0.9 seconds decreased traffic and ad revenues by 20% (Linden 2006).

When the home page of Google Maps was reduced from 100KB to 70-80KB, traffic went up 10% in the first week, and an additional 25% in the following three weeks (Farber 2006).Tests at Amazon revealed similar results: every 100 ms increase in load time of Amazon.com decreased sales by 1%. It’s quite clear. What Determines Website Page Speed?

The Yahoo! Let’s do it. 1. Translation: Limit the number of files required to display your website 2. 3. 4. What? Hosting a website. NOTICE: making anything visible outside your network can open security issues, so you are doing this at your own risk. Some apps are more secure than others, but there is nothing ultimately secure. Best is to use the VPN to login back home. To access the HDA itself from outside the network using VPN, check out the OpenVPN ALS application, available to install through the HDA. It enables you to access the HDA, and all applications and folders, using just your free username.yourhda.com webaddress. So you want to run a web server in your Amahi server and make it visible from the web outside your home.

For the purposes of this guide you need either of the following: VNC access to your HDA if headless Terminal is available under Applications -> System Tools -> Terminal SSH if headless and no VNC A monitor if you are not headless To host your own web site you need the following: What you need to do in a terminal (as root) is find the apps conf file then edit the conf file for the app: Fedora No.

How to install Apache web server in Fedora 14? Can yum be used for installing? Web App Packaging Notes. Database Restore Install Script: # Check for backup of old version database if [ -f /var/hda/dbs/latest-appname.bz2 ]; then # Import old version database bzcat latest-app.bz2 |mysql -uapp -papp app else # Insert new version database mysql -uappname -pappname appname < appname.sql; fi NOTE: if statement switches are: -d: directory -f: file Database Update to UTF8 echo "alter database appdb charset=utf8" | mysql -uappdb -pappdb App Start on Boot /usr/bin/crontab -l > apache-crontab; cat >> apache-crontab << 'EOF' @reboot /var/hda/web-apps/appname/html/startup.sh EOF /usr/bin/crontab apache-crontab; rm -rf apache-crontab; Uninstall Script: /usr/bin/crontab -l > apache-crontab; sed -i '/appname/d' apache-crontab; /usr/bin/crontab apache-crontab; rm -rf apache-crontab; Find and Rename .htaccess Files find .

Add Server (Service) Feature Install, Enable, and Start Fedora: install -m 755 appname /etc/init.d/; /sbin/chkconfig appname on; /sbin/service appname start; Ubuntu: Uninstall, Disable, and Stop or. How to prevent Hotlink bandwidth theft. Hotlink protection of web site images and files: What is Hotlinking? Hotlinking is when a web site is linking directly to images, video's or other files that are served from another site. Hotlinking can be considered bandwidth theft, because images served on the page are remotely hosted on the owners page. As visitors arrive to view the page, the remote host has to conjour up the images for viewing which consumes additional bandwidth of the image owners site. In the following, I cover one way a site owner can protect their images and files from being hotlinked to help prevent bandwidth theft. How to prevent Hotlink bandwidth theft: Hotlink Protection: Download the nohotlink zip fileExtract (unzip) the files .htaccess and nolink.png from the nohotlink.zipOpen .htaccess using wordpad and change YOURWEBSITE.com to your actual website.

RewriteEngine on RewriteCond %{HTTP_REFERER} ! See example "No Hot Link" Image below: