Jump to content

Archived

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

Joskevic

Dumb question about previous directory in php

Recommended Posts

Hi

I want to include a file that's in a higher directory, but I don't know how to link to that higher directory. In html its just ../somefile.inc, but in php it's different I think. Can someone help me please?

Thanx a lot

Share this post


Link to post
Share on other sites
Its the same with php:
include '../dir_name/filename.php';

../ = up one higher directory
./  = use the current working directory

Share this post


Link to post
Share on other sites

×

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.