Re: [PHP] Regular expressions

2006-10-16 Thread Morten Twellmann
Great! It works! Thank you very much. Also thanks to all the other guys who answered. I also think I finally started to understand these regular expressions a bit better. - Morten - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Morten Twellma

[PHP] Regular expressions

2006-10-14 Thread Morten Twellmann
"Welcome to my homepage" I tried with: preg_match(']*>(.*?)', "Welcome to my homepage", $matches, PREG_OFFSET_CAPTURE); print_r($matches); but got nothing... Can anyone tell me how to do this? (I tried the above expression in EditPad Pro 6 and it worked...!) Sincerely, Morten Twellmann

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Morten Rønseth
was ever meant to be used in the way Morten was (or was it Torsten?). its clearly for debugging, no? Ah - but I was only checking out a previous tip on the subject. I wasn't actually trying to implement a fix using debug_backtrace(). Good heavens, no! It would be far to ineffective.

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Morten Rønseth
Jochem Maas wrote: Morten Rønseth wrote: Hi, I just tried the example code at http://www.zend.com/lists/php-dev/200307/msg00244.html using PHP 5.0.3 The backtrace doesn't see class b at all, all references to it have vanished into thin air. as a side note - using a function

[PHP] Re: $_GET & $_POST simultaneously

2005-01-12 Thread Morten RÃnseth
ill in the appropriate GET values. Simple and clean. Cheers, -Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking if

2005-01-12 Thread Morten Rønseth
if you need to maybe some day figure out the last several letters in weird combinations. substr will be useful if you might some day need more letters, but not in weird combinations. The array usage may be more natural if you are already tearing apart the string character by character in other bit

Re: [PHP] Re: Get name of extending class with static method call

2005-01-12 Thread Morten Rønseth
t making a feature request? There has to be a way to get this implemented into PHP 5... Cheers, -Morten Jochem Maas wrote: darn, send button again!! (sent too early) Jochem Maas wrote: Jason Barnett wrote: Indeed! I was actually quite surprised that this wasn't the way __CLASS__ resolved... I

[PHP] Setting the environment PATH

2003-12-19 Thread Morten
Hi, I need to add /usr/local/bin to the PATH used by my PHP web application. How? Br, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Count lines or chars

2003-10-17 Thread Morten Skou
I guess you could do something like : That would count all the lines in the file. /Morten -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent: 17. oktober 2003 11:25 To: [EMAIL PROTECTED] Subject: [PHP] Count lines or chars Hi PHP-gurus :-) I'd like to count the

RE: [PHP] unix timestamp

2002-09-06 Thread Morten Skou
Hi, You can just use : $output = strtotime("+1 day"); $output = strtotime("-7 day"); http://dk.php.net/manual/en/function.strtotime.php -Morten Skou -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: 6. september 2002 13:50 To: [EMAIL PROTECTED]

[PHP] Re: Emulating HTTP File Uploads

2002-06-22 Thread Morten Winther
oads but it doesnt work with HTTP POST or file uploads. > > Does anyone have any ideas? http://www.php.net/manual/en/ref.curl.php / morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Check colorspace of image: cmyk vs rgb

2002-06-22 Thread Morten Winther
Hi Anyone know how I can check if an image is in cmyk or rgb? Best regards Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Multiple variables

2002-05-28 Thread Morten Nielsen
do something... } } regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Frames

2002-05-04 Thread Morten Nielsen
Hi, I got a page with 2 frames. In the first one I have an IMG. Is it possible to get the URL from the second frame? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Javascript function

2002-05-04 Thread Morten Nielsen
Hi Is it possible to call a function in a javascriptpage from a PHP page? I have a function, which I use when the user press a button. I would like to call this function just by typing the name. Is that possible? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] IMG functions

2002-05-03 Thread Morten Nielsen
Hi, I got an IMG object on my page. It looks like: Is it somehow possible to specify a variable to be set when the user clicks the image? So 2 things are being done? Then it would looks something like: Is this somehow possible? Regards, Morten -- PHP General Mailing List (http

[PHP] SESSIONS

2002-05-02 Thread Morten Nielsen
$INFO["value"]=1; } else { $INFO["value"]=2; } My INFO always gets the value 2 even though x is 1. Can anyone help? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] authentication

2002-04-23 Thread Morten Ronseth
Anybody know how to revoke the HTTP authentication, i.e. log people out, using PHP? Cheers, -Morten --- Rayon Interactive AS http://www.rayon.no Morten Lerskau Rønseth mailto:[EMAIL PROTECTED] Karenslyst Allé

[PHP] Inheritance & overriding methods

2002-04-11 Thread Morten Rønseth
= new B (); $b->doit (); ?> This should print "BB"; Now, in PHP we don't have "$super" to call the superclass' method. Is there a way around this? Renaming the functions is not an option. Grateful for any hints. Cheers, -Morten

[PHP] SESSIONS in javascript

2002-04-10 Thread Morten Nielsen
Hi, I got a PHP page where I define a SESSION. I then include a javascript page where I would like to use the value which is stored in the SESSION. The problem is that the php tags doesn't work in javascript. Can anyone tell me how to do that? Regards, Morten -- PHP General Mailing

[PHP] Form ID name

2002-04-07 Thread Morten Nielsen
t;; } Is this somehow possible? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hidding an image

2002-04-07 Thread Morten Nielsen
Hi, I got a page where I have to images (IMG), which is also a link. Is it possible to hide an image so the user can't see it? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Remembering choices

2002-04-02 Thread Morten Nielsen
Hi, I have a menu, where I would like to be able to store which link the user last pressed. What is the best way of doing this? I thought about sessions, but is it possible to define some sort of global variable that I can access from all my pages? Regards, Morten -- PHP General Mailing List

[PHP] Debugging tool

2002-03-25 Thread Morten Nielsen
Hi, Can anybody tell me if it is possible to use a debugger with PHP? And what is the name of it? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Development tools

2002-03-23 Thread Morten Nielsen
Hi, Does anyone know of a tool that can show how mySQL DB's are related and which PHP functions are being called. It should maybe be something like UML. Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Storing variables

2002-03-21 Thread Morten Nielsen
from page one? Is a session the only/right way to do this? Regards, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions

2002-03-18 Thread Morten Nielsen
Hi, I got a page that is being reloaded a lot. In the bigging I register a Session variable with the SESSION_START and SESSION_REGISTER functions. Is it wrong that I keep registering the session? Should I also unregister the session at the bottom of the page? Regards, Morten -- PHP General

[PHP] links

2002-03-17 Thread Morten Nielsen
Hi, I got a table where I on the left has a link to page1. Another place in the table I have a button, which also links to page1. Is it possible to tell which of the two links has been pressed. I need to know so I only show a specific message when the button has been pressed. Regards, Morten

[PHP] Passing parameters

2002-03-15 Thread Morten Nielsen
Hi, I have a php file where a make a lookup in a data base. I store the result in a variable call $qid. I then have an include statement of another file where I need the data from $qid. Can anybody tell me how I get the data. Thanks, Morten -- PHP General Mailing List (http://www.php.net

[PHP] More about sessions.

2002-02-14 Thread Morten Nielsen
Hi again, I have read about sessions in the PHP manual and as far as I understand session needs the user to allow cookies. Is my understanding correct so far? But if it is required to accept cookies why not just pass all the required parameters in the URL? Thanks, Morten -- PHP General

[PHP] Sessions

2002-02-14 Thread Morten Nielsen
session_start() and then session_register("session"). What does the error message mean? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions?

2002-02-13 Thread Morten Nielsen
Hi, I have a site where users should log in. What is smartest/most secure way of handling this? Should I use sessions, HTTP authentication or just pass the parameters when I call a new page? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Php is serversided????

2002-02-13 Thread Morten Nielsen
selection? Please explain it to me, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Refreshing a page.

2002-02-12 Thread Morten Nielsen
Hi, I got a page, which uses frames. When a user logges in I would like to refresh a frame, but I don't know how to do that. Can anybody help me? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Links to other pages

2002-02-05 Thread Morten Nielsen
what is wrong? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and mySQL

2002-01-17 Thread Morten Nielsen
told where my php.exe file is located, but when I add the --with-mysql nothing happens. Please help Thanks, Morten -- 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 administrato

[PHP] Event based applications?

2002-01-12 Thread Morten Nielsen
based page, but PHP doesn't support the event driven methods like JavaScripts. Please send your comments, Morten -- 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 administrato

[PHP] Development environment

2002-01-12 Thread Morten Nielsen
Hi, Can anybody recommend a good development environment? It should support PHP, HTML and JavaScripts. Another question...Is it normal procedure to mix the above 3 languages on a single page or is it possible to only use 1...i.e PHP? Regards, Morten -- PHP General Mailing List (http

[PHP] Using a HTML button

2002-01-11 Thread Morten Nielsen
press the button. When the page loads it already has calculated 2*$X. Why is that. I would like to only call my function when I press my button. Please help Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] $PHPSESSID on PHP 4.1.0

2001-12-17 Thread Morten Winkler Jørgensen
or my ISP. Kind regards, Morten Winkler -- 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, e-mail: [EMAIL PROTECTED]

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.p

[PHP] mailparse_* functions

2001-12-11 Thread Morten Winther
mailparse_msg_get_part_data mailparse_msg_get_structure mailparse_msg_parse mailparse_msg_parse_file mailparse_rfc822_parse_addresses mailparse_stream_encode mailparse_uudecode_all Best regards / morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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 b

Re: [PHP] even or not

2001-11-13 Thread Morten Winkler Jørgensen
0. If that is the case it prints "FF" if the remainder is 1 it prints "00FF00" Finally is increments $i. -- Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] PHP/MySQL

2001-11-12 Thread Morten Winkler Jørgensen
(Obj,Descrip) VALUES (\"keyboard\",\"Device to pound on when frustrated.\")"; -- Kind regards, Morten Winkler -- 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, e-mail: [EMAIL PROTECTED]

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

[PHP] Re: putting the result of PHP code into a string

2001-11-10 Thread Morten Gjetanger
Ok. To be a bit more precise. the $code part could be any php code, e.g. $code = <<$val\n"; } ENDM; regards Morten Gjetanger "Morten Gjetanger" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm quite sure there

Re: [PHP] putting the result of PHP code into a string

2001-11-10 Thread Morten Gjetanger
atabase, and I have a php script which shows the pages with a common header, footer, menu etc.. But I want the text to also contain php code which will be evaluated by the script! regards Morten Gjetanger "Jason Stechschulte" <[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]

[PHP] putting the result of PHP code into a string

2001-11-09 Thread Morten Gjetanger
7;ve checked the eval function, but it just evaluates the code and just outputs the result. I really wants the output into a string! regards Morten Gjetanger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] Javascript & php / need help

2001-11-09 Thread Morten Winkler Jørgensen
> javascript via echo's -- Kind regards, Morten Winkler -- 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, e-mail: [EMAIL PROTECTED]

[PHP] Secure transfer

2001-10-31 Thread Morten Winkler Jørgensen
. Kind regards, Morten Winkler -- 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, e-mail: [EMAIL PROTECTED]

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: [EMAI

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] 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
tch. For that you must split the query by " " and perform a SELECT * FROM table WHERE question LIKE "%life%" OR question LIKE "%anger%" or possibly change the OR with a AND. Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/)

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/)

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

2001-07-26 Thread Morten Winkler Jørgensen
d to get home free quickly (the dark path) - not to point at anybody. Kind regards, Morten Winkler -- 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, e-mail: [EMAIL PROTECTED]

Re: [PHP] Syntax Eyes

2001-07-24 Thread Morten Winkler Jørgensen
= 'asd', sadf='ert', ..., WHERE uid = 'myuid') but try moving the WHERE clause outside the parentheses like UPDATE adf SET (asdf = 'asd', sadf='ert') WHERE uid = 'myuid' Of cause my glasses might be broken o

Re: [PHP] javascript ?

2001-07-23 Thread Morten Winkler Jørgensen
play the address field, zip field etc, if the user AB> select pick up display the time field etc. Kind regards, Morten Winkler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

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 Gene

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Morten Winkler Jørgensen
e to the integervalue 1024. That's the trick $resolution = "document.write(screen.width)"; echo "--".$resolution."--"; if (($resolution*1) >= 1024) { $resolution = "1024"; } else { $resolution = "800"; } echo "**".$resolution

Re: [PHP] "report" generation with PHP

2001-07-16 Thread Morten Winkler Jørgensen
I start MG> changing formats, people will get upset. Try PHP's PDF extension. That way you can create neat documents. -- Kind regards, Mortenmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[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

[PHP] Files without type???

2001-04-17 Thread Morten Winkler Jørgensen
x.php is "" (should be "file") Ansatte is ""(should be "dir") Produkter is "" (should be "dir") Kontorer is "dir" view.php3 is "" (should

[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

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: [

[PHP] Using php to get javascript varibles

2001-03-14 Thread Morten Hansen
Hey :) I'm in the need to fetch some javascript varibles from php, any ideas on how this could be done ? Regards, Morten Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Tracing

2001-01-26 Thread Morten Rønseth
Hi, Is there any way to do a stack crawl/trace when an error occurs? Today, I only get the line in the script in which the error occured, but I have to put on my Sherlock habit in order to find the actual sequence of avents that led up to the error Cheers, -Morten