![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
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: ![]() |
|
|
|
|
|
#2 |
|
Professional Programmer
|
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) |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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?
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#5 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#6 |
|
Expert Programmer
|
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.
|
|
|
|
|
|
#7 |
|
Expert Programmer
|
Also what is PHPbb and how do i use it?
|
|
|
|
|
|
#8 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#9 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#10 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|