For those who still haven't figured it out. Vid 78 and Vid 79 are switched.
@richardgenck26928 жыл бұрын
These are GREAT!! I'm sharing this with my friends, you might want to rename this and the next video though, this one should probably be 79, and 79 should be 78.
@anthonyrosamilia349810 жыл бұрын
I find one of the main issues in learning multiple languages is knowing when a standard function creates an array of data or another form of data. It makes you have to memorize so much!
@jasbirsingh17298 жыл бұрын
Your videos are great man. I did php in the college But my professor taught nothing. Only because of you I am good with PHP
@AnthonyVipond11 жыл бұрын
Keep in mind, file() does not work for large files as it reads it all into memory. Imagine using file() on 1 GB log files...
@reshetech13 жыл бұрын
You have the best PHP tutorial on the net. Thank you so much!
@BBSKN12 жыл бұрын
Instead of initializing $count to 1, you can increment $count before the if condition inside the foreach loop. Same effect, but some what more logical since 0 names have been cycled through before the loop begins.
@McGavel19 жыл бұрын
Awesome man, thanks! I'm trying to make an online poker hand reviewer from a downloaded hand history text file and this is just what I needed. Gonna check out some other videos too. Peace and good luck.
@McGavel19 жыл бұрын
+McGavel1 PHP has so many sweet built-in functions - I love it.
@Weegee445811 жыл бұрын
7:37 "oh dear.." xD
@Gustavo8198812 жыл бұрын
A little improvement would be: foreach($readin as $fname){ echo trim($fname); if($count
@Brax19829 жыл бұрын
How about not counting at all and instead using a string variable "s" on which you concatenate everything in the loop, then once the loop is done, remove the excess comma and maybe whitespace, then echo "s"?
@billgates41569 жыл бұрын
for those people finding this video confusing...its an uploading error..first of all watch tutorial 79 and come back..Makes sense
@technoooooofreak7 жыл бұрын
All the pain he took to remove a trailing comma! Programming is indeed funny! xD
@shawnfrank152211 жыл бұрын
increment count ++ before the if statement, then you can keep count 0 initially.
@johnjacob922511 жыл бұрын
Before u watch this watch 79.. Videos just got mixed.. Watch 79 then 78.
@jesselisser10 жыл бұрын
Haha love it!! Off by one error :D Great vid
@deepgagan90158 жыл бұрын
nice explanation alex sir !
@REALCOOLLIKEVIPUL12 жыл бұрын
Since you want to add "AND" after second last name, so you used readin_count-1. nice work
@desmondloo96957 жыл бұрын
i face a problem where when i direct till the last folder ,it does not show the file i have in the folder but open the file straight
@xxiRaQiAtheistxx12 жыл бұрын
Jump up one lesson more 79, and come back later to this one! lol
@Robstercraw10 жыл бұрын
are these out of whack? in the last video no such form was created.
@Ashbrringer Жыл бұрын
The course is great! But it would be a good thing to rename this video to 79, because the Appending is done in the next one.
@vu2arm6 жыл бұрын
How to create sequence of file on directory in php while name are store in text file
@dostmusician11 жыл бұрын
tut-79 should come before this one(tut-78). watch that first,and then you would understand this one.
@VanyaD11 жыл бұрын
Gosh, why isn't this stuff working for me?????? Only the form opens up, but no file is created or written into and my code is one by line the same as Alex's!!!
@hassanbaiga12 жыл бұрын
Sandra returned you with an error, she betrayed you man !!!!!
@Balaclavaz11 жыл бұрын
When I echo out I get the word "Array" before the first name, which is replaced by a "1" when I do $count = 1. I don't know what I'm doing wrong to get that. The $count business seems a long winded way of removing a final comma
@Balaclavaz11 жыл бұрын
fixed it; a stray comma instead of a semi-colon after echoing current name in field
@bujunjeri19638 жыл бұрын
cool tutorial bt my trim seems not to be working { echo trim($fname); }
@luqmanafridi3338 жыл бұрын
well good job SIR !!!!
@melanshrestha63318 жыл бұрын
can this be used for comment purpose in the website?
@namelast-name6168 жыл бұрын
yes i have a code which i found long time ago cuz i didn't knew hanything in php, but now i watch this tutorials and see how easily it was created
@rahulgaur70038 жыл бұрын
clear concept .
@gabrielkdc178 жыл бұрын
Shouldn't you use httpentities?
@BrasiLIndomaveL12 жыл бұрын
I wrote this, but I don't quite understand why it works. Somebody could explain to me? foreach($readin as $fname) { echo trim($fname); if ($count
@shourabhpayal11988 жыл бұрын
THIS VIDEO IS LIL MESSED UP
@Capovila219 жыл бұрын
Thanks so much!
@mockingbird38097 жыл бұрын
If you not understand it first watch 79 before this
@ciaranwhyte40889 жыл бұрын
if($count != $fileCount) { echo ', '; } That original code was perfectly fine, all he needed to do was change count to a 1
@MrMagnat869 жыл бұрын
OMG, maybe count++; must be before inner if.
@trueredexe12 жыл бұрын
After using JSP for all this php feels like childs play
@cjvaans448411 жыл бұрын
Wha!? What the heck did I miss!? Oh. Videos are just mixed up.
@mmafanuk11 жыл бұрын
I have no idea what just happened
@Martin87062012 жыл бұрын
I paused the video and figure out the problem like this: if(($count + 1) < $readin_count){ echo ', '; } Which is the same thing but simply changing the variable to 1 is definitly the beter way to do this.
@vyuutuube9 жыл бұрын
whuhahaha i tried to scroll the scrollbar of your video to look at your code below... am i the only one trying that by accident or do you people recognise this? :) :) :)
@tiradorphilippinez614911 жыл бұрын
nice tutorial , you've lean a lot if you stick in his lesson
@trueredexe12 жыл бұрын
Indeed.
@hussi0o11 жыл бұрын
because u need to write $_POST (not $_post)
@SuperSlashpwn13 жыл бұрын
@andreyfschoier Thanks Mate :)
@baohuynh56213 жыл бұрын
Oh dear!
@tuananhha10 жыл бұрын
Very difficult to understand!
@zwich13 жыл бұрын
@arvids817 ty saved some time ;D
@dibraniuk6 жыл бұрын
need do validation first
@Rashmeed11 жыл бұрын
This is a bad and slow way, use this: echo file_get_contents("names.txt");