Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Help Starting Php?, I don't understand how to begin...
Dart-kun
post Jul 22 2005, 01:28 AM
Post #1


Super Member
*********

Group: Members
Posts: 252
Joined: 28-June 05
From: Canada
Member No.: 8,791



Well, I don't know where to begin PHP. I understand scripts and everything. But how do I make a .PHP file? I am guessing go to the file manager. Create a file called [insert].php. But what type of file do I save it as? Perl? I am really lost, but I really want to start learning PHP. Thanks.
Go to the top of the page
 
+Quote Post
SystemWisdom
post Jul 22 2005, 01:52 AM
Post #2


Advanced Member
*******

Group: Members
Posts: 117
Joined: 3-May 05
From: A Canadian South of the 49th Parallel
Member No.: 6,544



Well, you can start by making a regular text file, and just rename the extension to .PHP that's all!! Then you could add HTML/JavaScript/CSS and all that good stuff for the client side.. It will still be valid PHP file, but no PHP code exists so no PHP Server-Side Processing takes place..

From there, you can start adding your PHP scripts to the start of the file (or in the middle, or bottom) and upload it to your server.. Just call the page from the URL bar to execute it!

Check out this tutorial for Learning PHP from W3 Schools.. Very good start:
http://www.w3schools.com/php/default.asp

I hope that helps!
Go to the top of the page
 
+Quote Post
truefusion
post Jul 22 2005, 01:54 AM
Post #3


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,916
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



If you wanna learn, you can go to http://www.w3schools.com they have good tutorials on php, and other programming languages. I tend to go to http://www.phpfreaks.com for additional help, by posting in their forums, or doing searches on what i need help on. If you mean by creating a php document in the file manager, just create a text document and end it with ".php" (without quotes). Hope this helps.
Go to the top of the page
 
+Quote Post
Dart-kun
post Jul 22 2005, 11:21 AM
Post #4


Super Member
*********

Group: Members
Posts: 252
Joined: 28-June 05
From: Canada
Member No.: 8,791



If anyone else would like to help, I still don't understand. *is an idiot*

I made a .Php file in notepad, saved it as "all files" not "txt file"

I uploaded it on the file manager in my "/" folder

It says Php.php

I clicked on it, then Edit File

CODE
<?php
print "Hello world!";
?>


I typed this in.

Next I went to show file.

It says.

"php.php
File Type: PHP script text "

But nothing underneath. In otherwords its blank.

Shouldn't it say Hello World?
Go to the top of the page
 
+Quote Post
electriic ink
post Jul 22 2005, 12:00 PM
Post #5


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,227
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Solution: Don't use the show file link. Instead click at the link under File url:
Go to the top of the page
 
+Quote Post
truefusion
post Jul 22 2005, 06:04 PM
Post #6


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,916
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



Have you tried uploading it to the folder "public_html"? Or is it that where you've uploaded it? If so, try "echo", instead of "print".
Go to the top of the page
 
+Quote Post
Dart-kun
post Jul 23 2005, 12:10 AM
Post #7


Super Member
*********

Group: Members
Posts: 252
Joined: 28-June 05
From: Canada
Member No.: 8,791



Thank you, I got it to work, and am testing scripts at the moment. biggrin.gif
Go to the top of the page
 
+Quote Post
karlo
post Jul 24 2005, 05:34 AM
Post #8


Privileged Member
*********

Group: Members
Posts: 618
Joined: 30-October 04
From: Philippines
Member No.: 2,049



PHP is really easy to learn. All you need is time and patience. I'm sure that you will really love it especially when you are going to use it for the websites that you are going to make. At first, I hate PHP but now, I really love it. I can't make a website without using PHP... And the advantage of using PHP is it's free, and PHP supports all Operating Systems that's why it's widely used. Along with PHP is MySQL, which is really easy to learn too, and integrated with PHP, it's also free... I hope you enjoy my opinion.. biggrin.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Starting PHP(30)
  2. Starting Your Own Clan(21)
  3. Trap17 Should Offer Free Domain Name(22)
  4. I Finished Building My Custom Bass... Starting Another(1)
  5. Mascot Phobia(11)
  6. Starting An Online Business...(3)
  7. I Just Want To Understand Better(2)
  8. Meet For The First Time After A Long Time Of Starting A Relationship(3)
  9. Shoot 'em Up(1)
  10. How Did You Overcome The Fear Of Starting A Business?(19)
  11. Starting New Business With Others(11)
  12. Important - Major Hsphere Control Panel Upgrade Starting Friday, October 5th, 2007 At 12:00 Am Edt (gmt-4)(0)
  13. I Dont Understand On How To Use This Forum?(4)
  14. A Little Help With My Cat?(4)
  15. Why Must We Learn Object Oriented Programming(4)
  1. Starting A Free Public E-mail Service(4)
  2. Is This Normal?(12)
  3. Prologue. Advice?(0)
  4. Want To Test Vista Sp1? Anyone Can, Starting Next Week(2)
  5. Modulo Operator Confusion(1)
  6. Java Exercise Help(2)
  7. I'm Pretty Much Completely New To Hosting(5)
  8. Psp Or Ds?(6)
  9. Just Starting Out(0)
  10. I Hate My Teacher!(11)
  11. Credits?(2)
  12. Starting Pitching Market(1)
  13. I Really Do Not Understand(6)