my 1st problem solved.
what can i do for second option plz help me im working in this script at last 15 days bt i cant solve this problem. This script working fine in wamp server
for your cpanel error we would have to see the file in question. although that doesnt mean ill be able to fix it. but it does mean other ppl have a chance to help you also as they too can see the code.
im also getting this problem in http://nepalwap.com.nu
bro wait im upload here my eror log file
Added after 2 minutes:
[16-Jul-2012 13:16:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home3/nepalwap/public_html/ads/home.php:5) in /home3/nepalwap/public_html/ads/home.php on line 8
[16-Jul-2012 13:20:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home3/nepalwap/public_html/ads/home.php:5) in /home3/nepalwap/public_html/ads/home.php on line 8
[16-Jul-2012 13:34:08] PHP Warning: Cannot modify header information - headers already sent by (output started at /home3/nepalwap/public_html/ads/home.php:5) in /home3/nepalwap/public_html/ads/home.php on line 8
you could try putting something like this at top of page but not sure how it will work out 100% for you.
/** Prevent direct access from url to this file */
if (stristr(htmlentities($_SERVER['SCRIPT_NAME']), 'home.php'))
{
echo '<meta http-equiv="Refresh" content="0; url=../../index.php">';
die();
}
//
//
//
//
or try make it more secure so only you can access it.
/** Prevent direct access from url to this file */
if (stristr(htmlentities($_SERVER['SCRIPT_NAME']), 'home.php'))
{
echo '<meta http-equiv="Refresh" content="0; url=../../index.php">';
die();
}
else if($password == 'password' && $username == 'username')
{
//show script inside here.
}
//
//
//
//
the if($password == 'password' && $username == 'username') section would need modding to your database details
i dont normally go near mysql files so this is just a php throw together.
just a suggestion. but im pretty sure other ppl will chime in here with much better solutions to suit your needs more.
[16-Jul-2012 13:16:55] PHP Warning: Cannot modify header information - headers already sent by (output started at /home3/nepalwap/public_html/ads/home.php:5) in /home3/nepalwap/public_html/ads/home.php on line 8
[16-Jul-2012 13:20:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home3/nepalwap/public_html/ads/home.php:5) in /home3/nepalwap/public_html/ads/home.php on line 8
[16-Jul-2012 13:34:08] PHP Warning: Cannot modify header information - headers already sent by (output started at /home3/nepalwap/public_html/ads/home.php:5) in /home3/nepalwap/public_html/ads/home.php on line 8
this is a commen problem with headers. when another header is also being sent from an include file.
obviously change the home.php to the correct file your header is pointing to.
i took this header details from the posts above (forgotpass.php) as an example