I need your help

hcboyws

New Member
Messages
3
Reaction score
0
Points
0
Hello all,

i'm just new here and try to find somethigns out i got 2 questions

1. i made a game with GameMaker its a .exe file i want it to run on the website i don;t want anyone need to download it and then play it is this possible ? and how do i do it ?

2. i upload all my website pictures to /public_html/images/Imagename.JPG
then when i write the code in my website it shows nothing (code : <IMG SRC="/public_html/images/Imagename.JPG" width="NNN" height="NNN" ALT="picture"> ) is the code wrong or .... ? please help me THANKS!
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
252
Points
63
1. Not possible. :(

2. Get rid of the public_html. Your website is in the public_html directory.
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
2. Get rid of the public_html. Your website is in the public_html directory.
To elaborate, in order to open with a relative URL, the default base folder is the one that the page is in.

For example, if your page is in "public_html" and an image is in "public_html/images" then in the HTML page you will need to open ''images/myimage.png".
If you try to open "public_html/images/myimage.png" then it will actually be looking for the image in "public_html/public_html/images/myimage.png". Understand?


Also, understand that to move up a directory you can use "../"
So if your page is in "public_html/pages" and the image is in "public_html/images", you can use "../images/myimage.png" to get the image. A single period will mean the current folder.
So in this same example, "./images/myimage.png" will actually result in "public_html/pages/images/myimage.png"

Any confusion about this just ask :)
 
Last edited:
Top