cudsuk Posted January 6, 2013 Share Posted January 6, 2013 (edited) Hi again sorry about this but it is bugging me to death In my script i have to set up my server as localhost using xampp My problem is , if i use my dns forward url , it doesn't show images and doesn't read the $siteurl , i get file is not located on server etc I have set it to this as it doesnt like using a proper url /*----------------------------SITE INFORMATION-------------------------*/ /*Your site url here start with http:// and don't put / after the url*/ $siteurl="http://00.000.000.000/videos"; /*If you install the script in video folder, then your siteurl would be http://www.yoursite.com/video*/ $admin="admin"; $adminpassword="password"; $domain="http://mysite.co.uk"; My problem is getting the script to reconise a proper url and spot my files , i am aware i have to set database to C:\xampp\htdocs\mysite/ I can't seem to work this out , might be very simple to someone who is use to it all and been around a while but i am just starting out Cheers ps before you say it , yes that isn't the ip or site url i am using , in case of wondering ! Edited January 6, 2013 by cudsuk Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/ Share on other sites More sharing options...
jazzman1 Posted January 6, 2013 Share Posted January 6, 2013 What is the status of the server - up or down ? Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403713 Share on other sites More sharing options...
cudsuk Posted January 6, 2013 Author Share Posted January 6, 2013 web host is up , my isp is up also , checked both with downorisitjustme.com Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403751 Share on other sites More sharing options...
Christian F. Posted January 7, 2013 Share Posted January 7, 2013 Are you trying to connect to the remote IP of a server running on the same LAN/internet connection as you are? If so, then this is more likely not working because of your router not handling the loopback properly. If not, please provide us with a bit more details on how this system is set up, and what error messages you're getting (check the logs as well), if any. Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403786 Share on other sites More sharing options...
jazzman1 Posted January 7, 2013 Share Posted January 7, 2013 (edited) Christian, I don't understand the question from OP very well. He wants to use some of the resources from a remote server into the local machine or backwards? Edited January 7, 2013 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403790 Share on other sites More sharing options...
cudsuk Posted January 7, 2013 Author Share Posted January 7, 2013 (edited) ok i will try to explain it a little better , i am using a home pc via xampp and my router , i have set it up so it port forward on port 80 so apache is port 80,443 and mysql is 3306 my files are in c:/xampp/htdocs/videos/ I set up a port forward dns ie mysite.com to my isp address like so http://000.000.000.00/videos/ so my url would be mysite.com and it points to my ip adress and folder i have my files in , i can do either localhost/videos/ for testing only http://000.000 etc /videos/ to make sure working online or mysite.com and all is ok , i will see the site however if i do the mysite.com i don't get my images to display properly there broken links If i use my ip as my url they work fine , i hope that is making sense ? I am asking if i need to do anything to set it up correctly , like change my htaccess file or maybe my host file even If i say one of you guys to type in mytoons.com i want it to go there and work properly , not to display my ip address as such Sorry for it being long winded but wanted to explain it better and clearly , hope you can understand now ? Thanks EDIT I am such a idiot , christian i understand what you mean , yes i am testing it using the same ip as the site would be directing too , i should use my phon ewith wifi turned off i guess no wonder i am having issues , luckily i asked you guys as i still need to know what my proper url would be ? Edited January 7, 2013 by cudsuk Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403833 Share on other sites More sharing options...
jazzman1 Posted January 7, 2013 Share Posted January 7, 2013 I think your answer lies here -> http://www.brennan.i...ml#ddnsservices You need to purchase a unique domain name ($8-10 per year) and using sites like TZO.com, DynDNS.com, etc. to register that particular domain name through their web services. (http://dyn.com/) DDNS allows dynamic IP account users a service where their DNS records are updated if their connection (IP Address) details change, and then allows the updated information to be propagated throughout the rest of the DNS world After registration you need to add the information that they will provide you to your home router, just check for a tab named: DDNS. If your ip address is a static, everything that you need is to purchase a domain name and if you have enough knowledge about servers to make your local machine as DNS server. if you use a linux one, especially RedHat or Centos, I could help you to set up properly. Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403853 Share on other sites More sharing options...
cudsuk Posted January 7, 2013 Author Share Posted January 7, 2013 (edited) Thanks Jazzman - i use to have sites before which was on a linux vps and yes i had to get a proper domain name , i know people who have used a localhost before but i thought maybe they got away with using a dns forwarder Seems like to do it properly i might have to get a proper domain name then ? At moment i am just using a normal win 7 pc but it has 4 gigs ram and a 1Tb hard drive , i was trying to save some money as skint but needs must lol Thanks for the help - my ip is static it never changes so i guess something like noip is no good as don't want to use there url really , i was using one from co.nr Edited January 7, 2013 by cudsuk Quote Link to comment https://forums.phpfreaks.com/topic/272763-siteurl-setting-using-xampp/#findComment-1403866 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.