Showing posts with label text. Show all posts
Showing posts with label text. Show all posts

Monday, August 31, 2015

How to Detect Mobile Browsers (11 Steps)


Download the 'Detect Mobile User Agents & Browsers' PHP script by clicking on the link located in the 'Resources' section below. The downloaded file is compressed. Double-click on it to open your default extraction program and extract the files to your desktop.
Open an FTP (File Transfer Protocol) program and log in to your website's hosting account by typing in your FTP address, username, and password. Once you have connected to your hosting server, use the FTP program to upload the 'mobile_device_detect.php' file that you extracted in step 1. Upload it to the root directory of your website where your 'index.html' or 'index.php' file resides.
Use the FTP program to download the 'index.html' or 'index.php' file from your website and save it on your desktop. Open the file in a text editor such as Notepad or Wordpad.
Open a web browser and type 'http://detectmobilebrowsers.mobi/" into the address bar, then press the ENTER key. Alternately, you can click the 'Detect Mobile Browsers Website' link in the 'Resources' section below.
Scroll down to the 'Function Generator' heading. Here we will generate a PHP function code that will define how the PHP code file we uploaded in step 2 will behave. Choose an option from the respective drop-down menus for 'Detect iPhones,' 'Detect iPads,' 'Detect Android Devices,' 'Detect Opera Browsers,' 'Detect Blackberry Devices,' 'Detect Palm Mobiles' and 'Detect Windows Mobile Devices'. Each drop-down menu will allow you to specify whether to treat the device browser like a mobile browser or a standard desktop browser. You may also choose to redirect a device type to a custom URL, which must be typed into the text field that appears below the drop-down menu when you choose the 'Redirect (device) to a specific URL' option.
Choose an option from the 'Redirect Mobile Browsers' drop-down menu. Any devices that were set in the above options to be treated like a mobile browser will be affected by this option. You can redirect mobile users to a custom URL where there is a mobile browser-optimized version of your website or choose not to redirect them, which will allow them to access the standard website. Type the mobile-optimized website URL into the provided text box.
Set the 'Redirect Desktop Browsers' drop-down menu to 'No - Do not redirect desktop visitors - function will return false' to allow desktop browser users to access the standard website. Any devices that were set in the above options to be treated like desktop browsers will be affected by this option.
Click the 'Generate Code' button. Highlight the text that appears in the 'PHP Code' box and press CTRL+C on your keyboard to copy the text to your clipboard. Minimize your web browser so you can see the 'index.html' or 'index.php' file you opened in the text editor in step 3.
Create a blank line at the beginning of the text document by clicking your mouse at the top of the document and pressing the ENTER key. Place your cursor on the blank line and type '
' and press ENTER again.
Click on the 'File' menu at the top of the text editor and choose 'Save'. In the FTP program window, copy the edited 'index.html' or 'index.php' file back to the root directory of your website, overwriting the original file.
Access your website from a mobile device browser. You should be redirected to you mobile-optimized website. Access your website from a standard browser to make sure that you are directed to the standard website.
VPS Hosting

Sunday, August 30, 2015

How to Block Websites With cPanel (4 Steps)


Log in to cPanel by launching your Web browser, then typing in the login page address in the address bar and press 'Enter.' Type your cPanel username and password into the displayed text fields and click 'OK.'
Click the 'IP Deny Manager' icon under the 'Security' section.
Type the IP address of the user you wish to block into the 'IP Address or Domain' text field. If you have a blog installed on your hosting server, typically find the IP address of the user you wish to block in the comments area, next to their username.
Click the 'Add' button to block your website from being accessed by the particular IP address. The blocked IP address displays at the bottom of the screen.
VPS Hosting

Saturday, August 29, 2015

How to Create an Under Construction Page (6 Steps)


Get your domain name. The first step is to purchase your domain name. This is the web address that visitors will use to get to your website. You can purchase domain names online from websites like Go Daddy and BuyDomains (see Resources below).
See if the domain server will set up the page. Sometimes your domain server will set up an 'Under Construction' page for you. When you're looking for a domain server, ask whether this is part of the contract.
Create your own 'Under Construction' page if your domain server doesn't provide one. Use a simple program like Page Maker, or follow these steps:
• Open a text editing application like Notepad or EditPad.
• Type '
'. (Include only the keystrokes in between the quotation marks here and below). This will tell the browser that you're creating an HTML document.
• Add '
' to indicate that the document's information is starting.
• Add a title by typing '
Under Construction
' followed by '
'.
• Start the body of the webpage by typing '
Site Under Construction
'. The viewer will see this text; so add all pertinent information.
• Close the webpage by typing
and save as trial.html.
• Open your browser and click on 'Open' from the 'File' menu. Locate the file and click 'Open' to view your 'Under Construction' page.
Add basic text and information. To make sure your 'Under Construction' page is useful, include not only a statement that the site is under construction but also information like the site's name. If you know when the expected completion date is going to be, include that as well.
Insert a graphic. Within your page-making program, insert graphics that show the site under construction. Most sites use a graphic that resembles a road construction sign.
Post the 'Under Construction' page. When the page is finalized, post it at your domain name. When someone visits your Web address, they will now know they should keep checking back.
VPS Hosting

Thursday, August 27, 2015

How to Enable IMAP in PHP.INI on Go Daddy (4 Steps)


Log in to your Go Daddy virtual server with an administrator username and password. Click the Windows 'Start' button on the host and type 'php.ini' in the search text box. Press 'Enter' to open a window with the PHP.INI file's folder location.
Right-click the file and select 'Open With.' Choose 'Notepad' to open the current PHP.INI data in the editor.
Press the 'Ctrl' and 'F' keys to open the 'Find' dialog box. Type 'php-imap.dll' and press 'Enter' to scroll directly to the PHP.INI IMAP line item.
Remove the semicolon at the beginning of the IMAP entry. Click 'Save' to save the changes to the file. Removing the semicolon removes the comment statement, so the IMAP service becomes active.
VPS Hosting

Wednesday, August 26, 2015

How to Change Apache 2 Index.html


Log in to the remote server through SSH, or open a terminal window if you are located with the server.
Type 'cd /etc/apache2' at the terminal prompt to change to the Apache 2 directory where the configuration files are stored.
Open 'apache2.conf' in a text editor such as vi, pico or nano. Search for the 'DirectoryIndex' line, which will look similar to the following:DirectoryIndex index.html index.cgi index.pl
Edit the line to include new filenames, or remove existing pages. For example, you could change the directive to:DirectoryIndex index.php index.htmFiles are searched in the order which they appear, so the first file matching a name in the list will be displayed to the visitor. Save the file and close the text editor.
Restart Apache by typing '/etc/init.d/apache2 restart' at the terminal prompt.
VPS Hosting

Monday, August 24, 2015

How to Forward Mail From Horde to Gmail


Sign in to your Gmail account at gmail.com.
Click on the gears icon on the upper-right of your Gmail screen, next to your Gmail address, and select 'Mail Settings.'
Click on the 'Accounts' tab.
Click 'Add a mail account you own' in the 'Get mail from other accounts:' section. A new window emerges.
Type in the name of your Horde account in the 'Name:' text box, and the email address for your Horde account in the 'Email address' text box. Click 'Next Step.'
Type in your Horde account username in the 'Username' text box, your Horde account password in the 'Password' text box, and the name of your Horde account's POP server in the 'POP Server' text box. Select the correct POP server port number from the drop-down menu. The POP server name and port number are obtainable from your Web-hosting provider.
Check the 'Leave a copy of retrieved message on the server' box if you want to preserve the original mail on your POP server. Check the 'Always use a secure connection (SSL) when retrieving mail' if your POP server supports the SSL (Secure Socket Layer) option. Check the 'Label incoming messages' box as your Horde email address if you want to distinguish your Horde mail from your Google mail. Check the 'Archive incoming messages' box if you do not want your Horde mail to appear in your inbox, but rather be archived.
Click 'Add Account.' If you have typed in your username, password and POP server name correctly, you have then successfully imported or forwarded your Horde mail to Gmail. If there is mail in your Horde inbox at this time, you will soon see them within your Gmail account, based on the settings in Step 7.
VPS Hosting

How to Create a MySQL Database


Log into the phpMyAdmin interface on your Web space. You will need the username and password assigned by your Web-hosting provider.
Find the text 'Create New Database' on the main frame of the page.
Enter a name for your new database into the blank text field provided.
Click 'Create.' You will get a confirmation page telling you that your database has been created.
VPS Hosting

How to Use SSL With Joomla


Purchase an SSL certificate from your Web hosting provider or another reseller. Have the provider enable the certificate for use on your domain.
Browse to the control panel for your Web hosting account. Use the 'File Manager' to locate the '.htaccess' file in your site's root directory. Download and save the file to your computer.
Open the '.htaccess' file with Notepad or another text editor. Add the following code to the text file:RewriteEngine onRewriteCond %{SERVER_PORT} !^443$RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L]
Redirect permanent / https://www.yourdomainname.com
Delete the 'www.yourdomainname.com' reference and replace it with the domain name for your Joomla site. Save the file and exit the text editor program.
Open the 'File Manager' application in your website control panel. Browse to the directory on your computer where you saved the '.htaccess' file. Upload the file to the root directory of your website. Overwrite the current '.htaccess' file if prompted to do so.
Browse to the administrative page for your Joomla website and log in as an administrator.
Browse to the 'Global Configuration' link on the main control panel page in Joomla. Click the link to go to the main Joomla settings page.
Click on the 'Server' tab near the top of the 'Global Configuration' page.
Click the 'Force SSL' drop-down box and select the 'Entire Site' option. Click the 'Save' icon in the upper right corner of the 'Global Configuration' page.
Log in to the Joomla website as you normally would. Because you changed the '.htaccess' file, Joomla will now redirect normal 'http' requests to the more secure 'https' log-in page.
VPS Hosting

Sunday, August 23, 2015

How to Create Host a Website (11 Steps)


Start with a pen and paper and sketch out a site map. The map should begin with the website's home page and branch out from there. It is similar in structure to an organization chart that shows the hierarchy of a corporation. The home page is the CEO and the other pages on the site are employees.
Still using pen and paper, sketch out what the web pages will look like. Decide what elements, such as text, images and video need to be on the pages and where each element will go.
Gather the images, text, video and other elements to be placed on the page together in one place in one folder.
Choose web design software. Adobe Dreamweaver is the industry standard for professional web page design, but there are many free or inexpensive web design programs, such as NVU Open Source Web Builder and WYSIWYG Web Builder Five, which can be downloaded at no cost. These programs are fine for building personal websites.
Working from the initial sketch, lay out the web pages that comprise the site using the web design software. Start with the home page of the site, which must be named 'Index.html.' Other pages on the site can have any name the creator wants.
Using the site map as a guide, make sure the pages of the site are linked together so that users can get from one page to another.
Preview the site in multiple web browsers. The site should appear as it looks when viewed with the web design software. If any page does not look the same in a browser as it does when viewed with the web design software, edit the page until the problem is solved.
VPS Hosting

Saturday, August 22, 2015

How to Reset a cPanel Password


Log in to your web hosting account to access the cPanel.
In the cPanel interface, look for a section titled 'Preferences.'
Look for a text link or icon labeled 'Change Password.' Click it.
Type in your old password.
Type in your new password twice; or, have the password generator create a new password for you. Save your changes.
VPS Hosting

Thursday, August 20, 2015

How to Open Up a New Tab in HTML (6 Steps)


Open Windows Notepad or another text or HTML editor on your computer. Open the HTML file in which you want to place links that open in a new tab or window.
Position the cursor at the point in the HTML code where you want to place the link. Enter the following HTML code:http://www.somesite.com/somepage.htm' target='_blank'>Link Text
Change the 'http://www.somesite.com/somepage.htm' value to the actual website and page to open with the link.
Change the 'Link Text' value to the text you want to display for the link. For instance, 'Click Here to go to Somesite.com' or any other descriptive text.
Click 'File,' then 'Save' on the editor toolbar.
Use an FTP program or log in to the control panel of your Web hosting account to upload the new HTML file to your site. When visitors click links formatted with the above syntax, Web pages will open in a new tab if the browser supports the option. If the browser does not support tabbed pages, the link will open and display the Web page in a new browser window.
VPS Hosting

How to Calculate Data Transfer Usage (4 Steps)


Determine the size of the Web page being transmitted. As an example, take a website that consists of 5KB of text and two 20KB pictures. Together the page is 45KB of data.
Determine how many visitors have viewed the page (or are expected to view it). This is how many 'hits' the page receives. For the example page, it received 100 visitors in the past month.
Multiply the number of visitors by the size of the Web page to get the data transfer usage for that Web page. For the example, the data transfer usage for the month was 100 visitors x 45KB = 4,500KB.
Take the average size of all Web pages when calculating the data transfer usage for a large website. Multiply this by the number of visitors and then by the average number of pages viewed by each visitor. As an example, take a site that has five Web pages that are each 20KB, with 1,000 visitors and each visitor on average views three pages. Average Web page size is (20 + 20 + 20) / 3 = 20 KB. 20KB x 1,000 visitors x 3 pages viewed each = 60,000KB data transfer usage.
VPS Hosting

How to Build a Web Site for Electrical Contractors


Register a domain name, or URL, with a domain name registrar company. Choose a domain name that reflects the nature of your electrical contractor business or use your own or your business name.
Sign up for a website hosting account for your electrical contractors page. Copy the nameserver codes given to you in the hosting admin page and paste them in the appropriate spot on the domain name registrar's account page. This will attach the domain name to the hosting account.
Design the website in a text or WYSIWYG editor, select a free or professional web template or pay someone to design the website pages for you. For a company electrical contractors web page, choose colors and a style that fits the nature of the business.
Create website pages that include information about your company, the services that electrical contractors provide, licensing and contact information. If possible, include a page of testimonials from satisfied customers. Always ask customers if you can use their testimonial on the website before including it.
Upload all website pages, graphics and code to the hosting account, using an FTP program or the hosting account's control panel page. Check all links and contact forms to make sure they work properly. The live electrical contractors web site can attract customers and increase your business profits.
VPS Hosting