hi all,
' .
'CRYPT_STD_DES ' . CRYPT_STD_DES . "\n" .
'CRYPT_EXT_DES ' . CRYPT_EXT_DES . "\n" .
'CRYPT_MD5 ' . CRYPT_MD5 . "\n" .
'CRYPT_BLOWFISH ' . CRYPT_BLOWFISH . '';
echo crypt('clear_pass', '$1$salt1234$');
?>
// outputs
CRYPT_STD_DES 1
CRYPT_EXT_DES 0
CRYPT_MD5 1
CR
you close the input file in while loop ( fclose($fp); )
"Bryan Koschmann - Gkt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Can someone give me a hand here? I am really lost as to what is
going on.
> I have a file that looks like this
>
> user1,Store 1 - ABC street
> user2,Store
Hi,
There is a note at http://www.php.net/ChangeLog-4.php for Version 4.2.0
(Note: Apache2 support is EXPERIMENTAL.)
Is it still justified?
adu
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At http://www.php.net/ChangeLog-4.php#4.2.0 there is a note (Note: Apache2
support is EXPERIMENTAL.)
Is this note still justified for PHP/4.2.2? Is it about security?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
{ header("Location: http://www.XXX.edu/index.php?variable=$variable";);
exit;}
"Joe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using header function to redirect browser.
>
> { header("Location: http://www.XXX.edu/index.php";);
> exit;}
>
> Alth
I get the "PHP Fatal error: Allowed memory size of N bytes exhausted" and I
want to check free memory at some point in a script. How can I do that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Kris Vose" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How would you go about deleting a specific line in a textfield via PHP? For
example, I want to delete line 2 only and save the changes. How would I go
about doing this using fopen and fwrite?
Kris
"Craig Westerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a simple count file named count_db that contains ONLY the
following:
>
> {
> 'total' => 3954
> }
>
> How do I open file, find numbers in the file, add $newnumbers to existing
> number
You can use the 'magic constants' __FILE__ and __LINE__
For example, if you have an editor that can replace the newline "\n"
character, you can replace all "\n" with
"\nerror_log(__FILE__ . '[' . __LINE__ . ']');"
"Nico Van Der Dussen" <[EMAIL PROTECTED]> wrote in message
3CC45EB5.6064.19C3129@l
No validating user input is needed if you are using OCIBindByName.
See also the Avertisment at www.php.net/OCIBindByName
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi the M.L.
>
> I have to validate forms user inputs before the construction of my query
t
All you have to do is to call
session_name("EmailSess");
session_start();
in rest of pages.
BTW: You don't really need to call session_name()
"Manisha" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am facing so many problems - first file lock and now fo
http://php.net/ereg
"Ron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How would I compare to variables where I would want one variable to equal
> only part or some of the other variable?
> Here is the code
>
> if ($HTTP_USER_AGENT !== "%MSIE 5.5%") {
> pr
Hi,
I have a problem: if I use session_start(), the page will not cache. Is
that normal?
Adrian CIUTUREANU
Software Developer
--
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
Thanks a lot! It works.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 2 iulie 2001 16:43
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] sessions and cache
>
>
> Hi Adrian!
> On Mon, 02 Jul 2001, Adrian Ciutureanu wrote:
&
Try this:
--upload.php--
> -Original Message-
> From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
> Sent: 2 iulie 2001 17:08
> To: [EMAIL PROTECTED]
> Subject: [PHP] file upload
>
>
>
> Hi all,
>
> i'm using php version 4.0.5 and i'm playing around with the
> -Original Message-
> From: Stevenson, Christopher
> [mailto:[EMAIL PROTECTED]]
> Sent: 3 iulie 2001 11:35
> To: '[EMAIL PROTECTED]'
> Subject: Deleting a string from a text file
>
>
> Hello, folks. I'm relatively new to this.
>
> Would anyone be willing to give me some code that wi
Variables that are not checked are not send by default.
Try the code below and see what variables are posted.
value=1>p
To process variables you may use $HTTP_GET_VARS (or $HTTP_POST_VARS if
you preffer).
adu
PS: If you want the checkboxes to be checked by default you must use
CHECKED, n
Hi all,
This is only a test. Sorry for any inconvenience.
adu
--
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]
http://php.net/manual/en/function.ucwords.php
> -Original Message-
> From: Jamie Saunders [mailto:[EMAIL PROTECTED]]
> Sent: 4 iulie 2001 14:57
> To: [EMAIL PROTECTED]
> Subject: [PHP] capatalising letters
>
>
> Hi,
>
> I've got a list of strings in the following format:
> item one
> i
try
ereg('^([a-z,A-Z,0-9]|_|-|\.)+@([a-z,A-Z,0-9]|_|-|\.)+\.([a-z,A-Z,0-9]|_
|-|\.){2,3}$', $email)
> -Original Message-
> From: Daniel Reichenbach [mailto:[EMAIL PROTECTED]]
> Sent: 4 iulie 2001 15:05
> To: Php-General
> Subject: [PHP] preg_match
>
>
> Hy,
>
> i've got a string which
Here is something that happend to me: I forgot to tell Apache that .inc
files must be parsed by PHP. All works fine if you include a .inc file,
but if somebody guess .inc file name, he can see the content of that
file!
> -Original Message-
> From: David A Dickson [mailto:[EMAIL PROTECTED]
window.location = 'http://url?yourVar=' + yourVar;
> -Original Message-
> From: Romeo Manzur [mailto:[EMAIL PROTECTED]]
> Sent: 5 iulie 2001 07:56
> To: [EMAIL PROTECTED]
> Subject: [PHP] javascript var on a php var...
>
>
> hi, I want to know how could I save a javascript variable on a
$allowed_path = '/www/sites/mysite/teaching';
$file = realpath($file);
if(ereg("^$allowed_path", $file)) {
// it's OK
} else {
// possible attack!
}
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 4 iulie 2001 15:29
> To: [EMAIL PROTECTED]
a2 = '$a2'"?>
:)
> -Original Message-
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: 5 iulie 2001 10:20
> To: [EMAIL PROTECTED]
> Subject: [PHP] Parse URL parameters
>
>
> How can I parse parameters sent with the URL of an pgp site?
>
> Example: I call the site with
> http://www.serv
http://php.net/realpath
$allowed_path = '/www/sites/mysite/teaching';
$file = realpath($file);
if(ereg("^$allowed_path", $file)) {
// it's OK
} else {
// possible attack!
}
> -Original Message-
> From: Steve Werby [mailto:[EMAIL PROTECTED]]
> Sent: 5 iulie 2001 02:22
> To
Select month
January
. . .
. . .
if(!$month) {
// please select month
} else {
// month selected
}
> -Original Message-
> From: Richard Kurth [mailto:[EMAIL PROTECTED]]
> Sent: 5 iulie 2001 12:36
> To: php
> Subject: [PHP] verifying that a dropd
Is any of the versions below more effective?
/** Version 1 **/
/** Version 2 **/
/** Version 3 **/
--
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: [EMAI
This is a good code. Read http://php.net/realpath
> -Original Message-
> From: Christopher Ostmo [mailto:[EMAIL PROTECTED]]
> Sent: 5 iulie 2001 19:57
> To: Adrian Ciutureanu
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Security of PHP code
>
>
> Adrian Ci
An observation: I presume (in my code) that $allowed_path is a "root" of
an allowed path. So, files in subfolders of allowed_path are also
allowed.
> -Original Message-
> From: Christopher Ostmo [mailto:[EMAIL PROTECTED]]
> Sent: 5 iulie 2001 19:57
> To: Adrian C
You probably want to make statistics for web pages. The most common way
to do that is to use a PHP script that outputs an image and writes to a
database some data. The code may look like this:
/** stat.php /
/** any_file.html ***/