[PHP] crypt() MD5 problem on PHP 4.2.3

2003-02-24 Thread Adrian Ciutureanu
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

[PHP] Re: fopen/fgets

2003-03-06 Thread Adrian Ciutureanu
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

[PHP] Apache 2

2002-08-20 Thread Adrian Ciutureanu
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

[PHP] Apache 2 and PHP

2002-08-21 Thread Adrian Ciutureanu
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

[PHP] Re: [HELP] redirect browser & pass variable !

2002-04-21 Thread Adrian Ciutureanu
{ 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

[PHP] How to get allocated memory?

2002-04-22 Thread Adrian Ciutureanu
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

[PHP] Re: deleting lines in a textfield

2002-04-22 Thread Adrian Ciutureanu
"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

[PHP] Re: adding numbers to a file

2002-04-22 Thread Adrian Ciutureanu
"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

[PHP] Re: From where was function called?

2002-04-22 Thread Adrian Ciutureanu
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

[PHP] Re: validating user input

2002-04-24 Thread Adrian Ciutureanu
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

[PHP] Re: Session problem

2002-05-24 Thread Adrian Ciutureanu
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

[PHP] Re: Comparrison

2002-03-27 Thread Adrian Ciutureanu
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

[PHP] sessions and cache

2001-07-02 Thread Adrian Ciutureanu
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

RE: [PHP] sessions and cache

2001-07-02 Thread Adrian Ciutureanu
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: &

RE: [PHP] file upload

2001-07-02 Thread Adrian Ciutureanu
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

[PHP] RE: Deleting a string from a text file

2001-07-03 Thread Adrian Ciutureanu
> -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

[PHP] RE: Processing checkboxes in Dynamic tables

2001-07-03 Thread Adrian Ciutureanu
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

[PHP] php-general subscription test

2001-07-04 Thread Adrian Ciutureanu
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]

RE: [PHP] capatalising letters

2001-07-04 Thread Adrian Ciutureanu
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

RE: [PHP] preg_match

2001-07-04 Thread Adrian Ciutureanu
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

RE: [PHP] Security of PHP code

2001-07-04 Thread Adrian Ciutureanu
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]

RE: [PHP] javascript var on a php var...

2001-07-04 Thread Adrian Ciutureanu
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

RE: [PHP] Security of PHP code

2001-07-04 Thread Adrian Ciutureanu
$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]

RE: [PHP] Parse URL parameters

2001-07-05 Thread Adrian Ciutureanu
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

RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
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

RE: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Adrian Ciutureanu
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

[PHP] optimal code

2001-07-05 Thread Adrian Ciutureanu
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

RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
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

RE: [PHP] Security of PHP code

2001-07-05 Thread Adrian Ciutureanu
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

RE: [PHP] $phpvar = javascriptvar???

2001-07-06 Thread Adrian Ciutureanu
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 ***/