[PHP] Re: encryption and HTTP

2002-02-24 Thread Murray Chamberlain

Yeah the idea of php md5() hash is for data integrity, by taking a hash of
some data and taking a hash of it later, allows you to compare the results
and see if the data hash been changed, such as a database value.

You have to use some form of client side technology to pass variables
encrypted. e.g. using Javascript or implementing SSL. U could always use
Java applets.

Muz

Erik Price [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Without using SSL or JavaScript, is there any way to make an md5 hash or
 encrypt a string before sending it out as a POST request?

 It seems that without encrypting the data before sending it, it can
 still be intercepted.  Once intercepted, it doesn't matter if I use
 md5() on the $_POST['password'] once it gets to the script, because
 anyone can submit the same intercepted string to the script via POST and
 it will be md5()ed when it gets there, thus defeating the purpose.

 Maybe I haven't quite wrapped my brain around a decent authentication
 scheme yet.


 Erik





 

 Erik Price
 Web Developer Temp
 Media Lab, H.H. Brown
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: function that extracts numbers from a string

2002-02-22 Thread Murray Chamberlain

look on php.net for preg_replace and functions like that, they use regular
expressions to replace characters

Digitalkoala [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi folks,

 Is there a function that extracts numbers from a string?

 I can do this with ereg but it's quite slow when you have a long list of
 variables to get through...

 thanks!

 dk






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: header (Location: URL);

2002-02-21 Thread Murray Chamberlain


Ali [EMAIL PROTECTED] wrote in message
001701c1bada$f5ca5780$[EMAIL PROTECTED]">news:001701c1bada$f5ca5780$[EMAIL PROTECTED]...
 Hello,

 is there any possibility of redirecting a request URL using
header:Location
 and openning the requested URL in a new window linke target=blank in
html.
 Thank you.

 Ali




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: regular expressions

2002-02-21 Thread Murray Chamberlain

I think you have some un-needed code there. But anyway you might need to use
a double backslash infront of the |

If that doesn't work mail me back

Muz


German Castro Donoso [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have a problem with ereg function.
 In php 4.0.5 i use this
 if ( ereg(([0-9][0-9]*)\|(\w\w*),$opcion, $registros) ) {
 ...
 }
 and no problem. But, in php 4.1.1 don't work. I think that may be the
escape
 of | character.

 Note: I'm looking for a | in the string. Then i need escape the |

   Any idea for fix it?



 Thanks
 German Castro





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Include_Path :: How do you set that up???

2002-02-21 Thread Murray Chamberlain

The include path should specify the file you are trying to include relative
to your file that is including.

E.g..

Consider two php file 1.php and 2.php if they are in the same directory and
you want to include 1.php with 2.php you simply add the line at the
beginning of 2.php

?
include(1.php);
.
?

I hope that helps, but I wasn't 100% sure of your question.

Muz

Robbie Newton [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I keep getting errors saying that the required file could not be found or
something because the include_Path is wrong. Right now the include path is
set to ³..², I think because I saw it like that somewhere else and thought
that was the correct way to do it. I have tried so many things and nothing
is working.

I am running on Win2K with MySQL and PHP4. Just trying to learn this stuff
in case I ever need it. Not to mention, its free, why not learn it.


Thanks,

-Robbie




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Bizarre problem.

2002-02-21 Thread Murray Chamberlain

I have had similar problems with compiling GMP on win32 under cygwin.

I only have two suggestions put the oracle library under /usr/mingw I saw
this on a google group forum. The other thing is, that in the manual you
will probably need some additional files for SSL. BTW I think mysql is
natively supported. in php 4.1.1




Andres Plaza R. [EMAIL PROTECTED] wrote in message
Pine.LNX.4.33.0202201730440.713-10@gloria">news:Pine.LNX.4.33.0202201730440.713-10@gloria...
 Hi everybody!

 Some days ago, I asked about a problem making configure in PHP
 4.1.1. When I try to configure PHP + Oracle:

 ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
 --with-openssl=/usr/local/ssl --with-zlib=/usr --with-curl=/usr/local
 --with-oci8=/usr/local/oracle/8.0.5 --with-gd

 this message appears:

 |   *** ATTENTION ***|
 ||
 | Something is likely to be messed up here, because the configure|
 | script was not able to detect a simple feature on your platform.   |
 | This is often caused by incorrect configuration parameters. Please |
 | see the file debug.log for error messages. |
 ||

 and if I look the debug.log, the error is:

 gcc -o
onftest -g -O2  -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI  -Wl,-rpath
,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/lo
cal/lib -Wl,-rpath,/usr/local/oracle/8.0.5/lib -L/usr/local/oracle/8.0.5/lib
conftest.c -lclntsh -lpsa -lcore4 -lnsl -lgd -lcurl -ldl -lcrypto -lssl -lcu
rl -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 15
 /usr/bin/ld: cannot find -lm
 collect2: ld returned 1 exit status

 Everything looks strange, because I know that libm is in my system
 (Linux RH 7.2) and the other test (if I look config.log) that used libm
 didn't have problems.

 BUT, the other day I used vi to see the debug.log, and the error
 appears like this:

 gcc -o
onftest -g -O2  -DLINUX=22 -DMOD_SSL=208105 -DUSE_HSREGEX -DEAPI  -Wl,-rpath
,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/lo
cal/lib -Wl,-rpath,/usr/local/oracle/8.0.5/lib -L/usr/local/oracle/8.0.5/lib
conftest.c -lclntsh -lpsa -lcore4 -lnlsrtl3 -lm^M -lnsl -lgd -lcurl -ldl -lc
rypto -lssl -lcurl -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lres
olv -lcrypt 15
 /usr/bin/ld: cannot find -lm^M
 collect2: ld returned 1 exit status

 You will notice that there is a ^M after -lm ! And, of course, ld
 didn't find -lm^M . :-)

 Obviously, I edited the configure file, but there's no ^M.

 Now, the question: somebody had the same problem? Somebody had a
 solution for this? Somebody can help me?!?!?!? :-)

 Thanks in advance...
 --

 Andres Plaza R.
  [EMAIL PROTECTED]
   http://la.mafia.cl/aplaza







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] gmp installation win32

2002-02-20 Thread Murray Chamberlain

Has anybody installed the gmp library or know of any well documented ways of doing so 
I really need some help with this one. I am using win32 and I need to get it running 
asap. I have already installed the gmp library using cygwin but I can't get php to  
configure with gmp and make it gives a warning about a missing separator. 

Cheers Muz