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

Closed Thread
New to PHP; trying to include within include
Old 09-16-2010, 01:09 AM New to PHP; trying to include within include
Junior Talker

Posts: 3
Trades: 0
I have an include page that has links in it that i want to include a page within the same include that the links are in when theyre clicked on. i dont know how to write the href to make it work though or how to set up the folder/file structure. to paint a picture:

index.php contains a link called "work">>
>>the "work" link makes work.php appear as an include>>
>>work.php contains a link called "posters">>
>>I want the "posters" link to open an include called posters.php within work.php but it doesnt.

The include script im using in index.php works great, here it is:
<?php $area = $_GET['area'];
if ($area) {include_once("content/".$area.".php"); } ?>

I tried using the same in work.php but it doesnt work.

HELP PLEASE!!

Last edited by chrishirst; 09-17-2010 at 01:11 PM..
hugh_goodfellow is offline
View Public Profile
 
 
Register now for full access!
Old 09-17-2010, 12:43 PM Re: New to PHP; trying to include within include
Banned

Posts: 8
Name: Robert Lefebvre
Trades: 0
try include($_SERVER['DOCUMENT_ROOT']."/some_folder/some_file.php");
BungeeBones is offline
View Public Profile
 
Old 09-17-2010, 12:56 PM Re: New to PHP; trying to include within include
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If you are going to hijack SIX year old threads do NOT cross post another thread as well.
__________________
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 offline
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to New to PHP; trying to include within include
 

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.11229 seconds with 12 queries