Jump to content
Larry Ullman's Book Forums

cynthie

Members
  • Content Count

    8
  • Joined

  • Last visited

Everything posted by cynthie

  1. I wish to say that I spent a bit more time with the book, paying particular attention to the 'view-pdf.php' script which begins on page 144, and it finally sank in. I get it now; it all makes sense what you all said in the replies, and I could nicely place a jpg file behind my root folder and pull it up just like that! Thanks again. I'm a huge fan!! - Cynthie.
  2. 1. You're right, and I do have xampp on my laptop, and do somethings there first before uploading to the server, but the problem is that the versions of php and mysql on the xampp are way beyond what the hosting company has, so from time to time I run into nagging compatibility issues, like the one I posted here. . 2. I'd also like to say that both the database and sample codes from ecommerce1 are working fine on my laptop. . Thanks again for the tips. - Cynthie.
  3. I appreciate the pointers. I'll try and do better, and if I still need a little nudging I'll let you know. Thanks again. - Cynthie.
  4. Thank y'all for the replies. I'll try your suggestions and if I still run into road-blocks I'll let you know.
  5. Thanks again, DavidDawn; I appreciate. I use Windows 10, and yes, it did unzip fine and I saw the sql.sql file, but when I try to import it into my db I get this error message: . . -------------------- Error SQL query: USE `ecommerce1` ; MySQL said: Documentation #1044 - Access denied for user 'cynthie'@'localhost' to database 'ecommerce1' . -------------------- . I host on HostGator (share hosting), and this is the phpMyAdmin info: . . -------------------- Server: Localhost via UNIX socket Server type: Percona Server Server version: 5.5.42-37.1 - Percona Server (GPL), Release 37.1, Revision 727 Protocol version: 10 User: cynthie@localhost Server charset: UTF-8 Unicode (utf8) Web server: cpsrvd 11.52.5.0 Database client version: libmysql - 5.1.73 phpMyAdmin: Version information: 4.3.8, latest stable version: 4.6.0 . -------------------- . Hope I gave enough info to help you figure out my predicament. - Cynthie.
  6. 1. Thank you so much, DavidDawn, for your response. . 2. Yes, I have a basic enough knowledge of HTML and PHP. . 3. For example, my www or document root is /home/cynthie/public_html/wish/ and from a file on the same root I could simply say <img src="beautifuljulie.jpg" /> or on the browser I could type http://www.wishtimer.com/beautifuljulie.jpg but one of the security suggestions in Effortless e-Commerce is to try placing some files or images one step below/behind the root folder, which in my case would be /home/cynthie/public_html/ which, with the image would give me this: /home/cynthie/public_html/beautifuljulie.jpg So, how do I access this file (beautifuljulie.jpg) from a file in the root folder, whether a php or html file? Thanks again. - Cythie
  7. Clicking around the Internet seems to state that images can only be accessed via http, and that I can't use php's 'include()' function to do it. . 1. I'd appreciate any suggestions for effective ways to access the images when placed one or two levels above/behind the root folder. . 2. Are there good alternate ways to pull up the images when placed in the regular images folder in front of the root folder, other than using http which means referencing them relatively or absulutely? . Thanks. - Cynthie
  8. I recently bought your Effortless e-Commerce book, and it's a great book; I'm truly having fun reading it. Thanks! . On page 53, right before the 'Create Table' code, it says I could download it from your website. I downloaded the zipped files for the two exercises, but can't figure out which one of them is the 'Create Table' code, nor can I find it anywhere on this website. What am I missing? Kindly help. Thanks again for your teaching and support. - Cynthie.
×
×
  • Create New...