Search Results

Showing results 1 to 40 of 98
Search took 0.01 seconds.
Search: Posts Made By: carobee ; Forum: PHP and child forums
Forum: PHP Apr 3rd, 2008
Replies: 5
Views: 788
Posted By carobee
thanks naveen my problem is solved. only thing i added is to make the session variable 'page' equal to 0 in subsequent pages
Forum: PHP Apr 2nd, 2008
Replies: 5
Views: 788
Posted By carobee
Forum: PHP Mar 26th, 2008
Replies: 5
Views: 788
Posted By carobee
what i have done is that i have set sessions, so that the user can't directly go into the next page without logging in. once he/she logs in the session variable is set. but with this i cant forbide...
Forum: PHP Mar 25th, 2008
Replies: 1
Views: 1,045
Posted By carobee
how can i set limit to my sessions in php so that if a page remains idle for certain time, the user is logged out?
Forum: PHP Mar 25th, 2008
Replies: 5
Views: 788
Posted By carobee
Hi all,

How can i avoid same php page from being opened in two windows? If the page is opened in one window, then if the user tries to open the same page in another window, he/she should be given...
Forum: PHP Mar 11th, 2008
Replies: 2
Views: 1,867
Posted By carobee
start off. once you get stuck come back
Forum: PHP Mar 11th, 2008
Replies: 8
Views: 841
Posted By carobee
i agree with Auzzie. check for ur php info
Forum: PHP Mar 11th, 2008
Replies: 7
Views: 5,728
Posted By carobee
in your auth,php script, once the user is verified try setting a session variable like
$_SESSION['views']=1;
Initially keep the session variable as 0
$_SESSION['views']=0;


now in the...
Forum: PHP Mar 3rd, 2008
Replies: 3
Views: 1,266
Posted By carobee
i have a page in php in which user has to fill in details.This details are carried on to the next page through POST. suppose there ia a option called "Country" which has its values as India, America...
Forum: PHP Feb 29th, 2008
Replies: 3
Views: 1,266
Posted By carobee
is it possible to disable a button through php script?
Forum: PHP Feb 28th, 2008
Replies: 4
Views: 2,603
Posted By carobee
its not Mr but Ms
try this
$newname="C:\xampp\htdocs\online_shopping\uploaded_images\";
$newname=$newname.basename($_FILES['product_upload_img']['name']);

also print the error number here...
Forum: PHP Feb 27th, 2008
Replies: 7
Views: 875
Posted By carobee
its not about images . actually i have to display the output of some command(lets say ls) . i want that the entire output of the command shoud fit in the webpage in such a way that i need not use the...
Forum: PHP Feb 27th, 2008
Replies: 7
Views: 875
Posted By carobee
knock knock !!!!!! anyone there?
Forum: PHP Feb 27th, 2008
Replies: 5
Views: 737
Posted By carobee
you can set session variables when the user login as admin .check if the session variable is set, if so then display the link or else don't
Forum: PHP Feb 27th, 2008
Replies: 4
Views: 2,603
Posted By carobee
check this
http://us3.php.net/features.file-upload
Forum: PHP Feb 27th, 2008
Replies: 21
Views: 6,840
Posted By carobee
try this


if($_POST['delete'])
{
ur code
}
?>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=urpage.php">
Forum: PHP Feb 27th, 2008
Replies: 7
Views: 875
Posted By carobee
my code already includes width and height as 100%
Forum: PHP Feb 23rd, 2008
Replies: 7
Views: 875
Posted By carobee
hi
is it possible to adjust the page width according to the output of the page so that the user doesn't have to scroll to see the end of the page?
Forum: PHP Feb 21st, 2008
Replies: 19
Views: 1,431
Posted By carobee
my php.ini says that session.save_path=/var/lib/php/session.
but there was no php dir . so i created a php dir and session dir and gave 0777 permissions to session dir. now everything is ok.
thanks
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
i got it. After creating the directory i gave 0777 permissions to session dir. now everything is working fine.
thankyou guys
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
but now i have created the dir as specified in my php.ini
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
i have tried that but not much success. earlier i had tried to give my own path, but still it was the same
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
in /var/lib php dir doesn't exist..
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note:...
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
can it be done with some other way then sessions?
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
for page2.php my code is
[code=php]
<?php
if(isset($_SESSION['name']))
echo $_SESSION['name'];
esle
echo "session not set";
?>
also i added ob_start() and ob_flush() in the page1.php code....
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
it works. i have checked earlier,it shows that in the same page it works but in different pages it doesn't work.
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
login.php

<?php
session_start();
ob_start();
?>
<?php
mysql_connect("IP addr","username","pssword") or die(mysql_error());
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
can you elaborate it a little bit
Forum: PHP Feb 21st, 2008
Replies: 25
Views: 1,914
Posted By carobee
hi all,
i have a login page and a couple of other php pages. what i want is that nobody should be able to view my other php pages without logging in. i have tried with sessions but sadly session is...
Forum: PHP Feb 21st, 2008
Replies: 4
Views: 5,660
Posted By carobee
here is the solution. If you don't know the filename nad it is stored in some php variable
let $filename=x.tar.gz

shell_exec("cd destination_directory; gunzip {$filename}| tar xf -;");
Forum: PHP Feb 21st, 2008
Replies: 3
Views: 3,652
Posted By carobee
here is the solution. If you don't know the filename nad it is stored in some php variable
let $filename=x.tar.gz

shell_exec("cd destination_directory; gunzip {$filename}| tar xf -;");
Forum: PHP Feb 20th, 2008
Replies: 3
Views: 3,652
Posted By carobee
your file was .tgz extension. for me it is tar.gz. and i think you are compressing it, wh abt extracting the files. i have been trying with syntax like this
$output=shell_exec("cd /dir ; gunzip...
Forum: PHP Feb 20th, 2008
Replies: 3
Views: 3,652
Posted By carobee
how to implement tar command through php script?
Forum: PHP Feb 20th, 2008
Replies: 4
Views: 5,660
Posted By carobee
how would the syntax be? file name is not known but while uploading the path is known. my php script is not implementing the tar command
Forum: PHP Feb 20th, 2008
Replies: 19
Views: 1,431
Posted By carobee
this lines are not commented. i guess i m having a hard luck with this forum.
can you suggest me of other way so that i can prevent the users from opening the option1.php page without logging.
Forum: PHP Feb 20th, 2008
Replies: 19
Views: 1,431
Posted By carobee
i think its not working for me. even tried out with a simple upload script.
upload_index.php


<?php ...
Forum: PHP Feb 20th, 2008
Replies: 19
Views: 1,431
Posted By carobee
sorry to bother you agn naveen, but how is that related to session?
Forum: PHP Feb 20th, 2008
Replies: 19
Views: 1,431
Posted By carobee
i a sorry but i am not able to see the modifications?btw i am using php-4.4.4 and apache-1.3.37
Forum: PHP Feb 20th, 2008
Replies: 19
Views: 1,431
Posted By carobee
that part is not throwing any error

since i have used header(), so i have commented that syntax

i had tried doing that but it doesn't print any value.
Showing results 1 to 40 of 98

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC