Page 1 of 1

A Sharing violation

Posted: Fri Sep 16, 2011 12:39 am
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?

Re: A Sharing violation

Posted: Fri Sep 16, 2011 1:10 am
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 ;-)