So I'm writing this website and i need the following line of code

$b = http://www.mydomain.com;

but the problem is that everything after the // php makes it a comment, so my question is how can I work around this small issue?

Thanks! it actually didn't work that way, cause joomla wouldn't allow it.

But I resolve the issue by getting the base URL from the joomla API.

Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.