Advertisement

Sending HTML mail by mail()

<?php

$to = "nuhilmehdy@gmail.com";

$subject = "HTML Test";

$Name = "Nuhil"; //senders name. // This is just for display name

$email = "email@adress.com"; //senders e-mail adress. // I think this would be generated by the host automatically

$last_name = "Mehdy"; // A test variable for using in the html format

 

$message = '

<html>

<head>

<title>HTML email</title>

</head>

<body>

<p>This email contains HTML Tags!</p>

<table width="100%"  border="1">

[...]

Sending HTML mail by mail() Sending HTML mail by mail()

My Recent Getafreelancer Projects

Click here to go
Main Page of my Outsourcing
At first I have done 2 projects on Get a Freelancer from which one is a complete but so simple website of a vaccination program and other was to create 5 simple HTML-CSS templates.
This is the Vaccination Site. I completed this project in two days and got [...]

My Recent Getafreelancer Projects My Recent Getafreelancer Projects

My Resume

RESUME OF A. K. M. NUHIL MEHDY

Contact:
nuhil@yahoo.com
nuhil@nuhil.net

Additional:
Website: http://nuhil.net
Mobile: +8801712878796

.

Brief

I’m reading in Computer Science & Engineering in Rajshahi University of Engineering & Technology (RUET), Bangladesh. My passion is computer science. I’m confident about all of my new curisity. I love to work together.

Jobs

Have not started yet. But I have done some project [...]

My Resume My Resume
Latest News

How to Make Money as a Freelance Designer

Posted by Nuhil February 4, 2010, under Sharing from Other | No Comments

So you want to be a freelancer, now what?

Despite the glamorous reputation, freelance design is no walk in the park. It takes an incredible work ethic, significant entrepreneurial prowess, and a little bit of insanity to pull it off effectively. This article will discuss how to effectively make a living as a freelancer (designer or otherwise). Since we are in fact a design blog, I’ll scatter in some well-designed freelancer sites along the way for inspiration.

David Jonsson

screenshot

It Takes One to Know One

Before launching into my thoughts on being a freelancer, I should tell you that I am in fact a freelance designer. I’ve made my living for the past six years solely as a freelancer and plan on continuing to do so for years to come. This by no means makes me any sort of guru on the subject, but it does mean that I’ve experienced many of the joys and disasters that come with the territory. Therefore, today I’ll be speaking not as a supreme authority, but merely as someone who is eager to share what I’ve learned along the way.

Robert Ablan

screenshot

Reality Check

If you’re thinking about getting into freelancing, let me burst your bubble a bit. When I talk to people about what I do, I often get the feeling that they imagine that I have the easiest job on Earth. Surely I must sleep in, sit in my boxers all day, work whenever I want, go on three hour lunches, take 15 sick days a month and still somehow manage to rake in exorbitant amounts of money. Unfortunately, all of these things couldn’t be further from the truth.

The key consideration that these assumptions leave out? Clients. You might work for yourself in a sense, but in reality, you work for your clients, which can be like having several competing bosses instead of just one. Being a freelancer means initiating and answering endless calls and emails, managing several projects simultaneously, and working all night to meet impossible deadlines that didn’t exist that morning. Most freelancers I know, strike that, all of the freelancers I know long ago gave up notions of working normal hours (forget 9-5, Monday through Friday).

Deciding what you want to do for a living is the biggest vocational decision you can make, the second is deciding how you’ll do it. Becoming a freelancer is a serious lifestyle decision that should not be made lightly. Think about all the perks of a “real job” such as a steady pay check, health insurance benefits, tax breaks, and paid vacations and kiss them goodbye. Suddenly you’ll be paying nearly double the taxes you used to, health insurance will cost a fortune, your paychecks will be uncertain from one month to the next, your yearly income will fluctuate immensely, and your vacations will be spent income-free.

Still want to be a freelancer? Excellent. Despite all the scary stuff above, I still think it’s one of the best jobs ever. Let’s dive into how to go about becoming a freelancer.

Rejected Robot

screenshot

Getting Started: Tread Carefully

My best advice: go slow. Don’t go quitting your day job just yet (unless you don’t have one, then by all means jump in with both feet). Before telling your boss you can’t stand the site of his face, you need to get a feel for how much work you’ll be able to drum up on your own. To accomplish this, start a few side projects that you work on after hours. It’ll be stressful to search for extra work while working a full-time job but it’ll provide you with a much-needed glimpse into the freelancing lifestyle. The question then becomes, “Where Do I Get Freelance Work?” We’ll address that next.

Where to Find Work

Mega job sites like Monster and Hot Jobs are great places to begin, but I’ve had a pretty poor experience with them overall. Definitely give them a shot, but don’t put too much stock into them as a consistent source of income. Here are a few more sources that I’ve had some personal success with or know to yield good results. Remember, don’t think in either/or terms. Use these tools in conjunction with each other to ensure success. Read More

Bookmark and Share




Same projects to do in Getafreelancer and Scriptlance


Creating a social network with Boonex Dolphin: Full tutorial(Installation to Customization)

Posted by Nuhil January 16, 2010, under CMS, Dolphin | 2 Comments

#Installation

Step 1

Know that he first step for creating a social network with Boonex Dolphin is to log into the control panel that is provided by your web host, and enter the MySQL section. You will need to create a new MySQL database for Boonex Dolphin to use. Be sure to make note of the database name, user name and password, as you will be asked for this information when you install the Boonex Dolphin social network script.

Step 2

Read More

Bookmark and Share




Same projects to do in Getafreelancer and Scriptlance


Posting to Blog via Email

Posted by Nuhil January 10, 2010, under Uncategorized | No Comments

Posting to Blog via Email

Bookmark and Share




Same projects to do in Getafreelancer and Scriptlance


meta Redirect – simply active

Posted by Nuhil December 16, 2009, under Uncategorized | No Comments

If you use “refresh” as the value of http-equiv of meta tag in HTML then it can be used for redirecting to a specific URL. This simple page can be used for a notice of redirection.

  1. <html>
  2. <head>
  3. <title>Meta Redirect</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <meta http-equiv="refresh" content="5; url=http://www.nuhil.net/">
  6. <style type="text/css">
  7. <!–
  8. .style1 {
  9.  font-family: Verdana;
  10.  font-size: 12px;
  11.  color:red;
  12. }
  13. –>
  14. </style>
  15. </head>
  16. <body>
  17. <div align="center" class="style1">Wait 5 sec for redirecting to Personal Blog of Nuhil <br>
  18. </div>
  19. </body>
  20. </html>
Bookmark and Share




Same projects to do in Getafreelancer and Scriptlance


Reduce time in Uploading and Deleting when managing files through ftp! Making a full directory into .zip and unzipping it on server!

Posted by Nuhil November 1, 2009, under CMS, Joomla, PHP, Tips for the New | 2 Comments

Suppose you are going to upload a big size folder containing a huge number of files on it. Think about joomla. Then if you use ftp client software such as filezilla, it will take about 2 hours if you have internet connection that has avg. speed of 15kbps.

Again if you want to delete such files or directory from that hosting place then it will take 1 hour on that speed configuration.

This is happened because filezilla checks the permission and additional facts of each file by some commands every time it uploads or deletes a file.

We will just give a single file to filzilla to upload and will make several files into a single file when deleting. Thus we can reduce the time that filzilla takes for several files.

Here we go:

First make the desired directory to be uploaded into .zip file on your pc. For example Joomla.zip

The simply upload it to the server by Filezilla. It will take no more than 15 mins in a speed of 15kbps.

Then create a php file:

<?php
  1. // Write an URL on the browser like
  2. // http://www.example.com/project/unzip.php?archive=Joomla.zip
  3.  
  4. $filename = $_GET['archive'];
  5. $zip = new ZipArchive;
  6. if ($zip-&gt;open($filename) === TRUE) {
  7.         $zip-&gt;extractTo('./');
  8.         $zip-&gt;close();
  9.         echo 'The file <strong>'.$filename.'</strong> Extracted successfully';
  10.     }    else {
  11.         echo 'failed';
  12.         }
  13. ?&gt;

Run this script on that same directory and follow the instruction above the code. It will extract that Joomla.zip into Joomla. Then Delete the Joomla.zip in a sec. Thats it.

Now guess, you have uploaded a wrong folder wasting a huge time or you need to replace that directories with your customized files and folders. Now here we talk when deleting such a big directory. We dont know how big and recursive it is.

Create this file:

<?php
  1. function removedir($dirname)
  2.     {
  3.         if (is_dir($dirname))
  4.         $dir_handle = opendir($dirname);
  5.         if (!$dir_handle)
  6.         return false;
  7.         while($file = readdir($dir_handle)) {
  8.             if ($file != "." &amp;&amp; $file != "..") {
  9.                 if (!is_dir($dirname."/".$file))
  10.                 unlink($dirname."/".$file);
  11.                 else
  12.                 {
  13.                     $a=$dirname.'/'.$file;
  14.                     removedir($a);
  15.                 }
  16.             }
  17.         }
  18.         closedir($dir_handle);
  19.         rmdir($dirname);
  20.         return true;
  21.     }
  22.  
  23. $dirname='Joomla';
  24. removedir($dirname);
  25. ?&gt;

This will delete that whole directory whether it is empty or not.

Here is a bonus function that will make a directory into a .zip file. You better know its usage. Just run it on the server and make a .zip copy of a desired directory.

<?php
  1. // increase script timeout value
  2. ini_set('max_execution_time', 300);
  3.  
  4.  // create object
  5. $zip = new ZipArchive();
  6.  
  7. // open archive
  8. if ($zip-&gt;open('file.zip', ZIPARCHIVE::CREATE) !== TRUE)
  9.  {
  10.  die ("Could not open archive");
  11.  
  12.  }
  13.  
  14. // initialize an iterator
  15. // pass it the directory to be processed
  16. $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator("Joomla/"));
  17.  
  18.  // iterate over the directory
  19. // add each file found to the archive
  20. foreach ($iterator as $key=&gt;$value) {
  21. $zip-&gt;addFile(realpath($key), $key) or die ("ERROR: Could not add file: $key");
  22.          }
  23. // close and save archive
  24. $zip-&gt;close();
  25. echo "Archive created successfully Named file.zip";
  26. ?&gt;
Bookmark and Share




Same projects to do in Getafreelancer and Scriptlance


Rotating Image to any degree with transparent background

Posted by Nuhil October 27, 2009, under PHP, Tips for the New | 1 Comment

The following code will rotate an image to any given degree and if you use png image then the background color can be transparent. So, you can use that rotated image upon any image or color.

<?php
  1.     $filename = 'image.png';
  2.     $degrees = 20;
  3.  
  4.     header('Content-type: image/png');
  5.  
  6.     $source = imagecreatefrompng($filename);
  7.  
  8.     $rotate = imagerotate($source, $degrees, -1); // -1 will cause the bg color as white
  9.  
  10.     imagealphablending($rotate, true);
  11.     imagesavealpha($rotate, true);
  12.  
  13.     imagepng($rotate);
  14. ?>
Bookmark and Share




Same projects to do in Getafreelancer and Scriptlance


 Page 1 of 7  1  2  3  4  5 » ...  Last »