Can they be combined??
For example...
<?php
SOMETHING ?>
<HTML>
SOMETHING
</HTML>
<?php>
SMOETHING
?>
And like that as many times i want...
Can it be done?
Can they be combined??
For example...
<?php
SOMETHING ?>
<HTML>
SOMETHING
</HTML>
<?php>
SMOETHING
?>
And like that as many times i want...
Can it be done?
Federico Lerner
Former x10Hosting Administrator - Staff Manager
Yes
Code:<?php include('/include/here.php'); ?> <HTML> Random HTML txt Here <? echo 'using PHP now'; ?> </HTML>
Thanks!
I can make more things with my website now :P
Federico Lerner
Former x10Hosting Administrator - Staff Manager
You can even use it in loops and If's
// For loop
ORCode:<?php for ($x = 1; $x <= 10; $x++) { ?> <div>This is div tag #<?php print $x ?></div> <?php } ?>
// IF, THEN, ELSE
Code:<?php if ($x = 1) { ?> <div>x is equal to 1</div> <?php }else { ?> <div>x is not equal to 1</div> <?php } ?>
sourcewave.net -- Linux is like a teepee, no Windows, no Gates, Apache inside.
Hey Richard!!!
That's too complicated for mee
Let me handle it in the other way which is easyer :P
Federico Lerner
Former x10Hosting Administrator - Staff Manager
Thats just one step up from what Corey posted.
sourcewave.net -- Linux is like a teepee, no Windows, no Gates, Apache inside.
Yes... :P
But i only know HTML...
I use Nukestilo (A PHP-Nuke changed version)... So i only add/modifie things with HTML...
And i also consider myself an expert in HTML...
I would love to learn HTML and PHP really good...
But most tutorials are not really good..
If you know about ony usefull from HTML or PHP let me know please! :D
Federico Lerner
Former x10Hosting Administrator - Staff Manager
PHP Manual
http://www.php.net/docs.php
This is Good Tut Engin:
Pixel2Life
- Dharmil
Thanks!!! :D
I'll take a look at them
Federico Lerner
Former x10Hosting Administrator - Staff Manager