first off, i know absolutely nothing about php.
your all thinking, you poor guy. lol but i do have a good knowledge of html and iv done quite a bit of programming. i've done C and Java at university, and iv taught myself VB. regards to databases ive done quite a bit with MS access and im always learning more about querys and database organization.
ive heard that PHP is similar to c so im sure i'll catch on to that part very quickly. im sure theres plenty of documentation on syntax and function calls available online somewhere. what i think will be more trouble (and is basically the reason i have been afraid to try to learn php before now) is how to set it all up.
what do i have to do to get it all started off. what do i have to install? what does my server have to support? how would modules such as php nuke be associated with this? if the server supports php can i just start calling functions in my html document? where do i put the php code? how do i interface with a database in php? (does it have to be SQL? another thing that i was afraid to learn)
i would like to set up phpThumb() http://phpthumb.sourceforge.net/demo/de ... .demo1.php so that i can do my thumbnails for my photos quickly. but im sure im going to run into trouble
eventually i want to do a small page with a fixed map (geographical) and be able to point to places on the map and have a tooltip appear with info on that location read from a database, for this i know i'll need php
can anyone point me in the right direction.
Thank you so much in advance.
help me get started please
Moderator: General Moderators
1) to set up php, are you using windows are linux?...need more info here
2) your server need to have a web server (obviously) apache or IIS
3) I don't know what php nuke is...therefore I am the newb here
4) yes can spatter php throughout your html just enter any php within php blocks <?php and ?>, it's good practice to try to keep it all together though, usually at the top of the page so other programmers can find and manipulate it easily
5) php and MySQL work very closely together, there are other dbs you can use with php, but MySQL is, for the most part, the standard and as a beginner, that's probably where you'd want to start
6) MySQL is a SQL based database, so you're going to need to brush up on your querying skills if you want to really be able to use it
2) your server need to have a web server (obviously) apache or IIS
3) I don't know what php nuke is...therefore I am the newb here
4) yes can spatter php throughout your html just enter any php within php blocks <?php and ?>, it's good practice to try to keep it all together though, usually at the top of the page so other programmers can find and manipulate it easily
5) php and MySQL work very closely together, there are other dbs you can use with php, but MySQL is, for the most part, the standard and as a beginner, that's probably where you'd want to start
6) MySQL is a SQL based database, so you're going to need to brush up on your querying skills if you want to really be able to use it
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
Hey i know how your feeling. I was in your shoes not so long ago. so ill give you a hand as so many other people in these forums have done for me.
If you want to do everything by hand these sites will get you started:
http://www.apache.org
http://www.mysql.com
http://www.php.net
However for most people, installing and configuring everything by hand is a bit confusing. A lot of people opt to use phpTriad or something of that sort. Which is a program you install and it configures everything for you. Its pretty nice.
http://sourceforge.net/projects/phptriad
Once you have your server up and ready. You just place all of your php files in a folder created when you installed apache. The default is htdocs. and to view the script you simply point your browser to http://localhost and you will be able to view your files.
To use modules such as phpnuke and postnuke you would simply dump all the files into your htdocs directory. And create the mysql database. A nifty tool for mysql is phpMyAdmin.
http://www.phpmyadmin.net
As for calling php functions into your html document i dont think thats possable. It has to be a php document inorder for the php to work. How ever you can use html in php documents.
You might want to invest in a book. My first book was "PHP/MySQL Programming for the absolute beginner" by andy harris
it was pretty good.
hth
edit | eh Burrito posted while i was typing lol, our posts should get you started
Well php unline html is a server side script. Which basically means it gets executed on the server before it is displayed in your browser. In order for your server to be able to execute the php you need a web server (apache) and PHP configured, along with a mysql server if you plan on using databases.what do i have to do to get it all started off. what do i have to install? what does my server have to support? how would modules such as php nuke be associated with this? if the server supports php can i just start calling functions in my html document? where do i put the php code? how do i interface with a database in php? (does it have to be SQL? another thing that i was afraid to learn)
If you want to do everything by hand these sites will get you started:
http://www.apache.org
http://www.mysql.com
http://www.php.net
However for most people, installing and configuring everything by hand is a bit confusing. A lot of people opt to use phpTriad or something of that sort. Which is a program you install and it configures everything for you. Its pretty nice.
http://sourceforge.net/projects/phptriad
Once you have your server up and ready. You just place all of your php files in a folder created when you installed apache. The default is htdocs. and to view the script you simply point your browser to http://localhost and you will be able to view your files.
To use modules such as phpnuke and postnuke you would simply dump all the files into your htdocs directory. And create the mysql database. A nifty tool for mysql is phpMyAdmin.
http://www.phpmyadmin.net
As for calling php functions into your html document i dont think thats possable. It has to be a php document inorder for the php to work. How ever you can use html in php documents.
You might want to invest in a book. My first book was "PHP/MySQL Programming for the absolute beginner" by andy harris
it was pretty good.
hth
edit | eh Burrito posted while i was typing lol, our posts should get you started