|
Posted by Daniel Ennis on 10/05/53 12:00
Jerry Stuckle wrote:
> KDawg44 wrote:
>> Hi,
>>
>> I am writing a PHP app for a small business (family member owes me
>> after this...) but they need to get their box back before I am
>> finished. They have a DSL with dynamic ip and I need to be able to
>> SSH in to their box, so I need to write a script that i have run as a
>> cron job that will email me the current public IP of their DSL modem
>> (as it will change). I am not sure the best way to go about this....
>> I was hoping someone could give me a suggestion of a PHP script....
>>
>> Thanks for any help.
>>
>>
>
> Don't make it hard on yourself. Check out one of the free dynamic IP
> name servers such as dyndns.org.
>
> BTW, there's a good possibility you won't be able to SSH to their box,
> but that's not a PHP problem.
>
If you do want to do it as cronjob as you said, you could do http
request on many of the free online ip address displayer's and parse the
IP out of it.
--
Daniel Ennis
faNetworks.net - Quality Web Hosting and Ventrilo Services
System Administrator / Web Developer
PHP Developer for 6 years
daniel@fanetworks.net
Navigation:
[Reply to this message]
|