PDA

View Full Version : Make a computer dial


WebAsh
04-19-2004, 11:27 PM
I dont know whether this applies to PHP, but PHP is what im using for the site, read on.....

OK, i have a LAN at home, and i have aserver, which has a dial-up modem on it, and a gateway program installed on it to share that connection, it also runs an apache server with a PHP so that i can test scripts for my site and it also runs a Intranet site for which i want to make it possible to have a "dial" button, so that people can clik it to make the server dial, without having to be physically at the server to make it dial. So heres what i need, i need to be able to make the server dial with a webpage, that can use PHP, and another button to disconnect the server from the internet. Does anyone have a clue on how to do this????

forlamp
04-20-2004, 08:22 AM
well, is your server linux? if so you can just open the /dev/modem file and fish it AT commands to make it do what you want...

also to disconnect just give it a 3 second inpout pause and send a +++ATH0 and it'll hang up..

USE THE FILEZ

-fl

scoutt
04-20-2004, 10:43 AM
ok I have afew questions. is this server in your house? how many people can se the intranet part of it? all in your house? if so then they can just walk over to it. also what software do you have to share that connection?

if you want people to dialup then jus thave it seup to automatically dialup when they open the page on there computer. php I don't beleive has the ability to start a dilaup

WebAsh
04-20-2004, 05:22 PM
Ok, firstly, its a windows NT 4.0 server and it is at my house. Secondly, i would just have myu family walk to it and click dial, but theyu are no computer whizzs, they know nothing about computers really, so i would just like a dial button on a web page. Thirdly, the server isn't to accessable normally, and i would like to be able to just click dial from my computer in my room which is way on the other side of the house to the server. Fourthly, i use Sygate's Home Network that is a gateway app, and it does have an dail-on-demand function, but that was dialing for no reason, and the auto-disconnect function wasnt working proberly either.

Maybe i should just teach them (my family) how to do it, or just get off my ass and do it myself :D

scoutt
04-20-2004, 09:02 PM
might be best as all it is is a double click if you have it set right. :)

WebAsh
04-24-2004, 10:37 PM
um... i didnt get a word you said... i dont think it made much sense :|

scoutt
04-25-2004, 08:13 PM
umm if you have a shortcut to the dialup connection on the desktop all you have to do is double click on it and hit dial. how hard is that?

WebAsh
04-25-2004, 08:25 PM
yea, but thats not remote is it??? i want to be able to do it from any computer in the house without having to walkt o my server, but i see your point, going through all this trouble, just because we are too lazy, but its not really that, its just i want to be able to... if you know what i mean... i've seen one done in a Vb script so i know its possible, but im not sure how to do it and i cant find one

scoutt
04-25-2004, 08:34 PM
yes vb can do it but I am not all postitive that php has that capability. may have a look at the system commands and see if it has something, other than that you maybe out of luck.

could also put a shortcut on the other computers as well that points to the server. that way all you have to do it double click.

WebAsh
04-25-2004, 09:55 PM
Is it possible to do that?? i didnt think you could make shortcuts to a Dial-Up Networking connection accross computers...

scoutt
04-25-2004, 10:31 PM
why not? just copy the shortcut and paste it on the other computer.

if it doesn't wrok then you have to give it the fullpath including the ip of the computer.

\\192.168.0.1\desktop\dialup.lnk

just a short version of it but it should work.

WebAsh
04-26-2004, 01:29 AM
thanx scoutt, i'll give it a go, but can u make shortcuts to Dial up Networking things in NT 4.0?? i dont think you can, but as i said, ill give it a go, thanx for all your help scoutt.

scoutt
04-26-2004, 09:26 AM
I am not too sure either. been too long since I played with nt 4.0

WebAsh
04-27-2004, 04:46 AM
yea i tryed it, didnt work... oh well, ill just have to be un-lazy... ??? :) thanx for all your help scoutt (as per-usual)