hey, first off, thanks for having a look!
im helping out with the creation of a website, we have big aspirations but little experience with things.
anyway,
we have a php based image uploader and a flash based image gallery,
the uploader loads images into an uploads folder on our server and the flash gallery reads an xml file containing the links to that uploads folder.
but we have to create the links in the xml ourselves
we have hopes that the uploader.php will edit the xml file to add the new link, we know its possible because we’ve been reading the other xml editing posts on here, but they reference its use in flash, we dont have much of a clue when it comes to coding, (we’re more, hunter gatherers & cut and pasters) but would anyone have the patience to point us in the right direction?
this is the php code
<?php
if (isset($_REQUEST['form_submitted'])) {
require("./FileUpload.class.php");
$upload = new FileUpload($_POST['language']);
$upload->setMaxFilesize(220000);
$upload->setRejectExtensions('png, tif');
$upload->setAcceptableTypes('image');
$upload->setMaxImageSize(800,600);
$upload->setOverwriteMode(2);
$filename = $upload->upload("multiple", "./uploads/");
print("<h1></h1>
");
if ($filename) {
echo ‘<p style=“color:green”>’;
echo implode(', ‘, $filename) . ’ successfully uploaded’;
echo ‘</p>’;
} else {
echo ‘<p style=“color:red”>’;
echo $upload->getError();
echo ‘</p>’;
}
echo "<hr />
";
}
?>
any and all help or leads as to how we can accomplish this will be greatly appreciated!
thanks again for reading,
sm