|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
PHP -001 class
PHP Code:
|
#2
|
||
|
cool
|
#3
|
||
|
Got a question
Which starting and ending PHP tags most people use? Mind you there are 4 1. <? statement; ?> 2. <?php statement; ?> 3. <% statemenet; %> 4. <Script Language="PHP"> statement; </Script> |
#4
|
||
|
<?php
?>
__________________
|
#6
|
||
|
#7
|
||
|
Think it is the easiest.
Word of wise... unless part of your PHP is in the HTML then keep opening and closing php or else you have to put: Code:
echo ("<html><img=/"dsfdkf.gif/"></html>");
__________________
|
#8
|
||
|
That was my second guess. But I"m not a glory taker. I just share my best ..with all the rest..crap I should have been a poet.
Oh ya I'll fix it if he likes it. |
#9
|
|||
|
Quote:
LOL. Poor P had to go back in the code and edit it. TRUNED off my HTML. LMFAO!!! Oh man those were the good old days. |
#10
|
||
|
Ok...he must have just forgiven yah...so he let you let you back on NHQ.
__________________
|
#11
|
||
|
Na I remembered using closing from then on.!!!
|
#12
|
||
|
BTW you missed a " in your quote!
__________________
|
#13
|
||
|
<%%> is asp
For PHP i use <? function(); ?> i think <?php function(); ?> is ugly... |
#14
|
||
|
hmm...yeah but that bugs me if I am using javascript too.
__________________
|
#15
|
||
|
Comments in PHP coding?
Which one to use??
PHP Code:
PHP Code:
PHP Code:
|
#16
|
||
|
While we are at it, what do you use for PHP coding?
|
#17
|
||
|
Notepad?
You have to install Apache first. Easyphp.org is the easiest.
__________________
|
#18
|
||
|
I use
Code:
<?php php code here ?> that way I can change the look of a page with out having to touch the php code. Just have to edit the template file which would look some thing like (a real basic example) Code:
<html> <body> Hello {username}, today is {date}. </body> </html> for comments I do Code:
// for 1 or 2 lines of comments // such as this. /*and this for several lines 1 2 3 4 */ Plus syntext checking. IcIshoot |
#19
|
||
|
what ici said,
|
#20
|
||
|
How do I do the template stuff? That is something I want to find out how to do.
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dallas Cowboy Joke 001 | bigsmellyfart | Humor & Jokes | 0 | 01-15-2007 10:39 PM |
ediquette class | Dragon-SC- | Humor & Jokes | 4 | 10-22-2005 04:17 PM |
Christmas Joke 001 | bigsmellyfart | Humor & Jokes | 1 | 08-13-2005 08:22 PM |
Mature 001 | bigsmellyfart | Humor & Jokes | 3 | 06-04-2005 06:22 AM |