Search found 7 matches

by pradeepa
Wed Mar 11, 2009 12:46 am
Forum: PHP - Code
Topic: redirection problem
Replies: 3
Views: 124

Re: redirection problem

function refreshJsLogin(sessionid)
{
if(sessionid == "")
parent.location.href="index.php";
}

i called this function in body onload event it is working fine
by pradeepa
Wed Mar 11, 2009 12:01 am
Forum: PHP - Code
Topic: redirection problem
Replies: 3
Views: 124

Re: redirection problem

where i have to call javascript function in onload event?
by pradeepa
Wed Mar 04, 2009 5:21 am
Forum: PHP - Code
Topic: redirection problem
Replies: 3
Views: 124

redirection problem

Hi friends, when the session is out iam redirecting my pages to login page. using this code if(!isset($_SESSION['userid'])) { header("Location:login.php"); } But my problem is iam using iframes so login form is coming in iframe. But i want the total page should redirect to login page can a...
by pradeepa
Wed Mar 04, 2009 4:46 am
Forum: PHP - Code
Topic: Downloading .txt file problem
Replies: 7
Views: 362

Re: Downloading .txt file problem

$id =$_GET["id"];
if($id=="php")
{
header("Content-disposition: attachment; filename=aa.php");
readfile( $_SERVER['DOCUMENT_ROOT'] . "/ShoppinScript/aa.php");
exit; //add this line it solves your problem
}
by pradeepa
Wed Mar 04, 2009 12:07 am
Forum: PHP - Code
Topic: Downloading .txt file problem
Replies: 7
Views: 362

Re: Downloading .txt file problem

i kept exit; after readfile() statement
it is working fine now.
Thanks a lot...........
by pradeepa
Mon Mar 02, 2009 11:14 pm
Forum: PHP - Code
Topic: word document with bullets problem
Replies: 1
Views: 215

word document with bullets problem

Hi friends, I got one problem. I copied the content from Msword and pasted it in WYSIWYG editor. The content contains bullets. Iam storing that content into database and displaying it in browser. In mozilla the bullets are displaying in different format. And in IE it is printing like this <!--[if!su...
by pradeepa
Sun Mar 01, 2009 11:42 pm
Forum: PHP - Code
Topic: Downloading .txt file problem
Replies: 7
Views: 362

Downloading .txt file problem

Hi friends, i used this code to download a file php <?php if(isset($_GET['uploadid'])) { // if id is set then get the file with the id from database   $upid    = $_GET['uploadid']; $recruid =  $_GET['userid']; $resFile = $admin->getRecruiteruploadDetailsByUploadid($upid); $rowFile = mysql_fetch_arra...