Jump to content
xisto Community
Xenon

How do you test your php code

Recommended Posts

We know that php is a server side scripting language. So we will need a server with the php parser to parse/test our code.How are you doing that. Do you upload it to a server for testing or did you instal php and the server (apache) on your computer (localhost)

Share this post


Link to post
Share on other sites

I don't run my own server so I test all server-side scripts through the web host. Testing your scripts locally is deemed good practice, but the logistics involved in running your own server beats down the practicality value at the moment. Also, sometimes your local server may run scripts differently than your actual host.

Share this post


Link to post
Share on other sites

I always test my scripts locally before sending them anywhere. If your server is configured differently, then change the configuration to match the host. You can find all the information you should need to match by calling phpinfo().

Share this post


Link to post
Share on other sites

I always upload them and test them, I always expect at least one error the first time. Maybe when I get a good enough computer I'll install PHP in it.

Share this post


Link to post
Share on other sites

Well I do need a good connection 'cause I've had other people connect to my pc using CesarFTP but it doesn't work after a while.

Share this post


Link to post
Share on other sites

i use a home webserver, i installed apache triad, which installs apache, php mysql and a bunch of other stuff, im building my entire site on it b4 i upload it, plus its nice and fast

Share this post


Link to post
Share on other sites

is there the programme "dreamweaver" in your country??
i make use of it to test the codeĀ  :P



How do you test with that... I just get it to check code-syntax not that the code are working.


I think there are some php-editors that have a builtin debuger... but have not found one yet.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.