PHP dosyası içerir.

0 Cevap php

I am using include function and it is giving errors. That is file not found. In the kök directory I have - index.php and config.php

index.php içerir config.php ve bazı diğer verileri alır.

config.php veritabanı detaylara sahip ve fonksiyonu / function.php içerir

There is a folder user and it has a file calculate.php in calculate.php I have included AJAX functionality and a file is loaded in it on AJAX call. File is cal2.php and it is located in user folder. Now this, cal2.php has a include function for config.php like:

".. / config.php" içerir;

Bu cal2.php calculate.php ikinci yüklendiğinde

function/function.php dosya yüklü değil. Bu gösteriyor function/function.php için dosya bulunamadı

Yani, dosya yapısı:

  • kök
  • / Index.php
  • / Config.php
  • / User / calculate.php
  • / User/cal2.php
  • / Fonksiyon / function.php

Devam ve function.php cal2.php için hata dahil olması değil nasıl

0 Cevap