Jump to content

uknowho008

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Everything posted by uknowho008

  1. is it memory_limit? it was set lower than the video. but i fixed it and its still not working.
  2. cool thanks, ill try and figure it out.
  3. can i fix that in the ini file? i dont remember exactly where it is on the server.
  4. does anybody have any ideas? im still stumped.
  5. oh ok, i should have just looked it up but my brain is dead from trying to figure this crap out.
  6. weird huh? whats the purpose of basename()?
  7. yeah, for all but some random wmv files. its worked for everything.
  8. its kinda difficult because there in functions and its kind of a mess. but heres what i can do. function VideoUploadForm() { $Page = $_SERVER["REQUEST_URI"]; echo <<<HTML <table>   <tr><th>Videos</th></tr>   <tr><td><form method="post" action="$Page" enctype="multipart/form-data">   Title: <input type="text" name="Title"></td></tr>   <tr><td>Downloadable: Yes <input type="radio" name="Down" value="1"> No <input type="radio" name="Down" value="0" checked></td></tr>   <tr><td> HTML; SelectBox(Interests, Title, "", "WHERE MediaAllowed=1"); echo <<<HTML   </td></tr>   <tr><td><textarea class="about_me" name="Body"></textarea></td></tr>   <tr><td><input class="input" type="file" name="File" /></td></tr>   <tr><td><center><input type="submit" name="SubmitVideo" value="Submit" /></center></form></td></tr> </table> HTML; } goes to the same page where this is if(IsSet($_POST["SubmitVideo"])) { SubmitVideo(); } else { VideoUploadForm(); } function SubmitVideo() { $Title = PostClean("Title"); $Cat = PostClean("InterestsTitle"); $Body = PostClean("Body"); $Down = PostClean("Down"); echo $_FILES["File"]["type"]; /* if(!$Title OR !$Cat OR !$Body OR !$_FILES["File"]["type"]) {   echo "Your missing some information.";   VideoUploadForm(); } elseif($_FILES["File"]["type"] == ("video/mpeg" OR "video/mpg" OR "video/mpe" OR "video/x-msvideo" OR "video/avi" OR "video/x-ms-wmv")) {   $Me = $_SESSION["Me"];   $Date = mktime();   $Rand = Rand();   $url = "$Me" . "n" . "$Rand" . "n" . $_FILES['File']['name'];   copy ($_FILES['File']['tmp_name'], "post_media/$url")   or die ("Could not copy");   $insert_sql = "   INSERT INTO Posts(Type, UserID, Category, Title, Body, Date)   VALUES ('5', '$Me', '$Cat', '$Title', '$Body', '$Date')   ";   mysql_query($insert_sql) or die("Bad query");   $PostID = mysql_insert_id();   $insert_sql = "   INSERT INTO PostMedia(PostID, Type, URL, Download)   VALUES ('$PostID', '5', '$url', '$Down')   ";   mysql_query($insert_sql) or die("Bad query");     redirect("videos.php?ID=$PostID"); } else {   echo "Videos must be in mpeg or wmv format";   VideoUploadForm(); } */ } the code for video upload is in quotes because i added the echo file type to see what it is outputing and it just sends me back to the upload form. thanks
  9. im using php to upload videos in wmv and mpg format to my webserver.  it all seems to work fine until i upload certain wmv's. some work and some dont. for some reason for certain wmv's its as if there was no post at all. i tried echoing the file type just to see what would come up and for the videos that work is would come up with video/ms-wmv or whatever but for the ones that dont seem to work it doesnt do anything.  it doesnt even seem to post anything through the html form. does anybody have a clue as to why this could be happening? im completely stumped.
  10. yes they're on the same server. i thought it was going to have to be way more complicated than that. thanks.
  11. im trying to find a good system for tranfering data from one database to another database with a different table orginization. so i need to get the data from one and then insert it into another database but broken up into different tables that ive created. does anybody have a good system for this? my biggest obsticle is switching between the two databases.
  12. one more thing, how would i put a <br wherever there is a line break?
  13. i need help finding a tutorial on how to convert tags such as this [IMG]http://url[/img] to <img src="url" /> for my forum can anybody help me find one? or show me how to do it? i have no idea what to search for. thanks
  14. well.. the problem with that is i need to compare the time from 30 minutes earlier to the times in the database. so i need to change the times in the database to unix timestamps instead of the way it is now. thanks for all the help though. im not mad im just frustrated. haha. it would all be so much easier if it just subtracted it for me. ughh..
  15. yes i realized later that i should be using unix time stamps. but i didnt really feel like converting everything in my database to unix timestamps. i dont understand why mysql uses this format if unix is normally used. the type field was set to TIMESTAMP >:( so how do you suggest i convert my database to unix timestamp instead of this format then i guess?
  16. please ignore the 1440 it should be 1800. haha. my bad
  17. so im trying to work with dates. im trying to make a variable with the timestamp for 30 minutes ago. how do i make it give me an integer instead of somthing like this 2.00607252015E+013? this $date = "20060725202938"; $last_30min = $date - 1440; echo $last_30min; outputs this 2.00607252015E+013
  18. is it possible to do this with wmv's?
  19. oh.. cool. there we go. thanks. i think thats all i need.
  20. just one problem actually. how can i make this save a new copy of the image so that i can embed it wherever i want it?
  21. hey thats awesome. and a lot simpler than i thought it would be. i think thats the best help ive ever gotten from a forum. haha. thanks man
  22. cool.. thanks, ill try and figure this out.
  23. whats up guys. ive been searching around and im trying to find a tutorial or somthing on how i can add text to images that are uploaded to my website. i used one of the basic image upload tutorials as a base for my upload form. so i just need to figure out how to add KorrupT Industries to the bottom right of the images. thanks
×
×
  • 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.