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
How to feed the path to an include into the document
Old 11-24-2005, 08:35 PM How to feed the path to an include into the document
Junior Talker

Posts: 2
Trades: 0
Heya guys, I have a small problem, I'm new in PHP and right now I am trying to do the following.

Lets say that I have a page called main.php, somewhere inside the page I want to include HTML code from another page. But instead of using
<?php
include("includes/something.html") ;
?>
I want to leave the space between the quotes empty like that:
<?php
include("") ;
?>
And feed the path to the file using the browser addreess bar like, let's say:
www.mypage.com/main.php?include=something.html

I am sorry that I can't explain this simpler, but I am sure you guys will get the idea.
zeox is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-24-2005, 08:50 PM
TrentonD's Avatar
Ultra Talker

Posts: 253
Location: Calgary, Alberta, Canada
Trades: 0
http://www.webmaster-talk.com/showthread.php?t=38738

This should be what you need
__________________
Signature Coming Soon! :)
Please login or register to view this content. Registration is FREE
TrentonD is offline
Reply With Quote
View Public Profile Visit TrentonD's homepage!
 
Reply     « Reply to How to feed the path to an include into the document
 

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