Help - Search - Members - Calendar
Full Version: PHP
Forums > Resource Center > Webmasters' Corner > Resolved Topics
melancholiclights
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.
schizo
The only PHP I use is with my PHP includes, and those don't really take any extra knowledge at all. I have a tutorial on how to put them in here.

I don't have any other PHP wisdom to share.
melancholiclights
Thank you Schizo. I appreciate your response.

What still alludes me is how exactly the "php includes" (ie. the header and footer) are implemented in to the overall layout?
schizo
I don't really understand what part you don't understand: What the PHP includes do or how do you put them on your site? I think that tutorial explains both.
melancholiclights
I think I'm just confusing myself.
For the content, do you use an iframe?
schizo
No, I don't think I'm using any (unless I'm forgetting something).
Aberisk
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 :]
melancholiclights
Ahhh! Thank you! *runs in circles* I believe I understand it better now. shifty.gif

Thank you Schizo, and many thanks to skylitex for putting up with me. Haha.
Insurmountable
So, did you figure this out or do you need some more tutorials? What kind of site are you making anyway? Is it going to be a organization? Or did you just like the .org?
Aberisk
QUOTE(envisionartist @ Aug 28 2008, 08:40 PM) *
Ahhh! Thank you! *runs in circles* I believe I understand it better now. shifty.gif

Thank you Schizo, and many thanks to skylitex for putting up with me. Haha.

glad I was able to help :]
schizo
Topic closed and moved to resolved.

Let me know if you need it reopened.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.