Development Blog by Professionals
admin
This user hasn't shared any biographical information
Homepage: http://www.cdl.gr
Posts by admin
554 This server requires PTR for unauthenticated
Jul 22nd
Hi. This is the qmail-send program at ns1.###.##.
I’m afraid I wasn’t able to deliver your message to the following
addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.
<@@@@@@@.@@>:
##.##.213.98 does not like recipient.
Remote host said: 554 This server requires PTR for unauthenticated
connections.
Giving up on ##.##.213.98.
Make a Div Into a Link
Jul 22nd
It’s easy to make any div into a link by using a bit of javascript. You can use this technique to make any div “clickable”. For example, you might want your “header” div to link to your home page. Here’s how it’s done.
<div onclick="location.href='http://www.example.com';" style="cursor:pointer;"></div>
you can make your header div clickable by using this code:
<div id="header" onclick="location.href='<?php bloginfo('url');?>';" style="cursor:pointer;"></div>
Create Left Image ico In H1 Div
Jul 22nd
HTML Code
<div id="prdleftcol"> <h1>Φωτογραφίες</h1> <h1>Gallery</h1> </div>
CSS Code
#prdleftcol{
width:260px; float:left;
border-right:1px solid #E8EBEC;
color:#666666;
font-size:11px;
}
#prdleftcol h1 {
background: transparent url(../images/icn_more.gif) 0px 2px no-repeat;
padding-left: 17px;
padding-bottom: 5px;
margin-top: 10px;
font-size:14px
}
Switch Case
Jul 21st
Example #1 switch structure
<?php
if ($i == 0) {
echo "i equals 0";
} elseif ($i == 1) {
echo "i equals 1";
} elseif ($i == 2) {
echo "i equals 2";
}
switch (
$i) {
case 0:
echo "i equals 0";
break;
case 1:
echo "i equals 1";
break;
case 2:
echo "i equals 2";
break;
}
?> Example #2 switch structure allows usage of strings
<?php
switch ($i) {
case "apple":
echo "i is apple";
break;
case "bar":
echo "i is bar";
break;
case "cake":
echo "i is cake";
break;
}
?> How do I enable SSH Remote Terminal inside Plesk?
Jul 18th
First of all, when you mouse over to the ssh terminal icon, what message appear under the “Help & Support” section in the navigation pane?
If it shows “..is not installed” then you have to install by going “Server->Updater-><your plesk version>”, then check on “SSHTerm – SSH Terminal java applet” and then click on the “Install” button to install it.
If it shows “In order to use the terminal client, you should allow shell access for this domain” then you have to allow it by going “<your domain>->Setup”, then find “Shell access to server with FTP user’s credentials” and then change its value of “Forbidden” to other type of shells.
Crafty Syntax Live Help
Jul 16th
Using an image as a submit button
Jul 16th
The simplest way is to use an image as a submit button employing the <INPUT> HTML form tag.
<INPUT TYPE="IMAGE" SRC="butup.gif" ALT="Submit button">
Open / Close Pop Up window
Jul 16th
The HEAD of the Page put the follow script
<script type=”text/javascript”>
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>
Open window Script
<a href="#" onmousedown="MM_openBrWindow('page_path.php','gallery','scrollbars=yes,resizable=yes,width=600,height=500')" >Open Window</a>
Close window Script (inside page_path.php )
<a href="#" onclick="javascript:self.close(); ">Close Window</a>
Close window popup and reload parent Page (inside page_path.php )
<a href="#" onclick="window.opener.window.location.reload(true);window.self.close()">Close Window</a>
Get the following error when try to use PHPMyAdmin in the Plesk CP: “#1045 – Access denied for user ‘pma_xxxxxxx’@'localhost’ (using password: YES)”
Jul 10th
RESOLUTION
Make sure that Plesk PHPMyAdmin user exists in mysql.user table and has right password and privileges. Username and password can be found in $PRODUCT_ROOT_D/admin/htdocs/domains/databases/phpMyAdmin/config.inc.php (Note, since Plesk 8.1 the file is $PRODUCT_ROOT_D/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php), for example: More >


