Larry
Administrators-
Posts
5413 -
Joined
-
Last visited
-
Days Won
155
Everything posted by Larry
-
Web Hosting Recommendation
Larry replied to loie's topic in Effortless E-Commerce with PHP and MySQL
Thanks for sharing! -
Mysql, Chp. 12
Larry replied to Nicole's topic in PHP for the Web: Visual QuickStart Guide (3rd Edition)
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? -
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>
-
Zend Optimizer comes with MAMP, but that's a separate thing than the Zend Framework, of course.
-
Site #2 - Htaccess Issues
Larry replied to gregan's topic in Effortless E-Commerce with PHP and MySQL
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? -
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.
-
Altering Php.Ini Include_Path
Larry replied to MikeMikeMike's topic in PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
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. -
New Edition Coming Soon?
Larry replied to itisgregory's topic in PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
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. -
What Is A Shell_Exec() Error?
Larry replied to Matt's topic in Effortless E-Commerce with PHP and MySQL
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. -
Site #2 - Htaccess Issues
Larry replied to gregan's topic in Effortless E-Commerce with PHP and MySQL
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. -
Mac Os Time Saving Techniques For Tiger
Larry replied to MikeMikeMike's topic in Newsletter, Blog, and Other Topics
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. -
Phpmyadmin And Stored Procedures
Larry replied to xcrider2's topic in Effortless E-Commerce with PHP and MySQL
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. -
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.
-
Larry, Why Do You Use Exit() Instead Of Just Exit?
Larry replied to Terry's topic in Effortless E-Commerce with PHP and MySQL
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! -
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 $$