> The result is efreed in that case. RETURN_STRINGL is a macro that assigns
> result to return_value and return_value is implicitly efreed by PHP.
> That's the only reason you are not getting a warning in that case. For
> other stuff that you emalloc but don't assign to return_value, you will
> g
I am trying to execute the following redirection on a web page if the error
condition is true
if ($_POST["txtPassword"] == "" ) {
header ("Location :
http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/"."errors.php
?Err=".URLEncode("LogOn -002")."&SrcLocn=".URLEncode("LogOn.php")."&In
that is what i asked about in my question...
What i was asking is if anyone had used it and if there was any examples to
get me gong...
"Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message
news:103487994601@;kromann.info...
> You could also take a look at the printer extension for PHP
>
> http
Actually, I have used both. You can authenticate using basic
authentication, then grab the $_SERVER["AUTH_USER"]... (I believe that's the
correct variable) and authenticate them internally through that. I wrote a
task management system for our department a few months ago where it was
necessary to
php-windows Digest 18 Oct 2002 12:00:37 - Issue 1393
Topics (messages 16427 through 16435):
Re: please remove me from list
16427 by: Uttam
Re: Question about emalloc
16428 by: Brian 'Bex' Huff
16430 by: Mikey
16432 by: Brian 'Bex' Huff
16433 by: Rasmu
Hi Cam,
Thanks for your reaction. I was wondering if u could send me some
example code maybe;-)
I am a bit new to session based login systems myself;-) Thanks already.
Best regards,
Davy Obdam,
mailto:info@;davyobdam.com
> David and Davy,
>
> My two bobs worth - I like to use sessions myself
You could also take a look at the printer extension for PHP
http://php.net/printer
These functions are available for server side printing, when PHP is running on a Win32
box.
- Frank
> it depends on your printer & system.
>
> if you want to use printer commands directly in your code then u m
> Im pretty sure you still need to 'efree' what you 'emalloc'. Every time
> I forgot to 'efree' something, I would get a bunch of error messages
> about memory leaks. The errors were nice and verbose, tho... as long as
> I was running the debug version of the dlls.
Which is what I would have ass
pls. send a message to:
[EMAIL PROTECTED]
regds,
-Original Message-
From: John Dunn [mailto:newzenithz@;excite.com]
Sent: Thursday, October 17, 2002 03:30
To: [EMAIL PROTECTED]
Subject: please remove me from list
I hope that this is correct for me to get removed from this mailing
David and Davy,
My two bobs worth - I like to use sessions myself usually, I suppose because
it means my scripts are controlling access rather than the server or the
operating system. With sessons you can store all sorts of variables such as
exactly what the user can do in a list of tasks rather
Im pretty sure you still need to 'efree' what you 'emalloc'. Every time
I forgot to 'efree' something, I would get a bunch of error messages
about memory leaks. The errors were nice and verbose, tho... as long as
I was running the debug version of the dlls.
So either the documentation is wro
Hi David,.
> Http authentication is probly not what you would want to
> use. Especially if you want to program in timeouts, you
> would be better off using session based login variables.
> Cookies are even better with an encrypted pasword that has a
> windows of time that you have to goto o
> Well, I decided to see how the big boys dealt with strings, and had a root
> around ext/standard. The following function is from string.c:
>
> PHP_FUNCTION(bin2hex)
> {
> zval **data;
> char *result;
> size_t newlen;
>
> if (ZEND_NUM_ARGS() != 1 ||
> zend_get_para
Ok, according to my OReilly "Programming PHP" book by Rasmus Lerdorf,
the emalloc and efree functions work exactly the same as malloc and
free. It says:
-
if you emalloc() something and forget to efree() it, PHP prints a leak
warning like this if you are running in debug mode (enabled by
14 matches
Mail list logo