Thanks
I've tried using FTP HTTP and Storing in MySql, and they work fine, but
only on my computer. I've found out that to work around this server I have
to include some code at the top of my php page, and give the page a .cgi
extension, to use the script as cgi. I can then specify another /tmp
directory in my domain and not have to use the system default which is out
of reach of my scripts. The problem is that it is less secure as the session
id from the on going session is not found in the new directory specified in
the php.ini file , which has to be in my domain as well, and there goes my
secure session management stuff.
However I may be wrong, and hopefully there is a way to access the original
session save directory or I could pass the PHPSESSION ID over?
Any idea how to spoof it?
Otherwise anyone know how to use these encrpto-scripting stuff to come up
with an independant security system (non php sessions management) for
sessions or simple data transfer between scripts in different pages? Use the
database to store an id huh? And the next script gets it from there instead
of by post to know it belongs to a session, and accepts data with the
appended session id.....
I guess thats alrite yeah?
----- Original Message -----
From: "Susan Ottwell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 5:10 PM
Subject: Re: [PHP-WIN] Images in MySql
> You can set the location of the "temp" directory that PHP writes to, there
may be other ways for you to work around this. And, of course, the simplest
way would be to store the images in mySQL, as long as they aren't too big,
usually 2 meg is the limit. (but then you don't want any images bigger than
that, anyway, since they would slow the page download too much).
>
> http://www.php.net/manual/en/configuration.php#ini.upload-tmp-dir
> http://www.php.net/manual/en/features.file-upload.php
> http://www.php.net/manual/en/features.file-upload.put-method.php
> http://www.php.net/manual/en/function.move-uploaded-file.php
>
> Susan Ottwell
> Techbox
> Netanya, Israel
>
>
> >From: "PHPWIN" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: [PHP-WIN] Images in MySql
> >Date: Sun, 22 Apr 2001 18:24:35 +0800
> >
> >Hi there
> > Thanks for the tip, I'll try the telnet thing.
> >
> > But I believe that the real problem is that scripts are not allowed to
> >access files outside their domain, like the /tmp directory where all
files
> >that are uploaded via the web, would end up.
> >
> >Therefore my scripts for HTPp, FTP or MySql don't work as long as I use
> ><file input type=file>
> >Unless a javascript reads the file on the client side and pastes
everything
> >in a textarea, but that would be drastic...
> >
> >Cheers
> >
> >----- Original Message -----
> >From: "John Lim" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, April 22, 2001 10:25 PM
> >Subject: Re: [PHP-WIN] Images in MySql
> >
> >
> > > Hi Xon,
> > >
> > > Some options i can think of.
> > >
> > > 1. Can u change HTTP write permissions yourselves via telnet with
chmod or
> > > chgrp? That would be the simplest if possible.
> > >
> > > 2. If you have to store in MySQL, storing in the file system gives
better
> > > performance. But storing in MySQL is not so bad.
> > >
> > > 3. Consider switching Web hosting companies. There are more responsive
> > > companies out there. I can recommend futurequest.com. I host there
myself.
> > >
> > >
> > > Regards, John
> > >
> > >
> > > "PHPWIN" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi there
> > > I was wondering if anyone knew if it is a good idea to store gifs,
jpegs
> > > or swfs in MySql.
> > > The problem is that the server I host my site on doesn't give HTTP
write
> > > permissions and has disabled FTP functions in php. I would like to
allow
> > > users to upload images and store them locally on the server.
> > >
> > > Any ideas?
> > >
> > > Thanks
> > > Xon
> > >
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]