how to i set it up to "allow urls in fopen" ?
On Wednesday, February 26, 2003, at 08:06 PM, Andrew Jorgensen wrote:
That really will kill the purpose of having a database anyway. You won't be able to write to the remote file, especially not if there's another system writing to it. Of course read-only will work okay if you allow urls in fopen and you have the right libs to do so.
Phillip Hellewell wrote: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
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
