control structure’s test expression result in a Boolean value


Must a control structure’s test expression result in a Boolean value?

Ultimately, yes. However, in the context of a test expression, zero, an undefined variable, or an empty string is converted to false for the purposes of the test. All other values evaluate to true.

surround a code block in a control statement with brackets


Must I always surround a code block in a control statement with brackets?

If the code you want executed as part of a control structure consists of only a single line, you can omit the brackets. Retaining the brackets for single-line control statements can also help guard against bugs as new lines are added to the block over time.

E-mail viruses help ??


many e-mails with viruses comes to my account . how can i detect and delete these virus.

Antivirus also referred to as ClamAV can solve your problem.
Antivirus checks incoming mail for viruses and if detects any, sends e-mail notification about it and deletes the virus mail. Antivirus resource can be enabled for all mail domains in your account, for specific maildoman and for mail resources of specific maildomain.

how can we manage antivirus protection on our account

To manage antivirus for the entire account:

  1. Select Account settings in the Account menu.
  2. Click to add antivirus resource for all mailboxes or for all mail resources (box, forward, alias, responder) in this account.
  3. You can delete all antiviruses in this account by clicking the Trash icon.

can we manage antivirus protection on the mail domain level and mail resource level ?? and how can we do it

yes, u can do it

To manage antivirus at the level of mail domains:

  1. Go to the Mail Info menu and select a mail domain from the drop-down box.
  2. Click Go and you will see the mail service details of the chosen mail domain:
  3. On the page you will be taken to, add antivirus resource either for all mailboxes of this mail domain or for all mail resouce (box,forward,alias,responder).
    If necessary, you can delete all antiviruses under this maildomain by clicking the Trash icon.
  4. Clicking the antivirus icon will let you configure antivirus settings for mail resources.
  5. Click the Submit button at the bottom of the form.


To configure antivirus protection for a mail resource:

  1. Click the e-mail address in the E-mail list on the Mail Manager page.
  2. Check the AntiVirus box.
  3. Click the Submit button at the bottom of the form.
  4. On the Mail Manager page click the Antispam icon in the Resources included column:
  5. On the page that appears, edit the Antivirus Preferences if necessary
  6. Click Submit.

function that can access and change global variables


Apart from the global keyword, is there any way that a function can access and change global variables?

You can also access global variables anywhere in your scripts with a built-in associative array called $GLOBALS. To access a global variable called $test within a function, you could reference it as $GLOBALS[‘test’]

server statistics help


hi,
i have a server and i want to generates advanced web, ftp or mail server statistics. is there is any tool who can do it ?
hi,
i have a server and i want to generates advanced web, ftp or mail server statistics. is there is any tool who can do it ?

 

Difference between the associative array and a numerically indexed array


Is there any difference between the associative array and a numerically indexed array in PHP?

The division between an associative array and a numerically indexed array is not absolute in PHP. Nevertheless, you should treat them separately because each demands different strategies for access and manipulation.

online payments


hi,
i have a e-commerce website, i want to send and receive payments online. how can i do this

Web Payment System provides Pament service which allows any individual or business with an email address to securely and quickly send and receive payments online. H-Sphere supports WorldPay, PayPal, 2CheckOut, GestPay, PaySystems, PayNova and Webmoney.


Payment Systems require that users make payments through their payment web page.

Once you have registered an account with such a gateway, you enter the account details in H-Sphere. When clients select a web payment system during signup, H-Sphere passes account ID, amount payable, and possibly other details to the gateway. The user is then taken to the gateway’s web control panel to enter the credit card number and complete the transaction. When H-Sphere receives a payment notification, it creates the account.

Since H-Sphere doesn’t store credit card numbers of customers using web payment systems, further payments are also made outside H-Sphere.

how can i configure a web payment system with H-Sphere:

To configure a web payment system with H-Sphere:

1. Register an online account with this web payment system.
2. In H-Sphere admin control panel, select Merchant Gateways in the Settings menu
3. Select the payment system from the drop-down menu and click Edit
4. Enter your account settings (for instructions, follow links in the blue box on the right).
5. Once you enter correct settings, the web payment system will appear in the list as active

user’s FTP directories help


can we see files in user’s FTP directories on the hosting server.

thanks for any help

yes, Virtual FTP Allows authorized or anonymous Internet users to download, upload or view files in user’s FTP directories on the hosting server.

Array keys aren’t quoted


The keys in an associative array are strings, but in its default error reporting state the engine won’t complain if array keys aren’t quoted.

Omitting quotation marks for array keys is poor practice, however. If you use unquoted strings as keys and your error reporting is set to a higher-than-standard level, the engine will complain every time such an element is met. Even worse, if an unquoted array key coincides with a constant, the value of the constant will be substituted for the key as typed.

If the key is stored in a variable, you do not need to use quotation marks:

$agekey = “age”;
print $character[$agekey];