php-general Digest 24 Apr 2011 15:44:47 -0000 Issue 7282

2011-04-24 Thread php-general-digest-help
php-general Digest 24 Apr 2011 15:44:47 - Issue 7282 Topics (messages 312466 through 312467): Re: webserviceX.net? 312466 by: jomali str_replace 312467 by: Ron Piggott Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net

[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 %

Re: [PHP] str_replace

2011-04-24 Thread Daniel Brown
On Sun, Apr 24, 2011 at 11:44, 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 alphabet, roughly

Re: [PHP] str_replace

2011-04-24 Thread Daniel Brown
On Sun, Apr 24, 2011 at 12:33, Daniel Brown danbr...@php.net 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

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 alphabet,

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 as

[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. Files * Order Deny,Allow Deny from all Allow from xx.36.2.215 /Files xx.36.2.215 is actual value IP This file makes a captcha image and is called with img

[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. Files * Order Deny,Allow Deny from all Allow from xx.36.2.215 /Files xx.36.2.215 is actual value IP This file makes a captcha image and

Re: [PHP] str_replace

2011-04-24 Thread Richard Quadling
On 24 April 2011 16:44, 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 alphabet, roughly in the

[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 that

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,

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:

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
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: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

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
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