darga333 Posted May 5, 2006 Share Posted May 5, 2006 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 directoryone folder is called parser and the other is called templatesThe script that runs this file is located in mail_system/parserbut 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 outI 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 https://forums.phpfreaks.com/topic/9095-solved-changing-the-file-path-this-may-be-a-real-stupid-question/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.