Ignatius881 Posted August 7, 2011 Share Posted August 7, 2011 Hello. Well, the title is not very clear, so I'll explain. There is a webpage where you can find a lot of free projects and webs. It's google code. Let's suppose that I want to download the code of a webpage, for example, http://code.google.com/p/typecho/ (in Chinese), or http://code.google.com/p/virtualpol (in Spanish). So, I download the code and I try to run the code in my local server, but when I open the directory, it takes me to the public url. Instead of http://127.0.0.1/typecho (for example), it goes to http://www.typecho.org, etc. How can I run webpages like those in a local server to modify it and play with it? I'll put a video about this (it's in Spanish, but I think that it doesn't matter): http://www.youtube.com/watch?v=xDKnNgDYsDM Thanks. PD: I don't know if this is the correct subforum to post that. Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/ Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 can you post the code here? Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253773 Share on other sites More sharing options...
Ignatius881 Posted August 7, 2011 Author Share Posted August 7, 2011 can you post the code here? Unfortunately, there are a lot of files (more than 30 in both projects), and I only can put the links: http://code.google.com/p/virtualpol/source/browse/trunk#trunk%2Fpublic_html http://code.google.com/p/typecho/source/browse/#svn%2Ftrunk It's all that I can do to not "destroy" the post or the forum or something :-\ And I even don't know what files are the correct to modify, or what piece of code have I to modify. Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253777 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 its in a language that i dont understand thus the i cant help but i know that at one part of the index.php, it check if something happen if not it redirects to the registrar page the virtualpol.com Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253784 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 you might want to read the manual Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253785 Share on other sites More sharing options...
Ignatius881 Posted August 7, 2011 Author Share Posted August 7, 2011 It doesn't explain anything. Even I asked the maintainer some weeks ago (I was an user) about how to run his webpage in my local server, and he simply laughed at me Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253790 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 you sure the manual doesnt say anything? Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253796 Share on other sites More sharing options...
Ignatius881 Posted August 7, 2011 Author Share Posted August 7, 2011 you sure the manual doesnt say anything? Yes, I'm sure, it only says how to register an user, how to start your virtual life, how to vote, how to earn virtual money, and so on. But nothing about how to use the code :-\ That information doesn't exist, and if I ask to the maintainer, he thinks that I'm fool Unbelievable in a GPL project, but this is another topic. Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253802 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 there is a config.php file, change the url and stuff. Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253805 Share on other sites More sharing options...
Ignatius881 Posted August 7, 2011 Author Share Posted August 7, 2011 there is a config.php file, change the url and stuff. If I change the url, it doesn't take me to the public site, but I can't see anything, only a blank page Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253810 Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 o.0 Quote Link to comment https://forums.phpfreaks.com/topic/244137-how-to-use-a-webpage-in-a-local-server/#findComment-1253815 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.