RE: [PHP-DB] Call an Image from local Harddisk thru PHP file in R emote Host.
| From: | Beau Lebens | Date: | Tue, 10 Dec 2002 06:55:15 +0000 |
| Subject: | RE: [PHP-DB] Call an Image from local Harddisk thru PHP file in R emote Host. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-23985@lists.php.net to get a copy of this message | ||
This won't work, because the HOST needs to be able to access the files on
your machine, which is a gross security risk, and isn't possible in this
manner.
The only way I can think of that you would be able to do anything useful
like that would be to have an HTML page load an image using
<img src="C:\images\map.gif">
or somthing like that, but you wouldn't be able to modify that image using
PHP (tho you could use DIVs or something to overlay other details perhaps?)
HTH
beau
// -----Original Message-----
// From: dufronte [mailto:dufronte@kapsul.org]
// Sent: Tuesday, 10 December 2002 2:51 PM
// To: php-db@lists.php.net
// Subject: [PHP-DB] Call an Image from local Harddisk thru PHP file in
// Remote Host.
//
//
//
// Hello again,
//
// I have another few question.
// Actually, it's a little bit ridiculous.... so don't laugh at me :D
//
// I want to make a webgame with php....., there.. I want to
// put an Image
// Locally in order to Increase the speed. What I'm going to do
// is put my
// Image in my Local Harddisk...(I'm using Windows), and I put
// my PHP file
// in my Host (such as Host.sk or something).
//
// So... I wanna call my Image from my Harddisk thru that
// file... using a
// GD function...
//
// I've tried this two silly things.. but it doesn't work
//
// $map=ImageCreateFromJPEG("c:/myfiles/img/mdmap.jpg");
// and $map=ImageCreateFromJPEG("file:///c|/myfiles/img/mdmap.jpg");
//
// what should I do then..... Please help me...
//
// --www.kapsul.org--
// DuFronte
//
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
//