Re: [PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread JCampbell
Not to sound overly obvious, but try this. setcookie(cookieusername,$username,time()+6048000,/,,0); $cookieusername = $HTTP_COOKIE_VARS[cookieusername]; if (!$cookieusername){ echoSorry, no cookie, no page.; die(); } =- Jonathan Campbell ( [EMAIL PROTECTED] ) Mid days haze and I'm

[PHP] Basic fopen() question

2001-07-04 Thread JCampbell
I had an example of a function to open a file and read its contents into an array. It worked so that each line of the file was one element of the array. I can't find my example, nor can I get it to work the way I'd like. Any help? =- Jonathan Campbell ( [EMAIL PROTECTED] ) Mid days haze and

[PHP] Global variables

2001-04-18 Thread JCampbell
I know there is a way to do it in Perl, but is there anyway in PHP to display all of the global variables. Such as OS, browser, date/time, that sort of thing I know I could print each one seperately, but are they all stored in an array somewhere?

[PHP] Slow running PHP

2001-04-03 Thread JCampbell
This is going to be a silly question. I have written the following form to mail script, and it works. But it takes a good minute or so to process. Can any one shed some light? I think it may have to do with the gethostbyaddr($REMOTE_ADDR) but if anyone else can help, that would be great. Jon

[PHP] about:home

2001-03-25 Thread JCampbell
I know it is possible to redirect a user to their home page, but is it possible to determine what home page they are using?

[PHP] Hello $variable, whats your name?

2001-03-22 Thread JCampbell
I would like to know if there is a way to determine the name of a variable. Example: I have the variable $firstname, with a value of Jon I want to be able to echo name_of_variable : value_of_variable; So the user would see firstname : Jon I want to be able to do this without knowing what

[PHP] Complex IF statement

2001-03-22 Thread JCampbell
Thank you all for your help earlier! Now I need to know if it is possible to create a complex if statement? if ($variable=="duck") || ($variable=="goose"){ }else{ } Is how I thought it would work. I just need to know if there is an easy way to do an OR in if statements IF variable equals duck

[PHP] TCP/IP Server Question

2001-02-15 Thread JCampbell
I was recently looking at the talker example at http://www.php.net/manual/en/ref.sockets.php Does anyone know an example of making this same code for multiple connections. I'd love to see any working examples Jon www.PictureArena.com === The lack of humility before