Introduction to Dynamic Web technology PHP: Tips for installing PHP settings

Source: Internet
Author: User
Tags crypt include ini sybase sybase client valid linux

1:doc_root settings

The doc_root in Php3.ini is like the documentroot of the web, if include "/xxx/xxx"; Automatically turns the first/doc_root setting.

For example: Php3.ini in Doc_root set to C:\tmp, then when

Your aaa.php should be in the C:\tmp\dir1\ directory when you include "/dir1/aaa.php"

Session Settings for 2:php4.00

Setting the TMP directory for session in the php4.00 version is always bad, but you can just set the TMP directory to the root of PHP's current disk.

For example: Your PHP4 in e disk, as long as the e-packing directory to create a TMP directory on it

However, the latest version does not seem to have the problem.

3: I upload files, how old wrong

Sometimes the most basic things forget, such as in the php.ini has no set uploadtemp_dir.

4:solaris under php4.0.0 How to support Sybase

First you have to install Sybase client software, otherwise compile PHP will be prompted to find the. h file. Then, when you run the Configure script before compiling PHP, add the--with-sybase parameter. Then use the make command to compile php,make install install it, modify the httpd.conf to restart Apache daemon. That ' s all.

1: Why my Crypt () is not used

Crypt () is under Unix/linux, you cannot use it directly under MS, unless there is a Php_crypt.dll file

Is there a application variable in the ASP in the 2:php?

No, not at least in the current version! But you can do it in a different way.
(1) Linux/unix, it can be implemented by means of shared memory (there is an article on phpchina.com)
(2) can be implemented by means of database or file
(3) Other ways ...

3:session's doubts

Q: If through proxy server, sharing an IP address, then, there is a server session will not conflict ah?

A: In fact, do not worry about this problem, the session is based on cookies, just a message exists in the server, a client, it and IP is not related.

4:cookie's doubts

Q: I test cookies on the local machine to save some values in the guest book, to facilitate the next message not to fill out, but I found a situation: it is in my entire Web page is not closed before all normal, but if the page is closed to reopen after the cookie can not read the value of the reservation, No matter how much time I set the cookie to be useful, why is this so??? If through proxy server, sharing an IP address, then, there is a server session will not conflict ah?

A: The default expiration of a cookie is the connection state, that is, you can link to this site in the browser, the cookie is valid, as long as you have a window is open, this cookie is still valid, but, when you turn off the last window, The link between you and this site is not valid, of course, your cookie is invalid. You can use Setcookie (' $cookie _name ', ' $cookie _vaue ', time () + $sec +8*3600);

5: Unable to locate the input point Zend_err in PHP4ts.dll, why?

Copy the PHP4ts.dll to the SYSTEM32 directory

1: Why the copy of the program error? [Exec ("Rm-rf $counterFile");]

This program is called the shell command under UNIX, Win32 is not recognized RM,



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.