09 Apr 2010 @ 5:05 PM 

If you want (or need) to have ImageMagick and imagick libs installed on your server you should do following (manual for lazy admins =):
ImageMagick installation
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar zxf ImageMagick.tar.gz
cd ImageMagick-6.3.8
./configure
sudo make
sudo make install

imagick installation
wget http://pecl.php.net/get/imagick-2.1.0RC3.tgz
tar zxf imagick-2.1.0RC3.tgz
cd imagick-2.1.0RC3
phpize && ./configure
sudo make
sudo make install

Have fun

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 04:16 PM

EmailPermalinkComments (0)
Tags
Tags: ,
Categories: Uncategorized

 04 Dec 2009 @ 4:40 PM 

How to create drop-down menu?

Let’s start, I’ll show you 2 examples, first one will allow only to chose something from the options list, second one will allow you to choose an option and be redirected to the page (where you’ll be able to represent something), you can see both methods in work here.

1st example:

Add following HTML code to your website’s code:

<select id=”Select” name=”Select”>
<option>option1</option>
<option>option2</option>
<option>option3</option>
<option>option4</option>
<option>option5</option>
</select>

2nd example:

<script language=”JavaScript”>
<!–
function goToURL(form)
{
var myindex=form.dropdownmenu.selectedIndex
if(!myindex==””)
{
window.location.href=form.dropdownmenu.options[myindex].value;
}
}
//–>
</script>
<form name=”form1″>
<select name=”dropdownmenu” size=1 onChange=”goToURL(this.form)”>
<option selected value=””>choose your favorite search engine</option>
<option value=”http://google.com”>Google</option>
<option value=”http://msn.com”>MSN</option>
<option value=”http://yahoo.com”>YAHOO</option>
<option value=”http://aim.com”>AIM</option>
</select></form>

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 04:17 PM

EmailPermalinkComments (0)
Tags
Tags:
Categories: Uncategorized

 30 Nov 2009 @ 5:37 PM 

How to create Contact Form? How can website visitors contact with me? Here is simple tutorial for you.

1. Download following package it contains all files which are needed for Contact Form, and extract all files into your account.

2. Now, you should move FormMail.pl file into cgi-bin folder in your account or some folder which can execute CGI and Perl scripts (if you don’t know such folder, contact with your hosting support).
Note: Formmail.pl should have 755 permissions

3. contactform.html file contain default HTML code with already ready contact form, you can check an example here

4. Open FormMail.pl in text editor and replace following lines by your information (change YOUR@MAILBOX.COM value to the name of the mailbox, where all information from the form should be sent and set your domain name instead of YOURDOMAIN.COM):

$postmaster        = qw(YOUR@MAILBOX.COM);
@referers          = qw(YOURDOMAIN.COM);
@allow_mail_to     = qw(YOUR@MAILBOX.COM WWW.YOURDOMAIN.COM);

then open contactform.html and find following line:

<form method=”post” action=”http://YOURDOMAIN.COM/cgi-bin/FormMail.pl”>
<input type=”hidden” name=”recipient” value=”YOUR@MAILBOX.COM” />

just set your domain name and mailbox instead of these lines and thats all, save the file and now your form is ready.

Posted By: lvlind
Last Edit: 06 Oct 2016 @ 04:17 PM

EmailPermalinkComments (0)
Tags
Tags:
Categories: Uncategorized