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?
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?
Jump to PostUm...You need to enclose it with speech marks :
$b = "http://www.mydomain.com";
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!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.