spiceydog Posted July 12, 2008 Share Posted July 12, 2008 I'm sure it's possible but I'm not sure how to do it... I am working with a file located in /blog/index.php but I need it to include and work with a file that is in the root directory. How can i do that? Also if it's different, I also need to know how to do the same thing with a form. For example: <form method="post" action="searchresult.php"> but search.php is located in a previous directory. Link to comment https://forums.phpfreaks.com/topic/114456-solved-including-files-that-are-a-directory-back/ Share on other sites More sharing options...
teynon Posted July 12, 2008 Share Posted July 12, 2008 <form method="post" action="../searchresult.php"> include "../file.php"; For every directory back, use an additional ../ Link to comment https://forums.phpfreaks.com/topic/114456-solved-including-files-that-are-a-directory-back/#findComment-588544 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.