Welcome to the MacNN 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. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > newbie tryin to learn PHP

newbie tryin to learn PHP
Thread Tools
Forum Regular
Join Date: Oct 2002
Location: upstairs
Status: Offline
Reply With Quote
Oct 27, 2002, 12:12 PM
 
Hello everyone-

I recently started reading up on PHP to further my web design skills and I had a few questions. I'm ready to start playing around with my own scripts but there is a problem. I don't even know if PHP is installed on my machine (new to unix & server administration).

I looked on PHP.net and found a new 4.2 version with "extra features" but it also says that a basic version already exists on OS X. I'm running 10.1.5 and I can't seem to get the test file with PHPinfo(); to work. All I'm tryin to do is test and see if php is functioning on my local server so I can learn locally as opposed to my hosted account (I know their php is working).

Apache is running and I have dropped the test.php file into library/webserver/documents but all I get is a blank screen. I saw on a post in here about a permissions problem? If one of you wouldbe kind enough to shove me in the right direection I would really appreciate it.
---------------------------------------
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 27, 2002, 12:54 PM
 
there's no real permissions deal with php, unless you need to write to the file. are you sure it's installed properly? try checking Marc's site, for an easy install, and some other cool stuff: www.entropy.ch

that should sort out your troubles
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Oct 27, 2002, 01:07 PM
 
http://www.macdevcenter.com/pub/ct/49

......was the resource that got me up and running.

That meant discovering the terminal to configure the apache webserver (four lines need "comment tags" removed) inbuilt with Mac Ox, and then knowing where to place one's php files for opening later in the browser.....

library >>>>> webserver >>>>> documents

It's way cool when you start getting results, good luck.
     
Forum Regular
Join Date: Oct 2002
Location: upstairs
Status: Offline
Reply With Quote
Oct 27, 2002, 06:06 PM
 
Just wanted to thank you both for pointing me in the right direction. PHP 4.x is configured and running and now I have to write some scripts. This will be much more fun when I get a new machine. I'm running this all on an 8600/250 with a few upgrades. Anyway, thanks for all the help-
---------------------------------------
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 06:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2