Archive for the 'Scripts' Category


Cannot modify header information - headers already sent by (output started at

Posted by admin on 7th, 2008

“Cannot modify header information - headers already sent by (output started at”

If you get a error saying so in wordpress after installing a plugin, the pretty simple reason could be there might be blanks spaces or enters after ?> in your plugin File. Simply remove those blank spaces (or enters) and this warning /Error should go off.

Tags :

If you Like this post buy me a Coffee

Popularity: 2% [?]

Solving Warning: set_time_limit(): Cannot set time limit in safe mode Error message

Posted by admin on 9th, 2007

If you get Warning: set_time_limit(): Cannot set time limit in safe mode error message , it is because your server has SAFE_MODE turned on in the php.ini configuration file.

How to remove this error

  • use the @ in front of the set_time_limit()
  • or you can try turning off SAFE MODE

How To turn off SAFE_MODE:

1.  Email your hosting company and ask them if they will turn this setting off for you.  It depends on their company policies, if they will comply.

2.  Connect to your server via SSH and use an editor such as PICO to edit your php.ini file manually.  Once you have the php.ini file open, you can change the value to off for this setting.  Save the file and exit.

Hope this information helps

Tags :, ,

If you Like this post buy me a Coffee

Popularity: 3% [?]

How to lock a folder without using a software

Posted by admin on 28th, 2007

This is something which i got as a mail. Just sharing

Open Notepad and copy the below code and save as locker.bat. Don’t forget to change your password in the code it’s shown the place where to type your password. Now double click on locker .bat
First time start it will create folder with Locker automatically for u. After creation of the Locker folder, place the contents u want to lock inside the Locker Folder and run locker.bat again

**********************************************************
cls
@ECHO OFF
title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==type your password here goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End

Tags :No Tags

If you Like this post buy me a Coffee

Popularity: 3% [?]

Speed Up your System

Posted by admin on 19th, 2007

Do you some time feel your system is getting slow down? This happens because all the application we run are not memory efficient and do have memory leaks. Now there is some trick to tackle this.
1. Right click on the blank space of your desktop and select New > Shortcut
2. In the location type : %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks
and click next
3. Give some meaningful name and click finish.

Now whenever you feel your system is getting slow down run this shortcut. You will feel the difference.

Tags :, ,

If you Like this post buy me a Coffee

Popularity: 1% [?]

Split Text read from a Text file into paragraphs using php

Posted by admin on 31st, 2007

How to read/convert the data read from a text file into paragraphs and display them paragraph wise.  I did a lot of searching about this issue to achieve success. So it thought of just publishing that part of how to split the data paragraph wise and then displaying it.

preg_match_all(’~ <p>.*?</p>~s’, $rawdata,$m);
 $paragraphs = $m[0];
foreach($paragraphs as $p)
 { echo $p; }

Here $rawdata is the source in which the preg_replace will search for the pattern <p> </p> and the data between the paragraph tags will be given to $m(array)

$m[0] gives the first  matches ie all the paragraphs in the data to $paragraphs(another array). Using the Loop we can now display Paragraphs one by one.

Note: This is my first time im explaining a script. Please excuse me. I’ll work out more to learn more n explaing more :)

Tags :No Tags

If you Like this post buy me a Coffee

Popularity: 4% [?]

Search


SUBSCRIBE

SPONSORS

sidebanner sidebanner sidebanner