Internet Marketing Business Forum


Internet Marketing Business Forum » MAIN FORUMS » Web Design & Programming » help me in php designing?
Web Design & Programming Building websites, coding scripts or developing apps? html, css, javascripts, ajax, php, asp, java, c+, C++ and other geeky info is here.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-02-2009, 11:30 AM   #1 (permalink)
 jishnu b's Avatar
 
Status: Junior Member
Join Date: Jul 2009
Posts: 1
jishnu b is on a distinguished road
Default help me in php designing?

hii i designed a website home page using macromedia dreamweaver .I have a lcd monitor with screen resolution 1024 x 768 .then i run my webiste in another sytem with crt monitor with 800 x 600.but now my webpage looks changes. it become very large .same thing happens when i designed page in 800 x 600 and ran it in 1024 x768 now the page became too small that it only fills quarter part of the window since my monitor is wide screen.Why this happens which is the standard resolution for designing a web page.Is there any other way to solve this problem so that the page will adjust according to the resolution of the system .iam using php
jishnu b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 02-04-2010, 10:10 AM   #2 (permalink)
 
Status: Junior Member
Join Date: Dec 2009
Posts: 1
Ernest Wilkie is on a distinguished road
Default Testing Screen Resolution

Hi...

First, you will need to test the viewers screen resolution. Since PHP is server-side, you will need to use Javascript (which is a client-side scripting language) to find the resolution, and then redirect to the proper pages on your server for that resolution.

Check this page for more information, and use GOOGLE to find other related information.

PHP ::

Regards
Ernest Wilkie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 04-06-2010, 07:25 AM   #3 (permalink)
 
Status: Junior Member
Join Date: Apr 2010
Location: U.K
Posts: 7
shaun is on a distinguished road
Default help me in php designing?

Many of the design patterns in the original Design Patterns book encourage loose coupling. To understand this concept, it's easiest to talk about a struggle that many developers go through in large systems. The problem occurs when you change one piece of code and watch as a cascade of breakage happens in other parts of the system -- parts you thought were completely unrelated.
The problem is tight coupling. Functions and classes in one part of the system rely too heavily on behaviors and structures in other functions and classes in other parts of the system. You need a set of patterns that lets these classes talk with each other, but you don't want to tie them together so heavily that they become interlocked.
In large systems, lots of code relies on a few key classes. Difficulties can arise when you need to change those classes. For example, suppose you have a User class that reads from a file. You want to change it to a different class that reads from the database, but all the code references the original class that reads from a file. This is where the factory pattern comes in handy.
The factory pattern is a class that has some methods that create objects for you. Instead of using new directly, you use the factory class to create objects. That way, if you want to change the types of objects created, you can change just the factory. All the code that uses the factory changes automatically.
Listing 1 shows an example of a factory class. The server side of the equation comes in two pieces: the database, and a set of PHP pages that let you add feeds, request the list of feeds, and get the article associated with a particular feed.

Thanks
__________________
Seoguide
shaun is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-31-2010, 03:57 AM   #4 (permalink)
 
Status: Junior Member
Join Date: Jul 2010
Posts: 4
sams ron is on a distinguished road
Default

It happens for a reason that 1024x768 has more space to show than 800x600, so when you create your website in 800x600, it would look smaller on 1024x768.

It's not an error or mistake, however, there are two ways to correct it.

1 - Complicated way is to check for browser's resolution with either JavaScript or PHP and change your website sizes accordingly (you might want to ignore this solution, there are too many aspect that would go wrong unless you know what you are doing)

2 - Change your table (or divs) width and height to percentage based instead of pixel based, for example instead of:
<table width="800" border="1" cellpadding="0" cellspacing="0" align="center"><tr><td> some text here</td></td></table>

you should do something like this:
<table width="100%" border="1" cellpadding="0" cellspacing="0" align="center"><tr><td> some text here</td></td></table>

Notice the width parameter changed to 100% from a set value of 800 pixels.. That would stretch your table to the whole screen, no matter what the resolution is.
sams ron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 10-04-2010, 01:58 AM   #5 (permalink)
 
Status: Junior Member
Join Date: Oct 2010
Posts: 2
Sameera is on a distinguished road
Default

Nice updation
Sameera is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-12-2011, 03:54 PM   #6 (permalink)
 
Status: Junior Member
Join Date: Jul 2011
Posts: 4
avinmichal is on a distinguished road
Default

According to my thinking point of view In ample systems, lots of cipher relies on a few key classes. Difficulties can appear if you charge to change those classes. For example, accept you accept a User chic that reads from a file. You wish to change it to a altered chic that reads from the database, but all the cipher references the aboriginal chic that reads from a file. This is area the branch arrangement comes in handy.
__________________
psd to wordpress
avinmichal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-18-2011, 07:49 AM   #7 (permalink)
 
Status: Junior Member
Join Date: Jul 2011
Posts: 12
johnkaven is on a distinguished road
Default

A good jump off point is to put down (either on paper or digital format) everything the CMS is supposed to do. If you have that figured out, designing the database, creating the code will be a lot easier if you know what you are working towards.

Other CMS can be a source of information as well. Look at how joomla, drupal, wordpress (etc) databases. It's a good place because these systems are established so looking at their setups might give you a few ideas on what to do with your own CMS. Some php books aimed at beginners have chapters dedicated to building simple things : login systems, basic shopping carts, message boards etc. Look for that type of book to give advice and guidance.

Some books you might find interesting:
johnkaven is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 12:55 AM.
Powered by vBulletin® Version 3.7.0 Beta 6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.


Nav Item BG