Jump to content
Larry Ullman's Book Forums

Larry

Administrators
  • Posts

    5413
  • Joined

  • Last visited

  • Days Won

    155

Everything posted by Larry

  1. You're quite welcome. Glad it's working. And thanks for your interest in the Flex book. I hope you like it!
  2. With XAMPP, you place PHP scripts in the XAMPP htdocs folder, which may be C:\xampp\htdocs, assuming you're using Windows and installed XAMPP in C:\. More importantly, what did you actually name the file? I assume not "filename.php". Did you have this problem with any scripts in the first 11 chapters?
  3. I took the what should be the output of your code and tested it in two browsers and it worked for me in both (both popup windows worked). Here's the code I was testing, which should be what your PHP script it outputting: <a href="form_selection.php" onclick="window.open(this.href, 'popupwindow2','width=600,height=400,left=30, top=10, scrollbars=yes,resizable=yes');return false;"> Select and Prepare New Legal Form </a> <a href="view_full_record_form.php?rec_id=X" onclick="window.open(this.href, 'popupwindow','width=1000,height=800,left=200, top=50, scrollbars=yes,resizable=yes');return false;">Some Title</a>
  4. Now you're missing the opening double quotation mark between = and window.open.
  5. Ugh! Drives me nuts when I make mistakes like this. Apologies for the confusion. The code in the steps is correct, the script is not. It should be: session_start(); $_SESSION = array(); // Wipes out the variable. session_destroy(); // Removes the actual data on the server. Ugh!
  6. Sorry about the inconvenience. I primarily use a Mac and the program I use to ZIP files occasionally seems to create problematic archives. I just uploaded a fresh copy. If you're still having problems, please confirm the version of Windows in use.
  7. Sorry I didn't get to your question before, but I'm glad you figured it out. Let us know if you have any more questions.
  8. Zend Optimizer comes with MAMP, but that's a separate thing than the Zend Framework, of course.
  9. Okay. I think the problem is that you have an extra opening double quotation mark before "onclick" in the second bit of code (that opens the third window).
  10. Okay. If you're having problems with images and CSS not showing up, then you need to change your references to those resources so they are absolute and correct. If you're having problems with other pages not working, debugging really depends upon what, exact, problem you're having. "Does not work at all" isn't informative. Also, I appreciate that you're trying to provide information by linking to pages on your site, but that does require people to take extra steps in order to assist. How about putting your information here, and then also linking to the relevant pages?
  11. Mike (*3), kudos for figuring it out and thanks for sharing the solution. I do believe that PEAR is failing to live up to its promise, and the Zend Framework may be a better alternative. It's easier to install, is kept updated, and can be used in pieces. I'll have to think about this when I go to do the third edition next year.
  12. Yes, the colon is how you separate directories on Mac OS X and Unix (I believe it's the semicolon on Windows). Kudos for figuring it out and thanks for sharing the solution.
  13. Offhand, I can't recommend any, as I don't think I've personally read any PHP book written in the past couple of years. But I certainly don't mind you're asking. I guess I would browse Amazon for PHP and OOP and look for books published more recently.
  14. Yes, it is an interesting question and thanks to Matthaus for hunting down the answer. I would have just said "it's complicated" without providing a link!
  15. I'm not exactly sure what you mean by opening another popup window "inside" another window, since popup windows are, by definition, outside of windows. Regardless, if you're using a browser with a JavaScript console, it might show some meaningful errors.
  16. This is actually simpler than one would think but my thanks to everyone for trying to help out. In your code you use the backtick character ` instead of the single quotation mark or apostrophe. The backtick character in PHP is for executing a shell script command.
  17. To be clear, .htacess files MUST be within the Web directory. If the original poster is still having problems with this, please check out some of the other threads on the topic and see if that helps. If not, return here. And please post the actual details of your server.
  18. Hey Mike (et al.), I would think that much, if not most, of the book would still be applicable. I think I do spend multiple chapters on the Terminal, if I recall. You may want to check out the table of contents online or in a library before you were to make a purchase. Thanks for your interest and let me know if you have any other questions.
  19. I primarily used the command line mysql client to test the procedures, although I think I created and edited them using phpMyAdmin. Some people experience problems with stored procedures in phpMyAdmin and others don't. It's not clear what the main difference is. Here's what I had written in a thread in the old forum (http://www.larryullm...ad.php?24,50607): I don't know what version of phpMyAdmin I used previously as I just upgraded. I'm now using phpMyAdmin 3.2.5 with PHP 5.3.2 and MySQL 5.1.44. It's using the mysql PHP extension. This time I could call the stored procedures using either the SQL tab or the SQL popup, so long as I named the database--CALL ecommerce2.select_sale_items(1)--and so long as I DID NOT select the database in phpMyAdmin first. In other words, I had to be on the phpMyAdmin home page to start. Clearly, phpMyAdmin is inconsistent about how it deals with stored procedures.
  20. On Saturday, April 30th, 2011, sometime late in the evening or overnight (EDT), this site will be temporarily unavailable on account of server maintenance. The outage is not expected to exceed 15 minutes. Apologies in advanced for any inconvenience.
  21. What version of the book are you using? I'm looking at Chapter 4, page 80, of the very first printing of the physical book, US, English language, and there's no use of quit() at all. Again, as far as I know, and if I'm wrong, please provide some documentation, but there is no "quit" in PHP. As for exit(), I almost never use it with a provided message. Yeah, I believe that's already on the errata page. That's what I get for changing the name of a function during the rewrites! No, that does not go down two folders. It may have that effect, but that's not what the code is doing. What you have is an absolute reference, which is anything that starts with / or C:\ or http:// or the like. The initial X says "start with the root and go from there". Conversely, any reference that begins with a period, or two periods, or a file name or a folder name--in other words, any reference that doesn't begin with an absolute starting point, is a relative reference, relative to the current script. This can be confusing stuff, I know. Oh, and big thanks for helping out in answering some of the other people's questions. I really, really appreciate it!
  22. Hello Mike (*3). I was able to get the following working using the MySQL Workbench on my Mac (10.6.6) with MAMP and MySQL 5.1: CREATE FUNCTION return_distance(lat_a DOUBLE, long_a DOUBLE, lat_b DOUBLE, long_b DOUBLE) RETURNS DOUBLE BEGIN DECLARE distance DOUBLE; SET distance = SIN(RADIANS(lat_a)) * SIN(RADIANS(lat_) + COS(RADIANS(lat_a)) * COS(RADIANS(lat_) * COS(RADIANS(long_a - long_); RETURN((DEGREES(ACOS(distance))) * 69.09); END $$
  23. A single script can only send a single file. You cannot do what you're doing with your while loop.
×
×
  • Create New...