Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Closed TopicStart new topic
> PHP template
stillkill
post Sep 16 2004, 04:32 PM
Post #1





Guests






<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>

</body>
</html>
Go to the top of the page
 
+Quote Post
dissipate
post Sep 17 2004, 03:05 AM
Post #2


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 120
Joined: 2-September 04
Member No.: 100



how is this a php template?
Go to the top of the page
 
+Quote Post
almoo7
post Sep 20 2004, 04:22 AM
Post #3


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 139
Joined: 12-September 04
From: Philippines
Member No.: 505



A php code would be like this:

<?php

/**
* Place in a blank PHP page
*/

// Change to the URL you want to redirect to
$URL="http://www.pinoybloggerforum.info/";

header ("Location: $URL");

?>

Something that starts and ends with the tags <HTML> and </HTML> is an HTML/HTM file. And a template should be something complete with design, you just have to edit it and make some improvements(You posted a blank page with the title "Untitled Document"?). smile.gif
Go to the top of the page
 
+Quote Post
k22
post Sep 22 2004, 08:58 PM
Post #4


Advanced Member
Group Icon

Group: Members
Posts: 165
Joined: 22-September 04
From: IS - IT - US - BE
Member No.: 804



To do a template engine you can also include at the end of a php script a html page with some vars inside, and the use Eval() to read this like a php script, and so you have only to set different vars in different case or page tongue.gif
you can define some default message with define() function and make for example _XX_ = "Hi Guys",
Byez
'Njoy
Go to the top of the page
 
+Quote Post
soleimanian
post Sep 22 2004, 09:17 PM
Post #5


End Of Computer
Group Icon

Group: Members
Posts: 346
Joined: 1-September 04
From: .:: MARS ::.
Member No.: 28



QUOTE(stillkill @ Sep 16 2004, 08:02 PM)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>

</body>
</html>
*






What is that? blink.gif
is it a php Template? wink.gif

some of php codes:

<?php print(""); ?>
<?php echo(""); ?>


Go to the top of the page
 
+Quote Post
melanie
post Sep 22 2004, 09:26 PM
Post #6


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 47
Joined: 20-September 04
Member No.: 748



yeah...o_0 how is that a php template? can you give us some more info???
Go to the top of the page
 
+Quote Post
marijnnn
post Sep 23 2004, 12:05 PM
Post #7


Premium Member
Group Icon

Group: [HOSTED]
Posts: 336
Joined: 22-September 04
Member No.: 798



he's an unregistered user, i don't think he understands it himself hehe.
personally: my php files look like this:

<?php
include files
constants
functions

?>
<html>...
<body>
blablatext
<? fuction1(...)?>
blablamoretext
<? function2(...)?>
</body>
</html>
like that, it's really easy to adjust the layout, because the php and html isn't mixed up...
well, every now and then you have little choice or it's just easyer to do inline coding...
but i prefer using functions though!
Go to the top of the page
 
+Quote Post
k22
post Sep 23 2004, 04:05 PM
Post #8


Advanced Member
Group Icon

Group: Members
Posts: 165
Joined: 22-September 04
From: IS - IT - US - BE
Member No.: 804



Have you ever try to integrate php in Flash template?Because a friend has to do this job, but He doesn't know how.... tongue.gif
Go to the top of the page
 
+Quote Post
marijnnn
post Sep 24 2004, 07:16 AM
Post #9


Premium Member
Group Icon

Group: [HOSTED]
Posts: 336
Joined: 22-September 04
Member No.: 798



hm, i'll ask a friend of mine. he works at a company where they make sites, mostly with flash. and he does the php side of it. let you know asap
Go to the top of the page
 
+Quote Post
andipa
post Sep 30 2004, 03:22 AM
Post #10


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 22
Joined: 30-September 04
Member No.: 941



How does this thing works??
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. ColdFusion template(2)
  2. Invision board template??(5)
  3. My Very First Template(11)
  4. Chs Reborn New Template(4)
  5. Finally Finished That Site With New Template(6)
  6. Overture Productions(3)
  7. Making A Simple Webpage Generator: Part 3(0)
  8. My New Template I Made(26)
  9. The Hacker's Google(29)
  10. How Difficult Is It To Edit A Bought Template ?(12)
  11. Little Help On Which Template Plz(3)
  12. New Template(8)
  13. Flashing For Candy Website Template(5)
  14. A Lot Of Psd Template ... Quick!(5)
  15. Template Redesign For Mambo 4.5.2(4)
  1. Website Template Design Tutorial(0)
  2. C++ Template Coding Conundrum...(5)
  3. Your Opinion On An Edited Joomla! Template(17)
  4. Youth-oriented Template(10)
  5. Travel Template(1)
  6. Template Review(12)
  7. Shop Template(4)
  8. Need Help With A Joomla Template(4)
  9. Need Help With Joomla Template(7)
  10. Simple Template System(0)
  11. I Need A Template For A Website(9)
  12. Joomla Template Kit Extension For Nvu/composer(3)
  13. Creating A Template Engine(1)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 04:15 PM