[PHP] Ticket Number
Hello, We're in the midst of creating a high volume transaction platform with PHP and MySQL. Each transaction ties to a transaction ID that is in turn an auto_increment, unsigned BIGINT(12). The problem now is I do not want users to see this running transaction ID when using the system (such that we can roll out surprises for the customer of, say, the 10th million transaction). We plan to convert the id to something like [A-Z0-9]-[checksums], (e.g. 1X2Z0HTDEKS93-C8P), for simple input-error detection, and we can use it to lookup the relevant id from the database. Which algorithm(s) in your opinion is the best for the encrypted transaction ID and checksum such that: - Transaction ID should always be unique - Running sequence is not predictable (when you have 2 transactions, you don't know how many transactions are between them) - Contains only alphanumeric and case insensitive letters of not more than 15 characters, excluding checksum We've thought of using the first 15 characters of a MD5 hash, so we can kind of SELECT substring(MD5(t_id)... during lookup, and CRC16 for the checksum. Someone also suggests scrapping the auto_increment field from db and generate our own using the below method while (t_id exists in db) randomize but i see the 2nd method being quite taxing to the server as you have to query at least one time per transaction. I appreciate all inputs. Thanks! Sincerely, Kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php site
hey, does anyone have any good links they use for their php references? i'd also like to know how most people approach coding php from an OOP standpoint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Weird Apache/php/windows problem
i'm new to php, but from what i can see.. you need to add the DDL that resides in your PHP directory.. LoadModule php4_module c:/php/sapi/php4apache.dll or LoadModule php4_module c:/php/sapi/php4apache2.dll for apache 2.x regards, kenny -Original Message- From: Gary [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Weird Apache/php/windows problem Hello all, I have been using php as a module on apache 1.3xx windows for a long time. My computer was recently stolen and I had to build a new on. On the new one I did the usual install of Apache ,php,mysql now When I try to start Apache i get the can not load php4apache.dll into server. A required library is missing. I presume it means it can't find the php4ts.dll. I have checked and php4ts.dll is there. My current setup is the same as I have used in the past. Win98 LoadModule php4_module c:/windows/system/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php TIA Gary The Nemesis Project http://nemesis1.f2o.org One Stop CSS -- 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] php framework
just wanted a general idea on what kind of PHP framework everyone is using.. i've heard of pear, and interjinn.. is there a preference or distinct advantage that a particular framework has in comparison to one another? thanks in advance, kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php IDEs
can anyone recommend a good, and -free- PHP ide? thanks kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail() says: Warning: Server Error
do you have a mail server set up on your computer? I had the same problem, and I downloaded Hamster http://www.tglsoft.de/misc/hamster_en.htm Its does the job fine Genesis Designs <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > Evert time I run a mail function it gives me this: > > Warning: Server Error > > What's wrong here? > Thanks, > -Sean > > P.S. I use Apache 1.3.23 and have PHP 4.1.1 installed. > > _ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Email Form
Hi I have an online email form but I can't get the text layout the same as the layout someone types in the text Area, here is the final bit of code: $message = stripslashes($message); $message = htmlentities($message); $message = nl2br($message); $from="From: $email"; $to= "[EMAIL PROTECTED]"; mail($to,$subject,$message,$from); Basicly the problem is if someone puts a new line in the text area this appears as . example: Hi, this is a test would end up Hi, this is a test. Any help please? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Downloading files
Hi folks, Ok I am trying to make a download area for files (including word files). How do I force a download of a word document rather than have it opening in IE? Declan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] DATES in DIFFERENT LANGUAGES
Hi all, Is it possible to get dates in different languages i.e. date ("j F") would usually return, in the case, 13 April can I make it display the date in French for example?? Thanks Declan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Convert a PDF to a PNG?
Outside the box a bit, but is there perhaps a web-service that does this, something like http://www.thumbalizr.com/ but for PDF files. As long as you had curl or something you would be GTG at that point. -Sean- On Thu, Jun 16, 2011 at 1:48 PM, Brian Dunning wrote: > I have heard back from Rackspace and ImageMagick is not going to happen for > the time being, but they say Ghostscript is installed. Is it possible to do > this completely with GS without ImageMagick? The PDFs are text only. > > > On Jun 15, 2011, at 2:28 AM, Richard Quadling wrote: > >> I use PDF2PNG as this provides the cleanest output mechanism I've >> found. But I didn't try GS which, theoretically, should be perfect. > > -- > 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] LDAP and .htaccess
Bret Walker wrote: > Hello all- > > I am looking for a way to protect a directory's contents by > authenticating against Active Directory via LDAP. I currently have a > nice little php script that tries to bind to LDAP via a username and > password entered in a form. If it fails to bind, the user is denied > access. If it succeeds in binding, it then checks to make sure the user > is part of a specified group. It works wonderfully, but the problem > I've run in to (obviously) is that the plain files (.pdf, images, etc) > are not protected in any manner. > > I know you can use php to authenticate against a .htaccess file, and > that you can use mod_auth_ldap (I'm using apache 1.3) to authenticate > against LDAP. I would like to avoid using mod_auth_ldap if possible > because it requires credentials to be stored in it, thus making the code > less portable and more insecure. auth_ldap doesn't require credentials to be stored in the .htaccess file or anywhere else. It can work the same way as you described your php login page (even supports group lookups). > Is there any way to use some type of php trickery to protect all of the > contents of a given directory? store the files outside of the directory and use something like "download.php?file=readme.txt" to serve them. Kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] LDAP and .htaccess
Bret Walker wrote: > Well, the download.php script would allow me to protect certian files, > but is there a way to protect all files? For example, images that I > would like to include in my php pages. you can serve images through through download.php.. but that's just a bad idea :) > Could I silently pass a username and password to htaccess? Can htaccess > be set to use a php script instead of a htpasswd file? why are your username/passwords safer in script.php then .htpasswd? I still think your best route would be auth_ldap. If you directory server doesn't allow anonymous searches, have the admin create a low privileged account that only has access to search the required attributes. Kenny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php