My own variables ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Mike1
Posts: 70
Joined: Thu 10. Jun 2004, 13:39

My own variables ?

Post by Mike1 »

So the question is:

how I can use {PHPVAR:$myvar} tag?

I am not a guru in PHP but my idea is to define my own variables (how and where ?) and after use it.

For example,

$my_path = 'www.asd.xxx'

so somewhere in Admin part can I use smthg like this:

{PHPVAR:$my_path}\file.zip

Could somebody provide me step by step instructions please :roll:
evan
Posts: 31
Joined: Sun 28. Mar 2004, 22:57

Post by evan »

You could just define it in the config file. I think it's /include/inc_conf/inc_conf.php or something like that. Just add a line somewhere that says:

Code: Select all

$myvar = 'Whatever you want it to say';
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Mike1 wrote:-=SNIP=-
I am not a guru in PHP
-=SNIP=-
Mike1 would benefit ~GREATLY~ from just going here:

http://www.phpwcms.de/forum/search.php

and typing in "PHPVAR" (w/o quote marks)
Post Reply