Showing posts with label Programming Help. Show all posts
Showing posts with label Programming Help. Show all posts

Wednesday, September 26, 2012

Securely Storing Files on your server

Here are several ways to securely store files on your server

1. Store files in your web directory and secure them using .htaccess.

2. Or store the files in a directory that isn't web-accessible but is readable by the user PHP runs as.

3. If you are using Apache you can use htaccess to password protect directories. (http://www.javascriptkit.com/howto/htaccess3.shtml)

Tuesday, January 10, 2012

Basic Setup to using Yii Framework

1. Install Yii Framework
2. Setup User-friendly URLs
http://www.yiiframework.com/doc/guide/1.1/en/topics.url
3. Using Gii for automatic code generation tool
http://www.yiiframework.com/doc/guide/1.1/en/topics.gii
4. Set DB information in localhost/your_project/protected/config/main.php

In running the command line, make sure to add
* path="c:\xampp\php" or path to php

Now basic preparation for web application is set in place. ^___^

Monday, January 09, 2012

Using MySQL Workbench

I am using MySQL Workbench for Entity-Relationship Diagramming (ERD) tool to plan and make blueprint of my new web project. It's a great tool for any database work with MySQL.

Friday, May 20, 2011

Setup for Yii

Here are some of things that I am working on now.

1. Web Server Stack (XAMPP) - upgraded PEAR, added APC and memcache extensions, installed PHPunit, xdebug extension
2. SDK - Software Development Kit (JDK - Java Development Kit)
3. IDE - Integrated Development Environment (NetBeans), added SeleniumRC and Mercurial (version control) by getting the NetBeans plugins

For your reference, APC and memcache extensions for PHP are here: http://downloads.php.net/pierre/

Monday, July 03, 2006

Conditional Comment in HTML

CSS Conditions (using if, less than & greater than)

http://www.quirksmode.org/css/condcom.html

Change css files according to the browser that the user is using.

The example shown above didn't work for me, so I used javascript to print appropriate css files.

Web Statistics and Trends

What is the trend in browser usage, operating systems and screen resolution?
Here is a link to web statistics by W3Schools.
http://www.w3schools.com/browsers/browsers_stats.asp

Web Statistics and Trends

Statistics are important information. What you can read from the statistics below is that Internet Explorer 6 is the dominating browser, XP is the most popular operating system, and most users are using a display with 1024x768 pixels or more, with a color depth of at least 65K colors.

June 2006