Jump to content

Archived

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

darga333

*SOLVED* changing the file path -- this may be a real stupid question

Recommended Posts

Hi I am trying to change a file path from one folder to another folder.

the main directory called mail_system
then there are two folders in the mail_system directory

one folder is called parser and the other is called templates

The script that runs this file is located in mail_system/parser
but the below line needs to get file contents from mail_system/templates

$message = file_get_contents("mailer_template.php");

how do you go about doing that? I know that you use ../ when you want to go down a directory.. but what if you want to go down a directory and then back up antoher directory?

wow it sounds too easy but i just cant figure it out

I figured it out.. I dont know how i couldnt figure it out before..

if there are some real real beginers out there all you do is put

require('../templates/mailer_template.php');



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.