[PHP] temporary DNS lookup in php?

2003-01-15 Thread Patrick Hsieh
however, I hope I can customized the temporary DNS lookup in the php program for special purpose without modifying the /etc/resolv.conf or other system configuration files. Is it possible? How? -- Patrick Hsieh<[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To un

[PHP] using curl to get part of the html

2002-10-24 Thread Patrick Hsieh
/large_output.cgi";; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 3); $result = curl_exec($ch); curl_close($ch); echo $result; ?> -- Patrick Hsieh<[EMAI

[PHP] mysql_pconnect() and mysql_connect()

2002-05-23 Thread Patrick Hsieh
d the script. In the sleep time, I use mysqladmin process to view the process and exactly the process is there. But when the script ends after 10 seconds, I can't find that process in the processlist. So, what makes those "Sleeping" process in my mysql server? -- Patrick Hsieh

Re: [PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Patrick Hsieh
curity, as some > security is far better than none! Just making sure that everyone is aware > of the consequences and implications. > > -- > Dan Hardiker [[EMAIL PROTECTED]] > ADAM Software & Systems Engineer > > > > -- > PHP General Mailing List (http://www.php.n

[PHP] is $HTTP_REFERER worth trusting?

2002-05-16 Thread Patrick Hsieh
trusting? Is it possible for a hacker to make an identical $HTT_REFERER in the header? I have no idea how $HTTP_REFERER is made, is it made from the http client and put in the http header? If I can't trust $HTTP_REFERER, how can I deny malicious attack like that? -- Patrick Hsieh <[EMAIL P

[PHP] register_globals in php4

2002-05-09 Thread Patrick Hsieh
s it work if user just change the value in the URL directly and send the url directly to web server? How can we avoid the malicious attack by directly http GET/POST with modified parameter values to make possible system error or compromise? -- Patrick Hsieh <[EMAIL PROTECTED]> GPG publi