DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-07-29 18:33:07

sonybros
Member
Registered: 2008-07-24
Posts: 10

file:// works, http:// doesn't

Hi All,

Forgive me if this a simple question/setting but i'm a newbie to Unix.
Here goes...

I (think I) got fonz' funplug 0.5 and lighttpd (1.4.19) with php (5.2.6) working, as per the wikis.

I can get my root page http://<address>/index.php working - html formatting works, as does a HelloWorld with php, as do links to other html/php files...

BUT

Images (and maybe other files) don't load when sourced through http,  i.e.

src="http://<path to image>.filename"

doesn't work but

src="file://<full file path to same image>"

does

Any help is greatly appreciated...

Offline

 

#2 2008-07-29 18:58:16

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: file:// works, http:// doesn't

Hm. This is a really basic HTML question. If the images are on the same server, you don't write 'src="http://...', but only 'src="/path/to/image/without/http/or/file/or/anything"'. If the image is even in the same directory as the page, you only write down the filename without path. Please refer to some HTML reference.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB