Jump to content

noxiousfix

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

noxiousfix's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i have and it doesn't. i went to their forums and the only thing i found were hacks. i might abbandon this idea altogether. i just cant get it to work. but get this: i tried another swf player that had an xml file. the xml set the parameters for bgcolor, width, blah and blah. not to mention the playlist. i was able to change the parameters of the swf file thru xml output but it wouldn't play the mp3. i litterally tried everything. every other parameter was able to be manipulated in some way. color, height, width, font, everything... all except for the mp3. i read in another forum about UTF-8 ecoding. what does that mean? it said something about the xml being UTF-8 encoded and sometimes the data from the mysql query isn't and it could cause problems. so i checked mysql table columns and all are set to UTF-8_general_ci. do you think it would be a problem with how the database is sending the information? php can read and process it but flash won't because of encoding? hey, thanks for all the help too btw. this is my day off so i'll be in and out of here all day more than likely checkin on this until i just give up and go on to something else. thing is, i don't want to give up just yet. welp, off to search other forums for the magic wand that brings this script to life...
  2. (slaps forehead) hadn't thought of that. slick idea. ok, so i saved as .xml and guess what? the xml file works perfectly sitting right next to the .php file that should be. i'm really lost now. how can i get this to work? i have no idea what's wrong. thanks for the help though. i'm kinda slow at somethings......
  3. i'm not exactly sure how to do that. i'm kinda new when it comes to all this. i've only recently (past 2 months) gotten into php and mysql.
  4. i dont know if i can use a mod-rewrite. i'm not using apache server. i'm using abyss web server and it doesn't have that function. i don't think it'll work without it either. i have the appropiate header and all info intact but the player just says "loading playlist" but never loads...
  5. i'm trying to to use php to output xml populated from mysql. i have it working no prob. what i'm trying to do is get a swf. mp3 player to recognize the xml in the php for it's playlist. how do i do this? the <embed src> calls for an xml file. how do i get the player to see the php and make it think it is an xml file? any help would be greatly appreciated. thanks in advance
  6. uh... i appreciate the help but it was over my head. i didn't want to add anything to database, just query and add $user_uname to the directory path the make a folder in the users name... sorry, but you def. lost me on that one!
  7. i'm a n00b and need some help with a simple upload script. I have ImpressCMS installed and I'm not satisfied with any of the upload modules i've found. all i want is something simple so members can upload their own mp3s to a directory with their username (created upon first upload). I have: ///////////////////////////////////////////////////////////////////////////////////// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title></title> <link rel="stylesheet" type="text/css" media="all" href="../../../themes/noxiousfix/style.css" /> </head> <body> <table><tr><td> <?php include("../../../mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); $dir = "/htdocs/music/user_submitted/"; //Change this to the correct dir RELATIVE TO WHERE THIS SCRIPT IS, or /full/path/ //MIME types to allow, Gif, jpeg, zip ::Edit this to your liking $types = array("application/pdf","image/png","image/x-png","audio/mpeg","image/gif","image/jpeg","image/pjpeg"); //Check to determine if the submit button has been pressed if((isset($_POST['submit'])) and ($_POST['PW'] == $pw)){ //Shorten Variables $tmp_name = $_FILES['upload']['tmp_name']; $new_name = $_FILES['upload']['name']; $path = $_POST['subdir']; $fullpath = "$dir$path/"; $fullpath = str_replace("..", "", str_replace("\.", "", str_replace("//", "/", $fullpath))); $clean_name = ereg_replace("[^a-z0-9._]", "", str_replace(" ", "_", str_replace("%20", "_", strtolower($new_name) ) ) ); // lets see if we are uploading a file or doing a dir listing if(isset($_POST['Dir'])){ echo "Directory listing for $fullpath\n"; scandir("$fullpath"); }else{ //Check MIME Type if ((in_array($_FILES['upload']['type'], $types)) and (!file_exists($fullpath.$clean_name))){ // create a sub-directory if required if (!is_dir($fullpath)){ mkdir("$fullpath", 0755); } //Move file from tmp dir to new location move_uploaded_file($tmp_name,$fullpath . $clean_name); echo "$clean_name was uploaded sucessfully"; }else{ //Print Error Message echo "<small>File <strong><em>{$_FILES['upload']['name']}</em></strong> Was Not Uploaded - bad file type or file already exists</small><br />"; //Debug $name = $_FILES['upload']['name']; $type = $_FILES['upload']['type']; $size = $_FILES['upload']['size']; $tmp = $_FILES['upload']['name']; echo "Name: $name<br />Type: $type<br />Size: $size<br />Tmp: $tmp"; } } } else { echo 'Ready to upload your file'; } ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <legend class="header" style="width:98.2%">Upload Files</legend><br> Please make sure your mp3 ID tags are correct and complete before upload.<br> File to upload: <br><input type="file" name="upload" /><br><br> Folder to create/use:<br><input type="text" name="subdir" value="<?php $path = $_POST['subdir']; echo "$path";?>" /> **Must specify<br /> <input type="submit" name="submit" value="Upload File" /> </form> </td></tr></table> ///////////////////////////////////////////////////////////////////////////////////// this code allows anyone to choose an upload and create a directory within my upload directory root. i cant figure out how to make this script recognize the user by name and then create a directory using their uname.... i'm not asking for someone to do this for me, but it would be awesome if some could at least point me in the right direction. thanks in advance... =)
×
×
  • 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.