[PHP] getimagesize() & MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Galen
I'm using a MySQL database to store images as BLOBs. I know how to handle all the MySQL stuff, it's easy, and really makes keeping track of files nice an clean. No permissions, no risk of getting things out of sync, finding stuff is as easy as SQL. My question is about handling stuff once you p

Re: [PHP] PHP and IIS

2003-12-07 Thread V.B. de Haan
Of course but when I make a file test.shtml, the php-code will be ignored, and when I name the file test.php, the SSI will be ignored. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "V.B. de Haan" <[EMAIL PROTECTED]> Cc: "PHP General Mailing List" <[EMAIL PROTECTED]>

Re: [PHP] PHP and IIS

2003-12-07 Thread V.B. de Haan
Now the WHY-question: at the bottom of every page, a complex CGI-Perl-script has to be executed, it's more easily to add only one line of SSI-comment, than the whole content of te script. I also have to translate it to PHP. Vincent - Original Message - From: "John W. Holmes" <[EMAIL PROTE

Re: [PHP] Persistence of session files

2003-12-07 Thread Justin French
On Sunday, December 7, 2003, at 04:48 PM, Pablo Gosse wrote: Hi all. I'm wondering if anyone can tell me how long temporary session files stay on the server after the session has ended if session_destroy() is not called. AFAIK, this depends on two php.ini directives: --- ; Define the probabilit

[PHP] Re: getimagesize() & MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Justin Patrin
Galen wrote: I'm using a MySQL database to store images as BLOBs. I know how to handle all the MySQL stuff, it's easy, and really makes keeping track of files nice an clean. No permissions, no risk of getting things out of sync, finding stuff is as easy as SQL. My question is about handling st

Re: [PHP] MySQL Dump using PHP

2003-12-07 Thread Cesar Aracena
"Justin Patrin" <[EMAIL PROTECTED]> wrote news:[EMAIL PROTECTED] > Use mysqldump in a system() call, redirect it to a temp file, then read > it back and out to the browser. > > Or, you could use popen to get the output piped back into php. Make sure > to check the mysqldump options for things you

Re: [PHP] PHP and IIS

2003-12-07 Thread John W. Holmes
V.B. de Haan wrote: Now the WHY-question: at the bottom of every page, a complex CGI-Perl-script has to be executed, it's more easily to add only one line of SSI-comment, than the whole content of te script. I also have to translate it to PHP. No you don't. Just use virtual(). http://us2.php.net

php-general Digest 7 Dec 2003 15:26:52 -0000 Issue 2459

2003-12-07 Thread php-general-digest-help
php-general Digest 7 Dec 2003 15:26:52 - Issue 2459 Topics (messages 172111 through 172129): Random Numbers.. 172111 by: TheHeadSage 172115 by: Alex 172116 by: Burrito Warrior Re: Random Numbers.. [Solved, Ignore] 172112 by: TheHeadSage Re: Check type of upl

Re: [PHP] Re: getimagesize() & MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Galen
So you're saying there's no way to do what I want to do. Anybody got any other ideas? It seems so stupid to be unable to run functions that accept files on variables, with so many people using databases and whatnot these days. -Galen On Dec 7, 2003, at 1:46 AM, Justin Patrin wrote: Galen wrot

[PHP] Can I request ?

2003-12-07 Thread playerfr
Hi, I am using a PHPBB to have forum and site in php and i need a little script , can i request it here or do you know an otehr group where i can request it. Thnaks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I request ?

2003-12-07 Thread Evan Nemerson
On Sunday 07 December 2003 11:33 am, playerfr wrote: > Hi, > > I am using a PHPBB to have forum and site in php and i need a little script > , can i request it here or do you know an otehr group where i can request > it. Uh, you can request help writing the script here when you hit a wall, but it'

Re: [PHP] Random Numbers..

2003-12-07 Thread Evan Nemerson
On Saturday 06 December 2003 10:39 pm, TheHeadSage wrote: > Hey, > > I've got a script which used to generate a random quote. It worked fine > untill this problem occurred.. > > Say we have 4 quotes with QuoteID's of 1 through to 4 > The script would grab a number of rows, and generate a random num

[PHP] write failed

2003-12-07 Thread Dan McCullough
Just wanted to see if this was correct. To me this is saying that /tmp cannot be written to as there is no space left on device. Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the cu

Re: [PHP] Check type of uploaded file

2003-12-07 Thread Bob Hockney
Richard Davey wrote: > BH> I want to test an uploaded file to see if it is a text file, but I don't want > BH> to rely on the presence of an os command such as 'file.' Is there a > BH> straightforward way to do this within PHP? Thanks in advance. > > Yes, check the $_FILES['userfile']['type'] a

Re: [PHP] Check type of uploaded file

2003-12-07 Thread Bob Hockney
Gerard Samuel wrote: > On Saturday 06 December 2003 11:01 pm, Richard Davey wrote: > > Yes, check the $_FILES['userfile']['type'] after upload. > > > That can be spoofed. > There isn't really a way to determine file types... I was thinking of trying something like ereg("[[:print:]]*", "$contents"

[PHP] Re: Random Numbers..

2003-12-07 Thread Luke
select all and use mysql_data_seek($result, rand(mysql_num_rows($result) - 1)); $row = mysql_fetch_assoc($result); and there, your random row is returnd, that should be easy enough :) and it should work -- Luke "Theheadsage" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > >

Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Karam Chand
Hello I think there is some problem with the permission. Even if I execute a command like - echo ( "start" ); exec ( "pwd" ); echo ( "end" ); the output is - startend shouldnt be pwd showing the present working directory to me. Karam --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Saturday 06 D

php-general Digest 8 Dec 2003 04:56:54 -0000 Issue 2460

2003-12-07 Thread php-general-digest-help
php-general Digest 8 Dec 2003 04:56:54 - Issue 2460 Topics (messages 172130 through 172138): Re: getimagesize() & MySQL Image Storage (Running functions on contents of variables) 172130 by: Galen Can I request ? 172131 by: playerfr 172132 by: Evan Nemerson Re: Rando

Re: [PHP] getimagesize() & MySQL Image Storage (Running functions on contents of variables)

2003-12-07 Thread Tom Rogers
Hi, Sunday, December 7, 2003, 6:38:13 PM, you wrote: G> I'm using a MySQL database to store images as BLOBs. I know how to G> handle all the MySQL stuff, it's easy, and really makes keeping track G> of files nice an clean. No permissions, no risk of getting things out G> of sync, finding stuff

Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Jason Wong
On Monday 08 December 2003 12:56, Karam Chand wrote: > I think there is some problem with the permission. > Even if I execute a command like - > > echo ( "start" ); > exec ( "pwd" ); > echo ( "end" ); > > the output is - startend > > shouldnt be pwd showing the present working directory > to me. Y

Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Jerry M. Howell II
On Mon, Dec 08, 2003 at 01:28:11PM +0800, Jason Wong wrote: > On Monday 08 December 2003 12:56, Karam Chand wrote: > > I think there is some problem with the permission. > > Even if I execute a command like - > > > > echo ( "start" ); > > exec ( "pwd" ); > > echo ( "end" ); > > > > the output is -