Re: [PHP] $PHPSESSID on PHP 4.1.0

2001-12-17 Thread Morten Winkler Jørgensen
JNT> If I do this: 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. Kind reg

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 uns

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

2001-11-13 Thread Morten Winkler Jørgensen
RB> if (strstr($DomResults,$Match)) RB> print "Congratulations! $domain.$suffix is available!"; ?>> RB> RB> RB> RB> else RB> print "Sorry, $domain.$suffix is already taken."; ?>> You definitely needs curly brackets. Kind regards, Morten Winkler -- PHP

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) ? "#FF" : "#00FF00"; First it performs an integerdivision and checks if the remainder is 0. If that is the case it p

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 pou

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 (http

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 vi

[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, Mor

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 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 preven

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: That's the best solution I think. -- Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [PHP] lynx and mail function

2001-09-05 Thread Morten Winkler Jørgensen
I might have got something wrong, but shouldn't you have your script parsed by php, ie. getting it through your webserver, like: lynx http://yourwebserver/myfunction.php and _not_ like lynx myfunction.php I'd suggest that as one error source. -- Kind regards, Morten Winkler -- PHP Gene

[PHP] Re: hi

2001-09-02 Thread Morten Winkler Jørgensen
If you want to make a fixed size of your in IE you can do it like this: a b c d or use 100% to make the box be as wide as the container it is within. Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To

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

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. This is a page with a button on it. When you press it you willget something in the layer. -- Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Text Database class

2001-07-30 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: [EMA

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

2001-07-26 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 se

Re: [PHP] Syntax Eyes

2001-07-24 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> filesize='$input_fil

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: function fillForm(){ document.form_name.txt.value = document.form_name.a_selection.value; }

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 Lis

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] "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 a

[PHP] Files without type???

2001-04-17 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) { if(strc

[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 myArray = new Array(); myArray[0] = "a string"; myArray[1] = 11; myArray[2] = new Array(); since JavaScript 1.2 has arrays implemented. Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net

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 PROTECTED