just add below code in your .htaccess and save your hrs…
AuthName “Restricted Area”
AuthType Basic
AuthUserFile “your htpasswd file path”
AuthGroupFile /dev/null
require valid-user
SetEnvIf Request_URI “\/$” allow
SetEnvIf Request_URI “\/css/(.*)$” allow
SetEnvIf Request_URI “\/js/(.*)$” allow
SetEnvIf Request_URI “\/images/(.*)$” allow
# write above line for all folder those need public access
Order allow,deny
Allow from env=allow
Satisfy any
allow from all
Satisfy any
table {
font-family: Helvetica, sans-serif;
font-size: 9pt;
border-left-style: Solid;
border-left-color: #000000;
border-right-style: Solid;
border-right-color: #000000;
border-top-style: Solid;
border-top-color: #000000;
border-bottom-style: Solid;
border-bottom-color: #000000;
border-left-width: 1px;
border-right-width: 1px;
border-top-width: 1px;
border-bottom-width: 1px;
x-1st-row: 1;
x-1st-row-name: t1st;
}
td {
border-width: 1px;
padding: 1px;
border-style: solid;
border-color: #c0c0c0;
background-color: #ffffff;
}
th {
text-align: Center;
font-size: 9pt;
color: #ffffff;
font-weight: bold;
background-color: #2B2B2B;
border-width: 1px;
padding: 1px;
border-style: solid;
border-color: #000000;
}
table.Style1 tr.t1st td {
text-align: Center;
font-size: 9pt;
color: #ffffff;
font-weight: bold;
background-color: #123D59;
border-left-style: Solid;
border-left-width: 1px;
border-left-color: #000000;
border-right-style: Solid;
border-right-width: 1px;
border-right-color: #000000;
border-top-style: Solid;
border-top-width: 1px;
border-top-color: #000000;
border-bottom-style: Solid;
border-bottom-width: 1px;
border-bottom-color: #000000;
}
ORDER
FIELD NAME
VALUE
FORMAT
NOTES
1
Response Code
The overall status of the transaction
1 = Approved
2 = Declined
3 = Error
4 = Held for Review
2
Response Subcode
A code used by the payment gateway for internal transaction tracking
3
Response Reason Code
A code that …
When you are using nusoap to connect to a soap webservice. The xml that the class sends to the service is constructed from an array, ie:
$params = array(“param1″ => “value1″, “param2″ => “value1″);
$result = $client->call(“yourfunctionname”, $params);
This works fine. A multidimensional array also constructs a nice nested xml message.
You generally encounter a problem when you need two tags with the same name:
<items>
<item>value 1</item>
<item>value 2</item>
</item>
$params = array(“items” => array(“item” => “value 1″, “item” => “value 2″));
$result = $client->call(“yourfunctionname”, $params);
The second item in the array overwrites the …
For example, if you have database called db_name that you want to copy to new_db_name, you would first create a “database dump” file using:
mysqldump -u db_name -p db_name > a.dump
It will prompt for db password enter it here.
Then create the new database via web hosting control panel
mysql -u new_db_name -p new_db_name < a.dump
It will prompt for db password enter it here
This web-based tool written in PHP makes it easy to search and replace text strings in a MySQL database.
Usually, I develop WordPress sites on a local development server and, when they are ready to launch, I move them to a live web server.
MySQL Search & Replace
For database-driven sites created with content management systems like WordPress, Drupal, and Joomla, this means moving any custom themes and plugins, and it often entails exporting data from the development server’s database and copying it to the live web server.
With small databases, your content management …
Ran into a problem on node form add: there is no nid assigned, so when you save the node the restrictions don’t get saved along with it. The node doesn’t exist, so at that point in the form it has no nid — a value of nid=0 was being added to {restricted content}.
What the user would see is the access restriction just not being saved. They’d have to go back in and edit the saved node, and then set the access again before it would “take.”
Here is the solution :
function …
Dynamic price updater is a module which u can use to update the price on the product info page of the Zen cart. When u select any check-box or select from drop down or input the quantity of the product it dynamically updates the price on the the product info page which is a very useful tool in the zen cart.
It uses the ajax and jscript to update the price dynamically. Click here to download the files
After downloading the file just include the files in your project as they are …
If you dont want that browser dont cache your web page just add the following code in header.
<?php
header(“Cache-Control: no-cache, must-revalidate”); // HTTP/1.1
header(“Pragma: no-cache”); // HTTP/1.0
?>
this will set server to not cache web content of this perticuler page.
When google analytics module stop working,
follow below steps to get back working
– check your modules compatibility if module has a new updates then update that module
– check your footer id there is function wp_footer() is there or not
– check your Analytics Account ID has right value
If you use PHP, you may need to use cURL, which is one of the most popular extension. PHP CURL functions are available through the use of libcurl, a library created by Daniel Stenberg, and allow you to connect and communicate with web servers using many
different types of protocols.
Assume you have already setup LAMP. To install or setup cURL on your Linux machine like Ubuntu, run the following line of shell command in your terminal:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Now you have PHP cURL installed, the next thing you …