Jump to content

PHP Problem!!!


jamesb859

Recommended Posts

Hey guys, I am brand new to the forum, please help if you can. I am new to PHP. I got access from my church to edit the youth section of the website. I noticed all the files are in .php format. I have Adobe Design Premium CS4. I downloaded MySQL and have to most recent versions of Apache and PHP on my new MacBook Pro. I went through a tutorial on Lynda.com to install everything and it all went very smooth....but then lynda.com told me download TextMate to test my php. I opened a file and typed the <?php phpinfo ?> into textmate and saved it as a .php file. Then I opened my browser and put in the correct address to view the chart that it is supposed to pull up. All it shows is the code! Then I pull up a page from the church website in dreamweaver CS4 but when I click liveview it just shows up blank. I have no idea what the problem is. Can anyone help?

Link to comment
Share on other sites

Nah, you shouldn't have to.  I typically have the best luck installing Apache, then PHP.  Check your httpd.conf and make sure it has something like...

 

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

 

Also make sure that PHP and Apache are both trying to read the right directories.  The fact that you're getting a response is a good sign so just check those last few things.

 

Link to comment
Share on other sites

http://www.mamp.info/

 

Much easier than trying to install PHP/Apache on your own for development/testing reasons =)

 

Yeah the all-in-one solutions are great, I use them whenever I have the chance.  Getting Apache and PHP to work on a new test environment can be infuriating.

 

I figured out how to set them both up back in the day because PHPTraid sucked. Then once this LAMP and WAMP came out it was always download/install from that package. Soo much less of a headache.

Link to comment
Share on other sites

Ok, like I said I am new to PHP. Thank you very much for the replies so fast. If I run the all in one package do I need to uninstall what I already put on first?

 

It would be a good idea, but chances are the latter will overwrite the earlier. But I would do it just so there is no mistake/errors after you install it.

Link to comment
Share on other sites

I downloaded and installed mamp finally and it says everything should be working. But I still cannot click liveview on dreamweaver. It still just shows a blank page. And when i put my local host address in my browser with the phpinfo code it still just shows the code!

Link to comment
Share on other sites

I downloaded and installed mamp finally and it says everything should be working. But I still cannot click liveview on dreamweaver. It still just shows a blank page. And when i put my local host address in my browser with the phpinfo code it still just shows the code!

 

Are the pages being saved by dreamweaver to the www folder under mamp?

 

If it is not in the www folder then it will not run, due to the fact that just installing PHP on your system does not make it work everywhere.

 

Try saving it to that folder and see what happens.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.