Win 2003 Server, IIS 6, PHP 5 : Error: security error (ACL ERROR).

I am using Win 2003 Server, IIS 6, PHP 5.

If you see "You are not authorized to view this page" error when running your PHP page.

Try one more thing:
1. Right-click {C:\php} (or your PHP installation root) and select {Properties}
2. Select {Security} tab and click {Add} button
3. Enter {ComputerName/IUSR_ComputerName} as object name and press {OK}
4. Select {Read & Execute} as permissions
5. Click {Advanced} button and select {Allow inheritable permissions from the parent...} checkbox
6. Press {OK}

How to setup a local web server on your computer using XAMPP

Installing XAMPP on your computer

  1. First, download XAMPP for Windows Installer
  2. Then run the installer on your computer and make sure that your Windows firewall unblocks Apache.
  3. Run the Apache administrator.
  4. Open your browser and go to – If all went well, a screen will appear where you can choose your language.
  5. Go to and setup a password (i

How to: Restrict page view to authenticated users – WordPress

To check if the current reader is authenticated or not, WordPress provide the is_user_logged_in()function, which will return true if user is logged in, false otherwise.

We just have to create a basic php conditional instruction and check if the user is logged in:

if (is_user_logged_in()) {

// You page code goes here
} else {
echo "You must be logged in to view this page.";

Insert the code above in a new page template. When you’ll want to make a private page, just use this template.

Registration Module in WordPress: WP-Members

Download Plugin –


WP-Members™ is a plugin to make your WordPress blog a membership driven site. Perfect for newsletters, private blogs, premium content sites, and more! The plugin restricts selected WP content to be viewable by registered site members. Unlike other registration plugins and WordPress itself, it puts the registration process inline with your content (and thus your branded theme) instead of the native WP login page. WP-Members™ works “out-of-the-box” with no modifications to your theme, but it is fully scalable for those that want to customize the look and feel, or want to restrict only some content. It is a great tool for sites offering premium content to subscribers, and is adaptable to a variety of applications. Continue reading Registration Module in WordPress: WP-Members

Create a CSV file from MySQL with PHP

The example code below uses the raw mysql_* functions but it should be easy enough to substitute a database library’s functions instead. It also writes the data out line by line to the CSV file whereas you could buffer the whole file in memory and write it out at one go; however if the resultset is large it may be better to write it out line by line so as not to consume too much memory.

The $server, $login, $password, $db and $table variables should be obvious in their purpose 🙂 Continue reading Create a CSV file from MySQL with PHP