Friday, June 11, 2010

A Side Note on Google, Chrome and Dreamhost

While I enjoy some of the perks of Google Chrome and thought it was going to be my dream browser, it is starting to show some cracks. It doesn't handle the Javascript rounded corners as nicely as Firefox and Safari. Of bigger concern is the problems I've had with Yahoo email when in Google Chrome. I thought it was Yahoo at first. But I am beginning to think Google has rigged Chrome to mess with Yahoo. Some days I can't access my Yahoo email at all, but if I switch to another browser everything is fine.
It'll be interesting to see how Chrome plays out and if it can fine tune some of it's imperfections.
Another interesting tidbit: I took a survey from Dreamhost and they asked me if I would leave stay with them if they were bought out by Google. Dreamhost selling out to Google would be a big drag. I have to say, I absolutely would consider a departure. Dreamhost has amazing service, a great product, and incredible support. I can't imagine any of that would survive a buyout.

Thursday, June 10, 2010

A11: Rich Text Editor and Upload

I installed the RTE in class and pasted the code in at home. That didn't take very long. We also did the upload element in class. I just had a typo to fix. I ran a test and it works. It took me a few minutes to understand that the numbers associated with the RTE were actually table IDs and needed to be unique. I am now troubleshooting a few different issues:
1) I would like the RTE to actually edit text that exists rather than just add to the existing text. I don't know if this can be done without going into mysql and putting each paragraph in the table.
2) I would like not have a separate editor for each paragraph, but have one editor to edit the text of a page. If I do plug the text for each page into mysql, can I include HTML in the table to take care of paragraphs and the like?
3) Still trying to figure out how to assign different user permissions for table access in the admin area. Can't figure out the magic.
Hopefully can work them out!

Saturday, June 5, 2010

A10 and Thumbnails

Chapter 6, homework 10, the extra credit thumbnail piece, and Test 7 took about 4-5 hours. I also did some reformatting of the upload form, admin page, and the 3 separate lists for the menu boxes. The homework went well and was very clear. All of my questions are outside of the scope of the assignment and I sent in an email.
I'm looking forward to taking it to the next level.

Friday, June 4, 2010

A8 and A9

Assignment 8 - Paging. It didn't take very long to complete. Maybe 15 minutes after fiddling around with number of pages I wanted.
Assignment 9 - Admin Page. I completed this assignment in class. It was relatively straight forward, though I don't understand how to change Table access permissions for separate users with nmEdit. I do understand that I create separate versions of nmEdit for various levels of access, but not sure how I then associate those separate versions with the admin page so that when a lower level user logs in the lower level access version of nmEdit attaches.

Friday, May 21, 2010

Questions

1) Why doesn't it work to put the "require" statement in header_inc instead of in the config area of each page? I get an error that says get_header() is undefined.

2) Same question for $PageTitle.

3) Same question for $sql that is needed on every page (like a universal menu that appears on each page referencing database items).

4) How do I build my own "if" statements referencing data in the database? ie - if ['Genre'] == Short Story, then display ['Title']...where Genre and Title are database fields.

5) What statements, definitions, variables etc. are absolutely required to make a successful reference to the database? [I am thinking a neat list/diagram would make this much clearer]

5) Why is the $ dropped when referencing variables/properties defined within a class?

6) Is the difference between __construct() and the method just that the method is conditional and __construct() happens no matter what?

7) What is the difference between $selSQL and $SQL?

8) Can I delete the .TGZ file for A7 once it is unpacked?

9) There was mention of a trick that helps to not need an index file in every folder to prevent directory browsing - will this be discussed in class? (I think it is ht_access.)

10) How do I know when to use var, private, or public when defining a property within a class?(The Classes/Paging Lesson example for extending a class uses var, but when the parent was created private and public were used instead. While I understand that a public property is available outside of the class and private is not, I don't understand why var is used in the child.)

11) In the Class Classes/Paging Lesson example for extending a class the variable/property $is_price_negotiable is created but not defined and then passed through the method. Why couldn't the previously created $negotiable_price just be set to TRUE? Why is it necessary to create a new variable or property?

12) If the property is created in the class and not defined, is it defined later or was it already defined somewhere else? How is it stored (ie-in the mysql database?)? Is the lesson automobile example envisioning a form that the enduser fills out or are there dropdown menus with values for these properties? What is the context of the automobile example and what might the interface and output look like?

13) Should every class be defined in separate _inc.php document like Pager_inc.php? Would you ever define in config?

Monday, May 17, 2010

Homework 7 and Lessons

Travelling through a wrench into my week. Having the ability to view lessons online was very helpful. I uploaded the assignment 7 sql file through phpMinAdmin and updated the require statements in the list and view files, but still have to customize it for my site. My client hasn't sent me his files so I may need to make fake files for the assignment.
Listening to the 5/12 lesson, reading the lesson documentation, starting the homework, and completing the test was all done on the 5hr 20min flight from NJ...minus take off/landing and snack break.

Sunday, May 16, 2010

PHP Documentor (extra credit)

I added PHP Documentor. This doesn't seem like a good thing to load in the root, but maybe I'm wrong? The "files" option reveals the physical path for the config. This seems like a major problem to me, unless the there is a way to conceal it. Also, why would I want to parse my inc files located outside of the root? They contain all of the information we've been trying to protect. This seems like a major security risk.
Would love some feedback on this. I didn't parse my inc file outside the root for the reason above.
Adding PHPDocumentor took me about an hour to do. I was confused about adding the .ini file. Not sure I understand it's purpose, but I created and it's in the user file.