shan111 Posted January 16, 2007 Share Posted January 16, 2007 Hi... I'm ashan and I've created a few web pages using php to access mysql database. The Sever i'm using is apache. from the local machine it works nicely but the problem i have is to access those pages from some other machine in our network.. I think my problem is very clear to you all ... i'm really glad if anyone can help me on this.. Regards,Ashan...note: my all web pages are in "htdocs" folder and i want to access the mysql database from all machines in our network through those php pages.. am i made myself clesr to you?? Since i'm pretty new to this dont start with the high note... Quote Link to comment Share on other sites More sharing options...
effigy Posted January 16, 2007 Share Posted January 16, 2007 Is there a firewall on your machine? What happens if someone on your network types[tt] http://[i]your_ip_address[/i] [/tt]into their browser? Quote Link to comment Share on other sites More sharing options...
shan111 Posted January 17, 2007 Author Share Posted January 17, 2007 Yea.. I think we have a firewall, but its working.. in my local machine I've set my explora home page to http:/localhost. So when i try http://my_ip_address its goto my home page. So i can access the database using http://localhost/login.php but for this to work, i have to give everyone my ip address which i dont wanna do... is there any possible way to change this name?? I mean to access the login.php by either 1.directy entering http://login.php or 2.http://some_name/login.phpThanks for your help.. I hope you can help me on this as well.. Quote Link to comment Share on other sites More sharing options...
effigy Posted January 17, 2007 Share Posted January 17, 2007 I'm not very familiar with DNS. [url=http://www.simongibson.com/intranet/dns2003/]This[/url] may be what you're looking for... Quote Link to comment Share on other sites More sharing options...
shan111 Posted January 18, 2007 Author Share Posted January 18, 2007 Hi.. Thaks for your help. I check that DNS part but its pretty different from the one i'm having in the one explain in that article. I mean when i got to net work services and then to details i cant find a Option to install DNS. SO i have no idea.Arent there any other way?? i dont care the way its work... best regards,Ashan,,, Sorry for the trouble.. Quote Link to comment Share on other sites More sharing options...
shan111 Posted January 22, 2007 Author Share Posted January 22, 2007 Guys... Do any one has idea?? I dont know what to do.. can anyone help me on this?? i dont care the way,,, i tried DNS i cant find that,,, whats windows2003?? i have winXP.. may be this seems so stupid.. but if you can help me thats great.. take care,, Hope to hear from you soon... Ashan.. Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 23, 2007 Share Posted January 23, 2007 Is this on a local network of pc's??? - if so http://yourcomputername/login.php will work.If this is on the internet, you need to BUY a domain DNS name. It costs $15 for a .com domain name. Godaddy has some cheap ones -> http://www.godaddy.com/All you do - is sign up - request your domainname.com, register it, pop in your ip-address, and then www.yourdomain.com/login.php will work.Note: you cant hide your ip. going "ping www.iwanttoknowyourip.com" will reveal the ip.-steve Quote Link to comment Share on other sites More sharing options...
shan111 Posted January 24, 2007 Author Share Posted January 24, 2007 Thanks... Yea this is on local network and these are some confidencial datas, my computer name is something like wgpw00506 . .thats the prob.. peple cant keep neither that or my ip address in there mind.. thats the prob. anyway thats for the help.. Ashan... Quote Link to comment Share on other sites More sharing options...
andrewholway Posted January 24, 2007 Share Posted January 24, 2007 Shan111,Perhaps the best way would be to actually find the actual network address for your server, mine is http://192.168.0.5/. This link can easily be put into a friendly link.You can find your ip in windows by Start-->Run-->cmd-->ipconfigThis should (I think) report your IP. [code]<a href=http://192.168.0.5/>The text you want people to see</a>[/code]<a href=http://192.168.0.5/>The text you want people to see</a>Working out internal domains is a bloody nightmare that should only really be attempted my hardcore geeks and wierdos ;-)If you have a firewall on the [b]machine that your trying to use as a server[/b] make sure that port 80 can accept incoming traffic, This might not be possible with windows firewall. I dont know, haven't played with it.If your still having probs, msn me andrew_holway at hotmail dot com Quote Link to comment Share on other sites More sharing options...
steviewdr Posted January 24, 2007 Share Posted January 24, 2007 Change the name of your computer to something easy, like: ashanwebYour website would be then http://ashanweb/In xp - I think you simply right click on Network Places, and its Network identification.-steve Quote Link to comment Share on other sites More sharing options...
shan111 Posted January 25, 2007 Author Share Posted January 25, 2007 Hello andrewholway .... Thanks for your help.. But i didnt get you. where should i put that code.. may eb you got me wrong... shall i explain my prob to you a bit... I have a mysql database and apache sever and php sripting to access that... bla bla bla I want to access the database from through the net work.So when i want to access that from another computer i have to type in the internet explora http://my_ip_address/login.php in that computer and it works nicely.. Its really cool to add a code like that but where should i have added that,??? I have no idea... Its a link isnt it?? if not what should I type in the browser?? The realy problem is to keep this ip address in mind,, and when i try http://mycomputername/login.php Its not working,,, I'm really new to this... So i hope you'll having hard time wth tis but really appreciate youhelp... Ashan Quote Link to comment Share on other sites More sharing options...
shan111 Posted January 25, 2007 Author Share Posted January 25, 2007 hello steviewdr, Thanks for your help but the thing is when i try http://my_computer_name/login.php its not working. and i cant change my computer name either because we have more than 1000 computers proprely named as a order... is there anyother way?? thanks Ashan..... Ashan........... Quote Link to comment Share on other sites More sharing options...
andrewholway Posted January 25, 2007 Share Posted January 25, 2007 Ashan,Okay, so from what your saying everything is working correctly. You now need to let everyone know where it is.What I was suggesting was a html hyperlink. This can be put into any html document. So, for instance If you have an intranet site already up and running you could persuade the administrator of that intranet to put your link on a page that would be accessable by everyone.Another way would be by email. As long as the email clients(outlook, notes etc) in your office support html you could email [code]<a href=http://your.i.p.address/login.php>This is a link to ashans amazing database</a>[/code]and they would see--> <a href=http://your.i.p.address/login.php>This is a link to ashans amazing database</a> <--The 3rd an simplist option is to email everyone with "http://your.i.p.address/login.php" tell them to cut and paste it into their browser and save it in their favourites/bookmarks.Whatever happens I guarantee you will get people who do not understand, who will moan, gibber and complain. Users will roam your office, searching you out, baying for accesibility through their home computers and moblie phones. You will start to smoke (more), get ulcers and develop strange sexual tendencies. Welcome to the world of sysop. . . . . :-) Quote Link to comment 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.