Added: 4 years ago
From: ZloolS
Views: 12,435
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (79)

Sign In or Sign Up now to post a comment!
  • where did u go, or do to see the final product with both html pages? and Thnx awsome!

  • May I ask for a sample file for everyting that works?

  • lame music ... sorry

  • Ha Ha you figured out how to do this too! I set mine up a while ago using include()

  • What part of the code do you place on the comment box, where the comments are shown?

  • The only time you would use this type of commenting system is for quick demo's to show clients where a commenting system would be in place. If you want to make a real commenting system use a database. This is just a quick and friendly way to make a commenting system for show purposes.

  • By doing this, does it give each comment is own div to actually style up or what ever or?

  • @harmzen nope, not at all.

  • what if i want to delete the comment?

  • I have an error!!! :O Am I supposed to include the "/youtube" folder in my version? If not, what do I replace it with!?

  • Hi can I email you the files i made while watching this tutorial and could you tell me what i am doing wrong?

    Private message me if thats cool with you.

    Thanks

  • SHEEESH you guys should look up php beginning tutorials before you come here -.- asking obvious questions...

  • I get the "There was an error, please try again later!" when try to comment.. I've checked everything and it seems to be just like you wrote it.

    Anything I have to do besides this guide? I've made the empty comments.php file and uploaded everything to a ftp server.

  • where the hell did the index.php at 8:56 come from?! all i get was

    Message:

    " .$message. "

    ": fwrite($fp). $outputstring. strlen($outputstring)): fclose($fp): echo "your comment was posted succesfully. Click here to continue.": } ?>

  • my comments are not being stored and are dissapearing, even though I have a file called comments.php. How do I get them to go in there and be saved? Is it possible to have the comments directed to be saved in postform.html and change the name to postform.php?

  • hey, total n00b here. i really like this idea, becasue I don't want a login for my current project, and every other tutorial requires a login set-up first. lol I am totally new to php and I would really appreciate it if someone could tell me how to create an 'empty file' for the comments. Does that mean I write nothing at all in it, or do I still set it up with html headings and have a place where the messages fall into? i dunno wat I'm doing wrong :P

  • at 5:25, where tha hell did you come out with "/youtube/comments.php"?????!!­!

  • @Turokcito2 "/youtube/" means a folder called "youtube" and "comments.php" is the file I am writing to.

  • @ZloolS so, do you need to create an empty flie or something?

  • @Turokcito2 Yes, I forgot to mention that in the video but you need to create an empty file called "comments.php" that will be written to.

  • @ZloolS

    oooh! got it =)

    now, if it's not too much to ask, how do you make the comments appear in your page (you know, where there is the form) with the rest of the messages posted?

  • What's the PHP code for recieving the comments on the HTML page?

  • There are a lot of people here who don't have a clue what they're doing.

  • Doesn't seem to be very safe, what would happen if you put a script in the message?

  • Excellent! Thanks !!

  • If people don't know that it won't work you need to put a comment over the video on what that character is because no sod cant tell, and you waste everyone's time.

  • Instead of "Comment posted etc" you can put

    header( 'Location: index.php' ) ; //Or .html if the index page is a html page

  • how do you do the part where the comment shows up on the page?

  • Comment removed

  • What is that first letter in line 9? (php code at 4:55)

    it looks like an "a" but not sure.

    This is the error I get:

    Parse error: syntax error, unexpected T_VARIABLE in /home/nellycle/public_html/med­iafashionlife/2/postcomment.ph­p on line 9

  • yes what is he letter at 4:55

  • @araregoodguy

    its a "@"

  • @MediaFashionLife

    its a "@"

  • please no work wi need the code please

  • yo can you gimmie the code then i can just tweak it?

  • You lol so much . . .

  • did you see those codes are far from the output..wrong codes..you have to download wamp to see if it is working or not..wtf..lol

  • same error with me too !! what to do ??

  • cant u just message me the php code n shit or something, youtube aint got the best quality ya know n i probly mistyped some shit on that php code haha i got the same problem as unvailable68

  • can send to me the php code because i really can see it ...thanks

  • ii get this

    Parse error: parse error in ..../postcomment.php on line 8

  • so we need to make a index.php too

  • Like the site like the videos!

  • You dummies you need to upload it on the web to make it work or find special software. PHP is SERVER-SIDE language and just your browser will not show it...

  • i did everything you did i made file postcomment.php and i have on my dekstop but when i submit my message it shows this ....

    Name: " .$name. "

    Comment:

    " .$message. "

    "; fwrite($fp, $outputstring, strlen($outputstring)); fclose($fp); echo "Yout post was posted successfully. Click here to continue",: } ?>

  • when i type message and hit submit button it gives me this ....

    Name: " .$name. "

    Comment:

    " .$message. "

    "; fwrite($fp, $outputstring, strlen($outputstring)); fclose($fp); echo "Yout post was posted successfully. Click here to continue",: } ?>

  • You have to make it a .php file.

  • something wrong i did every thing right but when i test it only shows me textbox with code in it and underlined red but it doesn't show name text box

  • CAN U SEND DA PHP FILE PLZZ......

    YOUR VIDEO IS cryptyc.

    I CANT C IT ANYMORE

  • Ah, so many unnecessary table layouts from PHP hackers... How come so many people who use CSS for layouts seem to suddenly forget that they can use it for forms too?

  • you are a baaaaaaaaad booooooooooooy

  • What is the symbol in line 9 (before $fp)in file postcomment? It is like @ or not?

  • who cares, you need to store your comments in your database and not in a textfile....

  • was the song necessary?

  • Would you have rather had silence?

  • silence is better than linkin park

  • Then turn off your speakers or hit the mute button on youtube.

  • fuck off

  • Was that really necessary?

  • hey dude i messed up the page lol. sorry i entered some shit php code. he he thats kinda funny i guess.

  • Epic lulz.

  • ye sorry bout that!

  • It really doesn't make a difference, it's not like it's getting 1,000,000 hits any time soon :P.

  • wheres comments.php?

  • Um, okay... thanks for wasting everyones time. This video is worthless without showing us how to construct comments.php

  • I'm pretty sure it just needs to be an empty file saved as comments.php, If I am correct any comments or information that is submitted will be written to that page.

  • Then it would be better as a .txt file; .php implies that there's code inside instead of just unprocessed text.

  • I can't get it to work. can someone help me with the comments.php file

  • how to make a comments php?

  • dude i tried following the code and i cant really read it cuz the symbols you used are so small tht i usually get mixed with different characters. Can you please write the code somewhere so I can just copy and paste please :/

  • Also do we need to make a file called comments.php or will it do that automatically?

  • You need to make that. I forgot to mention that.

  • Does line 18 at 9:43 read....

    "

    fwrite($fp, $outputstring, strlen($outputstring));

    "

    because it doesnt seem to work. Any change that you can upload to rapidshare this file.

  • This video is awesome, helps a lot! Also Skillet was a good choice of music, awesome band. Seen them 3 times lol.

  • no u havent dumb shit liar go fuck ur mom

  • Telling someone else to fuck there mum just shows you insecurities and secret fetish.

  • Hey dude sorry to post again, but anyways... I tried to get on to your website and I got a 404 - Page Not Found!

  • The server is down.

  • nice video. now when im finshed recording and i upload it to youtube how coomes it says invalid format

  • You have to save a video as .wmv format (there are others too but wmv is the best).

  • Well ive heard that sony vegas is better, buti guess it all depends on a person's point of view.

  • I personally think Sony Vegas is much better, but not everyone has an extra 300$ to spend and thats why Windows Movie Maker comes in so handy...

  • IDK man. I luv people like this. Too much time o thier hands. Im a PHP programmer myself and I dont relly like the fopen stuff. I always use $sql = ''; type of stuff. mySQL is the future. Great vid for the peeps who cant use MySQL!

  • Some people are are too basic to do sql queries. This was a basic tutorial. I'd appreciate it if you guys would stop coming in here and trying to prove you're better than me by posting an example of what you COULD have done. I really don't care.

  • Im sorry man, Im not trying to say that your a wrong or nothin. And Fopen and Fclose are great for people, I was just stating that if you wanted a comment system like Youtubes it would be a better idea to use SQL, like what I was saying before. Great vid and I hope to see more to come. ;) Sorry if i sounded rude before. Im really not a bad person.

    echo "Sorry! Forgive me lolz ;)";

  • Lol, no. I didn't mean to be such a jerk. The thing is is that I hate when people comment just to make the point to say that they know php. I've had people message me saying "LOL I KNOW BETTER PHP THAN YOU LOOK WHAT I CAN DO DATE(S); LOLZ COOL HUH BET YOU WISH YOU COULD DO THAT HUH??".

    Sql is just a pain for simple systems, but if you wanted to do something dynamic, such as registration and then commenting, that'd be a good idea :P.

  • Hey if you got a MSN add me. We can help eachother out with PHP/MySQL or whatever...

    "ca3500 @ hotmail . com"

    Thats my MSN without the commas and spaces of course...

  • Well, safe to say somebody has time on they're hands, no offence the ppl who don't know much about comps could use more vids like this but really man how much extra time do you have?

  • 12 extra hours.

  • Wow...

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more