G
G
Gabrielll2019-04-15 01:56:11
webdav
Gabrielll, 2019-04-15 01:56:11

Is it possible to create WebDav on windows server without IIS?

I do not understand anything in the subtleties, I made a server on IIS, it worked fine, I mounted it via webdrive as a disk. Using the instructions I can deliver and get the job done, so it's hard to say how well I understand. Now there is an Apache + MYSQL + phpmyadmin server, it is already up and running, the page displays the contents of the htdocs folder, but this is not WebDav of course. I wondered if Apache would help me somehow make WebDav, because if I start IIS again, they will not work together. Tell me what you can do, assign the old WebDav to another port, and still turn it on together, or create a new one, if possible. I really need help please

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
WP Panda, 2017-02-21
@wppanda5

Do not produce extra code and be more careful

function b2w_theme_assets) {
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/css/bootstrap.css');
wp_enqueue_style( 'style_css', get_template_directory_uri() . '/css/style.css');
wp_enqueue_style( 'jasny_bootstrap_css', get_template_directory_uri() . '/css/jasny-bootstrap.min.css');

wp_enqueue_scripts( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'), '', true);
wp_enqueue_scripts( 'jasny_bootstrap_js', get_template_directory_uri() . '/js/jasny-bootstrap.min.js', array( 'bootstrap_js'), '', true);
}

add_action ('wp_enqueue_scripts', 'b2w_theme_assets');

D
Denis Yanchevsky, 2017-02-20
@deniscopro

The function name is incorrect in add_action.
Try like this:

<?php 
function b2w_theme_styles() {
wp_enqueue_style( 'bootstrap_css', get_template_directory_uri() . '/css/bootstrap.css');
wp_enqueue_style( 'style_css', get_template_directory_uri() . '/css/style.css');
wp_enqueue_style( 'jasny_bootstrap_css', get_template_directory_uri() . '/css/jasny-bootstrap.min.css');
}

add_action ('wp_enqueue_scripts', 'b2w_theme_styles');

function b2w_theme_js() {
wp_enqueue_scripts( 'bootstrap_js', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'), '', true);
wp_enqueue_scripts( 'jasny_bootstrap_js', get_template_directory_uri() . '/js/jasny-bootstrap.min.js', array( 'jquery'), '', true);
}

add_action ('wp_enqueue_scripts', 'b2w_theme_js');
?>

T
trulyalya bonjur, 2018-08-01
@AKKJIuMATu3uPOBAHHbIEE_PA

working version:

function add_namejs() {
    wp_register_script('namejs', home_url() . '/wp-content/themes/ваша_тема/js/namejs.js', array( 'jquery' ));
    wp_enqueue_script('namejs');
}
add_action( 'wp_enqueue_scripts', 'add_namejs' );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question