Yolunu tanımlamak nasıl

0 Cevap php

I know it may be simple question to all experienced developer.. I have trapped with the problem that how to set the path in bootstrap file

gibi ......

i yerel üzerinde çalışırken ... ben bu yolu kullanmak

 $filenam = "C:/xampp/htdocs/application/public/pdf_profile/$pdfname.html";

i bu özel dosyayı upload zaman ... ben bu yolda .. değişiklik yapmak gerekir .. bu böyle

$filenam = $_SERVER['DOCUMENT_ROOT']."/public/pdf_profile/$pdfname.html"; 

i want to know is there any solution to prevent change again n again .. like any change in bootstrap file .. how to define path in this way that i have no need to worry about path.. at time of local or live Basically am working with zend

şimdiden teşekkürler!

0 Cevap