A Sharing violation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
david_yg
Forum Newbie
Posts: 20
Joined: Tue Aug 09, 2011 10:19 am

A Sharing violation

Post by david_yg »

When I run the following code:

Code: Select all

<?php


$firstname = "First Name";
$middlename = "Middle Name";
$lastname = "Last Name";

$name = $firstname  .“ “. $middlename .” “. $lastname

echo $name

?>

This errors appears:

A sharing violation occured while accessing C:\xampp\htdocs\php_exercise\exercise1.php

why is it?
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: A Sharing violation

Post by twinedev »

Do you have the file open in Office by any chance? MS office likes taking possession and not letting anything else touch what it has open.

Had a client where their Windows server syncs data with the web server, and they left the main excel file open... sync failed... They finally realized they have to close it ;-)
Post Reply