php-general Digest 12 Apr 2011 01:37:56 -0000 Issue 7269

2011-04-11 Thread php-general-digest-help
php-general Digest 12 Apr 2011 01:37:56 - Issue 7269 Topics (messages 312335 through 312337): Re: File Upload Problem 312335 by: tedd Error in variable assignment 312336 by: Ethan Rosenberg Re: File Upload Problem [SOLVED] 312337 by: tedd Administrivia: To

Re: [PHP] Re: File Upload Problem

2011-04-11 Thread Louis Huppenbauer
Is there already a file with the same name? Apparently copy won't overwrite a file on windows if it already exists. Maybe you have the same problem ffproberen2 at dodgeit dot com had on the php.net/move_uploaded_file manpage? 2011/4/10 tedd tedd.sperl...@gmail.com: At 7:15 AM +0200 4/7/11,

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

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 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 suit. I

Re: [PHP] Silly question

2011-04-11 Thread Richard Quadling
On 11 April 2011 13:23, Stuart Dallas stu...@3ft9.com 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

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

Re: [PHP] Re: File Upload Problem

2011-04-11 Thread tedd
At 7:37 AM +0100 4/11/11, Ashley Sheridan wrote: tedd tedd.sperl...@gmail.com 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

[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: ?php session_start(); session_name(Chess); error_reporting(1); if ($_SESSION['flag'] != 1) { $flag = 1; echo br

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 tedd.sperl...@gmail.com 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