By default, a web server serves an .html file as static content; PHP code inside it is not executed. Changing that behavior is server-configuration dependent and can affect security, performance, or other files on the account.
The preferred approach is to place PHP in a .php file and update links to that file. If an existing application requires PHP processing in HTML files:
- Back up the site and identify the smallest directory that needs the behavior.
- Ask hosting support which PHP handler and per-directory configuration syntax the server supports.
- Test the approved rule in a staging directory before applying it to production.
- Check both PHP execution and ordinary static files, then inspect the error log for server errors.
A handler directive copied from another provider may be unsupported or may expose source code if misconfigured. Do not apply a site-wide rule without confirmation.
BOSS Solution: For account-specific guidance, contact our support team through the Client Area.
ডিফল্টরূপে, একটি ওয়েব সার্ভার একটি .html ফাইলকে স্ট্যাটিক সামগ্রী হিসাবে পরিবেশন করে; এটির ভিতরে পিএইচপি কোডটি কার্যকর করা হয় না। সেই আচরণ পরিবর্তন করা সার্ভার-কনফিগারেশন নির্ভর এবং নিরাপত্তা, কর্মক্ষমতা, বা অ্যাকাউন্টের অন্যান্য ফাইলগুলিকে প্রভাবিত করতে পারে।
পছন্দের পদ্ধতি হল একটি .php ফাইলে PHP স্থাপন করা এবং সেই ফাইলের লিঙ্ক আপডেট করা। যদি একটি বিদ্যমান অ্যাপ্লিকেশনের এইচটিএমএল ফাইলগুলিতে পিএইচপি প্রক্রিয়াকরণের প্রয়োজন হয়:
- সাইটের ব্যাক আপ করুন এবং আচরণের প্রয়োজন এমন ক্ষুদ্রতম ডিরেক্টরি সনাক্ত করুন৷
- Ask হোস্টিং সমর্থন যা PHP হ্যান্ডলার এবং প্রতি-ডিরেক্টরি কনফিগারেশন সিনট্যাক্স সার্ভার সমর্থন করে।
- উৎপাদনে প্রয়োগ করার আগে একটি স্টেজিং ডিরেক্টরিতে অনুমোদিত নিয়ম পরীক্ষা করুন।
- PHP এক্সিকিউশন এবং সাধারণ স্ট্যাটিক ফাইল উভয়ই চেক করুন, তারপর সার্ভারের ত্রুটির জন্য ত্রুটি লগ পরিদর্শন করুন। অন্য প্রদানকারী থেকে অনুলিপি করা
A হ্যান্ডলার নির্দেশিকা অসমর্থিত হতে পারে বা ভুল কনফিগার করা হলে উৎস কোড প্রকাশ করতে পারে। নিশ্চিতকরণ ছাড়া একটি সাইট-ব্যাপী নিয়ম প্রয়োগ করবেন না।
BOSS Solution: অ্যাকাউন্ট-নির্দিষ্ট নির্দেশনার জন্য, Client এরিয়াএর মাধ্যমে আমাদের সহায়তা দলের সাথে যোগাযোগ করুন।