Where do you put php codes on a website? In the MySql place or actually upload to the website?
Ichigo asked:
I tryed adding my code into MySql and it kept giving me an error “Unknown Punctuation String @ 1.” It’s acutally a login system that I copied from a free source. I also tried copying from another free source but that gave the same error.
Comments on Where do you put php codes on a website? In the MySql place or actually upload to the website?
March 19, 2009
Chris G @ 4:30 pm
PHP is used in files on your web server with the .php extention. PHP files can be written in a plain text editor like NotePad and saved with a .php extention.
As an example, open Notepad and paste this in:
Now save the file as helloworld.php
Upload it to your web server
Navigate to the file.
The output will be:
Hello World!
You’ve just written your first PHP script…congrats. =)
Comments on Where do you put php codes on a website? In the MySql place or actually upload to the website?
PHP is used in files on your web server with the .php extention. PHP files can be written in a plain text editor like NotePad and saved with a .php extention.
As an example, open Notepad and paste this in:
Now save the file as helloworld.php
Upload it to your web server
Navigate to the file.
The output will be:
Hello World!
You’ve just written your first PHP script…congrats. =)