Welcome Guest, Not a member yet? Register   Sign In
running a script in a php module
#6

(This post was last modified: 01-30-2021, 04:22 PM by richb201.)

I copied the code exactly.

$src = base_url("assets/themes/default/images/{$img}");
this is what is being generated:
<img src='http://localhost/assets/themes/default/images/Logo - Research Study Toolkit(3).jpg' style='float:left;margin-top:5px;z-index:5' alt='Logo'>

And here is the attempt to print it:
echo $img;

This does not give an error but the logo just shows up as a brokenĀ  "Logo". I think the problem is that path is wrong. I tried copying the path directly into the browser, but that also fails. Is there a better way to get the path to the file?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
running a script in a php module - by richb201 - 01-29-2021, 03:57 PM
RE: running a script in a php module - by craig - 01-29-2021, 05:29 PM
RE: running a script in a php module - by craig - 01-30-2021, 05:00 AM
RE: running a script in a php module - by richb201 - 01-30-2021, 04:19 PM
RE: running a script in a php module - by craig - 01-31-2021, 05:22 AM
RE: running a script in a php module - by craig - 01-31-2021, 08:45 AM
RE: running a script in a php module - by craig - 02-01-2021, 11:52 AM
RE: running a script in a php module - by craig - 02-03-2021, 01:19 PM
RE: running a script in a php module - by craig - 02-03-2021, 01:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB