php include and variables
Newby to php.  When I do an `include(<filename>)` are the contents of `<filename>` literally just pasted into the included-into file? I've noticed lots of examples where variables are mentioned in an include file and then referenced in the including file.

I come from the Java world where `import` just makes the classes defined in the imports available.

Just trying to wrap my head around it.

Specifically, I'm setting up my database connection and don't want to include the username/password in the php file (the php segments aren't actually sent to the client, right? ) It just feels...icky.

Thanks!
php include and variables
===

Newby to php.  When I do an `include(<filename>)` are the contents of `<filename>` literally just pasted into the included-into file? I've noticed lots of examples where variables are mentioned in an include file and then referenced in the including file.

I come from the Java world where `import` just makes the classes defined in the imports available.

Just trying to wrap my head around it.

Specifically, I'm setting up my database connection and don't want to include the username/password in the php file (the php segments aren't actually sent to the client, right? ) It just feels...icky.

Thanks!