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
Php includes in folder indexes.
Old 11-08-2008, 02:07 AM Php includes in folder indexes.
Registered User

Posts: 78
Name: Joseph
Location: Texas
Trades: 0
Well In my public_html folder I have a header php file and a footer php file.

In my index page I use php inlcudes to include my files.

My question is when i make a new folder how can i put includes into the index of the folder. Becaue I want to have sitename.com/contact instead of sitename.com/contact.php

The only way that worked for me was in the include for the url i put

/home/mysite/mypath/*.php and in the stylsheet in header php i had to
put the stylesheet url as http://sitename.com/style.css.

So i was just wondering if there were any better ways to work around it.

O and dont want to put the php files in each folder because that would defeat the purpose of includes.
josephcohen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-08-2008, 03:31 AM Re: Php includes in folder indexes.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
O and dont want to put the php files in each folder because that would defeat the purpose of includes.
There HAS to be at least one file in every folder and that is the index file.
__________________
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 11-08-2008, 12:46 PM Re: Php includes in folder indexes.
Registered User

Posts: 78
Name: Joseph
Location: Texas
Trades: 0
Quote:
Originally Posted by chrishirst View Post
There HAS to be at least one file in every folder and that is the index file.
Yes i understand that.

I mean in the contact folder i dont want to have index header and footer php files.
josephcohen is offline
Reply With Quote
View Public Profile
 
Old 11-08-2008, 01:36 PM Re: Php includes in folder indexes.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
not entirely sure what your question is. Your include files can be anywhere in the folder structure.
__________________
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!
 
Reply     « Reply to Php includes in folder indexes.
 

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