Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 64
There are 1 users currently browsing forums.
PHP Scripting PHP is a scripting language for rapid web-development. It's a popular and powerful, OOP-capable language that is used by professionals. Discuss PHP here.

Reply
  #11  
Old 01-05-2005
HostBlimp's Avatar
Going for the big Ph.D!
 
Join Date: Jan 2005
Location: CA, USA
Age: 20
Posts: 571
Rep Power: 6
HostBlimp is on a distinguished road
Re: Want to learn php

I found a host but when i upload the sample php script on www.php.net and try to view it, it shows a blank page.

(is there some 'code' button i need to press on the forum?)This is the script:

PHP Code:
<html>
   <head>
       <title>Example</title>
   </head>
   <body>

       <?php
       
echo "Hi, I'm a PHP script!";
       
?>

   </body>
</html>

Last edited by omanofmysteryp; 02-07-2005 at 08:51 PM.
Reply With Quote
  #12  
Old 01-05-2005
Chrishasfun's Avatar
A "Mature" Pre-Teenager!
 
Join Date: Nov 2004
Location: CA
Age: 21
Posts: 145
Rep Power: 6
Chrishasfun is on a distinguished road
Re: Want to learn php

Upload this script:

PHP Code:
<?PHP
phpinfo
();
?>
Name the file - phpinfo.php

That will tell you if PHP is installed..

Also try this:

PHP Code:
<?PHP

$age
=1+15;

echo(
"You are ".$age." year's old");
?>
Name that test.php

it should display
"You are 16 year's old"
Reply With Quote
  #13  
Old 01-06-2005
HostBlimp's Avatar
Going for the big Ph.D!
 
Join Date: Jan 2005
Location: CA, USA
Age: 20
Posts: 571
Rep Power: 6
HostBlimp is on a distinguished road
Re: Want to learn php

Both of those worked, am i just not to include all the <html> stuff to make it work?
Reply With Quote
  #14  
Old 01-06-2005
HostBlimp's Avatar
Going for the big Ph.D!
 
Join Date: Jan 2005
Location: CA, USA
Age: 20
Posts: 571
Rep Power: 6
HostBlimp is on a distinguished road
Re: Want to learn php

Ok so because the php code works, does that mean that i have a sql database? Or do i still have to set 1 up, and if i do, how?
Reply With Quote
  #15  
Old 02-07-2005
Mostly Harmless.
 
Join Date: Jan 2005
Location: At My Computer
Age: 19
Posts: 404
Rep Power: 6
lewis1350 is on a distinguished road
Re: Want to learn php

ooh, i wanna learn php too...!!! stuff on w3schools is too technical... php.net is a lil better... and an SQL database is differerent from PHP...its just needed for most things used with PHP
Reply With Quote
  #16  
Old 02-07-2005
omanofmysteryp's Avatar
Accomplished Graduate Student
 
Join Date: Sep 2004
Posts: 439
Rep Power: 6
omanofmysteryp is on a distinguished road
Re: Want to learn php

PHP is a scripting language, a sql database is a *database* such as MySQL. One doesnt mean you have the other. MacemanDerek you named your first script something.php right? not .html. It should work.

Lewis1350 if you want to learn php read the php docs at php.net.
Reply With Quote
  #17  
Old 02-07-2005
koko775's Avatar
Accomplished Graduate Student
 
Join Date: Sep 2004
Posts: 353
Rep Power: 6
koko775 is on a distinguished road
Re: Want to learn php

MySQL is the Windows of the DB world, some say -- and indeed it isn't as good as some other databases. I think it's nigh time for me to try out pgSQL or something.
Reply With Quote
  #18  
Old 02-07-2005
unclekyky's Avatar
Jovially Avuncular
 
Join Date: Sep 2004
Age: 20
Posts: 5,889
Rep Power: 11
unclekyky is on a distinguished road
Re: Want to learn php

you got to remember, MySQL is free and easy, just like bootlegged coppies of Windows....
Reply With Quote
  #19  
Old 02-07-2005
HostBlimp's Avatar
Going for the big Ph.D!
 
Join Date: Jan 2005
Location: CA, USA
Age: 20
Posts: 571
Rep Power: 6
HostBlimp is on a distinguished road
Re: Want to learn php

But bootlegged copies of windows are hard to get to work. *just kidding i wouldnt know*
Reply With Quote
  #20  
Old 02-08-2005
omanofmysteryp's Avatar
Accomplished Graduate Student
 
Join Date: Sep 2004
Posts: 439
Rep Power: 6
omanofmysteryp is on a distinguished road
Re: Want to learn php

nah they probably arnt if you got a corporate version? (Of couse i wouldnt know, no one would :P)
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Tutorial for beginners YoungCoder PHP Articles 19 04-23-2006 02:31 PM
What is PHP? wizard PHP Articles 4 11-27-2005 07:38 AM
Php Syntax wizard PHP Articles 1 10-06-2005 01:53 AM
PHP Manual [Chris's Version] Chrishasfun PHP Articles 0 01-02-2005 03:22 PM
Help ! I need help starting up on Php ! onauc PHP Scripting 5 12-13-2004 01:24 AM