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 :Solving Cannot modify header information php errorIf you Like this post buy me a CoffeePopularity: 4% [?]
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 :PHP safe Mode, Solving set time limit() related issues, Warning set time limit()If you Like this post buy me a CoffeePopularity: 5% [?]
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 TagsIf you Like this post buy me a CoffeePopularity: 10% [?]