( the first backslash escapes the
second).
foreach ($tags as $currentTag)
if (preg_match (/^\/. $currentTag. /, $content))
// do something
Witan Jardine
13 Southampton Place
London WC1A 2AL
Tel: 020 7404 4004
I hope I didn't miss the point and could help you
best regards
Stefan
the
second).
Hi Stefan,
Thanks very much for that, it does make sense :-)
Unfortunately it still hasn't fixed the problem... I suppose my question
has
now boiled down to do I need to escape !, , or - in a regex? :-)
Cheers
Jon
here the expression again:
$tags = array (script
on
system. Or, as a workaround, is there any way to detect the number of bytes
an integer is on the current system?
Thanks in advance.
Best regards,
Stefan Pettersson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
those files and where to put them in my system?
best regards
Stefan Rusterholz
--
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]
Thanks for your help, but it doesn't work either :-(
Am Donnerstag den, 27. Dezember 2001, um 16:12, schrieb Brian Clark:
* Stefan Rusterholz ([EMAIL PROTECTED]) [Dec 27. 2001 09:13]:
Hi
Hiya
I'm using following code:
setlocale(LC_ALL, 'german');
$timestamp = time();
$string
I forgot to mail that to the mailinglist too...
* Stefan Rusterholz ([EMAIL PROTECTED]) [Dec 27. 2001 11:30]:
I did that. For localedef it hasn't an entry. But for locale it has
one.
I don't think that's what you expectet (it seems to belong to perl)
Then you need to find out how
den, 27. Dezember 2001, um 18:36, schrieb Brian Clark:
* Stefan Rusterholz ([EMAIL PROTECTED]) [Dec 27. 2001 12:12]:
Is there a `locale' package you can install for OSX? (There is for my
system.)
There is one, but not for PHP, only for the system (which is actually
multilingual and able
Hi
I have a rather large array in my script and I was interested how much
memory it uses. Is there a way to get the size of an array in bytes?
BTW: I did RTFM and didn't find an accomidating function, so if there is
one, please point me to it...
TIA
Stefan Rusterholz
--
PHP General Mailing
I don't know if it matches your needs but perhaps it helps:
http://www.php.net/manual/en/ref.outcontrol.php
http://www.php.net/manual/it/ref.outcontrol.php this page isn't translated,
but perhaps some subpages...
good luck
Stefan Rusterholz
- Original Message -
From: Joe [EMAIL
of it's content?
I'm more interested in how many kbytes of RAM my array is using than the
size in bytes of it's content...
But thank you anyway for helping me!
best regards
Stefan Rusterholz
Had the same problem not long ago and I didn't find a simple solution
either. My solution at the time
if you want a php-only solution, you should probably also consider
fsockopen.
http://www.php.net/manual/en/function.fsockopen.php
best regards
Stefan Rusterholz
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 17, 2001 9:26
You should be able to using fsockopen.
You can use the class below and modify it. Search the class for the string
User-Agent: and change what's behind.
http://phpclasses.upperdesign.com/browse.html?file=1222
happy querying
Stefan Rusterholz
- Original Message -
From: Sebastian [EMAIL
and configure PHP, and automatically configure IIS, PWS and Xitami, with
manual configuration for other servers. N.B. no external extensions
included)
Please take your self time and comfort yourself to go to the php.net site
and take a look yourself to point that bit out yourself - thank you.
Stefan
whoops, you are absolutly right
I'm sorry - big apologizes
:~/ *taking myself on my nose*
And I (*stupid*) had almost downloaded 4.06 twice (since I've 4.06 already
installed) not remarking that this are the old 4.06 binaries...
Stefan Rusterholz, [EMAIL PROTECTED
Try this (I only tested it shortly if it works with scalars, but it should
also with arrays):
#swap $a, $b
list($a, $b) = array($b, $a);
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
frames[1] with frames[x] where x is the number of the frame.
consult www.teamone.de/selfhtml/ for more informations about that)
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
Does anyone know a webbrowser/php based tool which allows to administer user
privileges in mysql easily?
Thanks in advance
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
Does anyone know a webbrowser/php based tool which allows to administer user
privileges in mysql easily?
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19
Yes phpMyAdmin IS great, but it does only allow you to access the 'mysql' db
with 'user' table in it. It doesn't provide anything to make it easier to
create new user accounts (user accounts != tables) and setting the users
privileges :(
thats what I'm searching for.
Stefan Rusterholz, [EMAIL
Sorry, ignore my last mail. I was wrong. phpMyAdmin indeed does provide a
surface for adding users and setting privileges.
Sorry.
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
As soon as the mysqld is running (and PHP also of course), you can use
phpMyAdmin to set up new tables. If you are not experienced in CLI it's a
nice way to go avoiding the CLI as far as possible (IMHO).
Get a look at those pages:
www.macosx.org
www.stepwise.com
best regards
Stefan Rusterholz
did you ever read that f 4 lines at bottom of each mail???
quoteTo unsubscribe, e-mail: [EMAIL PROTECTED]
/quote
first think, then do
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
then tell me.
I hope I could help
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
on a windows machine where I prefere to use UltraEdit.
happy coding
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
);
curl_setopt($ch, CURLOPT_POSTFIELDS,
cmd=_cartupdate=Update$vard=1);
curl_exec ($ch);
curl_close ($ch);
PS: $vard is defined.
Thanks in advance
Stefan - Romania
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
the
file - log out and log in as root again (or chown/chmod the file).
Erik
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3
I would like to know if there is a way to store objects globally from a
php-page, so that the object can be used from another page.
/Stefan B
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
.
Poor man's cache, that is.
/Stefan
Jani Mikkonen wrote:
I would like to know if there is a way to store objects globally from a
php-page, so that the object can be used from another page.
Keyword is Serialization. If you save object to flatfile or to db, i dont
see any point why
are implemented in PHP instead of
doing probably dangerous exec()?
best regards
Stefan Rusterholz
TIA
Ade
--
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
Can you explain me, how to build a (standalone) daemon or point me to a good
tutorial?
Thank you for help in advance
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T
, but I don't
remember all of them...
read the user comments on the documention on php.net, they are very helpful
hope I could help
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
you
could run into unsolvable problems (what when a coder has BR in his code?
You could destroy it!)
I hope I could help
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T
Hi
Besides that I think this is the wrong mailing list for dealing with that
question:
Zip that pdf-file and link to the zipped file.
Everything else (AFAIK) won't work because this phenomenon is caused by the
client and not by the server.
Stefan Rusterholz, [EMAIL PROTECTED
containing post-data :-(
If someone has another approach to a solution: I will have both ears open for it :)
Thanks in advance
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
First: can I do a POST-request with fsockopen?
If yes, then: whats the syntax for POST-requests?
I was happy if someone could point me to a good documentation or so
Thanks in advance
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Is there a way to have different .ini-files for each VirtualHost?
Apache is used as webserver
Thank you for helping
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T
= mysql_fetch_array($result);
echo $row['imageBinaryField'];
#don't print anything below this to the browser
?
I hope I could help you
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
documentation. (For this topic look at array functions)
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
?
Any help would be appreciated...
Best regards
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3 www.interaktion.ch
--
For UltraEdit I have edited the words file a bit and added PHP as language
so that it highlights PHP commands as well.
(I haven't included all commands, but a lot)
Just if someone is interested, he/she can send me an email with subject
UltraEdit Wordfile :-)
Stefan Rusterholz, [EMAIL PROTECTED
didn't spend a lot of time investigating it).
Anyway: why do you want to translate a ã to an a?
I made good experiences with storing original chars and using htmlentities()
(or otherway round if you don't have to edit that stuff)
Stefan Rusterholz, [EMAIL PROTECTED
checking it but I think it could work.
Good luck!
PS: if you make progress with that I was also interested in informations
about this kind of stuff - please send a mail :)
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
in that, I can give some additional info's
Thank you all for your help!
Stefan Rusterholz, [EMAIL PROTECTED]
- Original Message -
From: Matt Friedman [EMAIL PROTECTED]
To: Stefan Rusterholz [EMAIL PROTECTED]
Cc: php general [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 5:39 AM
;
}
}
$string='xxx ?php somefunc(yyy,3); ? zzz';
eval(?$string);
?
Pay attention to the trailing ? in eval. That causes php to change to
HTML-Mode within the eval'd code.
Hope, I could help you
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
, so if you tell me to rtfm - please point
me to the corresponding entry also :)
Thanks in advance
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F
Well, I would do that but I don't know such an application.
Please, can you suggest me one?
Stefan Rusterholz, [EMAIL PROTECTED]
- Original Message -
From: Julio Nobrega [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 4:40 PM
Subject: [PHP] Re: Zipping a folder
problems with browsers that have JavaScript
disabled (I'd recomend that anyway)
Regards
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19 56
W3
Hi,
well I do understand your needing.
First a question. What are your compile options, e.g. your configure call?
Do you use --enable-discard-path ? If not, try this. You need this option to
run Phpscripts from cgi-bin folders!!!
Greetings,
Stefan Siefert
-Ursprüngliche Nachricht
in the scripts. I'm not sure, but it should work.
Hope this helps you,
Stefan Siefert
- Original Message -
From: Dave Goodrich [EMAIL PROTECTED]
To: Philippe [EMAIL PROTECTED]
Cc: php-general [EMAIL PROTECTED]; php-install
[EMAIL PROTECTED]
Sent: Saturday, October 20, 2001 6:05 PM
Subject: [PHP
of the perl-script.
I needed the output in $result and don't want that the perl script prints to the
browser...
The whole thing is running on a win2k Server machine.
Does someone know what I'm doing wrong?
By the way: which number in $status means what?
Stefan Rusterholz, [EMAIL PROTECTED
of the perl-script.
I needed the output in $result and don't want that the perl script prints to the
browser...
The whole thing is running on a win2k Server machine.
Does someone know what I'm doing wrong?
By the way: which number in $status means what?
regards
Stefan Rusterholz, [EMAIL PROTECTED
It seems I didn't read the descrition of 'exec()' good enough when I read it
the first time :(
Now it works, thank you
From: Krzysztof Kocjan [EMAIL PROTECTED]
To: Stefan Rusterholz [EMAIL PROTECTED]
See exec() and system functions in PHP
Krzysztof
Stefan Rusterholz wrote:
Hi
For some
- Original Message -
From: Johan Vikerskog (EMP) [EMAIL PROTECTED]
To: 'Stefan Rusterholz' [EMAIL PROTECTED]; Johan Vikerskog (EMP)
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 9:07 AM
Subject: RE: [PHP] imageJPEG problem.
Thanks for your answer
on a linux
machine)...
regards
stefan rusterholz
- Original Message -
From: Hugh Danaher [EMAIL PROTECTED]
To: Stefan Rusterholz [EMAIL PROTECTED]
Cc: Php-General [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 9:33 AM
Subject: Re: [PHP] imageJPEG problem.
Stephan,
Check
in the comments of the online
documentation. Does it work correct?
By the way: with wich encoding should I encode picture-data for e-mails? base64 works,
but with about 33% more space it doesn't seem to me to be the very best solution :(
Thanks
Stefan Rusterholz
Hmmm,
thank you but this:
Fatal error: Call to undefined function: imap_8bit()
seems to show me that my php has no imap support :-/
So, is there another way?
Best regards
Stefan Rusterholz
- Original Message -
From: "Martin Pavlas" [EMAIL PROTECTED]
To: [EMAIL PROTE
I upgraded from PHP 4.0.5 4.0.6 and since i get openbasedir errors all
over the place when i try to upload a file through a php script
is this a bug?
Stefan de Wal
dewal.nl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
p script
is this a bug?
Stefan de Wal
dewal.nl
Stefan, did you check your open_basedir and/or error_reporting settings in
php.ini and apache config? What are the errors?
I did. No difference between the old php.ini and the new...the apache config
is also unchanged.
Just because something worke
check your connection string and if it something like mysql_pconnect change
it in mysql_connect
Stefan de Wal
Pieter Philippaerts [EMAIL PROTECTED] schreef in bericht
([EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Unfortunately, I can't access these settings. It's not our computer tha
' and appear on positions
where there is 'nothing' in the original source file.
Any idea what could cause that behavior?
Stefan
?
$myServer = 'xxx.xxx.xxx.xx';
$document = 'index.shtml';
$fp=fsockopen($myServer,80,$errno,$errstr,30);
$request = GET $document HTTP/1.1\r\nAuthorization: Basic
it because
0 === somestring will also return false
hope you can use those informations
Stefan Rusterholz, [EMAIL PROTECTED]
--
interaktion gmbh
Stefan Rusterholz
Zürichbergstrasse 17
8032 Zürich
--
T. +41 1 253 19 55
F. +41 1 253 19
);
you should get
$myarray := ['hello', 'world', 'with', 'a', 'lot', 'of', 'whitespaces!']
But remark: \t (tabs) will also count as whitespace, but not \n and \r. See
docu for more informations
Hope, it helps
best regards
Stefan Rusterholz, [EMAIL PROTECTED]
- Original Message -
From
between the words than to run the risk, that the separator is
somewhere in the text...
best regards
Stefan Rusterholz, [EMAIL PROTECTED]
- Original Message -
From: Stefan Rusterholz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 3:34 PM
Subject: Re
And after having read it thorugh I remark, that I'm going to disgrace
myself... :-(
Just forget my answer, Jack Dempsey is right.
Sorry
- Original Message -
From: Stefan Rusterholz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 3:47 PM
Subject: Re: [PHP] Re: split
, but currently I'm not able to test it. But I
hope, you can see the idea behind it.
best regards
Stefan Rusterholz, [EMAIL PROTECTED]
- Original Message -
From: Garth Dahlstrom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 4:13 PM
Subject: Re
Hi!
Can anybody explain to me why this script outputs:
oneone
instead of:
zeroone
???
Thanks,
stefan
?
class Cart {
var $items; // Items in our shopping cart
function add_item ($id,$text) {
$this-$items[$id] = $text;
}
function output($id
Thanks Jack!
This was really driving me mad and it was such a little
thing
Stefan
--
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]
everything works fine again.
Greetings
Stefan
--
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]
Tim,
Check out the include() and require() function of php.
Stefan
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 5:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include files with PHP 3.0.16
Hi,
I'm currently working on a rather large
101 - 169 of 169 matches
Mail list logo