Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you start

Status
Not open for further replies.

bongmarley

Programmer
Oct 21, 2002
74
CA
I have just installed php mysql and apache from easyphp.org. Now I want to get started. Where do I save my code and how do I look at the webpages. I know this may be a dumb question but I am very new at php.
 
Take a look at httpd.conf to see where Apache's looking to find your web documents. Look for the directive &quot;DocumentRoot&quot;, probably inside a pair of &quot;<VirtualHost>...</VirtualHost&quot; directives.

Put the script there, then reference it through a web page. Want the best answers? Ask the best questions: TANSTAAFL!
 
Its an ini file in your dir: /apache/conf/httpd.conf open it up with a text editor Regards
David Byng
bd_logo.gif

davidbyng@hotmail.com
 
I can find my apache folder but there is no conf folder inside.
 
typically, on Linux/unix all the pages are kept in
Code:
/var/www/http/
. To veiw your creations, type in your IP address into your web-browser. As for configuaration and all that, the conf files aren't as scary as they might seem at first.
 
Are there any web sites I can go to that explain php downloads in detail. I cant seem to find what I am looking for so I may have to reinstall it
 
I found the file. I had erased some things so it was gone but now I reinstalled it and its there. Sorry guys
 
first learn about the file system for the OS you are working with, then
get a php for dummies book and read it

I know this sounds mean but I mean it sincerly...

It helped me with VB6
&quot;Hacker by Heart&quot;
saenzcorp@hotpop.com
 
bongmarley:

Start with a &quot;Hello, world&quot; program and work your way up. Walk through PHP online tutorials. Buy a (as [/b]Maverick[/b] said) &quot;For Dummies&quot; book on PHP or a &quot;Teach yourself PHP in X days&quot; book and get busy.

All you have to do is write a file in that directory and point to it with your browser. If everything is up and running correctly, the PHP engine will run the file.

Here's a simple test program to run. Create this as a file name &quot;phpinfo.php&quot;:

<?php
phpinfo();
?>

Then point your browser to
You should get a long page describing all the configuration options used to compile PHP and other stuff. Want the best answers? Ask the best questions: TANSTAAFL!
 
HUH?

bongmarley said The installation is for a Mac OSX...

Then bongmarley says I found the document root which is &quot;C:/Program Files/EasyPHP/ now what do i do

Can you come back with a little bit of sense? Are you running VirtualPC or have you been confusing everyone here for no reason?
 
I asked here because I felt his problem was very similar to mine and my basic instinct was to ask the same question here too.

I did not mean to hijack his thread but just wanted to help myself and bongmarley ( yes I know he is on Mac OSX ).

vijay.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top