Can we enable and disable cluser?

How to disable Cluster ?

Location of my file shows
/nas/wp/www/cluster-40926/securityorg/test_moodle

Here is the code

Read More
$dir = dirname(__FILE__);
echo "Full path to this dir: " . $dir;

Output:

Full path to this dir: /nas/wp/www/cluster-40926/securityorg/test_moodle

How to remove cluster-40926 from my path directory.

Related posts

1 comment

  1. if you really want to just remove it you could use preg_replace(), because it is always the same, it is easy to find and you can just replace it with nothing!

    preg_replace($patterns, $replacements, $string);
    
    $new_dir = preg_replace('-40926', '' , $dir);
    

Comments are closed.