ถามผู้รู้ SMF ใช้ iframe ดึง ฟังก์ชั่นจากไฟล์ SSI.php มาแสดงในหน้า Index.html

เริ่มโดย infinity*, 21 สิงหาคม 2009, 17:33:28

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

infinity*

ผมแยกซับโดเมนเป็นบอร์ดที่ลง SMF ไว้ คราวนี้พอจะดึง recent post จาก SSI.PHP มาแสดงที่หน้าหลักโดเมนหลัก มัน
จะขึ้นเตือนว่า  Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in .../SSI.php on line 166 ประมาณนี้

จะแก้ไขยังไงครับ ผู้รู้บอกทีครับ  มันจะขึ้นตอนที่ไม่มีสมาชิก login เข้าไปนะครับ แต่ถ้า login แล้วก็จะไม่ขึ้น    แนะนำทีครับ งมอยู่นาน ไม่รู้มีคนเคยเป็นแบบนี้ป่าว
:-* :-*

technomatch

SSI.php is included before *anything*

ไอ้เจ้านี่ต้องอยู่บรรทัดแรกเลยครับ....ทำตามที่มันบอกรึยัง

เก๋าลัดคุง

[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]

infinity*

อ้างถึงจาก: technomatch ใน 21 สิงหาคม 2009, 17:37:40
SSI.php is included before *anything*

ไอ้เจ้านี่ต้องอยู่บรรทัดแรกเลยครับ....ทำตามที่มันบอกรึยัง


อ้างถึงจาก: webhot ใน 21 สิงหาคม 2009, 17:41:09
<?php require("SSI.php"); ?>
<?php ssi_topTopicsViews(); ?>


test.php Copy ไว้ Root ลอง test ดู

ขอบคุณมากครับ  แต่ยังงง ใส่ code include ไฟล์ SSI.php ยังไง ครับ ผมทำไมเป็นขอละเอียดหน่อยก็ดีครับ

เก๋าลัดคุง

จาก Root ไฟล์ a/include.php

%Root %index.php
<?php require('a/include.php'); ?>

%Root %b/1/index.php
<?php require('../../a/include.php'); ?>

ตัวอย่าง
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]

collagn

อ้างถึงจาก: webhot ใน 21 สิงหาคม 2009, 18:19:58
จาก Root ไฟล์ a/include.php

%Root %index.php
<?php require('a/include.php'); ?>

%Root %b/1/index.php
<?php require('../../a/include.php'); ?>

ตัวอย่าง
อืมอย่างนี่ซิลูกผู้ชายตัวจิง ถ้ายังไม่ได้โพสไว้ครับ เดี๋ยวตอบ
รับกู้ข้อมูล Harddisk ทั้งเสียหรือที่ถูกลบไปโดยไม่ตั้งใจ โดยประสิทธิภาพในการกู้ข้อมูลที่ 95% No Error  วิเคราะห์สาเหตุและใช้แนวทางการกู้ข้อมูล ได้ถูกต้องแม่นยำ มีความละเอียดอ่อนและใส่ใจในทุกขั้นตอนการปฏิบัติงาน เพื่อให้ข้อมูลของคุณได้รับการดูแลและถูกนำกลับมาด้วยความสมบูรณ์ที่สุด สนใจติดต่อ