Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Stuart Dallas
You're probably seeing references to the move_uploaded_file PHP function which is used when processing an HTTP POST file upload. However, the fact that a simple query like that didn't give you anything related should tell you how often FTP upload is integrated into a website. Modify your search

Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Jim Giner
Well, I'll take your word for it. As well as that of all the examples on Google that come up when looking for "php ftp uploads" which are NOT doing ftp uploads at all. Seems that many people are calling the 'move' of their file from one host folder to another an 'upload'. Thanks! -- PHP

Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Stuart Dallas
On Monday, 25 April 2011 at 01:24, Jim Giner wrote: because I've seen many comments in my research that ftp is better for larger > files. I'm trying to upload photos so I know that they can be big. Considering the number of websites out there that use HTTP POST for uploading photos I really don

Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Jim Giner
because I've seen many comments in my research that ftp is better for larger files. I'm trying to upload photos so I know that they can be big. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Stuart Dallas
On Monday, 25 April 2011 at 01:07, Jim Giner wrote: Hmmm... did not realize that. From all the code I examined I thought it > was looking at the client. > > So how does one do a file upload from the client to the host? Preferably > with ftp rather than http. FTP is a completely separate system

Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Jim Giner
Hmmm... did not realize that. From all the code I examined I thought it was looking at the client. So how does one do a file upload from the client to the host? Preferably with ftp rather than http. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] trouble using "is_file()"

2011-04-24 Thread Stuart Dallas
On Monday, 25 April 2011 at 00:26, Jim Giner wrote: I've got a d/e screen that collects a path and a file name. My script then > attempts to verify that the file exists before moving on to do things with > it. > I've displayed the combined fields and they are showing correctly - ie, > "c:\temp\e

[PHP] trouble using "is_file()"

2011-04-24 Thread Jim Giner
I've got a d/e screen that collects a path and a file name. My script then attempts to verify that the file exists before moving on to do things with it. I've displayed the combined fields and they are showing correctly - ie, "c:\temp\emax.pdf" as well as "c:/temp/emax.pdf" . But when I use th

Re: [PHP] str_replace

2011-04-24 Thread Richard Quadling
On 24 April 2011 16:44, Ron Piggott wrote: > > I am trying to figure out a syntax that will replace each instance of % with > a different letter chosen randomly from the string $puzzle_filler. > $puzzle_filler is populated with the letters of the alphabet, roughly in the > same ratio as they are u

[PHP] Re: htaccess question

2011-04-24 Thread Al
On 4/24/2011 5:48 PM, Al wrote: I want to restrict access to all files except one on my site and in parent dir. Thought this should work; but it doesn't. Order Deny,Allow Deny from all Allow from xx.36.2.215 xx.36.2.215 is actual value IP This file makes a captcha image and is called with

[PHP] htaccess question

2011-04-24 Thread Al
I want to restrict access to all files except one on my site and in parent dir. Thought this should work; but it doesn't. Order Deny,Allow Deny from all Allow from xx.36.2.215 xx.36.2.215 is actual value IP This file makes a captcha image and is called with in file /dir/control.php makeSco

Re: [PHP] str_replace

2011-04-24 Thread Stuart Dallas
On Sunday, 24 April 2011 at 16:44, Ron Piggott wrote: > I am trying to figure out a syntax that will replace each instance of % with > a different letter chosen randomly from the string $puzzle_filler. > $puzzle_filler is populated with the letters of the alphabet, roughly in the > same ratio a

Re: [PHP] str_replace

2011-04-24 Thread Adam Richardson
On Sun, Apr 24, 2011 at 11:44 AM, Ron Piggott < ron.pigg...@actsministries.org> wrote: > > I am trying to figure out a syntax that will replace each instance of % > with a different letter chosen randomly from the string $puzzle_filler. > $puzzle_filler is populated with the letters of the alphabe

Re: [PHP] str_replace

2011-04-24 Thread Daniel Brown
On Sun, Apr 24, 2011 at 12:33, Daniel Brown wrote: > >    I just mocked this up now, and only tested it twice.  It's not the > most elegant solution, and probably shouldn't be used in high-demand > situations, but it should at least serve to get you started. And since email wrecks code format

Re: [PHP] str_replace

2011-04-24 Thread Daniel Brown
On Sun, Apr 24, 2011 at 11:44, Ron Piggott wrote: > > I am trying to figure out a syntax that will replace each instance of % with > a different letter chosen randomly from the string $puzzle_filler. > $puzzle_filler is populated with the letters of the alphabet, roughly in the > same ratio as the

[PHP] str_replace

2011-04-24 Thread Ron Piggott
I am trying to figure out a syntax that will replace each instance of % with a different letter chosen randomly from the string $puzzle_filler. $puzzle_filler is populated with the letters of the alphabet, roughly in the same ratio as they are used. This syntax replaces each instance of % wi