Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 7th, 2005, 12:02 AM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Exclamation PHP General Help

I need help with everything. I just downloaded something from PHPbb's site and I need to know how i can view stuff written in PHP on my computer. I also would like to know if anyone can give me a basic knowlege of PHP programming, and how i use it in my web page (do i just put it in with the html or what?). :mad:
crawforddavid2006 is offline   Reply With Quote
Old Aug 7th, 2005, 4:24 PM   #2
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
You can put it in with HTML, yeah

<html>
....
<body>
<? print "Hello World!"; ?>
</body>
</html>

Go check out www.spoono.com/php for a web refence.

I'd also reccomend PHP5 fast and easy web development (http://www.amazon.com/exec/obidos/tg...books&n=507846)
And PHP and MySQL Web Development (http://www.amazon.com/exec/obidos/AS...791061-8450343)
Lich is offline   Reply With Quote
Old Aug 7th, 2005, 9:15 PM   #3
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Do I need special software?

Do I need special software to view it on my computer. I have Macromedia Dreamweaver MX and I can view my site in that do I need special software to see it or do i need to find a server that suports it. And If I do need special software where can i get it?
crawforddavid2006 is offline   Reply With Quote
Old Aug 7th, 2005, 9:35 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You can view your code in Dreamweaver. After all, it's just text. Dreamweaver will even give you syntax highlighting. If you want decent debugging capabilities, you might look into Zend or similar. You don't state your experience level. Many neophytes mistakenly assume that the HTML and Javascript code (if present) are in an interactive relationship with the PHP code because they are interspersed on the page. This is not the case. The interleaving on the page just indicates how the page is being built at the server, for transmission and rendering at the client.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 7th, 2005, 10:14 PM   #5
Lich
Professional Programmer
 
Lich's Avatar
 
Join Date: May 2005
Location: Detroit
Posts: 254
Rep Power: 4 Lich is on a distinguished road
Send a message via AIM to Lich Send a message via MSN to Lich
Special software....yes

Since PHP is a server side language, you need a server.

If you want to run it on your PC and not on a web server...you need to turn your PC into a web server. Get the apache software from apache.org (unless you want to run MS IIS, which you can do if you have XP Pro or server 2k3 running) then get php for it from php.net and install it (it's kinda tricky, but you can do it).

Then set your html directory (mine is D:\public_html\ and I just keep all my html/web stuff in there) and move the php file into that directory. Then run it from the browser by typing

http://localhost/filename.php
Lich is offline   Reply With Quote
Old Aug 7th, 2005, 11:02 PM   #6
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
OK Just to let you know I have no idea how to program in PHP I am trying to learn it and things just arent goin well. So please dont make things to complicated. The only language I am really good at is HTML and a little of Visual Basic 6.0.
crawforddavid2006 is offline   Reply With Quote
Old Aug 7th, 2005, 11:04 PM   #7
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Also what is PHPbb and how do i use it?
crawforddavid2006 is offline   Reply With Quote
Old Aug 8th, 2005, 8:02 AM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
PHPbb is a bulletin-board/forum package. You put it on your server, set it up, and run it.

If you want to program in PHP, then you need a server to run it on. I believe you can get a compiler and run stand-alone apps, but its larger purpose in life is server-side web applications. HTML is only a markup language, not a programming language. A common web app combo would be HTML in conjunction with PHP for dynamic construction and a SQL database for the almost inevitable data storage requirements.

We are not making things complicated. We are apprising you of facts. If you want to be a mechanic you have to bite the bullet and get some tools. The complexities of the automotive engine don't go away just because you haven't learned them yet.

I would suggest you get an AMP package or similar. That would be Apache/mySql/PHP. I found it more effective to install them separately and hook up and adjust them myself, but you can find installable binary packages that purport to do it all for you. If you have a web site provider that will support your usage of PHP and provide you with a database, you can just use that. The "freebie" sites don't normally give you that much capability.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 8th, 2005, 8:17 AM   #9
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,473
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
On how to write PHP code / syntax... check here:
http://www.php.net/manual/en/
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 8th, 2005, 8:20 AM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Let me second IR's post. If you're writing PHP code and if you're a newbie at it (as I am), have that manual up in a window somewhere. It's one of the best I've seen for quick reference and for finding functions you will wind up needing.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:55 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC