Hello Ryan, As the first post under your said, this is a pathing issue and image.jpg must be in the directory your script is in as your code stands. However, this is not necessarily a good way to go about things.
Let say for example you had a project directory called Project. In this directory you have two other directories called scripts, and images. For the above code in this situation to work you would need something like *<?php echo "<img src=\"../images/image.jpg\"/>"; ?>* > > *..* traverses back up one directory level. Putting you into the directory project. Then the rest should be obvious. Now while this is not absolutely necessary to function, it is probably a very good diea to keep your scripts, and image directories separate. Security being the foremost reason in my own mind, but later, you may even need public, and private image directories. Depending on what you're trying to achieve. So I would recommend that you find a good book on Linux first, then secondly find a good book on php. Perhaps even brush up some on html as well, since relative paths are kind of a basic concept. The good news is most of if not all of this material can be had free online. On Mon, Jun 9, 2014 at 4:01 PM, <[email protected]> wrote: > there are simple and useful tools to help you, like > http://winscp.net/eng/index.php > but still some basic understanding of what you're doing is required. > > good luck, > Jan > > > On Tuesday, June 10, 2014 8:01:30 AM UTC+10, john3909 wrote: >> >> >> From: "'Ryan P.' via BeagleBoard" <[email protected]> >> Reply-To: <[email protected]> >> >> Date: Monday, June 9, 2014 at 1:44 PM >> To: <[email protected]> >> >> Subject: Re: [beagleboard] Webserver Image Displaying >> >> >> >> On Monday, June 9, 2014 4:22:43 PM UTC-4, Przemek Klosowski wrote: >>> >>> On Mon, Jun 9, 2014 at 4:15 PM, 'Ryan P.' via BeagleBoard >>> <[email protected]> wrote: >>> >>> > >>> > <?php echo "<img src=\"image.jpg\"/>"; ?> >>> > >>> For this to work , you need to have a file image.jpg in the same >>> directory as the php script; the file has to be readable to the >>> 'world' or to the user/group under which the lighttpd process runs. >>> >> >> >> I had a hunch it was that.. >> >> Any tips for going about doing that? >> >> Start by reviewing the training material on free-electrons.com or buy a >> book on using Linux. Specifically, you should review the Linux command line >> docs: >> >> http://free-electrons.com/docs/command-line/ >> >> Regards, >> John >> >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to the Google Groups >> "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> For more options, visit https://groups.google.com/d/optout. >> >> -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
