Click here to Skip to main content
15,444,203 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 1:31
mveRichard MacCutchan2-Aug-18 1:31 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 139352712-Aug-18 1:35
MemberMember 139352712-Aug-18 1:35 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 3:49
mveRichard MacCutchan2-Aug-18 3:49 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 1393527114-Aug-18 1:02
MemberMember 1393527114-Aug-18 1:02 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 1393527114-Aug-18 1:02
MemberMember 1393527114-Aug-18 1:02 
QuestionHow Can I Start Learning PHP Pin
Andre Hoss3-Jul-18 7:03
MemberAndre Hoss3-Jul-18 7:03 
AnswerRe: How Can I Start Learning PHP Pin
Richard MacCutchan3-Jul-18 8:27
mveRichard MacCutchan3-Jul-18 8:27 
AnswerRe: How Can I Start Learning PHP Pin
Member 1501179923-Dec-20 7:29
MemberMember 1501179923-Dec-20 7:29 
Even if you never seen what PHP looks like, you still don't need to focus on reading books and lenthy know-hows. Once you get to grips with the fundamentals, you don't need board prep either.

At the same time, it would be headlong to dive into the coding process without any prior studying. 
Yep, any coding language is better learnt in practice, yet it's essential to know the basics.

With that being said, start your reserch with the PHP official website. It provides a great and digestible overview which should be enough to grasp the language fundamentals, even if have no programming experience whatsoever.

Once you've hit the grindstone, you're good to head out into the PHP practice.

Now it’s time to write some PHP code.

Basically, you require only 2 things for this: a development environment to run your PHP scripts and a code editor to write the code.

1. Install a local development environment
First of all, you need an interpreter to make sense of your code and run it (since PHP is a scripting language). 

Where do you write code? Development environment. A DE is usually a single program in which all development is done. It usually contains many functions for creating, modifying, compiling, deploying and debugging software. The purpose of the development environment is to abstract the configuration needed to combine the command line utilities into a single module, which will reduce the time to learn the language and increase developer productivity.

IDE
Try each development environment and see which platform you feel most comfortable with:

PHPStorm;
Netbeans;
Aptana Studio;
Eclipse.

Code editors for PHP projects
Sublime Text;
Visual Studio Code;
Atom;
Coda;
jEdit;
Programmer's Notepad;
Komodo Edit.

If you’re not sure which one to go with, try XAMP. It's an easy to install and easy to use Apache distribution containing MySQL, PHP, and Perl. 

2. Install a code editor
A code editor is aт editor for creating and editing program source code. It can be a standalone application or embedded in an integrated development environment (IDE).

3. Start coding
Run your IDE, open a browser and type localhost in the URL bar.

You will see the DE’s homepage. 
Your PHP scripts must be inserted inside a directory aka webserver root.

<pre>Now open your code editor and paste the following PHP code: 

 

<?php

echo '<h1 style="text-align: center;">Hello World!</h1>';

 

Save the file inside the htdocs directory as hello_world.php (you can use any file name you want, just be sure to use the .php extension), then go back to your web browser and open the URL:

http://localhost/hello_world.php

Voila, ready!



Questionphp-mysql Pin
Raja Jee2-Jul-18 18:38
MemberRaja Jee2-Jul-18 18:38 
AnswerRe: php-mysql Pin
Richard MacCutchan2-Jul-18 21:09
mveRichard MacCutchan2-Jul-18 21:09 
Questiontrying to get ipn simulator to work.... Pin
piano001126-Jun-18 1:35
Memberpiano001126-Jun-18 1:35 
AnswerRe: trying to get ipn simulator to work.... Pin
Richard MacCutchan26-Jun-18 2:07
mveRichard MacCutchan26-Jun-18 2:07 
QuestionHow to run .html file as default then will run .php of wordpress in same folder by using .htaccess Pin
Member 1388249624-Jun-18 23:32
MemberMember 1388249624-Jun-18 23:32 
Rant[REPOST] How to run .html file as default then will run .php of wordpress in same folder by using .htaccess Pin
Richard Deeming25-Jun-18 7:32
mveRichard Deeming25-Jun-18 7:32 
QuestionHow can I set the timestamp to 0? Pin
piano001114-Jun-18 2:38
Memberpiano001114-Jun-18 2:38 
Questionhow to add multiple sql queries? Do I need to join two queries? Pin
piano001110-Jun-18 17:50
Memberpiano001110-Jun-18 17:50 
Questionwhat is the difference between mysqli_stmt_num_rows and mysqli_num_rows? Pin
piano001110-Jun-18 17:49
Memberpiano001110-Jun-18 17:49 
AnswerRe: what is the difference between mysqli_stmt_num_rows and mysqli_num_rows? Pin
ishan_shah9-Mar-21 17:50
Memberishan_shah9-Mar-21 17:50 
Questionwhat is the difference between mysqli_stmt_fetch and mysqli_stmt_get_result Pin
piano001110-Jun-18 17:42
Memberpiano001110-Jun-18 17:42 
QuestionHow can I save a record into MySQL database while the data also prints on my POS printer Pin
Member 1369186123-May-18 8:03
MemberMember 1369186123-May-18 8:03 
QuestionSimple PHP MYSQL query problem Pin
Johannes Moolman19-May-18 4:43
MemberJohannes Moolman19-May-18 4:43 
AnswerRe: Simple PHP MYSQL query problem Pin
Jochen Arndt28-May-18 23:03
professionalJochen Arndt28-May-18 23:03 
AnswerRe: Simple PHP MYSQL query problem Pin
SiFinances28-Oct-18 0:58
MemberSiFinances28-Oct-18 0:58 
QuestionProblem using accordian with table row Pin
Member 1382254218-May-18 22:23
MemberMember 1382254218-May-18 22:23 
QuestionHow to access text data from parent form to child form Using $_SERVER['PHP_SELF'] Pin
Member 1369186129-Apr-18 12:27
MemberMember 1369186129-Apr-18 12:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.