Page 1 of 1

jpeg's fopen() handle draw straight to screen

Posted: Wed Nov 12, 2003 4:06 am
by patnet2004
is there a way to draw a jpeg's fopen() handle straight to the screen without having to ever fwrite() it to the server?

or maybe a different way than fopen() of storing an image in a database and drawing it straight to the screen?

if i could do this then no one will have access to my art work except for the people that registered and logged into my site.

Posted: Wed Nov 12, 2003 4:12 am
by JayBird
why not put the images outside your servers web root, then no-one can access them directly by typing a URL

Mark

Posted: Wed Nov 12, 2003 4:22 am
by patnet2004
well im web hosting so i really dont have access to anything but the web root...

Posted: Wed Nov 12, 2003 4:33 am
by JayBird
every web host i have ever used has accessible directories outside the web root for private files. Are you sure.

Do you upload your files to a specific directory on the server?

for e.g.

when i connect to my host i see these directories

conf
home
logs
public <------ this is the web root
security

so the directories above are below the web root.

Any host worth its weight in salt would have this feature.

Mark

Posted: Wed Nov 12, 2003 4:58 am
by patnet2004
oh well i guess my host sux then, but i found what i was looking for by just playing with it, to draw the pic i just had to echo it with the right header() content-type...

thanks for your suggestions also.