Re: PHP dropped in my lap...need help!



DaveB wrote:
I have to come up to speed quickly on PHP since I have been given the
responsibilty of updating our website.

I have setup a local web server through IIS, downloaded and installed
PHP. I'm using Dreamweaver to edit my pages. When attempting to preview
pages the include file is being read and the page is properly displayed
in the browser with the exception of images.

I think I know what the problem is, but I'm not sure how to fix it. The
include file for the image source reads as follows:

<img src="/images/header-right.jpg"

This apparently is relative to the root of the remote website
this is not a relative path. it is simply a path. in this path, 'images' is the name a directory immediately below the web site's document root ('/').

but when
previewed locally the server is looking for the image here:

http://localhost/images/header-right.jpg
the server is looking for a directory named 'images' immedialtely below the web site's document root, just as it does on your remote website.

I need it to look here:

http://localhost/localwebsitecopy/images/header-right.jpg

What is the best approach for me to use to allow me to properly load
these images both locally (for preview) and on the remote website?
1. if you're using dreamweaver, there's no need for you to use absolute paths (like '/images/header-right.jpg') in your local code. let dreamweaver create relative paths for you.
2. if you're using dreamweaver, make use of the 'testing server' in the site's setup. this will allow you to specify the site's root on your local server for previewing purposes.


Any help would be appreciated and please remember that you are not
talking to a programmer (I'm sure this is obvious.)

Thanks!

Dave

good luck sadara


.



Relevant Pages

  • Enable Bandwidth throttling programmatically using WMI in C#
    ... Does anybody has the script to add Bandwidth throttling and Website ... public string IPAddress ... /// Gets or sets the name of the IIS server that site ... ManagementObject ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Permission Problems SBS2003 R1
    ... website on the SBS server? ... Default permissions and user rights for IIS 6.0 ... Step 3: Please check the permissions in IIS manager: ... Step 4: Re-running CEICW on SBS server: ...
    (microsoft.public.windows.server.sbs)
  • 85010014 error - Exchange ActiveSync - Resolved
    ... Application Log on our server would be filled with those ActiveSync 3005: ... It basically all comes down to the basics of Windows DNS, how SSL ... and our Default Website could only properly respond to ONE IP ... SSL host header using port 443 with our SSL cert. ...
    (microsoft.public.exchange.connectivity)
  • 85010014 error - resolved - ActiveSync Exchange Server
    ... Application Log on our server would be filled with those ActiveSync 3005: ... It basically all comes down to the basics of Windows DNS, how SSL ... and our Default Website could only properly respond to ONE IP ... SSL host header using port 443 with our SSL cert. ...
    (microsoft.public.pocketpc.activesync)
  • Re: Basic Authentication + IIS 5 + Windows 2000 + Frontpage 2002 = failure?
    ... > By this, I mean, usually, on the basic logon screen of a server, I see ... >>;) under the website in question, enabling only Basic authentication. ... and can use the local administrator account to successfully ...
    (microsoft.public.inetserver.iis.security)