Re: [PHP] $PHPSESSID on PHP 4.1.0

2001-12-17 Thread Morten Winkler Jørgensen
JNT If I do this: JNT ?php JNT echo $PHPSESSID; I've encountered the same when instaling the Mandrake Linux 8.1 with a precompiled php - also 4.1.0. Sessions just doesn't seem to work no matter how I access them. I installed Redhat 7.1 on my server again, and left the problem for my ISP.

Re[2]: [PHP] Logo proposal

2001-12-13 Thread Morten Winkler Jørgensen
DK Ant is a hard worker in the summer and very powerfull ( can lift 30 times DK it's weight ) and small. Does that mean that php should be ineffective during winter? ;) Great idea I sincerely think! Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] even or not

2001-11-13 Thread Morten Winkler Jørgensen
OSv How can is check with php wether a number is even or not? What i want is OSv that in a while loop the background color of a cell changes! Try echo (($i++ % 2) == 0) ? #FFBR : #00FF00BR; First it performs an integerdivision and checks if the remainder is 0. If that is the case it

Re[2]: [PHP] Can If Else statements be split into code blocks??

2001-11-13 Thread Morten Winkler Jørgensen
RB ?php RB if (strstr($DomResults,$Match)) RB print Congratulations! $domain.$suffix is available!; ? RB form method=POST action=step2.asp name=form2 RB pinput type=submit value=Register name=B1/p RB /form RB ?php RBelse RB print Sorry, $domain.$suffix is already

Re: [PHP] Login Verification - snag!

2001-11-12 Thread Morten Winkler Jørgensen
I hate to have to duplicate the file with different permissions AMK just so that the process can read it when it needs to. How about persorm a exec(su username password) grabbing the output? Or something like that... -- Kind regards, Morten Winkler -- PHP General Mailing List

Re: [PHP] PHP/MySQL

2001-11-12 Thread Morten Winkler Jørgensen
p $Query = INSERT INTO table_name (Obj,Descrip) VALUES (keyboard,Device p to pound on when frustrated.); p $Results = mysql_query($Query) p or die (Query FAILED); need to embed your strings in like $Query = INSERT INTO table_name (Obj,Descrip) VALUES (\keyboard\,\Device to pound on when

Re: [PHP] Javascript php / need help

2001-11-09 Thread Morten Winkler Jørgensen
x The problem is, i need a javascript which i can write into the database, x which on the oher side can read out a php SESSION. Is this possible? x Yes? how? Javascript in browser php on server Pass varibales from javascript - php via urls and forms Pass varibales from php - javascript via

[PHP] Secure transfer

2001-10-31 Thread Morten Winkler Jørgensen
Hi php'ers I'm about to build a site that allows payment with credit card. Of cause the card number, expiration date etc. should be secured when transfered. How do I do that? I've been looking at the OpenSSL functions in php, but they seem to be unsatisfying. Kind regards,

Re: [PHP] table troubles

2001-10-30 Thread Morten Winkler Jørgensen
NV Hi ! NV I'm making a web site which allows user to add his own news, or other data to the page NV via the form. The user inputs the data into the textarea and the data is placed into a NV table. The problem is that all the text is placed into a single line ! NV Is there a html catch to

Re[2]: [PHP] something like alert (javascript)

2001-10-04 Thread Morten Winkler Jørgensen
EK I'm using a simple print() (PHP) but alert() would EK be much better. Have php print your BODY tag like this: BODY onLoad=alert('Your warning') That's the best solution I think. -- Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: hi

2001-09-02 Thread Morten Winkler Jørgensen
If you want to make a fixed size of your SELECET ... in IE you can do it like this: SELECT NAME=aname STYLE=width : 250px OPTION VALUE=aa OPTION VALUE=bb OPTION VALUE=cc OPTION VALUE=dd /SELECT or use 100% to make the box be as wide as the

Re[2]: [PHP] php query for mysql table

2001-08-20 Thread Morten Winkler Jørgensen
Notice that if a user enters life anger in the search field SELECT * FROM table WHERE question LIKE %life anger% none of the questions [1] How do you deal with anger? [2] Ever been full of anger in your life? [3] Is life always easy? will match. For that you must split the query by and

Re[2]: [PHP] Onclick and PhP

2001-08-15 Thread Morten Winkler Jørgensen
Try this page. It is a hack but I think it does what you want it to. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN HTML HEAD /HEAD BODY BGCOLOR=#FF TEXT=#00 LINK=#FF VLINK=#80 ALINK=#FF00FF BACKGROUND=? ? function theAnswer($action) { if($action

Re: [PHP] Re: Text Database class

2001-07-31 Thread Morten Winkler Jørgensen
Hi Elias This might be what you are looking for. Found on http://www.hotscripts.com - PHP - Scripts and Programs - Database Tools - TextDB (page 8 of 9, entry 76) Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re[2]: [PHP] IE - View Source

2001-07-27 Thread Morten Winkler Jørgensen
Besides... do you REALLY have anything so mind bogglingly original in your code that you have to go to all these extremes to protect it? MG That's what I've never understood about people wanting to hide their source. MG HTML isn't rocket science. Any server side scripting won't be seen, and

Re: [PHP] Syntax Eyes

2001-07-25 Thread Morten Winkler Jørgensen
CD Hey, I need a set of extra eyes: OK. I'll put on my magic X-ray typ-oh-glasses ;) CD $res_id = mysql_query (update contacts_data set ( CD description='$description', CD data='$data', CD filename='$input_file_name', CD

Re: [PHP] javascript ?

2001-07-23 Thread Morten Winkler Jørgensen
Only use hide(), show(), block(), etc. if you want an ordinary htmlpage to be shown. If you on the other hand want the values of form elements to change you should do something like this: SCRIPT LANGUAGE=javascript function fillForm(){ document.form_name.txt.value =

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Morten Winkler Jørgensen
Hi Frederik Run this code. It does what you want it to. In your original code you compared two strings in the IF-statement. When the $resolution gotten from your JavaScript returned '800' it would have a lexical higher value than '1024' and thereby do exacely what you wanted it to - actually the

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Morten Winkler Jørgensen
How you want to get a value from client side to php on the same page? Well. Actually I didn't invent the code. I just correcteded it so it worked on my installation. I must admit I was amazed that it somehow worked, but it did. Kind regards, Morten Winkler -- PHP General Mailing List

Re: [PHP] report generation with PHP

2001-07-16 Thread Morten Winkler Jørgensen
Hi Matthew, MG Now I want to be able to generate this report from the web. It doesn't MG have to use Access (and I would prefer that it didn't, so I can convert to MG MySQL). But I don't know of a nice (and easy!) way to generate such a MG report. Using HTML tables isn't acceptable---when

[PHP] Detection of no cookies?

2001-07-12 Thread Morten Winkler Jørgensen
Hi php'ers Since I have a site that relies on cookies it would be good to detect if a user has turned them off. How cat I determine if that is the case? Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Files without type???

2001-04-18 Thread Morten Winkler Jørgensen
Hi php'ers Executing the following code on my Redhat 7.2 box, through Apache i get the most annoying output: Code: function listDirectory($basedir){ $diary_directory = opendir($basedir); while($filename = readdir($diary_directory)) { if(strcmp(".", $filename) != 0) {

[PHP] validating form data via javaScript when stored in an array

2001-04-09 Thread Morten Winkler Jørgensen
Joseph, You will have to declare SCRIPT LANGUAGE="javascript 1.2" myArray = new Array(); myArray[0] = "a string"; myArray[1] = 11; myArray[2] = new Array(); /SCRIPT since JavaScript 1.2 has arrays implemented. Kind regards, Morten Winkler -- PHP

Re: [PHP] huidziekte

2001-04-05 Thread Morten Winkler Jørgensen
It is most certain _not_ Norweigan. To me it looks loke a mixture of Dutch and German. I'll send it to a Duch exchangestudent. Kind regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL