Eli the Computer Guy
  • Home
  • Forum
  • —-> JOIN NOW <----

PHP Programming (Beginner)

PHP Programming (Beginner)

PHP – Send Data to PHP with HTML Form

January 4, 2019 Eli the Computer Guy 0

Sending data to PHP from an HTML form is easy.

PHP Programming (Beginner)

PHP – Redirect Web Page – header()

January 3, 2019 Eli the Computer Guy 0

You can use PHP to redirect visitors to your web page to different pages automatically. This can be good for maintenance tasks and for marketing tracking.

PHP Programming (Beginner)

PHP – Set and Read Cookies – setcookie()

January 3, 2019 Eli the Computer Guy 0

Cookies allow you to set variables that are persistent between multiple visits to a website.

PHP Programming (Beginner)

PHP – Code Reuse – include

December 24, 2018 Eli the Computer Guy 0

Using includes you can reuse the same code in multiple scripts.

PHP Programming (Beginner)

PHP – Send Emails – mail()

December 24, 2018 Eli the Computer Guy 0

You can send emails directly from PHP scripts using the mail() function.  You need to have a local email server setup to do this, to to learn it’s best to use a shared hosting account […]

PHP Programming (Beginner)

PHP – Turn File Into an Array – file()

December 18, 2018 Eli the Computer Guy 0

By turning a file into an array you can work with the data within it as you would a standard array.

PHP Programming (Beginner)

PHP – Write to File – file_put_contents()

December 18, 2018 Eli the Computer Guy 0

You can write variables to a file with file_put_contents().  If the file pointed to does not exist it will be created.  By adding FILE_APPEND this will append data to the created file, if not the […]

PHP Programming (Beginner)

PHP – Multidimensional Arrays

December 17, 2018 Eli the Computer Guy 0

Multidimensional delays are when you use Arrays as values for Arrays.

PHP Programming (Beginner)

PHP – Access Named Keys in Arrays – Foreach()

December 17, 2018 Eli the Computer Guy 0

The foreach() function can turn Named Keys into variables just like it does array values.

PHP Programming (Beginner)

PHP – Access Array Values – Foreach()

December 17, 2018 Eli the Computer Guy 0

The foreach() function allows you to loop though an array to process the values as variables.

PHP Programming (Beginner)

PHP – Sort Array by Key – ksort() and krsort()

December 14, 2018 Eli the Computer Guy 0

You can sort arrays by key with ksort() and krsort().

PHP Programming (Beginner)

PHP – Sort Array by Value – sort() and rsort()

December 14, 2018 Eli the Computer Guy 0

The sort() and sort() functions allow you to sort arrays alphabetically.

PHP Programming (Beginner)

PHP – Naming Array Keys

December 13, 2018 Eli the Computer Guy 0

Naming Keys in Arrays makes it easier to verify you are interacting with the appropriate data in an array.

PHP Programming (Beginner)

PHP – Creating Arrays

December 13, 2018 Eli the Computer Guy 0

Arrays allow for a variable to have multiple values.  This gives you the ability to create lists of names, and be able to sort them easily.  Also it allows you to have values from a […]

PHP Programming (Beginner)

PHP – Do While Loops

December 12, 2018 Eli the Computer Guy 0

Do While Loops perform one iteration before a condition is tested.

PHP Programming (Beginner)

PHP – While Loops

December 12, 2018 Eli the Computer Guy 0

While loops allow you to repeat code while a condition remains true.

PHP Programming (Beginner)

PHP – For Loops

December 12, 2018 Eli the Computer Guy 0

For loops are ways to repeat specific code based on whether a condition continues to be true.

PHP Programming (Beginner)

PHP – Logical Operators

December 11, 2018 Eli the Computer Guy 0

Logical Operators allow you to use AND or OR in comparisons for Loops and If Statements.

PHP Programming (Beginner)

PHP – Comparison Operators

December 11, 2018 Eli the Computer Guy 0

Comparison Operators allow you to compare variable values against values to determine whether an event should trigger.  You use Comparison Operators in Loops and If Statements.

PHP Programming (Beginner)

PHP – switch Statements

December 10, 2018 Eli the Computer Guy 0

switch Statements allow you to allow events to happen based on specific values for variables.

PHP Programming (Beginner)

PHP – elseif Statements

December 10, 2018 Eli the Computer Guy 0

elseif statements allow you to check to see if any of a number of conditions are true before failing out to the else in an if statement.

PHP Programming (Beginner)

PHP – if else Statements

December 7, 2018 Eli the Computer Guy 0

If Else Statements allow for code to run if a condition is true, but have different code run of a condition is false.   <?php $age = 15; print “Your Age is $age”; print “<br>”; […]

PHP Programming (Beginner)

PHP – if Statements

December 7, 2018 Eli the Computer Guy 0

If Statements allow you to trigger code if specific conditions are met.   <?php $age = 20; print “Your Age is $age”; print “<br>”; if ($age < 18) { print “you too YOUNG”; } ?>

PHP Programming (Beginner)

PHP – Comments

December 4, 2018 Eli the Computer Guy 0

Commenting code allows you to add notations to you script to explain why it was written how it was. You can also use commenting to keep specific code from running during troubleshooting.   <?php /* […]

PHP Programming (Beginner)

PHP – Garbage Code and Bad Variables

December 4, 2018 Eli the Computer Guy 0

Since Variables in PHP do not need to be declared you can run into issues such as trying to add a String to an Int. You also may have issues if you misspell a variable. […]

PHP Programming (Beginner)

PHP – Setting Variables

December 4, 2018 Eli the Computer Guy 0

Variables in PHP can be set without needing to be declared.   <?php $string = “Hello World”; $int = 1; $float = 2.2; print “<h1>String</h1>”; print $string; print “<h1>Int</h1>”; print $int; print “<h1>Float</h1>”; print $float; […]

PHP Programming (Beginner)

PHP – Print Function and New Line Command in…

November 27, 2018 Eli the Computer Guy 0

The Print Function in PHP allows you to print text to dynamically create a web page. It’s important to understand that what you see in a web browser is different then what you would see […]

PHP Programming (Beginner)

PHP – Viewing PHP Environment with PHPinfo()

November 27, 2018 Eli the Computer Guy 0

The PHPinfo() function prints out a report of al of the PHP configurations and settings for your server.   <?php phpinfo(); ?>  

PHP Programming (Beginner)

PHP – Naming Scripts and Tags in…

November 27, 2018 Eli the Computer Guy 0

You need to name your PHP files with a .php extension for them to work on your server. Past this you use the PHP Tags to trigger scripts within a web page. <?php print “Hello […]

PHP Programming (Beginner)

PHP – Shared Hosting for Running…

November 27, 2018 Eli the Computer Guy 0

Shared hosting is an easy way to deploy PHP code especially if you are new to technology. To run PHP on your own server you need to be able to build, configure and maintain a […]

PHP Programming (Beginner)

PHP – Text Editor for Writing…

November 27, 2018 Eli the Computer Guy 0

You can use basic ASCII Text editors to write PHP code. You simply need to save the file with the .php extension.

PHP Programming (Beginner)

PHP – What are Versions of…

November 27, 2018 Eli the Computer Guy 0

Coding languages like all software has versions. These versions offer improvements, and changes over time. This means that functions that work in some versions do not work in others. So you need to verify which […]

PHP Programming (Beginner)

PHP – What is Needed to Learn…

November 27, 2018 Eli the Computer Guy 0

To learn PHP you’ll need a LAMP server of some sort, a text editor, and a good study guide. I highly recommend buying a book because it’s an excellent UI while learning a language.

PHP Programming (Beginner)

PHP – Why Coders Hate…

November 27, 2018 Eli the Computer Guy 0

PHP is great for being able to easily create web apps that work. The problem is that it also easy to create code with major vulnerabilities that is a mess to read and try to […]

PHP Programming (Beginner)

PHP – Why Learn…

November 27, 2018 Eli the Computer Guy 0

Why should you learn PHP when there are two many “better” languages available? It’s easy to learn. You can build practical web apps within a week of starting. Finally a huge number of legacy web […]

PHP Programming (Beginner)

PHP – What is…

November 27, 2018 Eli the Computer Guy 0

PHP is a Hypertext Preprocessor. This essentially means that PHP dynamically writes web pages for you. So it can query a database and print a report from it, or change CSS and such based on […]

Login

  • Register
  • Lost Password

Recent Posts

  • Smart TOILET SEAT
  • NEW Qualcomm 5G Modem – Snapdragon X55
  • POS Systems HACKED from VENDOR Side
  • Steam Store Video RETIRED
  • ATT 5G Roll Out
  • Linus Tech Tips CONTENT ID Problems FIXED
  • Automation Will DESTROY 54% JOBS in Brazil
  • LinkedIn Job Matching AI – Intelligent Hiring Experience
  • Ransomware Decryption Tool – Bitdefender GandCrab
  • Linus Tech Tips CONTENT ID Against Carey Holzman
  • CBS All Access SUCCESSFUL
  • The Verge COPYRIGHT STRIKE ReviewtechUSA and BitWit RETRACTED
  • Twitter New CLARIFY Function
  • Amazon CANCELS HQ2 New York – AOC Wins
  • Facebook TRACKS USERS for “SECURITY”
  • Elroy Air – 300 Mile, 500 Pound Cargo Drone
  • ReviewTechUSA and BitWit COPYRIGHT STRIKE from Verge: Vox
  • Apple News Service – KILLING NEWS
  • KILL FAKE NEWS with NewsGuard
  • Activision Blizzard LAYOFFS 800 Employees
  • MASSIVE Email HACK – VFEmail
  • Buzzfeed UNIONIZES
  • LETHAL Electric Scooter HACK
  • Playstation LEAVES E3
  • Carey Holzman – Interview
  • YouTube Copyright BLACKMAIL
  • LinkedIn LIVE VIDEO
  • iTunes on SAMSUNG TV’s – APPLE FAILING
  • Activision Blizzard LAYOFFS
  • Vice Media Traffic FRAUD

Copyright © 2019 | MH Magazine WordPress Theme by MH Themes