[PHP] Shopping cart with Flash front end
This is off subject, but I was wondering if anyone has come across any white papers or sample .fla files I could look at to consider building a shopping cart in flash. Obviously I want to use PHP for my backend with a flash shopping cart front end. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] calling functions in classes using text and graphic links
Hello, I am attempting to solve a problem in PHP. My application consists of Classes and subclasses. In my Class I call certain functions that have header information and footer information displaying them in nicely formatted HTML. I have used this method because of one style sheet that all HTML documents read from. I have run into a problem with executing functions using HTML links. I have not yet come up with a solution and I was wandering if anyone has run into his one before. Obviously I need this to be dynamic as possible, and as friendly to use. Any suggestions would be greatly appreciated. Thanks in advance, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] calling functions in classes using text and graphic links
I see, Im still a little troubled by the problem. If I have a link on a HTML document called a href=search.phpSearch Tool/a How would I execute a function within my class? Is it the same answer as you gave me? So, a href= ?php $fg-yourfunctionname($arguements); ? Search Tool/a Is that the answer ? -Daniel -Original Message- From: Chris Sherwood [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 12:20 PM To: Daniel Rychlik; [EMAIL PROTECTED] Subject: Re: [PHP] calling functions in classes using text and graphic links I am not sure what you mean but if you are trying to call functions that exist within your class you need to do something like the following $fg = new YourClass.class.php; $fg-yourfunctionname($arguements); - Original Message - From: Daniel Rychlik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 10:09 AM Subject: [PHP] calling functions in classes using text and graphic links Hello, I am attempting to solve a problem in PHP. My application consists of Classes and subclasses. In my Class I call certain functions that have header information and footer information displaying them in nicely formatted HTML. I have used this method because of one style sheet that all HTML documents read from. I have run into a problem with executing functions using HTML links. I have not yet come up with a solution and I was wandering if anyone has run into his one before. Obviously I need this to be dynamic as possible, and as friendly to use. Any suggestions would be greatly appreciated. Thanks in advance, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mcrypt functions
Hello, I have been playing with the mycrypt function. Im having a bit of trouble understanding why it is important to use a vector IV. I was wandering if there is a reasonably powerful encryption algorithm. That uses a key only instead of getting the block size and using a IV. I basically want to know if there is something simple out there that will do the same job. Kind Regards, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Mcrypt functions
I read more on vector IV and I agree with you. I've been reading this manual on mcrypt_encrypt and _decrypt functions. I came up with this from what I read and pretty much took the example. I have a problem with my decrypt statement. Im passing what I believe is the correct params, but I could be mistaken. Output from my function... _ V'''3n2VkRyw y}Pe ` - Encrypted Data... 8R64e]xLom 2* ez;T_=G- Decrypted data... code snipit srand(); $key = this is a secret key; $input = Let us meet at 9 o'clock at the secret place.; $size = mcrypt_get_iv_size (MCRYPT_BLOWFISH, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($size, MCRYPT_RAND); $encrypted = mcrypt_ecb (MCRYPT_BLOWFISH, $key, $input, MCRYPT_ENCRYPT, $iv); echo $encrypted, - Encrypted Data...br/; $decrypted = mcrypt_ecb (MCRYPT_BLOWFISH, $key, $input, MCRYPT_DECRYPT, $iv); echo $decrypted, - Decrypted data...br/; -Original Message- From: Jay Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Mcrypt functions Daniel Rychlik wrote: Hello, I have been playing with the mycrypt function. Im having a bit of trouble understanding why it is important to use a vector IV. I was wandering if there is a reasonably powerful encryption algorithm. That uses a key only instead of getting the block size and using a IV. I basically want to know if there is something simple out there that will do the same job. Kind Regards, Daniel An initialization vector is basically used to 'seed' the algorithm to make it more difficult to crack the ciphertext. Using an IV with a block cipher is recommended because it generally makes the cipher more resiliant to known-plaintext attacks. You can use an algorithm without an IV, but you're risking security if you do. In ECB mode, for instance, the IV is actually completely ignored, but if you use the same key, identical blocks of plaintext will translate to identical blocks of ciphertext. This is why an IV and block cipher modes which utilize IVs are important. Using an IV is definitely recommended. A good start would be Rijndael in CBC mode with random IVs. You can safely transport the IV with the ciphertext. If you really, really don't want to use IVs, you should try to stick with a strong cipher such as Rijndael or Twofish and a mode like CBC. You might also want to look into a stream cipher, such as ARC4 or SEAL. But I'd still recommend using an IV. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mcrypt installation
Here is how I installed it and got it working. This is straight out of the PHP manual. You should read it, it helps. LIV. Mcrypt Encryption Functions Introduction This is an interface to the mcrypt library, which supports a wide variety of block algorithms such as DES, TripleDES, Blowfish (default), 3-WAY, SAFER-SK64, SAFER-SK128, TWOFISH, TEA, RC2 and GOST in CBC, OFB, CFB and ECB cipher modes. Additionally, it supports RC6 and IDEA which are considered non-free. _ Requirements These functions work using http://mcrypt.hellug.gr/ mcrypt. To use it, download libmcrypt-x.x.tar.gz from here http://mcrypt.hellug.gr/ and follow the included installation instructions. Windows users will find all the needed compiled mcrypt binaries here http://ftp.proventum.net/pub/php/win32/misc/mcrypt/ -Original Message- From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:41 PM To: PHP List Subject: [PHP] mcrypt installation I'm just a little curious, I've never really don't this before, but is installing mcrypt usually a very hard thing to do, or will it be pretty simple for a dolt like me? :) Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php