This content has been marked as final.
Show 4 replies
-
1. Re: Proper PHP syntax for importing code (beginner)
bregent Jun 12, 2014 3:24 PM (in response to jyeager11)How about this:
-
2. Re: Proper PHP syntax for importing code (beginner)
jyeager11 Jun 12, 2014 4:21 PM (in response to bregent)bregent wrote:
How about this:
I know of this command, but I never used it in a context like this one. What would the proper syntax in this specific situation be?
-
3. Re: Proper PHP syntax for importing code (beginner)
bregent Jun 12, 2014 10:27 PM (in response to jyeager11)The only required parameter is the filename, so try something like:
$newpost = file_get_contents ('./myfile.txt');
-
4. Re: Proper PHP syntax for importing code (beginner)
jyeager11 Jun 13, 2014 8:39 AM (in response to bregent)I thought I had tried it that way but apparently I hadn't, because it worked. Thanks!


