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
"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
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.
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
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
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
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
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
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
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]
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
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
do something...
}
}
regards,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
$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
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é
= 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
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
t;;
}
Is this somehow possible?
Regards,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
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
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
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
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
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
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
selection?
Please explain it to me,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
what is wrong?
Thanks,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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]
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
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
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
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,
(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]
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
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
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]
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
> 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]
.
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]
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
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
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
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
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/)
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
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/)
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]
= '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
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
>> 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
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
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
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
x.php is "" (should be "file")
Ansatte is ""(should be "dir")
Produkter is "" (should be "dir")
Kontorer is "dir"
view.php3 is "" (should
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
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: [
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
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
70 matches
Mail list logo