Re: [PHP] users online

2005-04-03 Thread Ewout de Boer
ding on what you consider to be an 'online' user). If you're using a database like mysql or postgresql for profile storage, use a field type that the database software can handle internaly, this can speed up the query. regards, Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 aga

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

2004-12-28 Thread Ewout de Boer
it gets the data i expected. I can't figure out why php is getting the wrong results while telnet on the same host gets the correct data. Is this a (known) error with php or is it a apache/php/server configuration problem ? regards, Ewout -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Session handlers

2004-10-02 Thread Ewout de Boer
ers can read your session data, that's fine as long as you don't use it to store critical information like username, password some more info on this topic: http://shiflett.org/talks/phpworks2004-php-session-security/ regards, Ewout -- PHP General Mailing List (http://www.php

[PHP] Problem with ImageJPEG and quality > 75

2004-07-15 Thread Ewout
s on how to fix this ? regards, Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help to generate barcodes

2004-07-09 Thread Ewout
nd some > ActiveX for ASP but i want to generate them using PHP :-) > > Do you know how? > Do you know any library to do it? Look here: http://pear.php.net/package/Image_Barcode regards, Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sending attachments

2004-07-07 Thread Ewout
ly i need a real guide plz I used this e-mail class some time ago: http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=614 regards, Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using split to establish extension of file

2004-07-07 Thread Ewout
g PHP4, BTW, if that makes a difference. You can get the last element of an array using the 'array_pop' function: $last = array_pop($pieces); see http://www.php.net/manual/en/function.array-pop.php for details regards, Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

RE: [PHP] form variables

2003-12-20 Thread Ewout de Boer
data between different scripts without reposting anything http://www.php.net/manual/en/ref.session.php Regards, Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] manual key generation

2003-10-25 Thread Ewout de Boer
ion_id)+1 from quotations"); $result = mysql_fetch_row($mri); $new_key = $result[0]; see the php.net website for details ! // Ewout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Ewout de Boer
ve several paragraphs of text in a field in MySQL. I run a query, get the > results, no problem. However, I would like to only display the first > paragraph of the data returned. > > What is the best way to do this? That depends on te format of the text/paragraphs in the mysql field. How ar

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