-
Convert to MP4 (ffmpeg)
Hi, i have 0 previous experience working with uploading files with PHP, let alone handling the conversion as well. I need to learn how to offer a video upload service that can convert commonly used video files to .mp4. I have found that the issue when Googling this kind of thing is that it is extremely hard to find a detailed source or tutorial to follow and learn from. Everyone that knows how to do this and has bothered to write a tutorial or provide a source code does so with very little detail to help people with less previous experience than themselves. I find that within a few lines of reading i am already lost, purely because they don't explain things in enough detail. Thanks in advance.
-
Notice: Undefined index: username
Thanks a lot, working perfectly
-
Notice: Undefined index: username
So, i keep getting this error on any pages containing my login page: Notice: Undefined index: username in ...\www\index.php on line 5 This is all of the relevant PHP: <?php ob_start(); session_start(); $session_username = $_SESSION['username']; if (!isset($session_username)) { $loginform =(" <form method=\"POST\" action=\"loginform.php\"> <a>Username</a><input name=\"username\" type=\"text\" size=\"6\" maxlength=\"12\" /> <a>Password</a><input name=\"password\" type=\"password\" size=\"6\" /> <input style=\"width: auto; border: 3px double #000; border-top-color: #CCC; border-left-color: #333; padding: 0.25em; background-color: #333; background-repeat: repeat-x; color: #FFF; font-size: 70%; font-weight: bold; font-family: Verdana, Helvetica, Arial, sans-serif;\" type=\"submit\" name=\"login\" value=\"Login\" /> </form> "); exit(); } else { $loginform = "<a id=\"mainText\">Logged in as</a>, <a id=\"authorText\">".$session_username."</a>. | <a id=\"mainText\" href='logout.php'>Log out</a>"; } I have been looking around, and it seems it is being caused by me calling username when it isn't set. I can't work out how to fix this :S Any ideas? Thanks.
-
Generate a page through PHP
Thanks a lot for the replies. I now have this sorted I really appreciate the help
-
Generate a page through PHP
Well, i want to create a brand new HTML file from a preset template (things like title, main text etc would be entered into the form). I know that there are ways using MySQL and GET, but i'd rather have an entirely new page. Hope this helps you understand.
-
Generate a page through PHP
Hi, i am looking to create a PHP page that would have a submission form that when submitted creates a new page based on the contents of the page. For example, there could be a YouTube link field which would then display that video on the page generated to blah.com/videos/randomurl.html. I'm unable to find anything on Google as i keep getting results for creating PHP pages in the sense of a starter PHP tutorial. Thanks in advance.
-
Making it big without money or a university
I suppose it depends on what you consider to be successful. I know of a few people that have sites with thousands upon thousands of registered users, with thousands that return daily. They were earning a good few thousand per month, and they were just basic vBulletin forums. Personally, i would consider that exceptionally successful. Making over $1,000 per month seems very decent when you think about how much moderation a forum realistically takes (no necessary design requirements, initial management may be significant but with a few willing "employees", whether they be real-life acquaintances or willing members, and the right amount of effort it is not particularly comparable to what a site may take to create from scratch). But, as i said, that is based on my perception of what is making it big/being successful.