+ Reply to Thread
Results 1 to 3 of 3

Thread: I need your help

  1. #1
    hcboyws is offline x10Hosting Member hcboyws is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    3

    Question I need your help

    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!

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: I need your help

    1. Not possible.

    2. Get rid of the public_html. Your website is in the public_html directory.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    Scoochi2's Avatar
    Scoochi2 is offline x10 Sophmore Scoochi2 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    Southport!
    Posts
    185

    Re: I need your help

    Quote Originally Posted by garrettroyce View Post
    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 by Scoochi2; 05-10-2009 at 04:42 PM. Reason: Stupid forum auto-adding URL :angry:
    If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending... :nuts:

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers