PHP XML help

0 views
Skip to first unread message

Scott Blackburn

unread,
Nov 21, 2007, 7:46:39 AM11/21/07
to resi...@googlegroups.com
Hi,
This looks like a great little slideshow! I'm currently trying to
develop a flash CV builder so that users can upload their own content
using flash(file reference). I'm trying to use PHP to generate the XML
to populate a swf template but I'm having a few problems.

 It appears this system uses a similar technique, however I notice you
are not generating an external XML file. Is there any chance of
getting the full app (including FLA) to see how this all fits
together? I'm a PHP novice so I'm just trying to get the basics.

Any help would be greatly appreciated

Regards,

Scott




The next generation of MSN Hotmail has arrived - Windows Live Hotmail

m@

unread,
Nov 21, 2007, 12:16:03 PM11/21/07
to Resistor
Here are a few references to help you out with PHP.

Create a directory for each user
http://us2.php.net/manual/en/function.mkdir.php

Adjusting File/Folder Permissions with PHP
http://us.php.net/manual/en/function.chmod.php

PHP File Uploading
==================

HTML Form

<form enctype="multipart/form-data" action="uploader.php"
method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br /
>
<input type="submit" value="Upload File" />
</form>

PHP Code

<?
$target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']
['name']);

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
$target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
?>

That's the basic of file uploading, that should get you started in the
right direction!



Hey Scott,

Thanks for the kind words, but the script does generate a list for the
SWF slideshow. You may have renamed images.php if you did that might
be why it's not working correctly. Otherwise it should be easy to use,
just drop it in and go.

If you want your users to upload content then you need a php upload
script, and have them upload images to the slideshow directory.

If I was going to use dynamic flash in a community environment, I
would probably setup a folder per member, so each member has their own
slideshow folder to add images to.

http://domain.com/members/scott/slideshow/

Sometime in the future I plan on adding the source FLA files to the
project. Hope that helps.

darloScott

unread,
Nov 26, 2007, 3:58:41 AM11/26/07
to Resistor


On Nov 21, 5:16 pm, "m@" <mattw...@gmail.com> wrote:
> Here are a few references to help you out with PHP.
>
> Create a directory for each userhttp://us2.php.net/manual/en/function.mkdir.php
>
> Adjusting File/Folder Permissions with PHPhttp://us.php.net/manual/en/function.chmod.php
Thanks you both for your help, I have managed to use the links you
have provided to setup folders/permissions. I'm working on the
uploading now. I'm also trying to use PHP to write XML files and also
modify files. I'm struggling to find much accurate information on
this, any ideas?

Anyway when it's all hosted and working I'll put up a link on here..

Thanks for the support,

Scott
Reply all
Reply to author
Forward
0 new messages