Re: Changes to php code not being reflected in results.

From: Date: Mon, 13 Jan 2025 00:06:16 +0000
Subject: Re: Changes to php code not being reflected in results.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-328600@lists.php.net to get a copy of this message
Thank you for your response; The $_a argument is $_GET and the 'NE_date' is a key. But I have been poking around and found out that somewhere the revisions to the source code files were not being saved where they would be reread. I don't exactly know where or why but I suspect between BBEdit and Fetch the revisions were not being saved. Generally I have Fetch set up to open files in BBEdit. Sometime if I change the access perms for a directory and do not reload the Fetch window (CMD-R), the change has no effect. BUT, this has not been an issue until now, on this platform. I have many years of development on localhost on Mac systems with Fetch and BBEdit. It is still not solved completely but at least I am not getting any more complaints. Thank you again for time and attention: JK > On Jan 12, 2025, at 3:17 PM, Aziz Saleh <azizsaleh@gmail.com> wrote: > > This error basically is saying that the variable $_a does not have an item called NE_date. > Where are you getting that $_a from, you can do var_dump($_a) to see what it contains, if anything. > > On Sun, Jan 12, 2025 at 6:06 PM Jeffry E Killen <jekillen@prodigy.net > <mailto:jekillen@prodigy.net>> wrote: >> There are other pieces of info that may make a difference: the php version used by MAMP, >> here, is 8.2.20 >> it is running Apache. Port is set to 80 (I turned off the resident apache). PHP cache is >> set to OPcache >> >> > On Jan 12, 2025, at 2:55 PM, Jeffry E Killen <jekillen@prodigy.net >> > <mailto:jekillen@prodigy.net>> wrote: >> > >> > Hello; >> > >> > I am using MAMP on MacOS Sequoia and am working on a project on >> > localhost that writes to files from user input. >> > >> > This is intended for private use without any outside input. >> > >> > But I am trying to make revisions to code to correct issues that are cropping up: >> > >> > Here are the complaints: >> > >> > <b>Warning</b>: Undefined array key "NE-date" in >> > <b>/Applications/MAMP/htdocs/newJournal/php/journalProc.php</b> on line >> > <b>131</b><br /> >> > <br /> >> > <b>Deprecated</b>: explode(): Passing null to parameter #2 ($string) of >> > type string is deprecated in >> > <b>/Applications/MAMP/htdocs/newJournal/php/journalProc.php</b> on line >> > <b>131</b><br /> >> > <br /> >> > <b>Warning</b>: Undefined array key 1 in >> > <b>/Applications/MAMP/htdocs/newJournal/php/journalProc.php</b> on line >> > <b>133</b><br /> >> > <br /> >> > <b>Warning</b>: Undefined array key "" in >> > <b>/Applications/MAMP/htdocs/newJournal/php/journalProc.php</b> on line >> > <b>133</b><br /> >> > <br /> >> > <b>Warning</b>: Undefined array key "started" in >> > <b>/Applications/MAMP/htdocs/newJournal/php/journalProc.php</b> on line >> > <b>54</b><br /> >> > <br /> >> > <b>Warning</b>: Trying to access array offset on value of type null in >> > <b>/Applications/MAMP/htdocs/newJournal/index.php</b> on line >> > <b>43</b><br /> >> > >> > You will see in the first line of the warnings: NE-date. I have changed that to >> > NE_date. But several tries have produced the same result. >> > Is there some php cache that is not being cleared? >> > I have a basic setup with Fetch as the FTP client and BBEdit as my text editor. I use >> > an FTP client on local host because I want copies of placed >> > files and not the files themselves and Mac leaves finder related files in directories >> > it is used to read. With and >> > FTP client that does not happen. >> > Here is a snip of the code that is generating the first 4 warnings >> > file_put_contents('test.txt', 'This date submission: >> > '.$_a['NE_date']); // line 131 >> > $_parts = explode(' ', $_a['NE_date']); // line 131 >> > $_dirName = self::$_archDir.'/journal_'.$_parts[0]; // line 133 >> > $_fileName = >> > $_dirName.'/mon_'.self::$_monTranslater[$_parts[1]].'.js'; // 133 >> > This is async submission >> > >> > Thank you for time and attention >> > JK

« previous php.general (#328600) next »