I'm not a PHP expert, but I would say

http://virtual1.example.com/data/directory.data

is NOT a file.  You cannot access it as if it were a file.  It is a file
on a remote server.  To access a file across a network or an internet,
you need to fetch the file in some way.  You can't do that with a simple
fopen.  You need curl library or something that will let you connect to
a remote server and download a file, like what wget does.

Phillip

On Wed, Feb 26, 2003 at 04:01:59PM -0700, Wade Preston Shearer wrote:
> i have a script, on... 
> 
>       virtual1.example.com 
> 
> 
> ...that reads a flat-file database... 
> 
>       /data/database.data 
> 
> 
> which works quite well. 
> 
> on... 
> 
>       virtual2.example.com 
> 
> 
> i put the same script, but didn't want to manage two copies of the same 
> database, thus killing the point of having a database. so, instead of 
> putting... 
> 
>       $filename ="data/directory.data"; 
> 
> 
> ...in the top of the script, i put... 
> 
>       $filename ="http://virtual1.example.com/data/directory.data";; 
> 
> 
> ...but it didn't work. i'm guessing that there are some security things 
> are prevent this or something, but am not sure. do i not have the 
> syntacs correct? 
> 
> -wade preston
> 

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to