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
> 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
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
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
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
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
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
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
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
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
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
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
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:
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()
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
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
- 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
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
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
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
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
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
22 matches
Mail list logo