Re: [PHP] RegExp help..

2001-03-12 Thread Fredrik Wahlberg
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]

Re: [PHP] Web Page/MySql

2001-03-13 Thread Fredrik Wahlberg
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

[PHP] Re: Difference between i586 RPM and SRC.RPM?

2002-01-24 Thread Fredrik Wahlberg
-- 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

[PHP] Performance question

2001-10-18 Thread Fredrik Wahlberg
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

[PHP] Re: redirect

2001-11-22 Thread Fredrik Wahlberg
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

[PHP] Re: RPM Installation Did Not Install PHP Modules

2001-11-19 Thread Fredrik Wahlberg
-- -- 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

Re: [PHP] LDAP Listing

2001-02-28 Thread Fredrik Wahlberg
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);

[PHP] File type not set

2001-03-01 Thread Fredrik Wahlberg
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

SV: [PHP] if... then... else with HTML

2001-04-23 Thread Fredrik Wahlberg
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: