[PHP] php header function

2003-10-24 Thread Shaun van den Berg
Hi

I have tried the net , googling ect. but i cannot get a good description of
what the header function is al about ? Can anyone please define the header
function.

Thanks
Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Databases

2003-09-25 Thread Shaun van den Berg
Hi

Im kinda new to php. I have a linux server witch has our website on it. I
want to make a download page. If a person clicks on a link , they must be
able to download from our server. How difficult is this , can you send me an
example ?

Thanks
Shaun van den Berg

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] session variables

2003-03-13 Thread Shaun van den Berg
Hi,

Is it wise or wrong to put long strings into a session variable ? Is it
better to keep the values short ?

Thanks
Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sessions garbadge

2003-03-12 Thread Shaun van den Berg
Hi,

My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for
testing . When i create a session on my site and i dont log out , the
session var will still remain on the server , ok , after an hour (not
exactly an hour) , when i surf the site , the collector destroys that var on
the server (linux server) ! That is how it should work ! But when i create a
session at say 23:36 , the session var will still be on the server at 8:16
(after the carbadge collector came around) , why does this happen , does php
work in a 12 cicle only , or what is wrong ?

Thanks
Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sessions

2003-03-10 Thread Shaun van den Berg
Hi,

Tell me , is sessions safe - why is it really used ? Is it important te
delete the session variables after u use it ? When a user logs on to my site
, he enters the password , i then encrypt the password and verify it with
the one in the database ! Will someone be able to hijack the session getting
the password before i encrypt it ?

Thanks
Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] session

2003-03-10 Thread Shaun van den Berg
When does the carbadge collector start ?

Thanks
Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] session

2003-03-10 Thread Shaun van den Berg
Hi,

What should the probability of your garbadge collector be ? is a 100% bad ,
and how long must the max lifetime of your session variables be , the
default is 1440 secs(24 min) , is 24 hours to much ? Thanks

Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sessions

2003-03-06 Thread Shaun van den Berg
Hi,

Im working on a site  where the user logs in , if username and password
matches with uname and pword in database then he is a valid user.
I then start a session with session_onstart() and have a variable for his
username and for his permissions ! (these variables are stored on server)
Once he entered the secrure area , there is a logoff button for the user to
log off ! the logoff code looks like

(?php

session_start();
$name = session_name();
session_unset();
session_destroy();
setcookie($name,,-3600);
print(script language='javascript'self.close();/script);
?
)

the above code deletes the cookie on the clients computer + the session
variables on the server !

finally , here is my question ! If the user does not logoff , but simply
closes the browser , the cookie on his computer will be deleted , but the
session
variables on the server will still be there ! How do i delete this ?

Thanks a bunch !

Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] printing

2003-01-27 Thread Shaun van den Berg
Hey,

Is there a way in php to print to a printer? say i have a order from , when
someone clicks the submit button - then print the form plus the entered
details to a page ?

Thanks for you help

Shaun

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] DOWNLOAD

2003-01-21 Thread Shaun van den Berg
Hi ,

Im not sure if this can be done in PHP , i know PHP has upload features !
Does it have download features , wat i mean is the following : i want a
link - click here to download - when you click on it , the download dialog
box must appear - how do i do this ?

Thanks
Shaun van den Berg

--
Novtel Consulting
Tel: +27 21 9822373
Fax: +27 21 9815846
Please visit our website:
www.novtel.co.za



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php