Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

define our webserver variables


Guest

Recommended Posts

Posted

Hi,

 

How do I use these on with IIS5 and what do they do? Is there any benifit?

 

//FS = Filesystem (physical)

// WS = Webserver (virtual)

 

When I try the I get the error "enxpected =" ?

 

Anyone know what the story is with that?

 

Thanks

Posted

I tried that before and it said I can't have the '=' in the statment. I just spits an error. :(

Posted

where do you have the need for an "=" in the examples then?

Don't understand you....

 

define('WHATEVER', 'value');

 

where value needs to be 'escaped' ie

Who's needs to be written as Who's

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

No, I don't understand your example

// WS = Webserver (virtual)

I changed that to:

WS = Webserver (virtual) and I got the error.

 

I then tried your code :

FS = c:Inetpubwwwrootadmin

I got the same error.

 

So what your saying is I need to define it like:

define(WS_VIRTUAL, 'http://localhost');

??

 

Is that it?

Posted

YES :D

 

anything that has // in front of it is a COMMENT

 

:)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I understand C++, VB, JS and, believe it or not, forum etiquette, but I never touched pearl until 2 days ago. I know // is a comment just like it is in C. What I really what now that I have the syntax is what does defining those constants do for me? If I don't need to use them to run the app then why are they there?

 

:shock:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...