Jump to content

Recommended Posts

$myFile = "testFile.html";
$fh = fopen($myFile, 'a');
$stringData = "$whatuwrote";
fwrite($fh, $stringData);
fclose($fh);

 

Something like that, Do you know how to put that into the middle of a file instead of writing it at the bottom of the page?

 

Example:

echo "hey";

echo "APPEND HERE";

echo "hey";

i mean, how do you know where in the middle to put the new content? if the content is this and you want to put something "in the middle", how do we know where to start?:

 

Ut autem crisare et dolore vel at duis

luptatum nibh nonummy augue feugait

ullamcorper quis ullamcorper praesent

dolore tation. Vel nulla blandit eros vel

delenit et ea eros nibh blandit quis

consectetuer commodo exerci eum.

Erat enim et commodo, ad augue ea

augue praesent feugait dignissim et velit.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.