Re: [PHP] users online

2005-04-03 Thread Ewout de Boer
Ryan A schreef: > Hi, > I have been searching the archives with little luck so I need a reminder > here, > I remember a little while ago someone asked how to implement the "users > online" functionality > that some sites have...now i have been asked to do exactly that but with a > small twist: > i

[PHP] [SOLVED] Re: [PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Ewout de Boer
> I'm getting unexpected data from my file_get_contents function using an url > as filename. > > The function does not return false, i do get data from it. Problem is that > is is not the data is requested. The ISP made a mistake in the server config :-( ... it works again regards, Ewout -- P

[PHP] Strange results from file_get_contents using an url as filename

2004-12-28 Thread Ewout de Boer
I'm getting unexpected data from my file_get_contents function using an url as filename. The function does not return false, i do get data from it. Problem is that is is not the data is requested. $data = file_get_contents("http://somehost.com/xmlonl.asp?custid=00&prodid=0 "); if ($

Re: [PHP] Session handlers

2004-10-02 Thread Ewout de Boer
- Original Message - From: "Shawn McKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 02, 2004 2:11 AM Subject: [PHP] Session handlers > Just curious, what is the advantage of using a custom session handler, > such as saving session data in MySQL? security !

[PHP] Reading a image resource

2004-03-16 Thread Ewout de Boer
Is there a function to get the raw image data from a image resource ? (resource created by imagecreatefrom) I want to read and manipulate an image from a file and store it in a database without the use of a temp. file regards, Ewout -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] form variables

2003-12-20 Thread Ewout de Boer
-Oorspronkelijk bericht- Van: Nitin [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 20 december 2003 7:30 Aan: PHP-General Onderwerp: [PHP] form variables > i've an application, where i'm receiving variables from an html form and process them in the script. depending on the values, i may

Re: [PHP] manual key generation

2003-10-25 Thread Ewout de Boer
- Original Message - From: "Joao Andrade" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 26, 2003 12:31 AM Subject: [PHP] manual key generation > > Aloha! > > I have a script that inserts a new row in a table called "quotations", > which has a primary key call

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Ewout de Boer
- Original Message - From: "John" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 8:22 PM Subject: [PHP] Parsing MySQL query return > Hey All, > > I have a question regarding parsing text from a MySQL query. Basically, I > have several paragraphs of text in a fiel

Re: [PHP] Re: More mail() questions.

2002-11-26 Thread Ewout de Boer
Try '\r\n' instead of '\n' regards, Ewout de Boer - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Kyle Gibson" <[EMAIL PROTECTED]> Sent: Tuesday, November 26, 2002 10:17 AM Subject: Re:

Re: [PHP] Need difficult help !

2002-11-15 Thread Ewout de Boer
Oops ! My mistake.. it's strlen() substr = substring .. see http://www.php.net/substr regards, Ewout de Boer On Fri, Nov 15, 2002 at 12:03:34PM +0100, Tristan Carron wrote: > The strln() function is unknown... > To understand the script, could you please tell me what the substr()

Re: [PHP] php Wildcard???

2002-11-15 Thread Ewout de Boer
You mean the opening tag ? For php use regards, Ewout de Boer - Original Message - From: "vernon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 4:32 PM Subject: [PHP] php Wildcard??? > Hey all, I'm coming over from pro

Re: [PHP] Need difficult help !

2002-11-15 Thread Ewout de Boer
You could try something like this: $verylongstring $data = ... // your cut function $verylongstring = substr($verylongstring, strln($data); regards, Ewout de Boer - Original Message - From: "Hacook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Nove

Re: [PHP] Can't escape characters in php??

2002-11-14 Thread Ewout de Boer
- Original Message - From: "Lars Espelid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 9:59 PM Subject: [PHP] Can't escape characters in php?? > Hello, > > I'm running Apache/1.3.26 and PHP 4.0.5 on WinXP pro. > > Also '\n' in an echo-expression won't wo

Re: [PHP] returning unique values in columns

2002-11-14 Thread Ewout de Boer
use: SELECT DISTINCT column FROM table regards, Ewout de Boer - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 10:17 PM Subject: [PHP] returning unique values in columns > Is there any way to run a quer

Re: [PHP] icmp ping, check port, etc.

2002-11-14 Thread Ewout de Boer
You could exec the ping command and analyze its output using regular expressions. regards, Ewout de Boer - Original Message - From: "Bryan Koschmann - GKT" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002

Re: [PHP] Regular Expression trouble

2002-11-14 Thread Ewout de Boer
You could exclude the '}' sign from the expression $content = ereg_replace("\{[^}]*}","",$content); This should do the trick... i'm not 100% certain about the '[^}]' expression, but you should find it in any regexp tutorial regards, Ewout de Bo

Re: [PHP] PHP Auth with Apache

2002-11-14 Thread Ewout de Boer
PHP sends a '401 Authorization required' to your browser (just like apache) and it also gets the user/password info Code example: In this example no user/passwd checking is done... just replace the 'welcome' message with your mysql/ldap check routine and voila ! reg

Re: [PHP] PHP Auth with Apache

2002-11-13 Thread Ewout de Boer
in httpd.conf AllowOverride AuthConfig More info at http://httpd.apache.org/docs/mod/core.html#allowoverride regards, Ewout - Original Message - From: "Alexander Bemme" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 12:02 PM Subject: [PHP] PHP