[PHP] include http
Hi, I wrote a program to authenticate users. I would like to place a few lines at the top a webpage that would call this program. Some web pages will be on the same server as the authentication program, others will not. Can I use include/require of do I need to use fopen? The program returns true or false upon account validation, so I am not sure how I can use fopen I have tried the following so far and cannot get it to work ? php ini_set(include_path,http://myserver/scripts;); $foo=require(/ndsauth.php); if(!$foo) { exit; } ? Any suggestions would be appreciated Thanks Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] include http
In order to use your PHP script (authentication features etc) you need to have the all files within the same server. As of including files, virtually - yes, yo can use include for remote files, but you will not be able to execute the remote PHP code. You will only include the output. ie: include('www.google.com'); includes you google's homepage, not the Terrabytes of their database access :) -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins Dan Healy [EMAIL PROTECTED] wrote... : Hi, I wrote a program to authenticate users. I would like to place a few lines at the top a webpage that would call this program. Some web pages will be on the same server as the authentication program, others will not. Can I use include/require of do I need to use fopen? The program returns true or false upon account validation, so I am not sure how I can use fopen I have tried the following so far and cannot get it to work ? php ini_set(include_path,http://myserver/scripts;); $foo=require(/ndsauth.php); if(!$foo) { exit; } ? Any suggestions would be appreciated Thanks Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] include http problem
include (http://www.somesite.com/somepage.html;); Worked perfect on our unix box and our win98 machines but when we installed PHP on our Windows server it no longer worked and tottaly ignored the include unless we used the path instead like. include (somepage.html); [EMAIL PROTECTED]
[PHP] ? include (http://www.myserver.de/page2.php); ?
Hi, does anyone know, how to get the following line working an windows? ? include (http://www.myserver.de/page2.php;); ? I know, this way to access a remote file works on UNIX. I simply can't get it to work on window. Is there a patch/trick out, wich enables this? I tried it on windows with IIS and APACHE. Both attempts have failed. I need it, because I do develop most of my pages on a Win2k system, later, the pages gets published on a LINUX server. Thanks for your help Dieter -- 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] ? include (http://www.myserver.de/page2.php); ?
You could try fopen()ing the contents that way. maybe exec() them? - Original Message - From: Dieter Stolpmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 3:18 PM Subject: [PHP] ? include (http://www.myserver.de/page2.php;); ? Hi, does anyone know, how to get the following line working an windows? ? include (http://www.myserver.de/page2.php;); ? I know, this way to access a remote file works on UNIX. I simply can't get it to work on window. Is there a patch/trick out, wich enables this? I tried it on windows with IIS and APACHE. Both attempts have failed. I need it, because I do develop most of my pages on a Win2k system, later, the pages gets published on a LINUX server. Thanks for your help Dieter -- 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 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]