Best resource to learn PHP

Discussion in 'PHP & Perl' started by frenchboy, Apr 19, 2011.

  1. frenchboy

    frenchboy Power Member

    Aug 19, 2008
    Likes Received:

    I need to learn some php. What's the best resource to learn?

    also, to make a website like youtube or facebook or something with databases and etc, is php the best or should I learn javascript instead?
  2. gnote

    gnote Registered Member

    Mar 10, 2009
    Likes Received:
    javascript doesn't have the capability to work with databases like you are thinking. perhaps regular java is what you meant. you have a few options but php is probably your best bet at creating something like that.

    pretty much the only resource you need once you get started is all functions are listed and documented here.

    to get started you probably need a hello world script and to learn the basic syntax and setup.

    unfortunately i can't post links yet, but google "php tutorial' and "php tutorial java2s" and the first results of each are good learning resources. also any other tutorial pages and example scripts should be good for you.

    if you need something to help you install or setup or get the right server, just google whatever you're looking for and you'll find it.
  3. sweepypanda

    sweepypanda Newbie

    Jul 27, 2010
    Likes Received:
    This will get you started:
  4. jubaeranik

    jubaeranik Newbie

    Apr 19, 2011
    Likes Received:

    My need many SEO work. who is available for every one.......

  5. goodbuyer

    goodbuyer Junior Member

    Aug 13, 2010
    Likes Received:
    Do you know any programming at all? try php by example. I think you would learn better from video. Go to heroturko and grab a php video course, then you may do this exercises to get you started

    [FONT=Arial, Helvetica, sans-serif](1) Display series of numbers (1,2,3,4, 5....etc) in an infinite loop. The program should quit if someone hits a specific key (Say ESCAPE key). [/FONT]
    [FONT=Arial, Helvetica, sans-serif](2) Fibonacci series, swapping two variables, finding maximum/minimum among a list of numbers. [/FONT]
    [FONT=Arial, Helvetica, sans-serif](3) Accepting series of numbers, strings from keyboard and sorting them ascending, descending order. [/FONT]
    [FONT=Arial, Helvetica, sans-serif](4) Reynolds number is calculated using formula (D*v*rho)/mu Where D = Diameter, V= velocity, rho = density mu = viscosity Write a program that will accept all values in appropriate units (Don't worry about unit conversion) If number is < 2100, display Laminar flow, If it's between 2100 and 4000 display 'Transient flow' and if more than '4000', display 'Turbulent Flow' (If, else, then...) [/FONT]
    [FONT=Arial, Helvetica, sans-serif](5) Modify the above program such that it will ask for 'Do you want to calculate again (y/n), if you say 'y', it'll again ask the parameters. If 'n', it'll exit. (Do while loop) [/FONT]
    [FONT=Arial, Helvetica, sans-serif]While running the program give value mu = 0. See what happens. Does it give 'DIVIDE BY ZERO' error? Does it give 'Segmentation fault..core dump?'. How to handle this situation. Is there something built in the language itself? (Exception Handling) [/FONT]
    [FONT=Arial, Helvetica, sans-serif](6) Scientific calculator supporting addition, subtraction, multiplication, division, square-root, square, cube, sin, cos, tan, Factorial, inverse, modulus [/FONT]
    [FONT=Arial, Helvetica, sans-serif](7) Printing output in different formats (say rounding up to 5 decimal places, truncating after 4 decimal places, padding zeros to the right and left, right and left justification)(Input output operations) [/FONT]
    [FONT=Arial, Helvetica, sans-serif](8) Open a text file and convert it into HTML file. (File operations/Strings) [/FONT]
    [FONT=Arial, Helvetica, sans-serif](9) Time and Date : Get system time and convert it in different formats 'DD-MON-YYYY', 'mm-dd-yyyy', 'dd/mm/yy' etc. [/FONT]
    [FONT=Arial, Helvetica, sans-serif](10) Create files with date and time stamp appended to the name [/FONT]
    [FONT=Arial, Helvetica, sans-serif](11) Input is HTML table, Remove all tags and put data in a comma/tab separated file. [/FONT]
    [FONT=Arial, Helvetica, sans-serif](12) Extract uppercase words from a file, extract unique words [/FONT]
    [FONT=Arial, Helvetica, sans-serif](13) Implement word wrapping feature (Observe how word wrap works in windows 'notepad') [/FONT]
    [FONT=Arial, Helvetica, sans-serif](14) Adding/removing items in the beginning, middle and end of the array. [/FONT]
    [FONT=Arial, Helvetica, sans-serif](15) Are these features supported by your language: Operator overloading, virtual functions, references, pointers etc. [/FONT]
  6. reddoradomedia

    reddoradomedia Newbie

    Jan 5, 2011
    Likes Received:
    If you're new to building websites I would recommend that you start with a framework. Something like wordpress allows you to get a basic site up and off the ground in 15 minutes. Then you can extend things in PHP and at the database level incrementally rather than doing everything from scratch. Plus it's open source and you benefit from a community of developers building plugins.
  7. Narrator

    Narrator Power Member

    Oct 5, 2010
    Likes Received:
    Internet Marketing
    Assuming you already know html, start with php then learn javascript, so you can add ajax functionality to your sites.

    The way I learned, I wanted to make a site like myspace (before myspace was popular). I looked up each aspect of what I wanted to do and learned them separately.
    First I needed a membership system so I looked up tutorials on member registration/login scripts. And moved on from there messaging, forums, etc.. By the time I was done I had a pretty decent myspace clone site, wasn't anything fancy but it worked and I learned a lot.

    IMO its better to learn as you do, than to sit there with a book and run through tutorials that may not be relevant to what your trying to do. At least for me it works better that way.

    Cheers and good luck!
  8. promoi

    promoi Newbie

    Sep 16, 2009
    Likes Received:
    It would be more beneficial to learn a little php, mysql, and how they integrate.

    Once you learn the basics of both you can go to hotscripts dot com and find what you are looking for already written.

    Then all you have to do is modify what you want.

    Be careful of hosting videos. If your site becomes popular you will go past your server's bandwidth and it could cost you thousands of dollars.

    Good Luck
  9. AshBash13

    AshBash13 Newbie

    Dec 20, 2012
    Likes Received:
    That's a funny problem to have about the bandwidth. Just hardcode a limit and quick linking the video after it's passed.
  10. cbnoob

    cbnoob Senior Member

    Sep 27, 2010
    Likes Received:
    You can check video tutorials here:

    javascript is the language for client side, to build sites like facebook or youtube, you will need to learn server side languages too (facebook uses PHP, youtube uses Python)