Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Another PHP include method problem
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="GT9" data-source="post: 15252965" data-attributes="member: 478359"><p><span style="font-size: 12px"><span style="color: DarkRed">මචන් අදත් මට හෙන PHP කේස් එකක්.<img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /> මේකයි මචන් කේස් එක. මම මචන් normal php file එකක් වෙනත් PHP file එකකට කෝල කරන ක්රමයන්ගෙන් එකක් වන PHP include use කරල call කරා.. ඉතින් කේස් එකක් නෑ අවුලක් නැතිව වැඩ.. ඕක ඉතින් හෙන සිම්පල් කේස් එකක් නේ....<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /> අහ් අනිත් එක මචන් මෙතනදී මම php include වෙනුවට use කරේ php require කියන එක..<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">මෙන්න මෙහෙමයි කරේ.....</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">[PHP]<?php </span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require '../top.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require 'navi.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require '../bottom.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">?>[/PHP]</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">හරි දැන් ඉතින් ඔය උඩ තියෙන විදියට කරාම... top.php , navi.php, bottom.php ලෙසටම ලොඩ් වෙලා එළකිරි වගේ වැඩ....<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">-----------------------------</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">දැන් ඉතින් මම පොඩි පන්ඩිත වැඩක් කරන්න ගියා.<img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /> මේකයි මම කරේ.. මම කරේ.... මෙන්න මේ.... top.php , navi.php, bottom.php ෆයිල්ස් ටික පොඩි සරල php function එකක් හරහා ලොඩ් කිරීමයි.. ඒ කරපු විදිය පහත තියෙනවා... <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">[PHP]</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"><?php</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">function topItems(){</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require '../top.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require 'navi.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require '../bottom.php'; </span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">}</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">?></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">[/PHP]</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">ඔන්න ඔය වගේ simple function එකක් ලියල.. අර ෆයිල් එකට topItems(); කියල call කරා.. ඒ වගේම function එක තියන file එකත් php require use කරල call කරා..දැන් ඉතින් කිසිම error එකක් නැතිව වැඩ..<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">හොඳින් බලද්දි පොඩි අවුලක් තියෙනවා..<img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /><img src="/styles/default/xenforo/smilies/default/eek.gif" class="smilie" loading="lazy" alt=":eek:" title="eek :eek:" data-shortname=":eek:" /><img src="/styles/default/xenforo/smilies/default/baffled.gif" class="smilie" loading="lazy" alt=":baffled:" title="Baffled :baffled:" data-shortname=":baffled:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /> මේකයි කේස් එක.. ඔය navi.php තියෙන පොඩි කෝඩ් එකක් වැඩ කරන්නේ නැතිව යනවා... නමුත් වැඩේ කියන්නේ..</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">මම Normal විදයට මෙන්න මේ වගේ....</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require '../top.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require 'navi.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">require '../bottom.php';</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">call කරාම වැඩ කරන්නත්....</span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">මේ වගේ function එකක් through call කරාම වැඩ නොකරන්නයි හේතුව කුමක්? අන්න ඒකයි මගේ ගැටලුව....<img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /><img src="/styles/default/xenforo/smilies/default/oo.gif" class="smilie" loading="lazy" alt=":oo:" title="Oo :oo:" data-shortname=":oo:" /> මෙතනදී මචන් top.php , bottom.php ලෙසට වැඩ.. navi.php එකේ තමයි කේස් එක.. නමුත් එකත් ලෝඩ් වෙනවා.. නැත්නම් error එකක් එන්න ඕනනේ.. but load උනත් navi.php එකේ තියනෙ කෝඩ් එකක් run වෙලා හැදෙන පොඩි item එකක් පෙන්නන්නේ නැත්තේ ඇයි...? <img src="/styles/default/xenforo/smilies/default/shocked.gif" class="smilie" loading="lazy" alt=":shocked:" title="Shocked :shocked:" data-shortname=":shocked:" /></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed"></span></span></p><p><span style="font-size: 12px"><span style="color: DarkRed">මට හෙන ප්රශ්නයක් මේක... PHP කොල්ලෝ මේකට මට සප් එකක් දෙන්න මේක ලිහා ගන්න....<img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /><img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/yes.gif" class="smilie" loading="lazy" alt=":yes:" title="Yes :yes:" data-shortname=":yes:" /></span></span></p></blockquote><p></p>
[QUOTE="GT9, post: 15252965, member: 478359"] [SIZE="3"][COLOR="DarkRed"]මචන් අදත් මට හෙන PHP කේස් එකක්.:sorry: මේකයි මචන් කේස් එක. මම මචන් normal php file එකක් වෙනත් PHP file එකකට කෝල කරන ක්රමයන්ගෙන් එකක් වන PHP include use කරල call කරා.. ඉතින් කේස් එකක් නෑ අවුලක් නැතිව වැඩ.. ඕක ඉතින් හෙන සිම්පල් කේස් එකක් නේ....:D:yes: අහ් අනිත් එක මචන් මෙතනදී මම php include වෙනුවට use කරේ php require කියන එක..:D:yes: මෙන්න මෙහෙමයි කරේ..... [PHP]<?php require '../top.php'; require 'navi.php'; require '../bottom.php'; ?>[/PHP] හරි දැන් ඉතින් ඔය උඩ තියෙන විදියට කරාම... top.php , navi.php, bottom.php ලෙසටම ලොඩ් වෙලා එළකිරි වගේ වැඩ....:D:yes: ----------------------------- දැන් ඉතින් මම පොඩි පන්ඩිත වැඩක් කරන්න ගියා.:P මේකයි මම කරේ.. මම කරේ.... මෙන්න මේ.... top.php , navi.php, bottom.php ෆයිල්ස් ටික පොඩි සරල php function එකක් හරහා ලොඩ් කිරීමයි.. ඒ කරපු විදිය පහත තියෙනවා... :D:P [PHP] <?php function topItems(){ require '../top.php'; require 'navi.php'; require '../bottom.php'; } ?> [/PHP] ඔන්න ඔය වගේ simple function එකක් ලියල.. අර ෆයිල් එකට topItems(); කියල call කරා.. ඒ වගේම function එක තියන file එකත් php require use කරල call කරා..දැන් ඉතින් කිසිම error එකක් නැතිව වැඩ..:D:yes: හොඳින් බලද්දි පොඩි අවුලක් තියෙනවා..:sorry::eek::baffled::rofl: මේකයි කේස් එක.. ඔය navi.php තියෙන පොඩි කෝඩ් එකක් වැඩ කරන්නේ නැතිව යනවා... නමුත් වැඩේ කියන්නේ.. මම Normal විදයට මෙන්න මේ වගේ.... require '../top.php'; require 'navi.php'; require '../bottom.php'; call කරාම වැඩ කරන්නත්.... මේ වගේ function එකක් through call කරාම වැඩ නොකරන්නයි හේතුව කුමක්? අන්න ඒකයි මගේ ගැටලුව....:yes::oo: මෙතනදී මචන් top.php , bottom.php ලෙසට වැඩ.. navi.php එකේ තමයි කේස් එක.. නමුත් එකත් ලෝඩ් වෙනවා.. නැත්නම් error එකක් එන්න ඕනනේ.. but load උනත් navi.php එකේ තියනෙ කෝඩ් එකක් run වෙලා හැදෙන පොඩි item එකක් පෙන්නන්නේ නැත්තේ ඇයි...? :shocked: මට හෙන ප්රශ්නයක් මේක... PHP කොල්ලෝ මේකට මට සප් එකක් දෙන්න මේක ලිහා ගන්න....:sorry::D:yes:[/COLOR][/SIZE] [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom