[PHP] Clear HTTP POST value

2004-08-23 Thread Nicklas Bondesson
Hi! Is there a smooth way to clear a posted value on a page? I have tried the following without sucess. unset($_POST[var]); unset($HTTP_POST_VARS[var]); Nicke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Clear HTTP POST value

2004-08-23 Thread Nicklas Bondesson
Didn't work for me (PHP 4.3.9 + Apache 2.0.4). I will try the other method you suggested. Nicke -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: den 23 augusti 2004 13:41 To: [EMAIL PROTECTED] Subject: [PHP] Re: Clear HTTP POST value Nicklas Bondesson [EMAIL

[PHP] preg_match question

2004-08-18 Thread Nicklas Bondesson
Hello, How do I find an exact match of a string with preg_match? Example: String1: www.test.com/ String2: www.test.com/somepage.php?param1=true How do you write the regexp to only return String1 and not String2 when you match against www.test.com ?? Thanks in advance. Nicke -- PHP General

RE: [PHP] preg_match question

2004-08-18 Thread Nicklas Bondesson
Is it clever to use word boundary here? /b? Nicke From: John Legg [mailto:[EMAIL PROTECTED] Sent: den 18 augusti 2004 18:02 To: Nicklas Bondesson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] preg_match question Try using a pattern set to the following: $pattern

RE: [PHP] preg_match question

2004-08-18 Thread Nicklas Bondesson
Actually I think I got it working now (without escaping the .). If I run into trouble I will post again. Thanks! Nicke From: John Legg [mailto:[EMAIL PROTECTED] Sent: den 18 augusti 2004 18:15 To: Nicklas Bondesson Cc: [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Nicklas Bondesson
Are you getting this error on the Linux or the Windows box? Correct me if i'm wrong but the mailserver directive in php.ini is only valid for with PHP on the Windows platform? /Nicke -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: den 6 augusti 2004 05:50 To:

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-06 Thread Nicklas Bondesson
Do you know what SMTP software they are running on the mailserver? Nicke -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: den 6 augusti 2004 17:32 To: [EMAIL PROTECTED] Subject: Re: [PHP] Why do I keep getting a 501 mail error? Thanks very much to everyone for

RE: [PHP] Optimizing Tips

2004-08-05 Thread Nicklas Bondesson
There are many things you can do to optimize speed on a website. First of all you need to determine how many concurrent users you can handle on the server you are hosting the website on. You have to take the following into consideration: CPU, Memory, Disks, Network etc. You can gain relatively

RE: [PHP] Optimizing Tips

2004-08-05 Thread Nicklas Bondesson
] Sent: den 5 augusti 2004 14:09 To: Nicklas Bondesson Subject: Re: [PHP] Optimizing Tips On Thursday 05 Aug 2004 5:29 pm, you wrote: Will the majority of the visitors surf from within India? I think I will experience the site more slow than anyone from India. I'm surfing from Sweden

RE: [PHP] PHP + FDF and Opera

2004-08-04 Thread Nicklas Bondesson
will load but it finally drops dead with a message that says the file could not be found. /Nicke -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: den 4 augusti 2004 00:36 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP + FDF and Opera * Thus wrote Nicklas Bondesson

RE: [PHP] User IP

2004-08-04 Thread Nicklas Bondesson
As far as I'm conserned you can't. The proxy will hide all it's client IP's and will only display it's own. Nicke -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of M Sent: den 4 augusti 2004 15:46 To: [EMAIL PROTECTED] Subject: [PHP] User IP How can I get a user's IP

RE: [PHP] User IP

2004-08-04 Thread Nicklas Bondesson
Your'e right. the $_SERVER[HTTP_X_FORWARDED_FOR] should work in this case. Nicke -Original Message- From: Ivan Kovalenko [mailto:[EMAIL PROTECTED] Sent: den 4 augusti 2004 16:36 To: [EMAIL PROTECTED] Subject: RE: [PHP] User IP Nicklas Bondesson wrote: Actually, there's way

[PHP] PHP + FDF and Opera

2004-08-03 Thread Nicklas Bondesson
Hi! Have anyone sucessfully used the FDF functionallity together with the Opera browser? This code works like a charm in IE6 but not in Opera. fdf_header(); $outfdf = fdf_create(); fdf_set_value($outfdf, our_ref, $our_ref, 0); fdf_set_value($outfdf, your_ref, $your_ref, 0);

RE: [PHP] PHP + FDF and Opera

2004-08-03 Thread Nicklas Bondesson
The code should go like this. fdf_header(); $outfdf = fdf_create(); fdf_set_value($outfdf, our_ref, $our_ref, 0); fdf_set_value($outfdf, your_ref, $your_ref, 0); fdf_set_file($outfdf, http://xxx/test.pdf;); fdf_save($outfdf); fdf_close($outfdf); Nicke -Original Message- From: Nicklas

[PHP] splitting up search results, need som ideas. have done 1 2 3 4 5 6 7 8 9 10 11 12 stuff ..

2001-10-26 Thread Nicklas Bondesson
hi everybody! have done a function that splits up the search results into multiple pages and are displayed using a scroll bar like this: 1 2 3 4 5 6 7 8 9 10 11 12 what i need (when the database grows) is a function that limits the scrollbar to only show like 10 pages at a time. i can't

[PHP] search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Nicklas Bondesson
all ideas are very welcomed !! /nicke -- 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: Database editor

2001-10-05 Thread Nicklas Bondesson
the one and only mysql admin tool for win32 is mysqlfront. it can be downloaded from: http://www.mysqlfront.de. /nicke -:-Doigy-:- [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much