i have a problem how to make a lock feature with ajax-php where a user view some file in the list file, another user will view lock message without refresh it page.

Member Avatar for langsor

Your question is not very clear to me, but I'll take a stab at it anyway ... no promises.

It is the PHP end of things that will retrieve and (hopefully) lock the files, so this isn't an AJAX question at all, AJAX is a separate issue here.

From my understanding flock is a platform dependent technology so you would have to be running your PHP server on an OS that supports this (UNIX-like).

From here I refer you to the excellent examples and discussion on the main PHP website ...
http://us2.php.net/manual/en/function.flock.php

Enjoy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.