Re: [PHP] Re: File Upload Problem [SOLVED]

2011-04-11 Thread tedd
At 10:07 AM -0400 4/11/11, tedd wrote: At 7:37 AM +0100 4/11/11, Ashley Sheridan wrote: "tedd" wrote: >So, knowing this -- does anyone have any idea as to what is wrong? What happens if you diff the various config files involved directly, php.ini, https.conf, any other site-specific *.conf

[PHP] Error in variable assignment

2011-04-11 Thread Ethan Rosenberg
Dear list - I an writing a script that will simulate a chess board. On a move from e2 to e6 [see below] the variable in e2 is never assigned to e6. Here are some code snippets: starting"; $results = array(array("Br", "Bn", "Bb", "Bq", "Bk", "Bb", "Bn", "Br"),array("Bp", "Bp", "Bp", "Bp",

Re: [PHP] Re: File Upload Problem

2011-04-11 Thread tedd
At 7:37 AM +0100 4/11/11, Ashley Sheridan wrote: "tedd" wrote: >So, knowing this -- does anyone have any idea as to what is wrong? What happens if you diff the various config files involved directly, php.ini, https.conf, any other site-specific *.conf files used by apache. Sometimes its a

Re: [PHP] Re: File Upload Problem

2011-04-11 Thread Hans Åhlin
I had some similar problem with Windows 7, it had to do with UAC and folder rights. Apache/PHP could read but not write to any dir except the ones that all users could write to. I solved it by allowing every one to read, write and change content in the directory where I needed PHP to handle/control

[PHP] stupid array question

2011-04-11 Thread Curtis Maurand
I have the following code which should increment the value of the array $iplist if there is a value there.  When I walk the array at the end, all the values = 1.  What am i doing wrong? --Curtis while (!feof($INPUTFILE))  {    $chunks = fgetcsv($INPUTFILE, " ", '"');    $firstpart = explode(" "

Re: [PHP] Silly question

2011-04-11 Thread Richard Quadling
On 11 April 2011 13:23, Stuart Dallas wrote: > On Monday, 11 April 2011 at 13:17, Curtis Maurand wrote: > Stuart Dallas wrote: >> > On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: >> > nevermind. There is a function: fgetcsv(); >> > >> > Ewww! >> >> Say what you want, it works. Your solut

Re: [PHP] Silly question

2011-04-11 Thread Stuart Dallas
On Monday, 11 April 2011 at 13:17, Curtis Maurand wrote: Stuart Dallas wrote: > > On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: > > nevermind. There is a function: fgetcsv(); > > > > Ewww! > > Say what you want, it works. Your solution is way more elegant. regex's are > not my strong

Re: [PHP] Silly question

2011-04-11 Thread Curtis Maurand
Stuart Dallas wrote: > On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: > nevermind. There is a function: fgetcsv(); > > Ewww! Say what you want, it works.  Your solution is way more elegant.  regex's are not my strong suit.  I have to have the regex pocket reference to understand that

Re: [PHP] Silly question

2011-04-11 Thread Stuart Dallas
On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: nevermind. There is a function: fgetcsv(); Ewww! http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/ -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > Curtis Maurand wrote: > > > > > > Hello, > > I'm trying to run th