[PHP] 15 pieces Puzzle

2002-07-03 Thread Calin Uioreanu

As I started working on this contest and did not finish it, I will put here
the code for this, as this code may help somebody

http://www.php9.com/index.php/section/articles

--
--

Calin Uioreanu
PHP Programmer
ciao.com AG

www.ciao-ag.com
Consumer Access Europewide

Phone : +49-89-25 55 1707
Fax   : +49-89-25 55 1700
mailto:[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] include redirects

2002-01-29 Thread Calin Uioreanu

Hi all,

I have a problem with a redirect. I have a file that includes a content from
another PHP script,
parses the content as string with output buffering and displays it.

The problem is that the include function doesn't seem to handle redirects.
When that other
PHP script makes a Header relocate the fopen from my initial file is lost
and I get
Warning  fopen No such file or directory
I get the same when I try include.

Do you know a solution to insert remote content handling eventual redirects
in the remote?
Something like a browser.

--

Regards,
--
Calin Uioreanu
[EMAIL PROTECTED]
Tel: +49 - (0) 89 - 25 55 17 07
http://www.ciao.com
München, Germany
--



-- 
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: Regex problem

2001-10-25 Thread Calin Uioreanu

$sNoSpaces = ltrim($variable);
if ('*' == $sNoSpaces[0]) 

--

Regards,
------
Calin Uioreanu
[EMAIL PROTECTED]
Tel: +49 - (0) 89 - 25 55 17 23
http://www.ciao.com
--
"Leon Mergen" <[EMAIL PROTECTED]> wrote in message
002f01c15d2a$e4ca3030$012aa8c0@leon">news:002f01c15d2a$e4ca3030$012aa8c0@leon...
Hi there,

I am camping with a little regular expressions problem...

Problem: I want to check if $variable begins with a * (star), and it doesn't
matter if it starts with plenty of spaces...

My solution:
ereg("^[:space:]*\*",$variable)

But, it doesn't seem to work with the space part... The regex:

ereg("^\*",$variable)

does work, but that doesn't include spaces at the start... How can I extend
this one so that it doesn't matter if there are a lot of spaces at the
begin?

Thanks in advance,

Leon Mergen




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

2001-12-07 Thread Calin Uioreanu

Hi,

I have a problem.
I am using sybase_query to update a statistics table, and then reset an
external cache server.
These operations come one after another in the script. The ideea is that the
new thing will be cached
again the next time it's called, but the cache beeing reset will force it to
be the newest thing.

The problem that I am facing is when I put it into a big traffic site. Then
it looks like the cached image
is an older one. No ideea why.
I am assuming that sybase_query returns before finishing the query
execution!? And then the cache
gets reset but beeing constantly called it takes still the old thing from
the database? Any ideeas?

I would appreciate!
Calin



-- 
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] force the output of PHP

2001-07-27 Thread Calin Uioreanu

Hi,

I would like to force the output of php in one page.

The result set is clustered and I want to send to the browser
a cluster as soon as the processing is done.

Can I do this?
I tried output buffering and something like this:

";
echo microtime();

ob_end_flush();
?>

But no way
--

Regards,
------
Calin Uioreanu
[EMAIL PROTECTED]
Tel: +49 - (0) 89 - 25 55 17 23
http://www.ciao.com
--



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