Connected to internet but unable to browse in IE,Firefox
Sometimes you may be connected to internet but your browser won’t work
To solve this issue there are two ways
a)You have to un-install any ad-ware software
b)You have to run these commands in “CMD” (Command prompt)
Resetting WinSock and TCP/IP to defaults:
TCP/IP stack repair options for use with Windows XP with SP2.*
*
For these commands, *Start, Run, CMD, OK* to open a command prompt.
Reset WINSOCK entries to installation defaults: *netsh winsock reset catalog
*
Reset TCP/IP stack to installation defaults. *netsh int ip reset reset.log*
Php code to extract filename from urls.
This code will be useful to extract the names of the files from url
For E.g http://unicode.org/charts/PDF/U0B80.pdf
//Url to extract
$url='http://unicode.org/charts/PDF/U0B80.pdf';
//Code
$file1=preg_match("#(.*)\/(.*)(.pdf||.doc)#",$url,$file2);
$filename1=$file2[2];
//Outputs U0B80.pdf
echo $filename1;
This would output U0B80.pdf
Replacing urls with a href link in Php
Replacing urls with a href link
This code is used to replace any urls with links
E.g
“http://google.com is a good site ” will be “
http://google.com
is a good site
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text);
Paste Disabled in Windows
A workaround for Paste Disabled in Windows
Step 1. Copy as usual
Step 2. run>clipbrd.exe
Step 3. Save as .CLP file to a folder
Step 4. Empty the Clipboard
Today is a special day
Here are some calculations about today=92s date which says an importance of
it.
09-09-09 i.e. 09-Sep-09
Sum of 09+09+09 =3D 27 =3D 2+7 =3D 9
This is 252 nd day of the year i.e. 2+5+2 =3D 9
This is September month and total characters of September are 9 .
Today is Wednesday and total characters of Wednesday are 9.
This kind of an occasion will not occur in next 1001 year. So enjoy this
day. Just like every day