Need Help with a PHP Coding Issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brent

    Need Help with a PHP Coding Issue

    I am having a problem with the coding of my website and I am very
    inexperienced with PHP. When using my web browser to go to my site. I notice
    that none of my images are appearing and any link that you click on will
    display an address similar to the one below:



    If you check the picture properties they are showing a similar link as
    well.

    The actual address should look like the one below:



    Looking at these links you should be able to see what is different.

    I cannot seem to find where the link code is wrong within the php coding. I
    was wondering if anyone would be able to help me resolve this issue? Or has
    any recommendations .


  • Rik

    #2
    Re: Need Help with a PHP Coding Issue

    Brent wrote:
    I am having a problem with the coding of my website and I am very
    inexperienced with PHP. When using my web browser to go to my site. I
    notice that none of my images are appearing and any link that you
    click on will display an address similar to the one below:
    >
    >
    http://www.vet-homes.comvet-homes.co...perty_for=sale
    >
    If you check the picture properties they are showing a similar link
    as
    well.
    >
    The actual address should look like the one below:
    >

    >
    Looking at these links you should be able to see what is different.
    >
    I cannot seem to find where the link code is wrong within the php
    coding. I was wondering if anyone would be able to help me resolve
    this issue? Or has any recommendations .
    www.vet-homes.comvet-homes.com == www.vet-homes.com & vet-homes.com

    You probably doubled the domain somewhere.
    Without seeing the code I couldn't say where, just look for the place where
    you add the domain, and remove that. Also keep in mind when you don't
    totally control your code but use things like a CMS, HTML-builders etc they
    could perform their own logic on the links...

    Grtz,
    --
    Rik Wasmus


    Comment

    • Stan McCann

      #3
      Re: Need Help with a PHP Coding Issue

      "Brent" <brentandtonya@ adelphia.netwro te in
      news:H9udnQmEwf 1F7yfZnZ2dnUVZ_ tqdnZ2d@adelphi a.com:
      I am having a problem with the coding of my website and I am very
      inexperienced with PHP. When using my web browser to go to my site.
      I notice that none of my images are appearing and any link that you
      click on will display an address similar to the one below:
      >

      _for=sale
      >
      If you check the picture properties they are showing a similar link
      as well.
      >
      The actual address should look like the one below:
      >

      >
      Looking at these links you should be able to see what is different.
      >
      I cannot seem to find where the link code is wrong within the php
      coding. I was wondering if anyone would be able to help me resolve
      this issue? Or has any recommendations .
      Most likely, you are using relative links and the server is adding the
      server information. Although the server is set up to use www.vet-
      homes.com, its real name is www.vet-homes.comvet-homes.com. To change
      this behavior, use absolute links (http://www.vet-
      homes.com/searchlisting.p hp?SF=t&propert y_for=sale) rather than
      relative (searchlisting. php?SF=t&proper ty_for=sale).


      --
      Stan McCann, "Uncle Pirate" http://stanmccann.us/
      Implementing negative score for googlegroup postings, see

      A zest for living must include a willingness to die. - R.A. Heinlein

      Comment

      • Rik

        #4
        Re: Need Help with a PHP Coding Issue

        Stan McCann wrote:
        Although the server is set up to use www.vet-
        homes.com, its real name is www.vet-homes.comvet-homes.com.
        Highly unlikely.

        Care for a wager? :-)


        Grtz,
        --
        Rik Wasmus


        Comment

        • Stan McCann

          #5
          Re: Need Help with a PHP Coding Issue

          "Rik" <luiheidsgoeroe @hotmail.comwro te in news:1176b$44ba 83ef
          $8259c69c$11530 @news1.tudelft. nl:
          Stan McCann wrote:
          >Although the server is set up to use www.vet-
          >homes.com, its real name is www.vet-homes.comvet-homes.com.
          >
          Highly unlikely.
          >
          Care for a wager? :-)
          I'll defer on this one.

          --
          Stan McCann, "Uncle Pirate" http://stanmccann.us/
          Implementing negative score for googlegroup postings, see

          A zest for living must include a willingness to die. - R.A. Heinlein

          Comment

          Working...