Thursday, August 9, 2007

Ikusa Otome Watch Online

WebDev 11. Dynamic image data directory.

In the online help states that for an image of dynamic type, the images must be in the directory or subdirectory _WEB thereof.

However, on deployment, the Internet has not invited the writable directory _WEB.

Therefore, when an administration page allows the Webmaster to modify and change images, it is necessary that they are in the data directories or single directory called the Internet rights read / write.

Unfortunately we can not access this directory in code browser, because the function is available only WLanguage fRepDonnées server code.

Moreover, if the image type is set dynamically, even in server code, there must be a relative path to display an image.


Solution 1: Create an alias or virtual directory to the directory data.

In Apache 2.2.x will create the alias as follows in httpd.conf

\u0026lt; Directory "C:/temp/Test_Image_Timer/Exe/DATA/" >

Alias /DATA/ "C:/temp/Test_Image_Timer/Exe/DATA/"

Order allow,deny

Allow from all

</ Directory>

NOTE: For testing I created an alias on a sub folder of the exe project. Be deployed directory is a directory data described in the account creation WebDev.

PS: for those who use CCHerbergement, it will create in IIS a virtual directory from the console of additional web server configuration.

WebDev Then in the code we can write the following code:

The Image field type is dynamic

/ / initialization code of the page (server)

IMG_ Image1 = "../DATA/ImgAcc/ImgAcc01.jpg"


Solution 2:

Edit rights to a subdirectory of the directory _WEB. This means to ask his host modification.


0 comments:

Post a Comment