Jump to content

Need help writing to an HTML file using base tags


eldan88

Recommended Posts

Hey Guys. I am trying to write to an HTML and attach that file for an efax API. One of the file types they accept is HTML, but it has to be in a <base> tag format. I am a little confused on how to do that. I tried to use fopen with the base tag but it didn't seem to work for me. I got the following error

 

Warning: fopen(<base a href='96401.html'></base>) [function.fopen]: failed to open stream: No such file or directory

 

Ideally what I am trying to accomplish is creating a file that just says 96401.html.

 

Below is the code that I have tried it with. Any help would be really appreciated!!!

$orderFile = "<base a href='".$id.".html'></base>"; // File name to be created. order id is used as a file name e.g. 123456.html
	//$fh = fopen($orderFile, 'w') or die("can't open file"); // Create and Save the writeable File
	//fwrite($fh, $order_information); // Write email contents to created file.
Link to comment
Share on other sites

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.