how i can create pages dynamically on users any action?
this is how one can do so.
First make a content type (also can use Basic Page type).
Then the below code will make pages(nodes of the content type) dynamically.

&lt;?php
// Construct the new node object.
$node = new stdClass();

// Your script will probably pull this information from a database.
$node-&gt;title = "My imported node";
$node-&gt;body = "The body of my imported node.\n\nAdditional Information";
$node-&gt;type = 'mynewpage';   // Your specified content type
$node-&gt;created = time();
$node-&gt;changed = $node-&gt;created;
$node-&gt;status = 1;
$node-&gt;promote = 1;
$node-&gt;sticky = 0;
$node-&gt;format = 1;       // Filtered HTML
$node-&gt;uid = 1;          // UID of content owner
$node-&gt;language = 'en';
// If known, the taxonomy TID values can be added as an array.
$node-&gt;taxonomy = array(2,3,1,);

node_save($node);
?&gt;


if you need to create nodes at root of Drupal directory you also need to include these lines in start of the code

// Bootstrap Drupal
require 'includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);