Re: Question about warning generated by script
| From: | Pete Ford | Date: | Fri, 24 Mar 2017 08:52:48 +0000 |
| Subject: | Re: Question about warning generated by script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326028@lists.php.net to get a copy of this message | ||
On 24/03/17 05:16, Jeffry Killen wrote:
Hello; This script line is generating a warning, but It doesn't really say what the problem is. The warning is "Warning: file_put_contents(<contents of the file truncated>&...)<path to script file and line number>" Is this too much to put in one line like this? file_put_contents(str_replace('_LAB_LABEL', '_'.strtoupper($_labName), file_get_contents(self::$_labTemplate)), $_labName."/index.php"); Thanks for time and attention; JKYou've got the parameters the wrong way around - filename should be first, and then the content... Cheers Pete