Jump to content

How should i set my paths???


robcrozier

Recommended Posts

Hi, i was just wondering if anyone could give me any advice on setting up paths within my php scripts.  Basically, i have a lot of include() functions going on, from many different locations.  Relative paths are starting to give me a headache!  How does everyone else set up their paths with their working on a large php project?

 

Do you set up an absolute path in a config file for example?  If so how exactly do you do this?  I've tried a few ways of setting up an absolute path within my script, however some aren't recognised my javascript (which is also important for me!) and images etc?

 

Any advice would be great.

Link to comment
https://forums.phpfreaks.com/topic/136856-how-should-i-set-my-paths/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.