Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fab5freddy

macrumors 65816
Original poster
Jan 21, 2007
1,206
7
Heaven or Hell
When writing PHP code, is it necessary to install MAMP or other installs ?

Could i just upload the PHP files to my Web Server to test them out ?

I have PHP / Apache and MySql installed on my web server.

thanks !
 
If you're talking about a remote web server, you should be able to upload your PHP files and go. If you want to check you can upload a shot index.php file with:
Code:
<?php
phpinfo();
?>
and see if it works. If it does you're golden.

MAMP is for local testing, you don't install it on your production server.
 
This is the ScreenShot when i uploaded that file you wrote.

Does this mean my remote webserver is running PHP 4.4.9 ?

Does that matter that it is not the latest 5.2.9 ?

thanks,
 

Attachments

  • Picture 107.jpg
    Picture 107.jpg
    149.6 KB · Views: 86
This is the ScreenShot when i uploaded that file you wrote.

Does this mean my remote webserver is running PHP 4.4.9 ?

Does that matter that it is not the latest 5.2.9 ?

thanks,

Yes it's running 4.4.9.

It would matter to me as a coder.
 
i have shared hosting with 1 and 1.

Do i have to update it myself, or does 1 and 1 do that ?

Why don't you ask them? Many webhosts offer both PHP4 and PHP5 at the same time for compatibility reasons, though v4 is EOL, so I suspect they'll be trying to usher people over to PHP5. You probably just have to switch an option in your account.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.