MoonPoint Support Logo

 


Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
February
Sun Mon Tue Wed Thu Fri Sat
   
         
2011
Months
Feb


Wed, Feb 16, 2011 10:44 pm

Adjusting Space Between Bullets and Text for PowerPoint 2008 for MAC

If there is no space between the bullet character and the text that goes with the bullets, you can insert space between the bullets and the text by takng the following steps when using Microsoft Powerpoint® 2008 for Mac:
  1. Select all of the bulleted text on the slide.
  2. Choose Format
  3. Choose Paragraph
  4. For the vaule of Special, choose Hanging and then put a value in the By field, e.g. 0.38.

    PowerPoint 2008 for MAC - adjusting bullet to text spacing

  5. Click on OK.

[/os/os-x/software/office] permanent link

Sun, Feb 13, 2011 10:34 pm

Using suexec to run PHP under a different account

I wanted to run PHP for some virtual hosts on a webserver using the user's account for her websites that were handled in Apache's httpd.conf via virtual hosts. To do so, I used use suEXEC, but it took me quite awhile to get it to work..

[ More Info ]

[/languages/php] permanent link

Fri, Feb 11, 2011 9:12 pm

Whoami - How to determine the account under which PHP is running

If you need to determine the account under which PHP is running on a web server, you can use the code below:
<?php
  passthru("whoami");
?>

On a web server running Apache as the web server software, you can expect this to be the same as the account under which Apache is running, so you may see apache as the result. Or, if the system is using virtual hosts and suexec, e.g., with an SuexecUserGroup directive in Apache's httpd.conf file for the virtual host, then you may see the userid associated with the website listed.

If you wish to see the user ID, group ID, and groups for the account under which PHP is running, you can use the following code:

<?php
system("id -a");
?>

If PHP and Apache are running under the apache userid, you might see output similar to the following:

uid=48(apache) gid=48(apache) groups=48(apache)

Reference:

  1. How to find out what user PHP is running as
    Date: December 13, 2007
    PHP, MySQL and Affiliate Marketing Technology | davidmorison.com

[/languages/php] permanent link

Once You Know, You Newegg AliExpress by Alibaba.com

Shop Amazon Local - Subscribe to Deals in Your Neighborhood

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo