Skip to content
View in the app

A better way to browse. Learn more.

Komuniti @PuTeRA

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nak Include File Dari Previous Root

Featured Replies

Salam.

Contohnya saya buat local web:
[code].../www/customer/index.php[/code]
dan
[code].../www/customer/index.htm[/code]

-
yang saya tahu, kalau di root yg sama, utk php boleh guna
[code]<?php include 'login.php'; ?>[/code]
utk htm boleh guna
[code]<!--#include virtual="login.htm"-->[/code]

tapi mcm mana saya nak include file login.php yg berada dalam root /www/ ke dalam index.php di root /customer/ tu,
tanpa letak fullpath?
sama jugak, mcm mana untuk file .htm tu?

Tetiba rasa blank pulak kepala ni.

Thanks.
just tambah ".." kat depan path..

Current directory : www/customer/index.php

kalau nak up satu directory,

[code]<?php include '../index.php'; ?>[/code]
current directory : www/index.php

kalau nak up 2 directory, just tambah lagi '../../include_file.php'
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.