PHP 101 : Help Needed

I'd like to show movies that are in the theater via jpg posters.  I have jpg files in a folder called "In Theaters Now" off of my root directory.  How do I get those jpg files added to the site.  I'm at a lost.

I think I'm not pointing to the right directory.

Here's what I'm doing:

<img src="In Theaters Now/ name of the movie.jpg"/>

What am I doing wrong?

 

 

Quote · 3 Oct 2011

You need to enter a path:

<img src="http://www.bikersforboobs.org/images/logos/mabc-logo.gif"

Find where you have your pictures and build a path

<img src="http://www.yoursite.com/In Theaters Now/ name of the movie.jpg"/>

Quote · 3 Oct 2011

thx for the info Slitchner.  For some reason its still not working for me....bare with me I'm PHP illiterate.

my site is www.themagnetroom.com

In my control panel the directory is as follows..             home/magnet/In Theaters Now/file.jpg

Do I put  <img src="http://www.themagnetroom.com/home/magnet/In Theaters Now/file.jpg

 or

<img src="http://www.themagnetroom/In Theaters Now/file.jpg

Quote · 3 Oct 2011

<img src="http://www.themagnetroom.com/In Theaters Now/file.jpg">

unless you have a specific directory named "home"

if it  is in your "public_html" directory then just use the path above (public_html/In Theaters Now/file.jpg)

Remember to watch your spelling, spaces and capitalization.  Most directories use an underscore "_" instead of a space and eliminate the forward slash at the end of your path


Quote · 3 Oct 2011

No PHP was used in the making of this topic.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 3 Oct 2011

I think the first thing you should learn is proper naming of files and folders when used on a web server.

Look around through all of dolphins files. No where do you see any filenames or folders that contain spaces. There is a reason for this.

Your folder name In Theaters Now should really be renamed as in_theaters_now

Spaces should never be used. You should also avoid the use of capital letters. Reason. Linux web servers are case-sensitive and don't like spaces. Windows servers are not case-sensitive so capital letters do not matter. Moving sites from windows based servers to Linux based servers and vice-versa is when the problems will show up if proper naming is not used.

Now as for URL's

The url you use depends on where you created the folder. If it's in the root of your dolphin site when in most case is public_html then the url would be <img src="http://www.yoursite.com/in_theaters_now/file.jpg" />



https://www.deanbassett.com
Quote · 3 Oct 2011

Thx everyone...I made the appropriate changes and it worked.

Quote · 3 Oct 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.