Jump to content

klitscher

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Everything posted by klitscher

  1. Okay...figured out...there was another version of libmysql.dll in system32 from when I installed sokkit...apparently when you uninstall sokkit it does not remove these...so all is good...thanks for all your help...I appreciate it (how do you mark this as solved?) Thanks Ken
  2. okay, thanks....i'll let you know if I discover anything. Ken
  3. I have enabled GD2 and MySQL, have libmysql.dll in the root php folder which was defined in PATH, as well as in C:\WINDOWS and restarted Apache.  Still have the same problem.  I get the startup error twice, both times for php_mysql.dll  Did not receive an error for GD2.  Any other thoughts...thanks for taking the time to help me out...
  4. Okay, I had everything set right with the php.ini file, but when I changed the display startup errors line i did receive a bunch of errors that say: PHP Startup: Unable to load dynamic library 'D:\Web\WebServer\PHP\ext\php_mysql.dll' - The specified procedure could not be found. However, when I look in that directory for that file (as well as the 10 others that are giving me the same message because I uncommented all the extensions) that file is located in that directory.  This does not happen for all of the extensions though, so I'm at a loss for what to do next.  Thanks for your continued help! Ken
  5. Thanks for the help, but I've already done everything as that example says (well, mostly...I've just added my php location to PATH rather than moving everything to c:\windows)...still no luck...any other thoughts? Ken EDIT: FWIW, I followed [url=http://www.expertsrt.com/tutorials/Matt/install-apache.html]http://www.expertsrt.com/tutorials/Matt/install-apache.html[/url] these instructions to the t to get this all set up...everything else works great, and the install directory is exactly the same as these instructions.
  6. Hey all, I have installed Apache/PHP5 and Mysql from scratch and have apache and php5 working well.  It's installed on an XP box used just for development. I'm able to serve up phpinfo fine.  I am also able to use mysql to run on the command line.  I've uncommented [b]extension=php_mysql.dll[/b] in php.ini but I can't for the life of me get phpinfo to show the mysql info.  I'm able to manipulate the php.ini file to change other extensions, but not mysql or mysqli, and the dll's are in the right spot.  Any help?  I wish i could show you, but like i said, it's a development machine and not online.  Thanks in advance. Ken
  7. [!--quoteo(post=356102:date=Mar 17 2006, 08:41 PM:name=High_-_Tek)--][div class=\'quotetop\']QUOTE(High_-_Tek @ Mar 17 2006, 08:41 PM) [snapback]356102[/snapback][/div][div class=\'quotemain\'][!--quotec--] Well this goes pretty far as to hiding $_SESSION values [code] // To set the var $_SESSION['var']=base64_encode('haaaaaxxxx!'); // To Access $var=base64_decode($_SESSION['var']); [/code] [/quote] Thanks High_-_Tek. That is something similar to what I'm doing...my question was more geared towards the best theory of what to encrypt when. I think I have something figured out. As for my other question, I've decided to password protect a directory using .htaccess and put the encryption key and database login info in that directory. Then I include the files using the file system location with: [code] require_once("/home/username/public_html/private/encrypt.php"); [/code] If someone has other thoughts though, I am game. Thanks.
  8. [!--quoteo(post=356092:date=Mar 17 2006, 07:33 PM:name=cerin)--][div class=\'quotetop\']QUOTE(cerin @ Mar 17 2006, 07:33 PM) [snapback]356092[/snapback][/div][div class=\'quotemain\'][!--quotec--] You should use cookies to verify when the user is logged in. I don't know much about storing encryption keys. [/quote] What's the benefit of using cookies over using sessions?
  9. Does anyone have any suggestions on what to do, or can lead me somewhere else to get help? Thanks. Ken
  10. I have read and am using the code in the PHP Freaks Tutorial on using mcrypt to encrypt and decrypt strings. I have a couple of questions on the philosophy of encryption. I have password protected pages on a site that will start a session once a correct username and password combination has been entered (these values are located in a mysql table). I am currently doing this: 1. username and password are entered and compared with values in mysql table 2. If they match, a session is started, and the username and password are encrypted and stored in the session 3. by surfing to a different password protected page, the session data are retrieved and decrypted and compared with the values in the mysql table. If they match, the page is included, if not, the login page is presented. My questions are: Is this the appropriate (and most secure) way to be using encryption for user authentication? How do I go about storing (and accessing/including)the encryption key, and database accessing information off of a 'publicly' viewed place on the server? Any thoughts, comments, suggestions, and links will be much appreciated. Thanks in advance. Ken
  11. [!--quoteo(post=350448:date=Feb 28 2006, 05:36 PM:name=Running out of imagination)--][div class=\'quotetop\']QUOTE(Running out of imagination @ Feb 28 2006, 05:36 PM) [snapback]350448[/snapback][/div][div class=\'quotemain\'][!--quotec--] Do you mean a function like highlight_file()? [/quote] yes i do...okay, atleast i was not dreaming...now a completely different question...do i need to be worried that i have a config file that has database username and password in it and people can read it using highlight_file()?
  12. [!--quoteo(post=350180:date=Feb 28 2006, 04:39 AM:name=jurasipize)--][div class=\'quotetop\']QUOTE(jurasipize @ Feb 28 2006, 04:39 AM) [snapback]350180[/snapback][/div][div class=\'quotemain\'][!--quotec--] rename your file to .phps [/quote] Thanks for your help...for some reason I thought there was a function that could get [i]any[/i] url and display it as code in a browser, thereby allowing one to see passwords to databases and the like. must have dreamt it. pretty pathetic. thanks again
  13. To be honest, I can't remember if I dreamt this (dreaming about programming, such a life I have) or if it is real, but is there a function one can call to get the php code from a php file displayed in a browser...I know that you can't just save a php file and look at the code, it is all handled on the server end, but I either dreamt or read that there is a function that you can use to read the backend code for any file...and if this is so, is it only possible on localhost or can you check any url in cyberspace for it? I apologize if i make no sense. Ken
  14. [!--quoteo(post=350165:date=Feb 28 2006, 12:52 AM:name=Maverickb7)--][div class=\'quotetop\']QUOTE(Maverickb7 @ Feb 28 2006, 12:52 AM) [snapback]350165[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi, I was wondering if someone could point me in the right direction. I'm trying to have my mysql content listed on a single page in alphabetical with "A B C D E F ect.." at the top of the page. You click A and you'll get all items starting with A. Does anyone know of a tutorial I could use to learn how to do this? [/quote] Try using the sql code: [code]SELECT * FROM `your_table` WHERE `name` LIKE 'a%' ORDER BY `name` ASC [/code] you could pass in a variable for the letter you would like to sort by from a link. so clicking on sort.php?letter=a would lead to: [code] $letter = $_GET['letter']; $sql = 'SELECT * '         . ' FROM `your_table` '         . ' WHERE `name` LIKE  \'' . $letter . '%\''         . ' ORDER BY `name` ASC'; $result = mysql_query($sql); [/code] hope that helps
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.