Jump to content
Larry Ullman's Book Forums

jsnewbie

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jsnewbie

  • Rank
    Newbie
  1. Hello, I'm currently working through creating the sample auction site. I'm using the current version of Xampp, which already has MySQL, Apache and PHP installed and configured. On page 538, it mentions the config.inc.php file and how it's well documented. There's no reference to where this file comes from or how it's created. The install of Xampp's PHP does have a config.inc.php file but I'm not sure if this is the file I should be modifying. Any help would be appreciated. The config.inc.php file I'm referring to is listed below: <?php /* * This is needed for cookie based authentication to encrypt password in * cookie */ $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */ /* * Servers configuration */ $i = 0; /* * First server */ $i++; /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['AllowNoPassword'] = true; $cfg['Lang'] = ''; /* Bind to the localhost ipv4 address and tcp */ $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; /* User for advanced features */ $cfg['Servers'][$i]['controluser'] = 'pma'; $cfg['Servers'][$i]['controlpass'] = ''; /* Advanced phpMyAdmin features */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; $cfg['Servers'][$i]['relation'] = 'pma_relation'; $cfg['Servers'][$i]['table_info'] = 'pma_table_info'; $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; $cfg['Servers'][$i]['column_info'] = 'pma_column_info'; $cfg['Servers'][$i]['history'] = 'pma_history'; $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; $cfg['Servers'][$i]['tracking'] = 'pma_tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; $cfg['Servers'][$i]['recent'] = 'pma_recent'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs'; /* * End of servers configuration */ ?> So is this the file I modify or is there another one I use or create?
  2. I solved it and thanks for the link. My js code was missing the stylesheet and the div tag's css class reference. Once I put it in, it all worked. Yes, the link also helped. Thanks again.
  3. I'm having trouble with the .autocomplete() in jquery-ui. This method works but the output is not what I expected. I was expecting a drop-down to appear with suggestions after typing in two letters. Instead, I see something like this: 1 result is available, use up and down arrow keys to navigate. Under this, there is a bulleted list of my options. The up and down arrow keys do move through my selection, so it somewhat works, but this is not what I wanted. I am using the Google CDN to obtain jquery and jquery-ui and am also using the jquery-ui css file from there too. Any suggestions?
  4. Page 460 - step 11, last paragraph: ...after running it through sanitizing functions to make it safe... ..after confirming that it's a syntactically valid email address. I think I can do the latter, with the help of Regular Expressions, but I need a hand (no, I don't need the code written for me, I prefer to write it myself) with how to sanitize comments. I know I would need to remove HTML tags but what else is there? I've been looking at W3Schools (yes, I'm that desparate! I don't have a book that contains cogent information on how to code/program in PHP) as well as other website tutorials. They're all incomplete in some form or other but they at least give me some idea how to format a PHP script/program. Side Note: I'm extremely dismayed at the _lack_ of information on how to connect a PHP script/program to a Microsoft SQL Server Express database. Yes Yes, PHP and MySQL are ".join()"ed at the hip but with the ample availability of SQL Server Express, you'd think someone would've picked up on this and wrote some sample PHP code for Microsoft's platform...regardless of how they feel about the company and leader(s). My intention is not to start a "m$ war" so if you intend on responding, please do so with proof/links to back up your defense.
×
×
  • Create New...