Jump to content
Larry Ullman's Book Forums

Jonathon

Members
  • Posts

    1064
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by Jonathon

  1. Hi Matt, I fairly recently was playing around with some images and the GD library. I think you would need either GD library installed or PECLs Imagick. if you run phpinfo(); it will show you if it's installed. For instance this is my XAMPP read out: Hope that helps, if not or you need any further help pop back I'm sure someone will be able to help you
  2. Hello again Shivani, Are you getting errors at all? Or is it just that you press submit but the file doesn't get uploaded?
  3. Hi Andrew, This line: $q = "SELECT user_id, firstname, FROM users WHERE email='$e' AND password=SHA1('$p')"; should possibly be: $q = "SELECT user_id, firstname FROM users WHERE email='$e' AND password=SHA1('$p')"; Let me know how you get on and i'll lokk in more detail as I only gave it a quick once over
  4. It is a shame that PEAR seems quite tricky, because it seems to have some wonderful segments of code. I actually note the comment above, that Zend may be a better option. When I was having trouble with my PEAR installation I was inside the depths of XAMPP and saw quite a few folders for ZEND, so maybe it comes included with XAMPP.. *UPDATE - I've just had a quick Google and apparently it is installed on XAMPP, however i'm not sure about MAMP, i've looked for all MAC users though. I've see it has Zend Optimizer 3.3.9 and eAccelerator 0.9.6. Not really sure what this means in terms of Zend i'm afraid, but maybe it could be useful to some people. Particulary if your using XAMPP on windows as it's pre-packaged*
  5. Hi Frank, In what way do you mean? In Larry's books he sets the display number, so you decide how many results to show per page. And he gathers the total number of results to decide how many pages of results there will be. Does that help at all?
  6. Glad you sorted it. I really sympathise with you when having trouble with PEAR. I've sadly completely broken my pear installer, but I'm getting a new set up shortly. So I'll take on some PEAR I missed again
  7. Hi MikeMikeMike, Have you tried to install just the depreciated version? You might find that will still work to demonstrate the examples. The error is that the class being requesting doesn't exist I'm afraid.
  8. I'd agree wth HartleySan, I am unfortunately only with my phone today which drastically reduces my output I'm afraid. I also have to really work hard to get joins right. But if you post you tables and columns layout it would be a bit easier for us to see the big picture. I think you're close. What query are you trying?
  9. I thought what an interesting question from HartleySan. Although I was pretty confused after the first line - ha
  10. I don't have the book either. And all I was trying to point out was situations like you have where knowing how to write data to a file is really useful.
  11. Doug, you are clearly a sensitive person. If I had of known that my innocent, legitimate response would have caused this much of a respone, then I would not have bothered. I simply tried to point of something you may not have thought of, hence why i thought you were narrow sighted in your opinions of PHP. Not Larry's writing as you may have thought. Perhaps had I have worded it as " I think you have not thought of the possibility of.... then maybe you wouldn't have taken such offence. Perhaps you have taken this to heart and as a peronal attack. I did in turn find your tone somewhat poorly constructed. You stated I simply pointed out that a valid example of a situation where you would want to write data to a file using php was backing up a database to a text file. I work with PHPMyAdmin every day, it's my job!! But did you know that you can't use it for Postgre?? (or at least you couldn't)? This again is all I meant by what I consider to be an oversight on you part. I probaby did write Larry a good review on Amazon... Because I have read quite a few books on various languages and I found Larry's book to be very good. I also in turn gave quite in depth feedback regarding his up coming PHP and MYSQL book. I have not at ANY point tried to attack you. As already explained. You may notice that I am quite active in the foums, where the majority of time I try to help people where I can. I obviously have my own questions I ask too as I am constantly trying to develop myself. You accuse me of being the "thought police" an that people can't raise their own thoughts. Surely that is the most hypocritical statement made in this entire series of threads?? As you have taken huge offence for my opinion that I thought you were being narrow sighted with regards to PHP.(Again, perhaps that could have been worded better as mentioned earlier) I refuse to get involved in any tit for tat as I stated earlier this forum is for helping people. Which is all I tried to point out before. If you wish never to visit the forum again then that is your loss i'm affraid.
  12. Hi abigail I think you can still view them at www.larryullman.com/forum/
  13. Firstly Doug I'm not being nasty, I genuinely think your not allowing your self to see into further possibilities within the language. Secondly, you come on to the writers forum and describe parts of his writing a 'wild goose chases' and 'ridiculous' for trying to teach you more about the subject. That's frankly just rude. Do you expect the whole book to tailor to your specific needs? I'm happy with my knowledge of databases thank you, but I'm always trying to expand on anything web related. I'm also well aware of phpmyadmin thank you. And I don't feel I was nasty I was merely pointing out that you are not allowing yourself to expand your knowledge of php. You may feel that my response was nasty, I don't. You may not think that your tone initially was some what rude, I do. The forum is meant to help people and this topic now doesn't help people. I'm sure that Larry values all feedback, but perhaps this isn't the place for your feedback as there are other mediums in which to do so. And I personally found your feedback quite rude.
  14. Doug you are very narrow sighted with some opinions. What if I want to back up for database records? Are you going to do this by hand or use php to back them up to text compressed text files? This is just one example. Not everyone uses databases, some people use csv files. What if the said person doesn't have or use phpMyadmin? What's useful you on a day by day basis, doesn't mean its the same for the next person. And to truly take advantage of PHP you need to be aware of its capabilities.
  15. Don't know i'm afraid. I just read somewhere that it can cause problems. If you do find out why, please let me know.
  16. Hi Paul post your source code please? I can't see why password field should have a value at all. Please use the 'other styles' on your reply and out it between code tags
  17. This is from the manual albeit it is user comments at the bottom Full reference
  18. Hi Paul, So let me get this straight. The form is ok but the some of the fields are already populated?? If so are you clearing the cache or just resending the form sending the same data. On a seperate note jorgeLP is also right your query is currently applying a SHA1 function to a string with a value of 'p' not a variable '$p'.
  19. print '<p>Please select the month you were born.</p>' Should be print '<p>Please select the month you were born.</p>'; Let me know how you get on with that
  20. Hello friend51, Please post your code and also the error messages you are getting, so people can help you. As some people like myself don't own the book you are using. Thanks Jonathon
  21. I think I had to use mysql_GUI, Google search around the topic see if you've got it or not. I don't know what mysql client actually has.
  22. Try this, put thisn in your mysqli_connect.php file and see if it returns true: <? DEFINE ('DB_USER', 'xxxxx'); DEFINE ('DB_PASSWORD', 'xxxxxx'); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'sitename'); $dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect MySQL: ' . mysqli_connect_error() ); if ($dbc) { echo 'Connected'; } else { echo 'Not connected'; } ?> This will confirm if $dbc exists in this script when you load mysqli_connect.php in your browser. Then load your register file and see if whether 'connected' or 'not connected' is echoed out.
×
×
  • Create New...