Hi David,<br><br>Yes I should have mentioned I had to provide a http proxy so lynx could get the start file from the lynx website.<br><br>Do you know how I can change lynx so it resolves the provided IP locally?<br><br>Pete
<br><br><div><span class="gmail_quote">On 18/05/06, <b class="gmail_sendername">David Goodwin</b> &lt;<a href="mailto:david@codepoets.co.uk">david@codepoets.co.uk</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
pete graham wrote:<br>&gt; I am setting up some PHP scripts that will be called by cron. Since I<br>&gt; have PHP installed as an apache module I was planning to use lynx to<br>&gt; load the PHP file.<br>&gt;<br><br>Do you have a $http_proxy set?
<br><br>&gt; I am testing this on my dev server first, however I have found that Lynx<br>&gt; seems to ignore the Virtual Hosts that I have specified in /etc/hosts<br>&gt; file, and therefore cannot connect to any of the sites on my Dev server.
<br><br>It's always respected ip/hostname mapping from /etc/hosts before for me.<br><br>&gt; Does anyone know how this can be fixed or an alternative method that I<br>&gt; can use?<br><br>I think you're probably using a http proxy somewhere, which is doing the
<br>&nbsp;&nbsp;dns lookup, instead of your local machine.<br><br>&gt;<br>&gt; In case anyone is interested I am checking that the client IP is the<br>&gt; same as the server IP in the files for security reasons, so only the<br>&gt; server itself can call the cron pages.
<br><br>You could just use a .htaccess (or similar) in Apache to restrict access<br>to a cron.php file based on IP address etc.<br><br>David.<br><br>--<br>David Goodwin<br><br>[ david at codepoets dot co dot uk ]<br>[ <a href="http://www.codepoets.co.uk">
http://www.codepoets.co.uk</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<br><br>_______________________________________________<br>Phpwm mailing list<br><a href="mailto:Phpwm@mailman.lug.org.uk">Phpwm@mailman.lug.org.uk</a><br><a href="https://mailman.lug.org.uk/mailman/listinfo/phpwm">
https://mailman.lug.org.uk/mailman/listinfo/phpwm</a><br></blockquote></div><br>