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.
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
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?
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.
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
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...
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?
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.
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 :/
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.
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.
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?
where did u go, or do to see the final product with both html pages? and Thnx awsome!
chickenbathadult 1 week ago
May I ask for a sample file for everyting that works?
virusdude95 3 months ago
lame music ... sorry
umageddon 5 months ago
Ha Ha you figured out how to do this too! I set mine up a while ago using include()
13dnizinski 6 months ago
What part of the code do you place on the comment box, where the comments are shown?
PHKatz 6 months ago
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.
harmzen 11 months ago
By doing this, does it give each comment is own div to actually style up or what ever or?
harmzen 11 months ago
@harmzen nope, not at all.
coocool321 11 months ago
what if i want to delete the comment?
vincentxerxes16 1 year ago
I have an error!!! :O Am I supposed to include the "/youtube" folder in my version? If not, what do I replace it with!?
sodzee 1 year ago
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
Hackintosher 1 year ago
SHEEESH you guys should look up php beginning tutorials before you come here -.- asking obvious questions...
Afr0pkerz 1 year ago
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.
Sargatha 1 year ago
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.": } ?>
kerwinalea 1 year ago
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?
sabakarunner 1 year ago
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
sabakarunner 1 year ago
at 5:25, where tha hell did you come out with "/youtube/comments.php"?????!!!
Turokcito2 1 year ago
@Turokcito2 "/youtube/" means a folder called "youtube" and "comments.php" is the file I am writing to.
ZloolS 1 year ago
@ZloolS so, do you need to create an empty flie or something?
Turokcito2 1 year ago
@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 1 year ago
@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?
Turokcito2 1 year ago
What's the PHP code for recieving the comments on the HTML page?
Changer098 1 year ago
There are a lot of people here who don't have a clue what they're doing.
cmatcmextra 1 year ago
Doesn't seem to be very safe, what would happen if you put a script in the message?
Arkeling88 1 year ago
Excellent! Thanks !!
Hacker278 1 year ago
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.
araregoodguy 1 year ago
Instead of "Comment posted etc" you can put
header( 'Location: index.php' ) ; //Or .html if the index page is a html page
SnowWolf2k 1 year ago
how do you do the part where the comment shows up on the page?
codetutor1 1 year ago
Comment removed
cotton509 2 years ago
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/mediafashionlife/2/postcomment.php on line 9
MediaFashionLife 2 years ago
yes what is he letter at 4:55
araregoodguy 1 year ago
@araregoodguy
its a "@"
Turokcito2 1 year ago
@MediaFashionLife
its a "@"
Turokcito2 1 year ago
please no work wi need the code please
ecuador1980 2 years ago
yo can you gimmie the code then i can just tweak it?
PspHackSquad 2 years ago
You lol so much . . .
sery07 2 years ago
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
AkoAySiJhay 2 years ago
same error with me too !! what to do ??
hamzarabbani 2 years ago
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
themankoosky 2 years ago
can send to me the php code because i really can see it ...thanks
ronel121788 2 years ago
ii get this
Parse error: parse error in ..../postcomment.php on line 8
gunkillergun 2 years ago
so we need to make a index.php too
sunleoest 2 years ago
Like the site like the videos!
MrHightempo 2 years ago
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...
LoadDownGURU 2 years ago
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",: } ?>
Unvailable68 3 years ago
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",: } ?>
Unvailable68 3 years ago
You have to make it a .php file.
ZloolS 3 years ago
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
Unvailable68 3 years ago
CAN U SEND DA PHP FILE PLZZ......
YOUR VIDEO IS cryptyc.
I CANT C IT ANYMORE
papuqsss 3 years ago
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?
trojjer 3 years ago
you are a baaaaaaaaad booooooooooooy
lilabrowns 3 years ago
What is the symbol in line 9 (before $fp)in file postcomment? It is like @ or not?
aertin 3 years ago
who cares, you need to store your comments in your database and not in a textfile....
Mistahjey 3 years ago
was the song necessary?
elmalacopa 3 years ago
Would you have rather had silence?
ZloolS 3 years ago
silence is better than linkin park
elmalacopa 3 years ago
Then turn off your speakers or hit the mute button on youtube.
ZloolS 3 years ago
fuck off
087899988562 3 years ago
Was that really necessary?
NeelhtakVideos 3 years ago
hey dude i messed up the page lol. sorry i entered some shit php code. he he thats kinda funny i guess.
linklovezelda 3 years ago
Epic lulz.
ZloolS 3 years ago
ye sorry bout that!
linklovezelda 3 years ago
It really doesn't make a difference, it's not like it's getting 1,000,000 hits any time soon :P.
ZloolS 3 years ago
wheres comments.php?
zcollvee 3 years ago
Um, okay... thanks for wasting everyones time. This video is worthless without showing us how to construct comments.php
k1llak4y 4 years ago 3
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.
NeelhtakVideos 3 years ago
Then it would be better as a .txt file; .php implies that there's code inside instead of just unprocessed text.
trojjer 3 years ago
I can't get it to work. can someone help me with the comments.php file
nado117 4 years ago
how to make a comments php?
chibone123 4 years ago
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 :/
chibone123 4 years ago
Also do we need to make a file called comments.php or will it do that automatically?
maxamilion91 4 years ago
You need to make that. I forgot to mention that.
ZloolS 4 years ago
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.
maxamilion91 4 years ago
This video is awesome, helps a lot! Also Skillet was a good choice of music, awesome band. Seen them 3 times lol.
crazycrisco 4 years ago
no u havent dumb shit liar go fuck ur mom
linklovezelda 3 years ago
Telling someone else to fuck there mum just shows you insecurities and secret fetish.
NeelhtakVideos 3 years ago
Hey dude sorry to post again, but anyways... I tried to get on to your website and I got a 404 - Page Not Found!
AcePIREP 4 years ago
The server is down.
ZloolS 4 years ago
nice video. now when im finshed recording and i upload it to youtube how coomes it says invalid format
pokemonfan3121 4 years ago
You have to save a video as .wmv format (there are others too but wmv is the best).
ZloolS 4 years ago
Well ive heard that sony vegas is better, buti guess it all depends on a person's point of view.
shadowsecter 4 years ago
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...
AcePIREP 4 years ago
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!
AcePIREP 4 years ago
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.
ZloolS 4 years ago
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 ;)";
AcePIREP 4 years ago
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.
ZloolS 4 years ago
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...
AcePIREP 4 years ago
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?
shadowsecter 4 years ago
12 extra hours.
ZloolS 4 years ago
Wow...
shadowsecter 4 years ago