Jump to content
Larry Ullman's Book Forums

Vegasvikk

Members
  • Posts

    8
  • Joined

  • Last visited

Vegasvikk's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. John and Lou: I'm not sure exactly what you're talking about...maybe you can help me. I have the first part of modularizing a web site done, no problem. I'm using Apache2.2.22 in a Wamp setting. So my root for this exercise is www/ADV_PHP/ch02. I modified the htaccess file for that folder (ch02) exactly as was done in the examples and also my http.conf. Nothing happens for the mod_rewrite, even though I know it's on because you can put a check mark beside it through the Wamp interface. I'm thinking it might be a problem of versions--In my http.conf, the mod_rewrite module is listed with an extension of .so, and in the exercise it's mod_rewrite.s. Although I tried modifying it both ways in the htaccess file and nothing happened. According to John:"To complete the tip, in all action='x' or href='x' code where x references a part of your site that is enumerated as a case of the main switch, just replace x with the name y from case 'y'. Simple. Elegant. Brief." My question is, where are these x's and y's in the code? Do you mean 'p', which is what we're using? Exactly what are you talking about here? I don't think Lou is as much of a noob as I am so I need things to be spelled out very, very simply and directly. Any help would be greatly appreciated! Thanks!
  2. Thank you so very much for helping me out, Antonio. I will try this out right away. Cheers, Vick
  3. Hi Larry: I powered through your book in 4 days; loved every minute of it. I now feel confident I am able to program PHP at an intermediate level. Took me 10 years to learn that but you cracked that egg!!! So excited to now read PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide!! Cheers, Vegasvikk
  4. Hi group and Larry: I was wondering if there was a way, after I have uploaded a certain file to my uploads directory, to be able to then delete it by using the 'reset' button on the form and connecting this somehow to an unlink() function? I have seen on StackOverflow where they use a link to Delete here: http://stackoverflow.com/questions/4844382/php-delete-file-script but I can't get it to work either way, with a Delete link or what I think would be more sensible, just using Reset to empty the directory entirely. Any thoughts? Thanks! Vick
  5. Thanks Larry-- BTW I am loving this book so far. I am powering through it so I can get to the Advanced PHP5 book you wrote and the PHP6. I have Safari Online so I have ALL the books you have up there bookmarked. I hope this is a good deal for you and you are fairly compensated by Safari; otherwise I could not get access to your wonderful material. Cheers, Vegasvikk
  6. A general question: Are there answers posted somewhere for the "Review" part of "Review and Pursue" at the end of each chapter? Thanks Vegasvikk
  7. Hi: I'm really glad that htmlspecialchars is mentioned here; isn't it a better(safer) way to code than to just use declaring variables like $title=$_POST['title']); ? here's how I went about adjusting the handle_form.php code for Ch.3 exercises: <p>Thank you, <?php echo htmlspecialchars($_POST['title']);echo htmlspecialchars($_POST['name']); ?>, for your comments.</p> <p>You stated that you found this example to be '<?php echo htmlspecialchars($_POST['response']); ?>' and added:<br /><?php echo htmlspecialchars($_POST['comments']); ?> </p> Is there any other reason why one way would be better than the other? cheers, Vickie
×
×
  • Create New...