Captain09 Posted August 5, 2012 Share Posted August 5, 2012 I have a website with a folder system now if you click on a button I want from s1/index/dorf1.php to s2/index/dorf1.php the folders have the same files but they have different content so I want to save the dorf1.php or any other name in the code and make a link for it anyone have an idea? Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/ Share on other sites More sharing options...
trq Posted August 6, 2012 Share Posted August 6, 2012 Pardon? Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367072 Share on other sites More sharing options...
hakimserwa Posted August 6, 2012 Share Posted August 6, 2012 post the code maybe it will explain better. Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367087 Share on other sites More sharing options...
Captain09 Posted August 6, 2012 Author Share Posted August 6, 2012 If I'm on the site s1/folder/file A then I want a link to s2/folder/file A And if I'm on the site s1/folder/file B then I want a link to s2/folder/file B and so on but it's much work to do that all with case or elseif is there a code fore that? Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367125 Share on other sites More sharing options...
redarrow Posted August 6, 2012 Share Posted August 6, 2012 what you on about , you don't go into folders for what? you use folders yes but go into them for what. unless you want to go into a folder then use a .exe still don't make sense . what you doing there? what the project for.... if you press a button to see what in that folder then list the files what you mean. can then use code to trigger the files in that folder? Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367145 Share on other sites More sharing options...
redarrow Posted August 6, 2012 Share Posted August 6, 2012 what you on about , you don't go into folders for what? you use folders yes but go into them for what. unless you want to go into a folder then use a .exe still don't make sense . what you doing there? what the project for.... if you want to press a button to see what in that folder, then you can list the files is that what you mean. you can then use code to trigger the files in that folder you in? Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367148 Share on other sites More sharing options...
Captain09 Posted August 7, 2012 Author Share Posted August 7, 2012 Its a Php script s1 and s2 are servers and I want that when I click on the button I come to the exactly same path in s2 like in s1 and the other way around Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367559 Share on other sites More sharing options...
hakimserwa Posted August 7, 2012 Share Posted August 7, 2012 post the code maybe it will explain better. if you want help, make it easy for those willing to help Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367617 Share on other sites More sharing options...
jcbones Posted August 8, 2012 Share Posted August 8, 2012 Its a Php script s1 and s2 are servers and I want that when I click on the button I come to the exactly same path in s2 like in s1 and the other way around Do you wish to get the parsed content from server A, to use on server B? Just call the file with a file_get_contents. If you wish to send variables to server A from server B, and have the file parse them, you will have to send those variables via POST, or GET. Quote Link to comment https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/#findComment-1367686 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.