jpeg's fopen() handle draw straight to screen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
patnet2004
Forum Newbie
Posts: 14
Joined: Sat Jul 19, 2003 3:26 am
Location: Computer Desk

jpeg's fopen() handle draw straight to screen

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

why not put the images outside your servers web root, then no-one can access them directly by typing a URL

Mark
patnet2004
Forum Newbie
Posts: 14
Joined: Sat Jul 19, 2003 3:26 am
Location: Computer Desk

Post by patnet2004 »

well im web hosting so i really dont have access to anything but the web root...
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
patnet2004
Forum Newbie
Posts: 14
Joined: Sat Jul 19, 2003 3:26 am
Location: Computer Desk

Post 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.
Post Reply