If I have a function included within a page, and that function is in it's own file, in a different directory (/scripts/thefunction.php) how would I go about writing a file path to another file that is in a different directory.

In a nutshell, a file in /index.php includes a file /scripts/...php and that included calls a file /snip/....php, would I need to write ../ or do I write it as if the include has now become part of the file in which it is included.

I would write it just as if the include has now become part of the file in which it is included because in so many words, it is.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.