RE: Call an Image from local Harddisk thru PHP file in Remote Host.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



But somehow... I'm still curious...

Please check this link to make clear what I plan to do...
http://binusti2002.host.sk/sf/start_map.php

Here, I put my Image in my Host.. It does work... but the Image is so
big and it slows down the access... so that's why I want to put it
locally... 

By the way... all the 'city' symbols on the map is changed automatically
using mysql when user is success in attacking some 'city'.... 

To test the map... you can simply click on one of the 'city' symbols...

So... what I gonna do to increase the speed ??? 

--www.kapsul.org--
      DuFronte

-----Original Message-----
From: Beau Lebens [mailto:B.Lebens@curtin.edu.au] 
Sent: Tuesday, December 10, 2002 1:55 PM
To: 'dufronte@kapsul.org'; php-db@lists.php.net
Subject: RE:  Call an Image from local Harddisk thru PHP file in
Remote Host.

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:  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
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux