Advertisement:

Author Topic: Getting function undefined error :osc_base_url()  (Read 1705 times)

Ramesh

  • Jr. Member
  • **
  • Posts: 61
Getting function undefined error :osc_base_url()
« on: September 15, 2013, 04:03:47 pm »
Actually am trying to create custom php page in osclass
I have followed all steps shown on osclass docs .
but still my custom php file manage_account.php is showing above error Getting function undefined error :osc_base_url() .
Can any one help me how to use all osclass functions .
.
I need urgent help am stuck in project .

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Getting function undefined error :osc_base_url()
« Reply #1 on: September 15, 2013, 04:36:59 pm »
I think you must include oc-load.php at the start of your new script to be able to use osc_ functions... ???

Code: [Select]
//set include
define('ABS_PATH', dirname(dirname(dirname(dirname(__FILE__)))) . '/');
require_once ABS_PATH . 'oc-load.php';

Regards

Ramesh

  • Jr. Member
  • **
  • Posts: 61
Re: Getting function undefined error :osc_base_url()
« Reply #2 on: September 24, 2013, 01:07:06 am »
hi i have solved this issue , now am moving my site from local host to online server , am facing url and other  issues , can u help me how to shift from one server to other .

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Getting function undefined error :osc_base_url()
« Reply #3 on: September 27, 2013, 10:29:54 pm »
@Ramesh

Can you post your solution and add [Solved] to header?
For moving to another server, copy database & files to new hosting and in config file change login details, you can find many post there on forums how to go.

MouniJose

  • Newbie
  • *
  • Posts: 3
Re: Getting function undefined error :osc_base_url()
« Reply #4 on: October 09, 2013, 12:48:33 pm »
Now am moving my site from local host to online server.