Hi David,
Hope life is treating the golden touch well.
As you know I use a file splitter to break huge feeds into smaller niches.
I found that I can unset a feed on the other domain after I fetch them.
But can't seem to create an empty place holder on the other domain.
I've tried fwrite w, w+, a, r, & r+ but always get a wrapper error.
I tried a couple of curl scripts and tried them to. No Joy.
So that brings me to Mr. Midas.
Posted here so anyone that needs to do this can.
Bob L.
Bob L.
Hi David,
I must have deleted the file from the site I was trying.
It was really close to this text, but I also was looping thru an array of files that I pulled from that domain.
<?php
$myfile = fopen("http:\\www.example.com\feeds\newfile.txt", "w") or die("Unable to open file!");
$txt = "\n";
fwrite($myfile, $txt);
fclose($myfile);
?>
Bob L.
Hello Bob,
PHP's URL wrappers only provide read access to http URLs. To write to a file, you'd need to use the full file system path to the corresponding folder on the other installation (and must be on the same server), for example;
<?php
$myfile = fopen("/home/example/public_html/feeds/newfile.txt", "w") or die("Unable to open file!");
$txt = "\n";
fwrite($myfile, $txt);
fclose($myfile);
?>
(if you're not sure of the file system path to the web root directory of the other installation see the Install Path value in /admin/ > Support Info)
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Bob L.
Thanks David,
I'll give that a try as I do know the user root.
Bob L.
Hello Bob,
Please could you post an example of the code that you have tried so I can see where / how you're trying to create the placeholder and I'll check it out for you...
Thanks,
David.
--
PriceTapestry.com