Web Images not showing

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
T-roy
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Jan 16, 2015 11:10 pm

Web Images not showing

Post by T-roy »

(1st timer)

My domain is pointed to the correct file so my Temporary page shows up when I go to my site, Within the Temporary page's script it points to the images folder and the image to display but it only shows the Alt Text instead of the image(s)

*Set up example...

@ public/web.php
www public/web.php
(Question: When I do this and leave out the .php it creates a folder named Web in that directory and does not display a page, If I add .php it gives an error but actually loads the correct page, Why/am I doing this wrong? Also am I needing an images folder pointer here and what should that look like if so?)

*Public Directory...

Images
web.php
(lots of other stuff but I just need the basics to work lol *facepalm*)

*Web.php picture calling script example...

<a name="top"></a><img src="Images/webImg.png" alt="clanHeader" etc

=What have I left out/done wrong here?

Thanks in advance to anyone who can help me out :mrgreen:
User avatar
rymax99
This is my homepage
This is my homepage
Posts: 143
Joined: Sun Feb 02, 2014 2:08 pm
Location: Florida
Contact:

Re: Web Images not showing

Post by rymax99 »

If you're just trying to show an image, I'd suggest against using PHP, as it's adding useless overhead. You can just use regular HTML if you just need a static page.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Web Images not showing

Post by soja »

Files on apache/linux systems are case sensitive. Make sure you are paying attention to the case in your images.
Not a NFO employee
T-roy
New to forums
New to forums
Posts: 6
Joined: Fri Jan 16, 2015 11:10 pm

Re: Web Images not showing

Post by T-roy »

There will be functionality in the actual homepage like sign in and other things but for now with my Temp page I don't understand why the images don't get displayed and I've tried a range of things like changing up the images folder directory, the actual picture file placement plus obviously changing up the script in the web.php to match placement. It actually used to be an .htm file but I changed to .php to check and make sure it all looked right but there's probably something simple I've overlooked and it frustrates the hell outta me lol.

Cases are all matched, But ill take some more time to triple check and maybe change some file names.
User avatar
rymax99
This is my homepage
This is my homepage
Posts: 143
Joined: Sun Feb 02, 2014 2:08 pm
Location: Florida
Contact:

Re: Web Images not showing

Post by rymax99 »

Can you provide a link?
T-roy
New to forums
New to forums
Posts: 6
Joined: Fri Jan 16, 2015 11:10 pm

Re: Web Images not showing

Post by T-roy »

rymax99 wrote:Can you provide a link?
Presuming you just want the page link:
http://www.fiveeyesarmy.com
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Web Images not showing

Post by soja »

Do you have any .htaccess files on your public folder, or in the subfolder public, or Images?

I am noticing even when trying to directly access http://www.fiveeyesarmy.com/public/Images/webImg.PNG it shows me your main page. This could explain why the image is failing to load.
Not a NFO employee
T-roy
New to forums
New to forums
Posts: 6
Joined: Fri Jan 16, 2015 11:10 pm

Re: Web Images not showing

Post by T-roy »

None of the sort.
May I ask the correct procedure to display the home page, For one I noticed the way I display the home page via the subdomain change :? ...

(@ | folder | public/home.htm)
(www | folder | public/home.htm)

Is not exactly correct is it, It does display the page though so I am a bit lost, Obviously its not supposed to be a file, But then how would I exactly get that file to execute if I specify a folder...

(@ | folder | public/home)
(www | folder | public/home)

When I view my site using that method I just get: Index of / and file names that are in the Home folder, No way to specify and load the home page when my site is viewed.

(As I say I'm a first timer so I'm absolutely lost, Thanks for your time and Patience)
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Web Images not showing

Post by soja »

When you specify public/home as the folder for the domain, you are specifying that the folder named home, in public, is the root folder of your website. Change the folder records to just public, and your content should show up :)
Not a NFO employee
T-roy
New to forums
New to forums
Posts: 6
Joined: Fri Jan 16, 2015 11:10 pm

Re: Web Images not showing

Post by T-roy »

Ok so I specified the public as the root directory, Now check my website and see what's happening, It does show my content but not as I would like to show it lol, How do I make it so my home page is the only thing that shows up and you may view the content via the links I created on the home page??

(I've changed to .htm and removed the images folder for now)
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Web Images not showing

Post by soja »

rename home.htm to index.htm. If that doesn't work, use html instead of htm.
Not a NFO employee
T-roy
New to forums
New to forums
Posts: 6
Joined: Fri Jan 16, 2015 11:10 pm

Re: Web Images not showing

Post by T-roy »

You've been a big help!! thank you so much!!, Finally its up and the weight of the world is off my shoulders lol.

Cheers, and again.. thank you
doulos9
This is my homepage
This is my homepage
Posts: 200
Joined: Sun Sep 15, 2013 9:44 pm

Re: Web Images not showing

Post by doulos9 »

From your News Feed page:
tested by our memebers
From your Information page Members link:
Memebers
Post Reply