Jump to content
xisto Community
whistle

Need Scripts For Testing Server's Limitation

Recommended Posts

There are lots of web hosting provider and some of them are free. How can you know what problem your PHP scripts would involved in when you get a web hosting which supports PHP.I have found 2 problems. One is about the function mail(), the other is about safe mode. Of course, there may be others problems, I hope someone can adds the problem in this thread for more detail discussion.The first question is how I can know the function mail() work properly. If you use function mail() in your PHP scripts, error message may be shown if the server does not support sendmail. The mail() may do nothing if the configuration of the sendmail is not correct. Can anyone provide some simple PHP scripts for testing function mail()?The second question is how I can know whether the server is in safe mode or not? If the server is in safe mode, it will limit the functionalities of your PHP scripts to operate the file system, i.e. directory creation or file creation. Can anyone provide some simple PHP scripts for testing the safe mode?

Share this post


Link to post
Share on other sites

Create info.php with

<?php   phpinfo();?>

Next put them on server and run then in web browser.


--------------------

Practice is when evrything is work but no one know why.
Theory is when work nothing but evry one know why.
Programmers join Practice with Theory - nothing work and no one know why :)

Share this post


Link to post
Share on other sites

Create info.php with

 

<?php   phpinfo();?>

Next put them on server and run then in web browser.

165228[/snapback]


Thanks for your help. It surprises me, there are so many detail information about the server and my browser. I think that I have a good beginning to study PHP.

Share this post


Link to post
Share on other sites

Or, you can also access the PHPINFO via the cPanel.. -_-

170543[/snapback]


I have another question related to this topic. How can I know wether my server runs in safe mode or not? This is a big problem if my php scripts try to create directories or files. If I can know it early, I can deserve a lot of efforts for trying somewhere else. You know, time is money.

 

Moreover, I hope to know other limitation of the safe mode.

Share this post


Link to post
Share on other sites

From your question:How can I know wether my server runs in safe mode or not?Did you mean php runs in safe mode or not ?You could check whether php runs in safe mode or notby phpinfo step above and find lines ctrl+f "safe_mode"

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.