[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread David Tandberg-Johansen
[CUT] I am using SESSION on al my secure projects I use a file structur as this: (loginform) - logincheck.php (if not ok-back2login | if ok (start an session)(forward to the secure pages)) When the user logs out: (securepages)-logout.php: ?PHP //go through all the session array an unregister the

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread David Tandberg-Johansen
03-01-01 at 10:56, David Tandberg-Johansen wrote: [CUT] I am using SESSION on al my secure projects I use a file structur as this: (loginform) - logincheck.php (if not ok-back2login | if ok (start an session)(forward to the secure pages)) When the user logs out: (securepages)-lo

[PHP] Serializing of OOP into sessions

2002-03-13 Thread David Tandberg-Johansen
Hello could somone please explain to me HOW I serialize classes into session and how I get the on the next page!?? Must I do $object = new ObjectName on the next page for the object to be used?? How does this work? Thanks David -- PHP General Mailing List (http://www.php.net/) To

[PHP] Php4 / Class / Session

2002-03-05 Thread David Tandberg-Johansen
-do_something_else(); ? Second Page: ?PHP session_start(); $a = unserialize($s[a]); $b = unserialize($s[b]); $a-do_something_on_page2(); $b-do_something_else_on_page2(); ? I hope someone could give a hint on how this work David Tandberg-Johansen -- PHP General Mailing List (http://wwwphpnet

[PHP] Re: REQUEST QUESTION

2002-03-05 Thread David Tandberg-Johansen
Karthikeyan [EMAIL PROTECTED] skrev i melding 002601c1c461$cfa08580$0600a8c0@aspire006..">news:002601c1c461$cfa08580$0600a8c0@aspire006..; Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10

[PHP] Classes

2002-03-05 Thread David Tandberg-Johansen
Hallo! Can I from inside an Class Intialize other classes, and access them from the ordinary script? Page1php ?PHP require_once(/myclassinc); $my = new MyClass; $my-init(); $fileread-readfile($file=myfiletxt); ? myclassinc ?PHP class MyClass { var classes = Array(

[PHP] Classes

2002-03-05 Thread David Tandberg-Johansen
Hallo! Can I from inside an Class Intialize other classes, and access them from the ordinary script? Page1.php ?PHP require_once(./myclass.inc); $my = new MyClass; $my-init(); $fileread-readfile($file=myfile.txt); ? myclass.inc ?PHP class MyClass { var classes = Array(

[PHP] Re: How make the time

2001-07-18 Thread David Tandberg-Johansen
e as how many customers where surfed at that time where 30-15=interval and 12 is the hour you're checking in! David Tandberg-Johansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! I am trying to make an online booking script for a cl

[PHP] How make the time

2001-07-17 Thread David Tandberg-Johansen
Hello! I am trying to make an online booking script for a client (restaurant), and I am using MySQL to store the booking information The restaurant have openings hour from 11:00 - 01:00, but do only take reservation between 11:00-22:30. The client wants to get a report written out over each hour

[PHP] A tricky problem

2001-04-14 Thread David Tandberg-Johansen
This is maybe of topic, but I try. I have this site where the user first selects a langueage, and then i use session_register() to register the information. Then I use the the registered onformatin to dispaly the site text in the user selected language. The user put the selected things in a

[PHP] Session

2001-03-30 Thread David Tandberg-Johansen
Hey! I have just began to look at session, and I have some question. When I have used session_register('item') and the user navigates further in the site, how do I know what has been registered? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Is it possible to send a html page via mail()???

2001-02-17 Thread David Tandberg-Johansen
Hello ! I wonder if there are any class or script out there that you can give an url or file as an variable and then it sends this as html-mail to a given emailadress. david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Array

2001-02-15 Thread David Tandberg-Johansen
How can I delete one record in a array? Example: $myarray = array ("a", "b", "c"); I want to delete/take away "b" so the array is: $myarray = array ("a", "c"); David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] How to get information out of an external page?

2001-02-06 Thread David Tandberg-Johansen
Hello! I try to get some information from an public DB to controll that the users input is right. I can access the DB via http, so I dont have to logg in to it The public DB write out and plain HTML page. I want to check if only one of the records is the same as the user input. I am only

[PHP] Image

2001-02-01 Thread David Tandberg-Johansen
Hello! I wonder if anyone can tell me how I can use an another image as an background in a new image? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] SESSIONS

2001-01-18 Thread David Tandberg-Johansen
Hello! Could anyone give me an direction where I can find information something like "session for dummies"! It's not funny anymore. I don't have anymore hair left :-] david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional