Jump to content

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


darga333

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');



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.