|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
PHP->HTML or HTML->PHP
Hi,
I was just wondering how do most people start out with their site? a. HTML and then add PHP OR b. Use PHP to create HTML? Thanks for replying. |
#2
|
||
|
well if u code in php, the interputer on the webserver prints everything on the screen in html
And I make a PHP script, and then put it into my HTML layout |
#3
|
|||
|
Quote:
|
#4
|
||
|
Erm no... what I ment is that any code in php, which please note you cant see in a browser, apache and php interpeter converts it into html text for you to see, but is still a dynamic script, dont let me confuse here
|
#5
|
|||
|
Quote:
Thanks. |
#6
|
||
|
PHP First, otherwise I will have alot of editing to do.. I change things all the time when im writing the php.. html comes last
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#7
|
|||
|
Quote:
PHP Code:
|
#8
|
||
|
Most people start HTML > PHP because they find that HTML can't do the facy stuff.
__________________
|
#9
|
||
|
I think he means when you start coding the site after you know html and php, which do you build first, the layout or start the php code..
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#10
|
|||
|
Quote:
|
#11
|
||
|
Hahaha yeah panther I just got that.. I am dumb.
Yeah I still start with HTML first or I forget what the PHP is supposed to do.
__________________
|
#12
|
|||
|
Quote:
|
#13
|
|||
|
Quote:
Thanks for the help Tecoma |
#14
|
||
|
To post HTML inside of PHP it has to be like
PHP Code:
__________________
Last edited by atholon; 03-26-2005 at 04:26 PM. |
#15
|
||
|
no not exactly
you can do it like this: echo("<html><a href=\"link\">link</a></html>"); echo"<html><a href=\"link\">link</a></html>"; echo'<html><a href="link">link</a></html>'; //this one works with out the fancy \'s ... |
#16
|
|||
|
I'll throw this into the echo mix:
[PHP] echo <<<END <b><u><i>Use html code to your hearts content</b></u></i><br> You can even use $variables too! END; [PHP] Quote:
You can completly re-write the php code behind your website and not touch 1 bit of the html layout. IcI |
#17
|
||
|
PHP then HTML
If not, then i just mix them, a bit php there and a bit html there and maybe a bit more html there to then go back to php |
#18
|
|||
|
Quote:
|
#19
|
||
|
I use this one: phemplate
Check the PHP 101 thread. I posted a basic example. I learned about phemplate because that is what babstats uses. You can make a theme for babstats with out having to touch the php coding. All you have to do is keep the variables so that the php script knows where to put the out put. IcI |
#20
|
||
|
That is awesome I didn't know you could use ECHO like that.
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Html -> Xml -> Php | DevilDog#1 | Web design and Programming | 3 | 12-24-2005 09:09 PM |
php: enter = <br /> | varg | Web design and Programming | 8 | 11-12-2005 03:34 AM |
PHP->HTML or HTML->PHP | codewarrior00007 | phphq.Net Forums | 2 | 03-25-2005 08:54 PM |
PHP/HTML/ TEAMSPEAK/PAYPAL script request maybe | blackbm | phphq.Net Forums | 2 | 02-15-2005 10:55 AM |
<?PHP Problem ?> | Se7eN | Web design and Programming | 4 | 08-02-2003 08:11 PM |