RE: [PHP] This, then that.

2007-10-21 Thread Robert Cummings
On Sat, 2007-10-20 at 18:45 -0700, Instruct ICC wrote: > > > > > > > >One idea that has always been REALLY popular around here... stuff your > > > >image in a database. *MUHAWHAWHAWHAWHAW* *Ducks from the flying rocks*. > > > > > > > >Cheers, > > > >Rob. > > > >-- > > > > > > Rob: > > > > > > Tha

RE: [PHP] This, then that.

2007-10-20 Thread Instruct ICC
> > >> > I want to prohibit an image from being shown to anyone who is not > > >> > permitted (i.e., logged in). > > >> > > > >> > The way I want to do this is to: > > >> > > > >> > 1. Set [file] permissions... > > >> > > >> > > >> > > >> What if 2 or more users access the application at th

RE: [PHP] This, then that. [solved?]

2007-10-20 Thread Instruct ICC
> >> I think I found a solution. > >> > >> Here's the url: > >> > >> http://www.webbytedd.com/bbb/image-test1/ > >> > >> The point is that the image is only accessible via this script, is > >> this correct? > > > >I can access it without a script: > >http://www.webbytedd.com/bbb/image-test1/i

RE: [PHP] This, then that.

2007-10-20 Thread tedd
At 11:58 AM -0400 10/20/07, Robert Cummings wrote: Most likely though, you have access to .htaccess and so you could create a locked images directory that exists within the web tree but which can't be accessed by a browser. This would give you what you need to be within the confines of safe mode

RE: [PHP] This, then that.

2007-10-20 Thread tedd
Hi gang: Does this work any better at keeping the image safe? http://www.webbytedd.com/bbb/image-test2/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

RE: [PHP] This, then that.

2007-10-20 Thread Robert Cummings
On Sat, 2007-10-20 at 09:59 -0400, tedd wrote: > At 4:59 PM -0400 10/19/07, Robert Cummings wrote: > >On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote: > >> > I want to prohibit an image from being shown to anyone who is not > >> > permitted (i.e., logged in). > >> > > >> > The way I want

RE: [PHP] This, then that. [solved?]

2007-10-20 Thread tedd
At 1:45 PM -0700 10/19/07, Instruct ICC wrote: > Hi gang: I think I found a solution. Here's the url: http://www.webbytedd.com/bbb/image-test1/ The point is that the image is only accessible via this script, is this correct? I can access it without a script: http://www.webbytedd.com/

RE: [PHP] This, then that. [solved?]

2007-10-20 Thread tedd
At 1:57 PM -0700 10/19/07, Instruct ICC wrote: > but in the img tag, try src="display_image.php?id=anId" and in display_image.php, test if the user is authorized before displaying the image. Then a direct call to display_image.php?id=anId would still have a chance to authenticate the user.

RE: [PHP] This, then that.

2007-10-20 Thread tedd
At 4:59 PM -0400 10/19/07, Robert Cummings wrote: On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote: > I want to prohibit an image from being shown to anyone who is not > permitted (i.e., logged in). > > The way I want to do this is to: > > 1. Set [file] permissions... What if 2 or

RE: [PHP] This, then that.

2007-10-20 Thread tedd
At 1:31 PM -0700 10/19/07, Instruct ICC wrote: > I want to prohibit an image from being shown to anyone who is not permitted (i.e., logged in). The way I want to do this is to: > 1. Set [file] permissions... What if 2 or more users access the application at the same time? Set the perm

Re: [PHP] This, then that.

2007-10-20 Thread tedd
At 1:09 PM -0400 10/19/07, Wolf wrote: actually, you could run it by 1. making the page 2. flushing the output buffer (which puts it in the screen) 3. run the 2nd script Nope, tried it. Whatever is done in a script is done before any output to the browser. Cheers, tedd -- --- http://sp

Re: [PHP] This, then that.

2007-10-20 Thread tedd
At 6:23 PM +0200 10/19/07, Zoltán Németh wrote: 2007. 10. 19, péntek keltezéssel 12.07-kor tedd ezt írta: At 8:19 PM -0400 10/18/07, TG wrote: >Describe the process a little more. Ok, here's what I want to do. I want to prohibit an image from being shown to anyone who is not permitted (i.

RE: [PHP] This, then that.

2007-10-19 Thread Robert Cummings
On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote: > > I want to prohibit an image from being shown to anyone who is not > > permitted (i.e., logged in). > > > > The way I want to do this is to: > > > > 1. Set [file] permissions... > > > > What if 2 or more users access the application at

RE: [PHP] This, then that. [solved?]

2007-10-19 Thread Instruct ICC
> but in the img tag, try src="display_image.php?id=anId" > and in display_image.php, test if the user is authorized before displaying > the image. > Then a direct call to display_image.php?id=anId would still have a chance to > authenticate the user. Forgot to reiterate: Keep the images where

RE: [PHP] This, then that. [solved?]

2007-10-19 Thread Instruct ICC
> Hi gang: > > I think I found a solution. > > Here's the url: > > http://www.webbytedd.com/bbb/image-test1/ > > The point is that the image is only accessible via this script, is > this correct? I can access it without a script: http://www.webbytedd.com/bbb/image-test1/images/a.jpg It may

RE: [PHP] This, then that.

2007-10-19 Thread Instruct ICC
> I want to prohibit an image from being shown to anyone who is not > permitted (i.e., logged in). > > The way I want to do this is to: > > 1. Set [file] permissions... What if 2 or more users access the application at the same time? Set the permissions so only the PHP application can acces

Re: [PHP] This, then that. [solved?]

2007-10-19 Thread Philip Thompson
On 10/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > > On 10/19/07, tedd <[EMAIL PROTECTED]> wrote: > > > > Hi gang: > > > > I think I found a solution. > > > > Here's the url: > > > > http://www.webbytedd.com/bbb/image-test1/ > > > > The point is that the image is only accessible via this scr

Re: [PHP] This, then that. [solved?]

2007-10-19 Thread tedd
Hi gang: I think I found a solution. Here's the url: http://www.webbytedd.com/bbb/image-test1/ The point is that the image is only accessible via this script, is this correct? The technique I used simply runs the first php script, which creates the page that has uses ajax to trigger anothe

Re: [PHP] This, then that.

2007-10-19 Thread Wolf
actually, you could run it by 1. making the page 2. flushing the output buffer (which puts it in the screen) 3. run the 2nd script tedd <[EMAIL PROTECTED]> wrote: > At 12:06 AM -0400 10/19/07, Nathan Hawks wrote: > >If by "creates a web page" you just mean it echos output to the browser,

Re: [PHP] This, then that.

2007-10-19 Thread Zoltán Németh
2007. 10. 19, péntek keltezéssel 12.16-kor tedd ezt írta: > At 12:06 AM -0400 10/19/07, Nathan Hawks wrote: > >If by "creates a web page" you just mean it echos output to the browser, > >and you want to do something else after that, then: > > > >After you have sent your and have no more output for

Re: [PHP] This, then that.

2007-10-19 Thread Zoltán Németh
2007. 10. 19, péntek keltezéssel 12.07-kor tedd ezt írta: > At 8:19 PM -0400 10/18/07, TG wrote: > >Describe the process a little more. > > Ok, here's what I want to do. > > I want to prohibit an image from being shown to anyone who is not > permitted (i.e., logged in). > > The way I want to do

Re: [PHP] This, then that.

2007-10-19 Thread tedd
At 12:06 AM -0400 10/19/07, Nathan Hawks wrote: If by "creates a web page" you just mean it echos output to the browser, and you want to do something else after that, then: After you have sent your and have no more output for the browser, just use the include() function to run your extra proces

Re: [PHP] This, then that.

2007-10-19 Thread tedd
At 3:13 PM -0400 10/18/07, Robert Cummings wrote: On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? exec() Cheers, Rob. Rob:

Re: [PHP] This, then that

2007-10-19 Thread tedd
At 3:13 PM -0400 10/18/07, Robert Cummings wrote: On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? exec() Cheers, Rob. Rob:

Re: [PHP] This, then that.

2007-10-19 Thread tedd
At 8:19 PM -0400 10/18/07, TG wrote: Describe the process a little more. Ok, here's what I want to do. I want to prohibit an image from being shown to anyone who is not permitted (i.e., logged in). The way I want to do this is to: 1. Set the image permissions to 0640. That way no one can g

Re: [PHP] This, then that.

2007-10-18 Thread Simon
edirect. This is subject to user interference of course. > > > > Do you need it to spawn the other PHP script and exit or is it ok if it's a > > child process of the original php script (or whoever that works.. sorry, > > not 100% familiar with the internal s

Re: [PHP] This, then that.

2007-10-18 Thread Nathan Hawks
if it's a > child process of the original php script (or whoever that works.. sorry, > not 100% familiar with the internal stuff). > > -TG > > - Original Message - > From: tedd <[EMAIL PROTECTED]> > To: > Date: Thu, 18 Oct 2007 15:04:36 -0400 > Su

Re: [PHP] This, then that.

2007-10-18 Thread Daniel Brown
On 10/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: > > Hi gang: > > > > I would like to run a php script that creates a web page and AFTER it > > is finished creating the page, then it runs another php script -- how > > you do that? > > exec() >

Re: [PHP] This, then that.

2007-10-18 Thread Robert Cummings
On Thu, 2007-10-18 at 15:04 -0400, tedd wrote: > Hi gang: > > I would like to run a php script that creates a web page and AFTER it > is finished creating the page, then it runs another php script -- how > you do that? exec() Cheers, Rob. -- ...

Re: [PHP] This, then that.

2007-10-18 Thread Martin Marques
tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? CLI or apache2 module? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 -

[PHP] This, then that.

2007-10-18 Thread tedd
Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http: