Date: 05/22/01
- Next message: Bob Bowker: "[phplib] OT: Need Auth Advice"
- Previous message: Arno A. Karner: "Re: [phplib] Control of a browsing computer's serial port?"
- Next in thread: Alex Black: "Re: [phplib] protecting served files/images/mp3...."
- Reply: Alex Black: "Re: [phplib] protecting served files/images/mp3...."
- Maybe reply: Daniel Bondurant: "RE: [phplib] protecting served files/images/mp3...."
- Reply: Arno A. Karner: "[phplib] Reboot: [phplib] protecting served files/images/mp3...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
kinda off topic, but if you think about making it a classs then it would
be
a nice addition to phplib/pear what ever.
tring to create an inline object to protect file content from
unauthorized access i read the other articles about use differnt script.
unacceptable. was reading the html 4.0 spec
talks about using objects and inline data.
<snip from html 4.0 spec>
<OBJECT id="clock1"
classid="clsid:663C8FEF-1EF9-11CF-A3DB-080036F12502"
data="data:application/x-oleobject;base64, ...base64
data...">
A clock.
</OBJECT>
of couse the world revolves around winblows, and im ashamed i even know
what ole is.
me i want to come up with a class that will do this for me on unix.
using real data types.
<snip from my current failed attempts>
if(eregi("image",$ss[$sp]["files"][$i]["filtyp"])) {
// its an image inline the object
print "<OBJECT id=\"image$i\"";
if(eregi("jpeg",$ss[$sp]["files"][$i]["filtyp"])) {
print " Content-type:image/jpeg;";
} elseif (eregi("gif",$ss[$sp]["files"][$i]["filtyp"])) {
print " Content-type:image/gif;";
} else {
print " Content-type:image/gif;";
}
$size = filesize($ss[$sp]["files"][$i]["tname"]);
print " Content-length: $size;";
print "data=\"";
passthru("/usr/bin/uuencode -m ".$ss[$sp]["files"][$i]["tname"]."
/dev/stdout");
print "\">";
print $ss[$sp]["files"][$i]["iname"];
print "</OBJECT>\n";
<snip from html source>
<OBJECT id="image0" Content-type:image/jpeg; Content-length:
214088;data="begin-base64 755 /dev/stdout
/9j/4AAQSkZJRgABAQEASwBLAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEB
.....
EO/Xy+fz+/RX8juoUO7/AB/4f+vw/9k=
====
">dsc_4160.jpg</OBJECT>
</snip>
i see dsc_4160.jpg but no pic any ideas??
thanks in advance.
-- My opinions are my own and not that of my employer even if I am self employed--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Bob Bowker: "[phplib] OT: Need Auth Advice"
- Previous message: Arno A. Karner: "Re: [phplib] Control of a browsing computer's serial port?"
- Next in thread: Alex Black: "Re: [phplib] protecting served files/images/mp3...."
- Reply: Alex Black: "Re: [phplib] protecting served files/images/mp3...."
- Maybe reply: Daniel Bondurant: "RE: [phplib] protecting served files/images/mp3...."
- Reply: Arno A. Karner: "[phplib] Reboot: [phplib] protecting served files/images/mp3...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

