Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-05-2008, 11:27 PM PHP Include links
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
I still can't figure out how to make .php links so I can make my pages dynamic. Can anyone teach me?

AIM: MELONCRACKED
MSN: MELONCRACK@LIVE.COM


THANKS. I'll pay you via paypal to teach me.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
 
Register now for full access!
Old 10-06-2008, 03:07 AM Re: PHP Include links
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
< a href="/pagename.php" title="Some title text">Anchor text</a>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-06-2008, 05:59 PM Re: PHP Include links
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
Would I make a separate .php file for only the links?
Like menu.php

BUT how would I link it to the page, the main page, like the index and what not? Thanks Chr
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
Old 10-06-2008, 06:20 PM Re: PHP Include links
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If I'm understanding right you're asking about how to include one php file in another.

<body>
<?php include menu.php ?>
</body>

That will include the content of menu php (which would be a separate file) exactly where the 'include' code is located.

Does that help?
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 10-06-2008, 06:31 PM Re: PHP Include links
Experienced Talker

Posts: 40
Location: i live with your mom
Trades: 0
Well I use dreamweaver and I have this website. www.pokerhungry.com

As you notice on the left side of my page this is strictly all .html links.

Each page has a table with all the .html links on the left. If I add another link to the page, i have to add links to the other pages to make it seem like the links are there.

I've seen someone was able to manipulate and change just one file called, menu.php, and he only needed to make the pages after that which made it super easy. Is this a hard task to accomplish? Thanks.
meloncrack is offline
Reply With Quote
View Public Profile Visit meloncrack's homepage!
 
Old 10-06-2008, 07:13 PM Re: PHP Include links
Defies a Status

Posts: 1,606
Trades: 0
Chris and Vangogh have answer this question above. If you combine their two responses you will know how to do it using html.

Now whether you can make that work in a Dreamweaver page of not is a question I don't know the answer to.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 10-06-2008, 07:36 PM Re: PHP Include links
Junior Talker

Posts: 4
Name: Lee Bartlett
Trades: 0
what i think he would of done there, im not sure, he would of assigned a varible to each page and just put, for exmaple $home = ['home.php'] then attached that varible. im not sure if that code works, but possibly he done somthing like that.
Lee-Bartlett is offline
Reply With Quote
View Public Profile
 
Old 10-06-2008, 09:29 PM Re: PHP Include links
Novice Talker

Posts: 14
Name: Ben
Trades: 0
Where your menu is have a file that contains the links and includes them using the below tags.

<?php include menu.php ?>

the file that contains the include must be saved as .php on your web browser so the tags will work.

The file with your links in is simply one file that contains all your HTML links.


eg menu.php would contain


<a href="index.php">Home</a>
<a href="poker.php">Poker</a>
<a href="lol.php">Jokes</a>


When the links are stored in a file that is included you need only edit that file to change the included links on each page.


Hope that helps.

- Ben
ForumFiller is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Include links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27658 seconds with 12 queries