PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Site Template with PHP Includes
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Site Template with PHP Includes

Réponse
 
LinkBack Outils de la discussion
Vieux 14/06/2008, 19h02   #1
Perry|
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Site Template with PHP Includes

Hello.

I am making a site template with php includes, however, I have lots of things
I need in the template and I do not know how to do them as I am fairly new to
PHP.

Here is an idea of what I want to the site look like

http://i198.photobucket.com/albums/a...per/design.png

Yellow areas are the template, red areas are the template but are adverts and
the blue area is what is dynamic and will be changed on the page type via
creating a new php document, copying the template from a text file on the
server then including the file with the data in the specific place. So could
someone post example code so I can learn off of it or something :-\

In the blue area I will be using
include("./s/file".$_GET['id'].".php")

Will it work with the template aswell?

Regards,

Perry

  Réponse avec citation
Vieux 14/06/2008, 20h33   #2
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Site Template with PHP Includes

When you say "template" are you referring to a DW *.dwt file? If so, then
your process is incorrect.

> In the blue area I will be using
> include("./s/file".$_GET['id'].".php")


Why "./s"? Why not just "s". Anyhow, whatever you do, DO NOT MANUALLY
ENTER LINKS! Let DW make them for you. INSERT | Server-side include >
browse to and select the target file.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Perry|" <webforumsuser@macromedia.com> wrote in message
news:g3113c$k8r$1@forums.macromedia.com...
> Hello.
>
> I am making a site template with php includes, however, I have lots of
> things
> I need in the template and I do not know how to do them as I am fairly new
> to
> PHP.
>
> Here is an idea of what I want to the site look like
>
> http://i198.photobucket.com/albums/a...per/design.png
>
> Yellow areas are the template, red areas are the template but are adverts
> and
> the blue area is what is dynamic and will be changed on the page type via
> creating a new php document, copying the template from a text file on the
> server then including the file with the data in the specific place. So
> could
> someone post example code so I can learn off of it or something :-\
>
> In the blue area I will be using
> include("./s/file".$_GET['id'].".php")
>
> Will it work with the template aswell?
>
> Regards,
>
> Perry
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08527 seconds with 10 queries