RE: [PHP] images not displaying
| From: | Miguel Cruz | Date: | Tue, 02 Apr 2002 23:42:54 +0000 |
| Subject: | RE: [PHP] images not displaying | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91233@lists.php.net to get a copy of this message | ||
I think he was doing that silly thing where people asking for help
obfuscate IP addresses and pathnames, thinking somehow it improves their
security, when in fact it only makes it difficult to figure out what on
earth they're talking about - because they INVARIABLY hide relevant
information or introduce errors in the process of obfuscation.
Folks, if your setup is so insecure that showing your pathname will leave
your server vulnerable to attack, then disconnect it from the internet
immediately.
If it is not, then post the real data.
miguel
On Tue, 2 Apr 2002, Rick Emery wrote:
> You're saying the generated URL contains 4 periods after the word "home"?
> That would be a problem. It needs to be the URL of the image source, as you
> suggest in your second sentence.
>
> -----Original Message-----
> From: Schmidt, Carl [mailto:CSchmidt@latitude360.com]
> Sent: Tuesday, April 02, 2002 4:56 PM
> To: 'Rick Emery'; php-general@lists.php.net
> Subject: RE: [PHP] images not displaying
>
>
> yes. the SRC=/home..../website/testingArea/images/<imagename.jpg>
> Should I just make it
> http://website.com/testingArea/images/<imagename.jpg>
> instead?
>
>
>
> ______________________________________
> Carl Schmidt | Developer |
> Latitude360.com a division of RWD Technologies,Inc. |
> CSchmidt@latitude360.com |
> 877.9LAT360 | 410.869.7025 |
>
>
> -----Original Message-----
> From: Rick Emery [mailto:remery@excel.com]
> Sent: Tuesday, April 02, 2002 5:49 PM
> To: Schmidt, Carl; php-general@lists.php.net
> Subject: RE: [PHP] images not displaying
>
>
> examine the generated HTML with View Source in your browser. Does it
> contain what you expect?
>
> -----Original Message-----
> From: Carl [mailto:cschmidt@latitude360.com]
> Sent: Tuesday, April 02, 2002 4:45 PM
> To: php-general@lists.php.net
> Subject: [PHP] images not displaying
>
>
> the images folder is in ..../website/testingArea/images
> the php page is located in ..../website/testingArea/administration/image.php
> I have confirmed that the file I want to display does exist in the images
> folder, and that the path is correct.
>
> If I include a tag in images.php like so:
> <IMG SRC="/home<? echo $DOCUMENT_ROOT . SITE_LOCATION
> ?>/images/TopNavBar_01.jpg" WIDTH=93 HEIGHT=110>
>
> Where SITE_LOCATION=testingArea/
>
> The image will not display. I have tried with and without the /home at the
> beginning and neither one works. What's going on ?
>
> Carl
>
>
>
>