.

.
How to Create Random Numbers & Characters

How to Create Random Numbers & Characters

The function which generates the random string can be called from any event handler - the example below uses a button.

<script language="javascript" type="text/javascript">
function randomString() {
 var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
 var string_length = 8;
 var randomstring = '';
 for (var i=0; i<string_length; i++) {
  var rnum = Math.floor(Math.random() * chars.length);
  randomstring += chars.substring(rnum,rnum+1);
 }
 document.randform.randomfield.value = randomstring;
}
</script>

Variables to set:
  1. chars - The random string will be created from these characters.
  2. string_length - The length of the random string.

Step 2

Use the following code for your text field and button:
<form name="randform">
<input type="button" value="Create Random String" onClick="randomString();">&nbsp;
<input type="text" name="randomfield" value="">
</form>
How to Change site URL By htaccess file

How to Change site URL By htaccess file

I have to change the url Like its  satihoga.com . I want to change it http://www.satihoga.com/.
then I solve it .Its a wordpress project . & By permalinks & htaccess file I solve it.
By Changing in .htaccess file .
To change wordpress .htacces file in this:

.htaccess file

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


RewriteCond %{HTTP_USER_AGENT} ^-?$

RewriteRule ^ - [F]

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^

RewriteCond %{HTTP_USER_AGENT} ^-?$

RewriteRule ^ - [F]



RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http://www.satihoga.com/
</IfModule>

# END WordPress


And Also change in WP dashboard
Go to settings.
then General & Change the Site url & website address OR url  IN TO  http://www.satihoga.com/

How to Accessing hidden files via FTP (FileZilla)

How to Accessing hidden files via FTP (FileZilla)

Certain files are 'hidden' by default (such as .htaccess files). FTP clients differ in the menus used to alter settings to enable these files to be seen, but all work along the same principles.
The following is a guide to showing those 'hidden files' when using FileZilla.
1
Open FileZilla FTP client.
2
From the Menu bar choose Server
3
Select Force Showing Hidden Files which should be the last option.
You should now be able to see all files including 'hidden files' within the FTP remote window.
 Filezilla_server_show_hidden.jpg
How to show hidden files (htaccess) when using cPanel's File Manager

How to show hidden files (htaccess) when using cPanel's File Manager

By default, when you use the File Manager in cPanel, it does not show hidden files. Hidden files are any file that begins with a dot, such as .htaccess. .htaccess is actually a common file to edit, and so if you would like to edit the file using your File Manager, you'll need to ensure you have the option selected to show hidden files.

Showing hidden files in File Manager

  1. Log into your cPanel
  2. Click the "File Manager" icon
  3. Ensure "Show Hidden Files" is selected
  4. Click "Go".