Log In · Register

 
PHP, Yeah, I kind of fail at it. >>;
melancholiclight...
post Aug 28 2008, 01:08 PM
Post #1


Senior Member
***

Group: Official Designer
Posts: 37
Joined: Feb 2006
Member No: 381,509



So, I Jacqueline, recently purchased webspace and a domain from 1and1.com. My domain is: melacholiclights.org

I know many of you on createBlog are successful domain owners and have established well developed websites. biggrin.gif

I was wondering if any of you could possible direct me to a website, since I know how annoying it must be to hear from n00bs like myself about php and it's uncanny ability to confuse me. blink.gif

I really want to at least learn enough to utilize it in my web design and over all content management (which I plan to use cutenews for since it does seem to be popular). shifty.gif

Of course, you do not need to answer this since I, once again, know how annoying this must be, and how tiring it is hearing the same issues over again. I do hope that I will get some responses, of course if I don't, I will understand.
 
 
Start new topic
Replies
synatribe
post Aug 28 2008, 08:03 PM
Post #2


AIDS at RAVES.
******

Group: Official Designer
Posts: 2,386
Joined: Dec 2007
Member No: 598,878



I personally use dynamic inclusions
heres a tut
http://pootato.org/tutorials/php/dynamic-inclusion-subpages/

so you use php includes like this

in you layout for web templates you have 4 parts

html
head
body
footer

you get the first 2 part and put it in a new file and call that a.php

then you get the last 2 parts and put it in a new file and call that b.php

then on your pages this is how you would do it

CODE

<?php include ('a.php'); ?>


content

<?php include ('b.php'); ?>


basically a and b are your header and footer

now dynamic inclusions are a step above that. In dynamic inclusions you dont need to put <?php... in every page, all you do is just put your content, but then how does the footer and header show up? good question, instead your url changes instead of

mysite.com/page.php

it becomes
mysite.com/index.php?x=mypage

the difference between the two urls are that in the first one you are directly calling on the page, whereas in dynamic inclusions, your dynamically including the header and footer by adding the index.php?x=

heres a link to learning dynamic inclusions, its so much easier and looks more professional:]
http://pootato.org/tutorials/php/dynamic-inclusion-subpages/

as far as cutenews, I dont rely on it, instead I use an alternative and its much safer because it uses mYSQL

http://network-13.com/thread/c45412a29e0f10fb

i hope your not confused :]
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: