Mancent Posted November 17, 2012 Share Posted November 17, 2012 (edited) include '../../src/config.php'; include 'https://sitename.com/src/config.php'; You see I have one domain that host the website.. And its IP is 50.12.125.36 And then I have a server that holds all the stored files.. and its IP is 50.102.15.192 So I have to have the uploader system installed on the server, and link it to the website. so the files go to server not the website. so can you include offsite files and act like they are onsite? Edited November 17, 2012 by Mancent Quote Link to comment https://forums.phpfreaks.com/topic/270816-can-you-include-srcconfigphp-do-this-with-this/ Share on other sites More sharing options...
Mahngiel Posted November 17, 2012 Share Posted November 17, 2012 (edited) not server side languages. it'd come back parsed and not raw. that only works for CSS, images, js and the like Edited November 17, 2012 by Mahngiel Quote Link to comment https://forums.phpfreaks.com/topic/270816-can-you-include-srcconfigphp-do-this-with-this/#findComment-1393129 Share on other sites More sharing options...
Mancent Posted November 17, 2012 Author Share Posted November 17, 2012 Ok here is what I'm trying to do.. My website is at wiistream.com and that's just my host! And it looks like this: In the menu you have a button that loads the uploader. This uploader is located on my host but i have to move it to the server.. because it works fine where its at and it uploads the file to the user and created the locations for the file to get later when the users calls for it.. This is the uploader this file will be moved to the server and when it when the user posts a new video it will create the locations and store the data in mysql to get latter. And this is the player that plays the uploaded video.. and gets the file and the data when the user uploaded it.. .. The problem I'm having is. All this is connected to facebook. so when a user adds a new video sound or file or picture it post on facebook as the user. and all the users friends can see the post. and that's where this include comes in.. if I move the php files for the uploader so it creates all the locations and the file and the insert in mysql it will not post on facebook anymore. But now that i wrote it all out.. I think i can just make two actions from the one action.. I could call the functions on the server to do what they need to do.. and then also call a function on the host to do what it needs to do.. I think that will solve the problem.. Quote Link to comment https://forums.phpfreaks.com/topic/270816-can-you-include-srcconfigphp-do-this-with-this/#findComment-1393130 Share on other sites More sharing options...
Mancent Posted November 17, 2012 Author Share Posted November 17, 2012 Pardon the images, and the spelling.. just a quicky! Quote Link to comment https://forums.phpfreaks.com/topic/270816-can-you-include-srcconfigphp-do-this-with-this/#findComment-1393131 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.