[PHP] Parsing?

2002-01-16 Thread Tony Arnold

I'm wondering if it's possible to parse a .php-file so i looks exactly as if
I just were looking at the source trough a browser with all the
environment-variables intact and so on?

/ Tony...



-- 
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] WDDX...

2002-01-16 Thread Tony Arnold

I'm doing a website which I want to be easily updated so I made it using
wddx, now I wonder how fast or slow it is? How many people can connect to my
website without seeing any slowdowns? Anyone knows?

/ Tony...



-- 
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] Regular Expressions...

2002-01-18 Thread Tony Arnold

Howdy people... I want to extract the name of a hyperlink which looks like
this:

this is the name!

I tried to do this:

ereg(">([a-zA-Z0-9_. -]*)<",$hlink, $reg3);

and it works if it only consists of the above characters, how can I tell
ereg to include all characters? not only "a-zA-Z0-9_. -".

/ Tony...



-- 
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] Regular Expressions...

2002-01-18 Thread Tony Arnold

Thank you!

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: den 18 januari 2002 15:14
To: Tony Arnold; [EMAIL PROTECTED]
Subject: Re: [PHP] Regular Expressions...


On Friday 18 January 2002 22:09, Tony Arnold wrote:
> Howdy people... I want to extract the name of a hyperlink which looks 
> like
> this:
>
> this is the name!
>
> I tried to do this:
>
> ereg(">([a-zA-Z0-9_. -]*)<",$hlink, $reg3);
>
> and it works if it only consists of the above characters, how can I 
> tell ereg to include all characters? not only "a-zA-Z0-9_. -".
>
> / Tony...

Use .* as in:

 ereg(">(.*)<",$hlink, $reg3);



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
court, n.:
A place where they dispense with justice.
-- Arthur Train
*/


-- 
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] Looping?

2001-12-14 Thread Tony Arnold

Hello, I don't know if I'm in the right newsgroup but I'll give it a try...
:-)

How can I make the following work:

function start($times)
{
for...loop starts here...
{  <-- notice only one bracket.
}

function end()
{
} <-- the ending bracket.
}

start('10');
html-code... I want this to be repeated 10 times.
end();

This doesn't work but this is how I want it! :-) Anyone?

/ Tony Grefweberg



-- 
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] Re: Looping?

2001-12-14 Thread Tony Arnold

Thank you all for very good and quick answers. They did help! :-)

/ Tony...

"Tony Arnold" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello, I don't know if I'm in the right newsgroup but I'll give it a
try...
> :-)
>
> How can I make the following work:
>
> function start($times)
> {
> for...loop starts here...
> {  <-- notice only one bracket.
> }
>
> function end()
> {
> } <-- the ending bracket.
> }
>
> start('10');
> html-code... I want this to be repeated 10 times.
> end();
>
> This doesn't work but this is how I want it! :-) Anyone?
>
> / Tony Grefweberg
>
>



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