Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php help


masat

Recommended Posts

Posted

$PHP_SELF = (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);

 

Can you tell me how to read this in plain language. I need the meaning of ? and : as they are used in this statement and extensively throughout the application.

How do you know when you know what you want to do for the rest of your life?

Posted

if $_SERVER['PHP_SELF'] is defined $PHP_SELF = $_SERVER['PHP_SELF']

else $PHP_SELF = $_SERVER['SCRIPT_NAME']);

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thanks for the info. I had tried locating this info at php.net but I needed to look for operands.

 

Everything I know about php I have learned from osc and php.net and of course the numerous article I've read but I guess sometimes a formal education may be the thing needed.

 

Thanks for all your help to the community but I wonder. How do you find the time?

How do you know when you know what you want to do for the rest of your life?

Archived

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

×
×
  • Create New...