|
Use tables.
<table>
<tr>
<td colspan="2">
Banner that spans the top of the page
</td>
</tr>
<tr>
<td width="150">Left column (put your menu here)</td>
<td>Right column (put your main content here)</td>
</tr>
</table>
Actually, you can get much fancier than this (take a look at CP's nested tables), but this will give you the basic idea.
Jon Sagara
"Did you bring the butfor?"
"What's a butfor?"
"To poop with, silly."
|
|
|
|
|
I suppose I'll have to, arrggghhhh! I tried that once before, thinking that if I gave a NAME attribute to the central data cell I could direct new data into it from the menu by using the target= attribute, but it didn't work. I guess I'll have to use ASP to change the page and reload each time. Grumble...
Jon Sagara wrote:
"Did you bring the butfor?"
"What's a butfor?"
"To poop with, silly."
Nice one
|
|
|
|
|
Roger Wright wrote:
Nice one
South Park BLU at its finest. It's a variation of another favorite of mine from the movie "Spies Like Us":
"Did you bring the dickfer?"
"What's a dickfer?"
"To pee with."
Jon Sagara
"Did you bring the butfor?"
"What's a butfor?"
"To poop with, silly."
|
|
|
|
|
Jon Sagara wrote:
"Did you bring the dickfer?"
"What's a dickfer?"
"To pee with."
I'm sure I'll find occasion to use both!
|
|
|
|
|
Have you looked into the background-position: x,y; style? Set the background in the body tag with an offset position (equal to the width of your sidebar) and it should work.
cheers,
Chris Maunder
|
|
|
|
|
Interesting thought... I'll give it a try. Thanks!
|
|
|
|
|
I've been programming ASP for some time now.. I like it.
But i've been thinking trying PHP...
What are the advantages with PHP, ASP?
I know that PHP can run on a linux box and i've heard that PHP is faster.. Also, the PHP syntax is more C style, wich I like..
But are there anything that ASP can do better than PHP?
Also, Is it worth the effort to convert my ASP code to PHP ?
Thanks
|
|
|
|
|
Definition: PHP is a simple, object-oriented, interpreted, robust, secure, very high-performance, architecture neutral, portable, dynamic scripting language. PHP has "class" keyword similar to Java's "class" keyword. And PHP is designed such that it is 5 times faster than Java, since there is no virtual machine. PHP is very fast becoming a standard, general purpose, object oriented scripting language. PHP is not only meant for web applications but also can be used for developing general applications.
PHP is a very powerful scripting language. PHP will get rid of PERL/Python and will replace PERL/Python. PHP is the next-generation PERL/Python scripting. PHP can do whatever PERL or Python does and actually does much more, much better and much, much cleaner!! PHP is "mucho" clean.
PHP RUNING IN UNIX, LINUX and WINDOWS.
PHP's strength are :
PHP is the most superior technology. Other technologies PERL, Python, Tcl, VB script, ASP are older and inferior technologies. Even Java/JSP is inferior to PHP.
Open source
Easily learned syntax
Broad database connectivity
Massive library of contributed extensions
General purpose scripting language much superior to PERL, VB script, ASP, JSP.
Fernando Finelli
|
|
|
|
|
at the risk of sounding dumb...
where can i get the php stuff for win2k server and iis (i assume i can use it with iis?)
what version ... where is it ... etc etc ?
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|
|
Lauren, check out www.zend.com. I recommend these books if you're looking for printed docs:- Core PHP Programming / Leon Atkinson (Prentice-Hall)
- PHP Developer's Cookbook / Sterling Hughes (Sams)
- PHP Pocket Reference / Rasmus Lerdorf (O'Reilly)
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
yes, for IIS,
Download and read the documentation in:
http://www.php.net
http://www.php.net/docs.php
http://www.php.net/do_download.php?download_file=php-4.2.0-Win32.zip
Fernando Finelli
|
|
|
|
|
Just downlaod and run the PHP installer. It will detect the default web servers running and integrate automatically.
Nish
Check out last week's Code Project posting stats presentation from :-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
|
|
|
|
|
So, PHP is much better than ASP? aint there anything ASP can do better than PHP?
thanks
|
|
|
|
|
Most servers i've checked out cost about twice the price for Windows...
ASP costs more than PHP/Perl would.
You can use COM objects from ASP, I dunno if you can do the same from PHP even running under windows.
Everybody knows Basic...so there's less of a learning curve for learning ASP. Having the ability to use COM is pretty exciting...to me anyways...if you know VC++ and ATL just think of the possibilities...*drool*
Just my opinion though
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Lol, I guess it is an advertisement of PHP?
I didn't find nothing in your words that I can't apply to ASP also, sorry. You sounds like an advertisement guy which sells PHP, lol
ASP running on Windows, Linux and UNIX also.
ASP is simple (in case of VBScript - very simple)
Secure? Are you guaranting 100% security? I don't believe
VBScript is class oriented also (well, kinda, not all options of OOP available). I actually dunno nothing about OOP support in PHP, so I'll better shut up here
....
etc.
Only one thing I can think currently why PHP is better, that PHP script compiled only once (first time executed) and ASP compiling everytime the page requested. Actually never interested if this is right, just heard from someone.
Other ideas?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Oh and forgot one thing... Open source doesn't mean the best. Usually it is otherwise Look at Linux. Fully open source OS... With my respect to programmers, I can't say it is better than Windows.
Using Linux is very non-comfortable.
Programming for Linux can lead to headaches. Documentation couldn't b found easy
Bugs? Well, noone is interested searching bugs in Linux, because who cares?
So the actual answer on question "why everyone is saying that Windows bad and Linux rules" is very simple. Remember guys those DOS days when user calls you everytim he needs to do something, and you feel like God, because you know something that he doesn't know? So some guys still stacked there, and just can't belive they don't rule anymore, that user can simple click "Next->Next->Next" and install a new program. It hurts And this is the answer
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Philip Patrick wrote:
Remember guys those DOS days when user calls you everytim he needs to do something, and you feel like God, because you know something that he doesn't know?
I'd have to dis-agree...
Sure Windows is a push over compared to DOS command prompt, but when peoples computers throw an exception and only show a bunch of hex codes and I explain what "might" have gone wrong and offer a fix via a d/l patch...I still feel like a god.
I think there is more opportunity to feel god like today than back then. There is so much more to go wrong...
I'm a total windows guy...but Win2k hosts cost so much more....it sux...So i've often considered switching to PHP, cuz it'd be cheaper
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Well, I dunno, I'm looking at this from other point. Not how much you can do, but how much the user can do. On Windows, they can do many things and even understand what they are doing (a lot of "do" in my sentence, not? sorry ), specially in cases "Next->Next->Next"
But on DOS... There is no way to user to understand what he is doing at all (except Doom maybe)
That what I mean.... Dunno if what I wrote understandable... i just woke up
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Philip Patrick wrote:
Only one thing I can think currently why PHP is better, that PHP script compiled only once (first time executed) and ASP compiling everytime the page requested. Actually never interested if this is right, just heard from someone.
AFAIK both are interpreted languages.
James
Simplicity Rules!
|
|
|
|
|
PHP is still a developing language.
You better wait a while.
Recently I ported some ASP to PHP and I was horrified to find there is no PHP equivalent of Response.Redirect.
Means you can redirect from the server side. The only solution was to put some dummy html and javascript and do a client side html based redirect on the document load event.
Nish
Check out last week's Code Project posting stats presentation from :-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
|
|
|
|
|
There is, but you can't buffer the response in PHP. If you're going to redirect, you have to do it before *anything* is sent to the browser.
header("Location: yourpage.php");
Jon Sagara
"Did you bring the butfor?"
"What's a butfor?"
"To poop with, silly."
|
|
|
|
|
Jon Sagara wrote:
header("Location: yourpage.php");
This is NOT a server redirect. It sends a redirect url in the html header and it is the browser that redirects to the new page. Sometimes you actually want server redirects.
Nish
Check out last week's Code Project posting stats presentation from :-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
|
|
|
|
|
In what cases? And please clarify for me: what is the difference between Response.redirect "page.asp" and the PHP version? Does ASP do something special on the server side?
Jon Sagara
"Did you bring the butfor?"
"What's a butfor?"
"To poop with, silly."
|
|
|
|
|
Response.redirect will not send anything to the http client. It starts execution of the new asp and the new asp sends data to the http client.
In the php version the header thing sends data to the http client which then requests the new page.
Nish
Check out last week's Code Project posting stats presentation from :-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
|
|
|
|
|
OIC. Yeah, I have to agree, that's pretty ghetto on the part of PHP.
Jon Sagara
"Did you bring the butfor?"
"What's a butfor?"
"To poop with, silly."
|
|
|
|