By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,640 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,640 IT Pros & Developers. It's quick & easy.

Need Help with a PHP Coding Issue

P: n/a
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:

http://www.vet-homes.com/searchlisti...perty_for=sale

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.
Jul 16 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Rik
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:

http://www.vet-homes.com/searchlisti...perty_for=sale

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
Jul 16 '06 #2

P: n/a
"Brent" <br***********@adelphia.netwrote in
news:H9******************************@adelphia.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:

http://www.vet-homes.comvet-homes.co...?SF=t&property
_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:

http://www.vet-homes.com/searchlisti...perty_for=sale

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.php?SF=t&property_for=sale) rather than
relative (searchlisting.php?SF=t&property_for=sale).
--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Implementing negative score for googlegroup postings, see
http://blinkynet.net/comp/uip5.html
A zest for living must include a willingness to die. - R.A. Heinlein
Jul 16 '06 #3

P: n/a
Rik
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
Jul 16 '06 #4

P: n/a
"Rik" <lu************@hotmail.comwrote in news:1176b$44ba83ef
$8*************@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
http://blinkynet.net/comp/uip5.html
A zest for living must include a willingness to die. - R.A. Heinlein
Jul 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.