Forum: PHP Apr 3rd, 2008 |
| Replies: 5 Views: 788 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 Mar 26th, 2008 |
| Replies: 5 Views: 788 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 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 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 start off. once you get stuck come back |
Forum: PHP Mar 11th, 2008 |
| Replies: 8 Views: 841 i agree with Auzzie. check for ur php info |
Forum: PHP Mar 11th, 2008 |
| Replies: 7 Views: 5,728 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 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 is it possible to disable a button through php script? |
Forum: PHP Feb 28th, 2008 |
| Replies: 4 Views: 2,603 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 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 knock knock !!!!!! anyone there? |
Forum: PHP Feb 27th, 2008 |
| Replies: 5 Views: 737 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 check this
http://us3.php.net/features.file-upload |
Forum: PHP Feb 27th, 2008 |
| Replies: 21 Views: 6,840 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 my code already includes width and height as 100% |
Forum: PHP Feb 23rd, 2008 |
| Replies: 7 Views: 875 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 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 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 but now i have created the dir as specified in my php.ini |
Forum: PHP Feb 21st, 2008 |
| Replies: 25 Views: 1,914 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 in /var/lib php dir doesn't exist.. |
Forum: PHP Feb 21st, 2008 |
| Replies: 25 Views: 1,914 [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 can it be done with some other way then sessions? |
Forum: PHP Feb 21st, 2008 |
| Replies: 25 Views: 1,914 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 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 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 can you elaborate it a little bit |
Forum: PHP Feb 21st, 2008 |
| Replies: 25 Views: 1,914 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 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 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 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 how to implement tar command through php script? |
Forum: PHP Feb 20th, 2008 |
| Replies: 4 Views: 5,660 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 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 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 sorry to bother you agn naveen, but how is that related to session? |
Forum: PHP Feb 20th, 2008 |
| Replies: 19 Views: 1,431 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 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. |