A) Do I have to learn C and C++ in order to do web-related programming?
> No, if you want to learn PHP, then you should dive into PHP and not C++.
B) Do I have to learn CNC Programming in order to do web-related programming?
> No, CNC programming is making instructions for computer numerical control systems (Lathes and such)
You might get better responses if the questions are formed a little better. If English isn't your first language, there are many translators available that do a decent job.