On 05 September 2003 19:44, Chris Sherwood wrote:
> this is a sample of what I do when I need to write a php file
>
> $stringtowrite = " forum\n$"."ForumId=".$tabletofind.";\n";
>
> $stringtowrite .=
> "$"."ForumActive='1';\n$"."ForumName='".$sportname."';\n";
>
> $stringtowrite .= "$".
this is a sample of what I do when I need to write a php file
$stringtowrite = "
> Vince LaMonica wrote:
>
> > I wish to use fwrite() to create a small PHP file. So far, when I
attempt
> > to do this, php parses the contents of the file that fwrite needs to
> > create. Eg, I have this:
> >
> > $ne
Vince LaMonica wrote:
I wish to use fwrite() to create a small PHP file. So far, when I attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
$new_id = mysql_insert_id();
// create brand new file
$new_file = fopen("/var/www/html/$sitename/$submitted_
20 AM
To: PHP-General
Subject: [PHP] using fwrite to create PHP files
Hi all,
I wish to use fwrite() to create a small PHP file. So far, when I attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
$new_id = mysql_insert_id();
// create brand new fi
[snip]
I wish to use fwrite() to create a small PHP file. So far, when I
attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
[/snip]
Vince I did this
\n");
fclose($newphp);
?>
And it worked fine. fputs() places the string in the file properly. I
Hi all,
I wish to use fwrite() to create a small PHP file. So far, when I attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
$new_id = mysql_insert_id();
// create brand new file
$new_file = fopen("/var/www/html/$sitename/$submitted_url", "w");
$
6 matches
Mail list logo