Jump to content
Larry Ullman's Book Forums

jmall

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jmall

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I post the original code from the book. But here's the code that I'm using, how I modify it in: <?php // This pages retrieves and shows a PDF. // This script is created in Chapter 5. // Require the configuration before any PHP code as the configuration controls error reporting: require('./includes/config.inc.php'); // The config file also starts the session. // Require the database connection: require(MYSQL); // Assume invalid info: $valid = false; // Validate the PDF ID: if (isset($_GET['id']) && (strlen($_GET['id']) === 63) &&
  2. I tried to make the script works with different file type but I'm still having trouble to make it work. I only not to view pdf file, but also images, other files like psd type of file photoshop, microsoft office type files as well. Here's the script that I'm having problem with below, only pdf would work. <?php // This pages retrieves and shows a PDF. // This script is created in Chapter 5. // Require the configuration before any PHP code as the configuration controls error reporting: require('./includes/config.inc.php'); // The config file also starts the session.
  3. I've just purchased the book form peachpit.com Now I'm going to dig it since I read a few lines from it at barnes and noble yesterday. I should get this book 2 years ago, well I have so many computer books with similar examples. I'm not surprised by your books sir, you are solid with your product, money well spent.
  4. Wow, thanks so much sir, I'm going to check this one. I hate myself for being away for your reply right now. I've been on a project and it's taking my time away. and I've already bought a similar download file code tamplate for the project. I might not use it if yours works. It seems it's in your book 5ed. I checked this book at barnes and nobles awhile ago, But I didn't buy it and I didn't check well. I've seen another one in your book 2nd edition which I bought awhile back, (php and javascript on chap. 11 extended topics), viewing images. I think that I might buy the 5
  5. Thanks so much for your feedback sir, This is good information you provide me, but I'm going to figure out how to put it in the code, I'm so novice about this. I think that I need to find some tutorial on youtube to teach me how to use that function in the script view_pdf.
  6. First off, thanks very much for your reply. What content-type should I put there for images? as you can see the code in the view_pdf script below, it didn't work. Please check the attached view_pdf script for to see if there's something incorrect there for me. Is there somewhere in the script do I need to modify in order to make it work? ------------------------------------------------------------------------------------------------- // Send the content information: header('Content-type:image/jpeg'); header('Content-Di
  7. Hi, I bought both version of the book (1st, 2nd) and the electronic version of the second version too, awhile ago. In second book, I'm trying to modify the script (add_pdf) in the first site (selling virtual products) to add image instead of pdf, by using the script (add_other_products) in the second site example (selling physical product) Here, I upload my modified file (add_pdf). Everything goes fine when I upload an image, but for some reason I cannot view them. I keep getting the error from the script view_pdf (first site): "This page has been accessed in error."
×
×
  • Create New...