/    Sign up×
Community /Pin to ProfileBookmark

How can you test PHP sites?

If I have a PHP script I want to test what do I need instead of uploading it to a server?

I know with .asp you can use Visual Basic.net… if I remember correctly. At least I think that’s how I was doing it.

What do you need for PHP to do the same thing so you can see how it renders as an HTML page?

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@SyCoAug 07.2008 — Be sure to check you test server (the local xampp) and you production the (the host) are configured the same (or at least similar).

phpinfo(); will let you examine the ini file on both.

IF your server is Linux you can avoid headaches by installing a virtual machine (like the FOpenSourceS Virtual Box) and install LAMP on a Linux distribution like Ubuntu or Fedora.
Copy linkTweet thisAlerts:
@pathfinder74authorAug 07.2008 — Can it be run from a Windows xp laptop without a hitch?

I just want a "virtual" server... I don't have a whole "home" serve farm to load this on to.
Copy linkTweet thisAlerts:
@SyCoAug 07.2008 — If your laptop can run XP the you should be fine. Running inside virtual box wil take more Horsepower but it's not necessary.
Copy linkTweet thisAlerts:
@pathfinder74authorAug 08.2008 — Really all I need is an app that will render the PHP to HTML... I don't even need the server... do I?
Copy linkTweet thisAlerts:
@skywalker2208Aug 08.2008 — Really all I need is an app that will render the PHP to HTML... I don't even need the server... do I?[/QUOTE]
Just download XAmpp or wamp this will install php, mysql and linux. You will then be able to run your php scripts.
Copy linkTweet thisAlerts:
@pathfinder74authorAug 08.2008 — sweeeeeet
Copy linkTweet thisAlerts:
@SyCoAug 08.2008 — Whe A in wamp is Apache
Copy linkTweet thisAlerts:
@rootAug 08.2008 — Here is one alternative, Abyss web server, which if you read up on the history of it is something born out of a walk out from the Apache foundation.

IF all you need to test is PHP then install the php5.2.2 on offer from the resources on the Abyss site.

Total load is a fraction of the XAMPP offering which I have tried and TBH not impressed with, it eats too much resources.

Both XAMPP and Abyss can run from a flash drive if you want it to.
×

Success!

Help @pathfinder74 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...