I downloaded codec and still cant get the file to play? Help please

I used video inspector to identify that i need the divx 5 codec everything seems to be fine but i still cannot play the file.. i downloaded it from ares and the video inspector says the movie is not complete. So every time that I try to open the file with windows media player it says the file is corrupt/and or not supported. *file Type* Please help reply

WMP won’t play incomplete avi’s. It’s something EVERYONE hates and that microsoft won’t fix.
I suggest playing the file with a different player such as avipreview or media player classic instead.
avipreview: www.avipreview.com
media player classic: www.gabest.org (follow the links) reply


Hi Lewis,I’m sorry you’re finding the code diflfcuit to follow. The reason for using an include file in this particular case is to make the code more modular. It’s designed to work with any multi-page form regardless of the number of pages or what they’re called. As a result, you need to work with variables, which can make the code more diflfcuit to understand. However, it’s relatively simple.As the book explains in step 3 on page 274, $filename contains the name of the current page, and $current contains the full URL of the current page. The PHP str_replace() function takes three arguments: the value you want to replace, the value you want to use instead, and the original string that you want to alter (the target string ). So, if $filename is multiple_01.php and $nextPage is multiple_02.php, $redirectNext = str_replace($filename, $nextPage, $current); stores the full URL of multiple_02.php in $redirectNext.You’re not overwriting the current page, you’re passing its URL as an argument to str_replace() to create the URL of the next page. If it helps you to understand the code better, use echo to display the value of each variable. Doing so will prevent the redirect from being executed, but once you understand what each variable is storing and how str_replace() works, the code should become clearer.Now, to your second point:if ($filename != $firstPage !isset($_SESSION['formStarted'])){ //redirect code;}As it explains on page 274, basename($_SERVER['SCRIPT_FILENAME']) gets the filename of the current file, and stores it as $filename. So, when the first page is accessed, the value of $filename is multiple_01.php. When the second page is accessed, it’s multiple_02.php, and so on. Consequently, on the second page, $filename and $firstPage will have different values. And if $_SESSION['formStarted']) doesn’t exist, you know the first page of the form hasn’t been filled in, so the script redirects the user to the first page.Finally, the meaning of this line:$temp = is_array($value) ? $value : trim($value);$value contains the value of the current element in the $_POST array. In most cases, this will be a string, which can safely be passed to trim(). However, when the form submits a checkbox group or a multiple-choice list (see PHP Solutions 5-9 and 5-11), the values are sent as an array. The trim() function generates an error if you pass it anything other than a string or number. Using the ternary operator makes sure that arrays are assigned directly to $temp, but all other values are first stripped of leading and trailing whitespace.I hope those explanations clear up the mystery for you. When I wrote the first edition of PHP Solutions, I agreed with my editor to leave out explanations of the more complex parts of the code, because it was common for readers to just want to copy and paste the code. But I’m delighted that people like you are probing more deeply into the meaning. If the book ever goes to a third edition, I’ll take more time explaining the reasoning behind the code. reply


My brother downloaded codec and still cannot play Xvid films. Can anyone help with this problem? reply


Post Your Answer

Your reply
Your name
or log in
Verify you're human

By submitting this form you agree to our posting rules,
privacy policy and our disclaimer.