Daleeburg Posted September 28, 2007 Share Posted September 28, 2007 I am attempting to include a file, but it is not working so well. Here is my direcoty structure. Root |-/file_man |-/functions | |-/index | |- top.x |-/files |-/users |-index.php I am trying to call top.x from index.php using require, but it doesnt work like this require("/file_man/functions/index/top.x"); any thoughs? Thanks ~D Link to comment https://forums.phpfreaks.com/topic/71066-solved-including-a-file/ Share on other sites More sharing options...
rarebit Posted September 28, 2007 Share Posted September 28, 2007 ../ moves back a dir... therefore (if I see correctly), try: require("../../functions/index/top.x"); Link to comment https://forums.phpfreaks.com/topic/71066-solved-including-a-file/#findComment-357324 Share on other sites More sharing options...
sayedsohail Posted September 28, 2007 Share Posted September 28, 2007 require("./file_man/functions/index/top.x"); Link to comment https://forums.phpfreaks.com/topic/71066-solved-including-a-file/#findComment-357329 Share on other sites More sharing options...
Daleeburg Posted September 28, 2007 Author Share Posted September 28, 2007 ../ Works like a charm ./ didnt work I knew it would be something simple, but for the life of me i couldnt find/remember it. Thanks ~D Link to comment https://forums.phpfreaks.com/topic/71066-solved-including-a-file/#findComment-357331 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.