
-----------------------------------
upthescale
Wed Mar 22, 2006 9:58 pm

PHP in HTML...
-----------------------------------
when i try to add php into my html kit, and i run the code, the output is blank, and im even copying a code frum the internet, how do i add php in html?

-----------------------------------
rdrake
Wed Mar 22, 2006 11:25 pm


-----------------------------------
You need a web server with PHP installed to run PHP scripts.  The PHP interpreter interprets the *.php files, returning the result to the web server.  The server then outputs this result to your browser.  HTML-Kit only edits HTML files, which are not interpreterable by your browser, so you don't see any output.  The only think you will see if you do not have PHP installed and set up properly is your HTML and the raw PHP.

-----------------------------------
upthescale
Thu Mar 23, 2006 3:11 pm


-----------------------------------
how do i install php or java so my computer?

-----------------------------------
rdrake
Thu Mar 23, 2006 3:49 pm


-----------------------------------
The following site contains a package which will install PHP, MySQL, Apache, and others.  It's more than you need, but it's the easiest way to get PHP and Apache set up.  Please note that many people feel this method of installing Apache is not secure (not like running it on Windows helps anyways), so I would just use this for learning.

The site is [url=http://www.apachefriends.org/en/index.html]here.

Java... well your computer most likely already has it installed.  I'm guessing you want to start creating Java Server Pages?  Somebody else will have to help you with that one.

-----------------------------------
upthescale
Thu Mar 23, 2006 4:06 pm


-----------------------------------
ok thanks, now where do  igo to instal it in that site?

-----------------------------------
rdrake
Thu Mar 23, 2006 4:40 pm


-----------------------------------
You must download [url=http://easynews.dl.sourceforge.net/sourceforge/xampp/xampp-win32-1.5.1-installer.exe]this.

-----------------------------------
upthescale
Fri Mar 24, 2006 9:22 pm


-----------------------------------
didn't werk yo

-----------------------------------
rdrake
Fri Mar 24, 2006 10:00 pm


-----------------------------------
Alright, download [url=http://prdownloads.sourceforge.net/xampp/xampp-win32-1.5.1-installer.exe?download]this, read [url=http://www.apachefriends.org/en/xampp-windows.html#1173]this, and look around [url=http://www.google.ca/search?hl=en&hs=k8I&q=php+tutorials&spell=1]here for tutorials.

-----------------------------------
Blade
Fri Mar 24, 2006 10:41 pm


-----------------------------------
this should have been posted in php help

-----------------------------------
upthescale
Fri Mar 24, 2006 10:57 pm


-----------------------------------
i have text pad, how can i run the program to see th output?

-----------------------------------
rdrake
Sat Mar 25, 2006 3:41 pm


-----------------------------------
You must place the *.php files inside your "htdocs" folder which XAMPP created.  I'm not sure exactly where it is, probably c:\XAMPP\htdocs.  Once you've edited and saved your files with Text Pad, open up your browser and point it to http://localhost/path/to/your/file.php.  You should see the output.

-----------------------------------
upthescale
Sat Mar 25, 2006 9:19 pm


-----------------------------------
You must place the *.php files inside your "htdocs" folder which XAMPP created.  I'm not sure exactly where it is, probably c:\XAMPP\htdocs.  Once you've edited and saved your files with Text Pad, open up your browser and point it to http://localhost/path/to/your/file.php.  You should see the output.



weut do u meen in thaty link "path to your file?"

-----------------------------------
rdrake
Sun Mar 26, 2006 9:37 pm


-----------------------------------
weut do u meen in thaty link "path to your file?"Here's what I mean...

Let's say you have a folder named "mydevfiles" and a php file called "testing.php", your link would be http://localhost/mydevfiles/testing.php You must point your browser to the location where the file is.  Of course, index.php will always be the default, if you want to put index.php inside the root folder and go to http://localhost/.
