[PHP] Using include() and URL's
I have a simple command similar to this. include ("http://www.cci.net.au/default.htm";); When it parses the php file it is contained in though I get the following response. Warning: Failed opening 'http://flurry.cci.net.au/template/index.php' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I checked that I hard url_fopen_wrappers enabled within the php.ini file which it was and other than that have been unable to deduce why this isn't working. Any comments would be much appreciated. Hippie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] include() and URL's
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the url_fopen_wrappers is enabled in the php.ini file but apart from this I'm kind of lost as to what is causing the problem. Any suggestions? Hippie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Authentication
I'm attempting authorise users from a MySQL database. The idea being, that upon access to the page they input their username and password and this is checked against a table from an SQL database. This page needs to be completely server independant which means that I can't make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know how to authorise to my knowledge. If anyone has any ideas on how to accomplish this I would be more than interested to hear of them. Also, failing this being possible if I can resort to checking it against Radius instead of SQL so any ideas on that would be great as well. Hippie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Authentication
On Fri, 30 Nov 2001 11:02:45 +1030, [EMAIL PROTECTED] (David Robley) wrote: >On Fri, 30 Nov 2001 07:29, Hippie wrote: >> I'm attempting authorise users from a MySQL database. The idea being, >> that upon access to the page they input their username and password >> and this is checked against a table from an SQL database. This page >> needs to be completely server independant which means that I can't >> make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know >> how to authorise to my knowledge. >> >> If anyone has any ideas on how to accomplish this I would be more than >> interested to hear of them. Also, failing this being possible if I can >> resort to checking it against Radius instead of SQL so any ideas on >> that would be great as well. >> >> Hippie. > >The concept is simple - query the database for a record where username = >supplied value and password = supplied value: if you get a record >returned, you have a match and they can enter; if not, they aren't >allowed in. You may need to pass the authorisation aacross scripts - you >could use a cookie, hidden field, sessions > >-- >David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc >CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA > > Useless Invention: Combs for bald-heads. The problem is though, getting their input into a variable with which to query the SQL database. The querying itself I have no problems with but I cannot figure out how to pass their input into a variable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]