Jump to content

Using fwrite with variables attached


lunny

Recommended Posts

Hi,

 

I am trying work with fwrite() to write some information to a seperate URL from a php page. I am trying to send a variable with some data but this isnt working for me.

 

For example

 

$fp = fopen($filename, 'w+');

fwrite($fp,"<?php

          $test = 'Hello';

  ?>");

 

It doesnt work I get parse errors any ideas why ?

Link to comment
https://forums.phpfreaks.com/topic/45275-using-fwrite-with-variables-attached/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.