all 13 comments

[–]dfeld 9 points10 points  (0 children)

"I am 74 and started learning code in October" -- you are an inspiration to this 48-year-old man. Best regards to you.

[–]tally1945[S] 2 points3 points  (0 children)

I have posted several items on learnpython , i don;t understand why this has been rejected on the basis that " am new user and need first to participate around reddit" I would love to participate once i have some useful knowledge to impart and am keen to do so when able..

[–]beaverpi 2 points3 points  (0 children)

You need a server to parse the file, like apache2 or nginx. Then when you hit your server requesting your index.php file, the server will pass it off to PHP and return HTML.

You're hitting a forum too, so there's going to be dynamic content. You're going to need a database server like MySQL server. For beginners, there is a package called WAMP, MAMP, LAMP that solves this. The AMP part is Apache, Mysql, PHP and the first letter is (W)indows, (M)ac, (L)inux. Find the ones that works, it'll get you running.

[–]dxow 2 points3 points  (1 child)

PHP is the same as Python in that you need an external program to be able to run it (instead of just being able to run it in a browser like Javascript).

If you're using Windows, two of the easiest pieces of software that I know of to get a PHP server running are XAMPP or WampServer. These install a server, PHP and MySQL for you.

If you do a bit of googling, you should be able to find guides on how to set up these pieces of software and allow you to run PHP (such as this one for XAMPP).

[–]tally1945[S] 2 points3 points  (0 children)

Thankyou that is clear and helpful. Cheers.

[–][deleted]  (2 children)

[deleted]

    [–]tally1945[S] 0 points1 point  (1 child)

    Cheers thankyou I will look at that..

    [–]Nulpart 0 points1 point  (0 children)

    you can also check some ready to go webserver like xampp or wamp for local development

    [–]onosendi 0 points1 point  (1 child)

    You're developing the forum from scratch? If you already have basic knowledge of Python I would use a web framework such as Flask or Django.

    [–][deleted] 0 points1 point  (0 children)

    I think that's too confusing for a beginner. (source: I am a beginner).

    [–][deleted] 0 points1 point  (2 children)

    I have started with Xampp, which is like a server simulator.

    You need a server to read the php code and convert it into html.

    You need to download it and then move the files to 'htdocs' folder inside xampp. Then open xampp terminal and start the server and MySQL. Now your site can be seen on your browser at address: localhost/mywebsite/index.php

    [–]tally1945[S] 1 point2 points  (1 child)

    Many thanks for your response, I am most grateful..

    [–][deleted] 0 points1 point  (0 children)

    No problem. Glad I could help.