Try this:
$
ereg("^([0-9]{2})[0-9]{2}([0-9]{2}).*", $var, $hits)
if ($hits[1] == themonth $hits[2] == theyear) {
do_the_stuff
}
What it does is that it puts the first two digitst into $hits[1], skips
the two nextcoming digits and finally puts the next two numbers into $hits[2]
Read this (http://www.phpbuilder.com/columns/rod2221.php3) article
over at phpbuilder which covers exactly that.
/Fredrik
Ursprungligt meddelande
Mike [EMAIL PROTECTED] skrev 2001-03-13, kl. 16:52:00 angende mnet
[PHP] Web Page/MySql:
I have a Mysql Database on a web site.On very
--
Fredrik WahlbergW: +46-8-54 54 56 12
Fusage AB C: +46-70-576 16 51
Kungstensgatan 38A F: +46-8-54 54 56 10
113 59 Stockholm[EMAIL PROTECTED]
Sweden
Gaukia 345 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Wanted to
invoking the parser?
Somehow I'm afraid I have to rewrite my perl code to php and put
everything on one page, but I would sure like to hear a few arguments on
how to plan for performance.
/Fredrik
--
--
Fredrik Wahlberg Tel: 08-54 54 56 12
Fusage
Make sure that you have no blank spaces before the ?php tag. It really must
be the first line in the script.
/Fredrik
Etienne Colla [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi
I 'm newbie with php and i have a small problem.
I have a script that uploads 4
--
--
Fredrik Wahlberg Tel: 08-54 54 56 12
Fusage Fax: 08-54 54 56 10
Kungstensgatan 38a Mobil: 070-576 16 51
113 59 STOCKHOLMhttp://www.fusage.com
--- [EMAIL PROTECTED] ---
--
PHP General Mailing List (http
This is a small test I wrote a couple of days ago that does just that.
Hope it works for you.
/Fredrik
?php
$ldapserver = "orchide.habeebee.com";
$basedn = "dc=habeebee, dc=com";
$dir =ldap_connect($ldapserver);// Connect to server
if ($dir) {
ldap_bind($dir);
I'm uploading a file to my server, and I check the mime-type and file
size before saving it. For some reason I get the file size, but not the
file type. $userfile_type returns nothing and $userfile_size returns the
correct size.
This works just fine on another server where I have the same
I hope I understood your question right.
You can do like this
?php
if () {
?
bhtml text/b
?php
else {
?
bother html/b
?php
}
?
-Ursprungligt meddelande-
Fran: Martin Thoma [mailto:[EMAIL PROTECTED]]
Skickat: den 23 april 2001 14:41
Till: [EMAIL PROTECTED]
Amne:
9 matches
Mail list logo