Re: [PHP-DB] session management

2010-04-23 Thread Jason Gerfen
Here I have a blog I setup but have not finished regarding web application authentication which includes source code and classes you can utilize. Unfortunately I have not been able to finish writing the article due to three jobs and school work. I can however assist you in getting it up and

Re: [PHP-DB] session management

2010-04-22 Thread Jason Gerfen
How secure would you want it? Is this is a public facing web application? Are you in a shared hosting environment vs. a dedicated hosting environment? Do you require alternative session management such as database or mcache vs. flat file session support? Have you thought about cross site

[PHP-DB] php, session_set_save_handler disappearing session vars

2010-02-04 Thread Jason Gerfen
with: $handles['session']-register( 'token', $token ); -- Jason Gerfen Systems Administration/Web application development jason.ger...@scl.utah.edu Marriott Library Lab Systems PC 295 South 1500 East Salt Lake City, Utah 84112-0806 Ext 5-9810 -- PHP Database Mailing List (http://www.php.net

Re: [PHP-DB] Storing Images #2

2010-02-04 Thread Jason Gerfen
If its outside the html root you would need to create a symlink pointing to the appropriate folder % ln -s /path/to/hidden /path/to/public *however this is very insecure Then if your wise you could create a simple image serving script to prevent direct navigation by checking the referring

Re: [PHP-DB] PHP Update query

2009-11-04 Thread Jason Gerfen
From the manual page: For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, *mysql_query()* returns *TRUE* on success or *FALSE* on error. If $client_result == true you know the query was successful. -- Jason Gerfen Systems Administration/Web application development jason.ger

Re: [PHP-DB] DATETIME

2009-10-08 Thread Jason Gerfen
WHERE event_date BETWEEN ('2009-09-01 00:00:00.000' AND '2009-10-01 23:59:59.999') -- Jason Gerfen Systems Administration/Web application development jason.ger...@scl.utah.edu Marriott Library Lab Systems PC 295 South 1500 East Salt Lake City, Utah 84112-0806 Ext 5-9810 -- PHP Database

Re: [PHP-DB] DATETIME

2009-10-08 Thread Jason Gerfen
something like: SELECT * FROM my_table WHERE event_date BETWEEN ('2009-09-01 00:00:00.000' AND '2009-10-01 23:59:59.999') -- Jason Gerfen Systems Administration/Web application development jason.ger...@scl.utah.edu Marriott Library Lab Systems PC 295 South 1500 East Salt Lake City, Utah 84112

Re: [PHP-DB] Need help with the code

2009-10-02 Thread Jason Gerfen
/a here to enter the members page; $_SESSION['username']=$username; } else echo incorrect password; } else die(That user dosen't exist); } else die(pelase enter a username and a password); ? -- Jason Gerfen Systems Administration/Web application development jason.ger

Re: [PHP-DB] Need help with the code

2009-10-02 Thread Jason Gerfen
in' /form /html Did you try looking at the $_POST array data? echo var_dump(print_r($_POST)); -- Jason Gerfen Systems Administration/Web application development jason.ger...@scl.utah.edu Marriott Library Lab Systems PC 295 South 1500 East Salt Lake City, Utah 84112-0806 Ext

Re: [PHP-DB] Need help with the code

2009-10-02 Thread Jason Gerfen
prasad wrote: Yes I did but still its not working on my web server however its working fine with my WAMP server locally. On Fri, Oct 2, 2009 at 9:17 PM, Jason Gerfen jason.ger...@scl.utah.edu mailto:jason.ger...@scl.utah.edu wrote: nagendra prasad wrote: OK so here is the form

Re: [PHP-DB] Need help with the code

2009-10-02 Thread Jason Gerfen
Maybe you should google for information regarding the php.ini and error reporting. nagendra prasad wrote: Yes I did but still its not working on my web server however its working fine with my WAMP server locally. On Fri, Oct 2, 2009 at 9:17 PM, Jason Gerfen jason.ger...@scl.utah.eduwrote

Re: [PHP-DB] mysqli error

2009-07-01 Thread Jason Gerfen
Kevin Castiglia wrote: Whenever I run the following code, I get the error: Commands out of sync; you can't run this command now as I try to execute my prepared Update statement. ?php $fpiDataAddr = fopen('outputAddr.txt','r') or die(can not open In File ); //Connect to mySQL server

Re: [PHP-DB] mysqli error

2009-07-01 Thread Jason Gerfen
Jason Gerfen wrote: Kevin Castiglia wrote: Whenever I run the following code, I get the error: Commands out of sync; you can't run this command now as I try to execute my prepared Update statement. ?php $fpiDataAddr = fopen('outputAddr.txt','r') or die(can not open In File ); //Connect

Re: [PHP-DB] multiple finder

2009-06-29 Thread Jason Gerfen
Emiliano Boragina wrote: Hi, I must do e finder for properties... I know do a simple search but not a search like this with more one possibility, with all or some fields full... How do it? Thanks a lot Example database table to search: TableName Field001 Field002 Field003 Example SQL to

Re: [PHP-DB] postgres - pg_query works; pg_query_params doesn't

2009-06-15 Thread Jason Gerfen
Carol Walter wrote: Hello, I have a php 5 and PostgreSQL 8.3.6. I wrote the original program using pg_query. Now, I need to replace pg_query with pg_query_params. I'm having trouble doing so. In this code pg_query works but pg_query_params doesn't work. The code snippet is as follows:

Re: [PHP-DB] numeric string to single digit array

2008-03-26 Thread Jason Gerfen
that produces. -- Jason Gerfen I practice my religion while stepping on your toes... ~The Ditty Bops -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] md5() function

2008-01-14 Thread Jason Gerfen
are looking for is the base64_encode() and base64_decode() functions which will perform a simple encoding of data. -- Jason Gerfen I practice my religion while stepping on your toes... ~The Ditty Bops -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP-DB] Credit Card Encryption

2007-12-26 Thread Jason Gerfen
] ) ); } elseif( !function_exists( sha1 ) ) { $keys[] = md5( md5( $array[$x] ) ); } else { $keys[] = mhash( MHASH_SHA1, sha1( $array[$x] ) ); } That will look to see if the 'mhash()', 'sha1()' functions exist and use them accordingly. HTH. Jason Gerfen wrote: Jason Gerfen wrote: Daniel Brown wrote

Re: [PHP-DB] Credit Card Encryption

2007-12-26 Thread Jason Gerfen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What I wrote there will work but I would highly recommend recompiling PHP with the --with-mcrypt --with-mhash switches. The mcrypt libraries can be found on sourceforge. http://libmcrypt.sourceforge.net Jason Gerfen wrote: I got messaged off list

Re: [PHP-DB] Credit Card Encryption

2007-12-19 Thread Jason Gerfen
for that gig - -- Jason Gerfen I practice my religion while stepping on your toes... ~The Ditty Bops -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHaUTR5vk8bwKVAaIRAlPOAJoCUbI6rVCvhG6pvuIzWTkbiyLVQgCfdE26

Re: [PHP-DB] Credit Card Encryption

2007-12-19 Thread Jason Gerfen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason Gerfen wrote: Daniel Brown wrote: On Dec 19, 2007 2:41 AM, Keith Spiller [EMAIL PROTECTED] wrote: Ok I've done some research and some thinking. What about storing orders in the database (product info and customer info) and then using GnuPG

Re: [PHP-DB] Sending value to another page...

2007-11-29 Thread Jason Gerfen
; INPUT type=submit name=new_record value=Add Line /nbsp;nbsp; INPUT type=reset name=clear value=Clear //TD /TR /FORM /TABLE /BODY /HTML - -- Jason Gerfen I practice my religion while stepping on your toes

Re: [PHP-DB] array issue

2007-11-27 Thread Jason Gerfen
)); } - -- Jason Gerfen I practice my religion while stepping on your toes... ~The Ditty Bops -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHTGMM5vk8bwKVAaIRAhAjAJ9FklveFH1PORVl0HC9nCb+klgcUACeOren RgXSIP0bl/bt9rI6g9a

[PHP-DB] Unique fields, grabbing errors

2006-04-07 Thread Jason Gerfen
{ ... } -- Jason Gerfen You will never be ready for me. ~ Me -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] problem with mysql_error()

2005-10-27 Thread Jason Gerfen
]\;$defined[mail]/a ); Because I have set a couple of the fields to unique I should be recieving an error of 'duplicate entry' but i am getting an empty result for mysql_error(). Any help is appreciated. -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott

Re: [PHP-DB] multiple fields all unique?

2004-02-03 Thread Jason Gerfen
want an example of the first (and better) method, let me know. ---John Holmes... Yeah, I have never used a unique field for the database, and you are right it is a mysql db. Jas -- Jason Gerfen Student Computing Group Marriott Library University of Utah (801) 585-9810 [EMAIL PROTECTED] I'm