Showing posts with label Speed-up Internet. Show all posts
Showing posts with label Speed-up Internet. Show all posts

Thursday, August 23, 2012

Increase your computer's speed


Open up the Registry and go to:
[go to run and type regedit]

HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Current Version/Explorer/RemoteComputer/NameSpace

Under that branch, select the key :

{D6277990-4C6A-11CF-8D87-00AA0060F5BF}

and delete it.

After this check out the browsing speed of ur pc.

Speed Up Mozilla Firefox.
Just follow these.


Type "about:config" into the address bar and hit enter. Scroll down and look for the following entries:

network.http.pipelining
network.http.pipelining.maxrequests
network.http.proxy.pipelining

2. Alter the entries as follows:

Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true"
Set "network.http.pipelining.maxrequests" to some number like 30.

3. Lastly right-click anywhere and select New-> Integer. Name it "nglayout.initialpaint.delay" and set its value to "0".

This value is the amount of time the browser waits before it acts on information it receives.

WEB PAGES WILL BE MUCH FASTER NOW...!!!!!!!!

More speed
HKEY_CURRENT_USER/control panel/desktop

Now on the right side:-
-right click 'HungAppTimeout'
-Click 'Modify'
-Type Value 1000 click Ok


-right click "menu show delay"
-make it 5.

-right click "waytokillapptimeout"
-change value from 20000 to 3000.
Read more

Saturday, August 11, 2012

how to request for new ip address

Start -> run -> cmd.exe and click OK

type the following. ENTER after each new line.

- ipconfig /flushdns
- ipconfig /release
- ipconfig /renew
- exit

Erase your cookies in whatever browser you are using

done
Read more

Monday, August 06, 2012

How to Fix Limited Or No Connectivity

After installing Windows XP Service Pack 2, you may
receive the following error message in the System Tray.

"This connection has limited or no connectivity. You
might not be able to access the Internet or some network
resources. " .

When attempting to set up or make network connections on a Windows computer, you may
encounter a Limited Or No Connectivity error message.

This message can result from any of several different
technical glitches or configuration problem.

Just copy this code and paste it in notepad.

Then save it as fix.bat

echo ipconfig/flushdns
ipconfig/flushdns
echo ipconfig/release
ipconfig/release
echo ipconfig/renew
ipconfig/renew
exit

It will fix the error automatically. Then go to Local
Area Connection Properties and uncheck Notify me when
this connection has limited or no connectivity.

However if your broadband connection is working properly but
still it displays the error then no need to worry about
it, then simple uncheck the Notify me when this
connection has limited or no connectivity.
Read more

Wednesday, August 01, 2012

Fix a Slow Internet Connection

Why is your internet connection speed so slow?

Because you have not been nice to your bandwidth

There are number of simple and easy ways to speed up your PC on the net. Most of these solutions will cost you absolutely nothing. So, before you invest in a program that will speed up your internet access, take the time to perform a few maintenance tips to speed up your PC on the net.

The most important thing to remember is that your bandwidth has a limit. You paid for
this limitation when you signed up to your internet service provider. So, treat your
bandwidth as a precious commodity.

If your PC speed on the net is slow, it’s probably the result of improper use of your
bandwidth.

Here are the best ways to speed up your PC on the internet.

1. Use a Firewall

A Firewall allows you to control both incoming and outgoing internet traffic on your PC.
The more programs you allow to use your bandwidth, the slower your PC speed on the
net becomes. Control the traffic and stop the congestion and erosion of your bandwidth.

2. Eliminate Index.dat files

These are little demons that will significantly slow down your computer's speed on the internet. Microsoft designed these secret human unreadable files to re-record all your internet history. All viewed web pages, downloads, even this article is logged there.

These files can grow up 100 megabytes. These large files requires CPU constant access
and bandwidth. Microsoft claims the files were originally designed to increase internet speed by mimicking a server. But it does the opposite because these files are re-record your internet history. This requires double the bandwidth of other files. Speed up your PC on the internet by eliminating these files.

3. Use a proxy

This is a very simple procedure that will speed up your PC internet access as much as
30%. Proxies allow you to surf through a server. This server network can load thousands of popular web pages. Therefore, there is no reason to use bandwidth to access them.

They are already pre-loaded. This will speed up your PC internet access time
considerably.

4. Clear Your Cache

Your web browsers save a ton of data into a temporary storage area called your cache.
All your saved passwords, visited websites and downloaded files are stored here. The
problem is that this space is limited.

When it fills your browser slows down because it unable to dump information into your Windows cache. Clear your cache in order to
speed up your net surfing.
Read more

Tuesday, July 17, 2012

Using More Than One Modem at a Time to double the speed


(Win98, WinME and Win2000)
If you have two phone lines in your home and want to use them both to dial out,
you can use MultiLink, which will effectively double your connection speed. Create a dial-up connection like your normally would.
Right click on the icon and select Properties
Click on the Multilink tab
Click on Use additional devices
Click on the Add
Click on the other modem you would like to use
If your ISP allows, you can use the same phone number, otherwise enter an additional phone number to dial.
You should now connect with both modems.
You can confirm this by opening up your dial up connection in the System Tray after you connect.
Read more

Monday, December 12, 2011

Turn Off Indexing to Speed Up XP

Windows XP keeps a record of all files on the hard disk so when you do a search on the hard drive it is faster.
There is a downside to this and because the computer has to index all files, it will slow down normal file commands like open, close, etc.
If you do not do a whole lot of searches on your hard drive then you may want to turn this feature off:

• Open My Computer.

• Right-click your hard drive icon and select Properties.

• At the bottom of the window you'll see "Allow indexing service to index this disk for faster searches," uncheck this and click ok.

• A new window will pop up and select Apply to all folders and subfolders.
It will take a minute or two for the changes to take affect but then you should enjoy slightly faster performance.


Enjoy @hacksandtrickz.
Read more

Wednesday, November 30, 2011

Firefox speed trick to load pages faster


Firefox is already a fast browser but did you know that you can tweak it to improve the speed even more?
Note: These settings are optimized for broadband connections.

That's the beauty of this program being open source.
Follow the above instructions:
In the URL bar, type “about:config” and press enter.
This will bring up the configuration “menu” where you can change the parameters of Firefox.


Double Click on the following settins and put in the numbers below - for the true / false booleans - they’ll change when you double click.

Code:
browser.tabs.showSingleWindowModePrefs – true
network.http.max-connections – 48
network.http.max-connections-per-server – 16
network.http.max-persistent-connections-per-proxy – 8
network.http.max-persistent-connections-per-server – 4
network.http.pipelining – true
network.http.pipelining.maxrequests – 100
network.http.proxy.pipelining – true
network.http.request.timeout – 300


One more thing… Right-click somewhere on that screen and add a NEW -> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0”.
This value is the amount of time the browser waits before it acts on information it receives. Since you’re broadband - it shouldn’t have to wait.


Now you should notice you’re loading pages MUCH faster now!
Read more

Tuesday, October 04, 2011

Hack airtel for free internet access


Apply these setting and use internet for free on your computer or laptop or mobile.
The Trick :
First Go to settings menu
Then to connectivity tab, now choose the option Data comm. then "DATA ACCOUNTS" go to new account now the settings are as follows :

ACCOUNT TYPE:GPRS
NEW ACCOUNT NAME:A1
APN:airtelfun.com
User name: (blank)
Password: (blank)
Now save it
NOW!
Go to Internet Setting in connectivity here choose intrnet profile--go to new profile setting are As below
NAME:A1
CONNECT USING:A1(which was created in data comm.)
Save It
Now you would be able to see it now select it and take "more" option then select setting here in use proxy option, it will be selected no if it is no then change it into yes
Now Go to Proxy address and give the adress as
100.1.200.99 and then the port number as 8080
User name:
Password:
Now save all the settings You made .
Come back 2 connectivity
choose streaming settings now in connect using option choose a1 that we created leave the use Proxy option as no itself.
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

Saturday, September 24, 2011

A simple trick to make your internet speed increase by 20%



A Simple Tweak which will increase your Broadband Speed by 20% for sure. 100% works.

Make sure you Log on as Administrator, not as a user with Administrator privileges.

Follow the steps as given below-

step 1) Click on Start Button.

step 2) Select Run From Start Menu.

step 3) Type gpedit.msc

step 4) Expand the [Administrative Templates] branch.

step 5) Then Expand the [Network] branch.

step 6) Highlight(Select by Single Click) [QoS Packet Scheduler]

step 7) Double-click [Limit Reservable Bandwidth] (Available in Right Side Panel)

step 8) Check(Select By Single Click on it) [Enabled]

step 9) Change [Bandwidth limit %] to 0 %

step 10) Click [OK] Button.

step 11) Restart Your PC.

step 12) Now Check Your Broadband Speed, you will see your pages loading faster.
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 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