php-windows Digest 2 Aug 2004 03:50:48 -0000 Issue 2342
Topics (messages 24328 through 24329):
Re: Strange behaviour
24328 by: Justin Patrin
Re: WinXP PHP Install Problem
24329 by: \[php\]Walter
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
On Sun, 01 Aug 2004 00:27:33 +0200, Schalk Neethling
<[EMAIL PROTECTED]> wrote:
> Justin
>
> Ok here is what is happening, the code is as follows:
>
> <!-- BLOCK ONE - Comments are not included in actual PHP page -->
> <?php
> echo '<a href="javascript:openWindow();">';
> echo '<img src="'.$row_ads['full_img'].'" width="87"
> height="120" />';
> echo '</a>';
> ?>
> <!-- BLOCK TWO Comments are not included in actual PHP page -->
> <?php echo $row_ads['full_img'] ?>
>
> When I access the page with either FireFox 0.9 or IE 6.0 BLOCK TWO
> prints ../media/ads/001.jpg but, BLOCK ONE is totally skipped over.
>
What does the HTML source of the web page look like? Can you put this
online so we all can see it?
> Justin Patrin wrote:
>
> >On Sat, 31 Jul 2004 22:13:49 +0200, Schalk Neethling
> ><[EMAIL PROTECTED]> wrote:
> >
> >
> >>Justin
> >>
> >>I copied your php string with the ; at the end and as before nothing :(
> >>When looking at the HTML source after the page has been parsed the
> >>following is there:
> >>
> >><a href="javascript:openWindow();"></a> so the <img> tag is completely
> >>skipped.
> >>
> >>
> >>
> >
> >Try it in a different browser as well.
> >
> >There's no way with that line of code that you can't get the img tag.
> >Either another line of code is being run or your browser (or a proxy
> >or firewall) is removing the img tag.
> >
> >Try putting it all one one line. If that doesn't work:
> >
> ><?php
> >echo '<a href="javascript:openWindow();">';
> >echo '<img src="'.$row_ads['full_img'].'" width="87" height="120" />';
> >echo '</a>';
> >?>
> >
> >Also, try setting $row_ads['full_img'] to something you know will work
> >just before the echo. Perhaps your value in that array isn't
> >populated.
> >
> >Try print_r($row_ads['full_img']);
> >
> >
> >
> >>Justin Patrin wrote:
> >>
> >>
> >>
> >>>On Sat, 31 Jul 2004 17:33:50 +0200, Schalk Neethling
> >>><[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi there
> >>>>
> >>>>I have a line of PHP code that behaves very strangely, I was hoping
> >>>>someone can shed some light on this.
> >>>>
> >>>>When the line reads as follows:
> >>>><?php echo '<a
> >>>>href="javascript:openWindow();">'.$row_ads['full_img'].'</a>' ?>
> >>>>it works find and the output is displayed. Now, when I change the line
> >>>>as follows no output is produced.
> >>>>
> >>>><?php echo '<a href="javascript:openWindow();"><img
> >>>>src="'.$row_ads['full_img'].'" width="87" height="120" /></a>' ?>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>1) Put a semi-colon at the end of the line.
> >>>2) I would suggest not using the PHP tags inline as it makes the code
> >>>hard to read
> >>>3) Have you looked at the source HTML for the page to see if anything
> >>>gets output?
> >>>
> >>><?php
> >>>echo '<a href="javascript:openWindow();"><img
> >>>src="'.$row_ads['full_img'].'" width="87" height="120" /></a>';
> >>>?>
> >>>
> >>>
> >>>
> >>>
> >>>
>
> --
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.President
> Volume4.Development.Multimedia.Branding
> emotionalize.conceptualize.visualize.realize
> Tel: +27125468436
> Fax: +27125468436
> email:[EMAIL PROTECTED]
> web: www.volume4.co.za
>
> This message contains information that is considered to be sensitive or confidential
> and may not be forwarded or disclosed to any other party without the permission of
> the sender. If you received this message in error, please notify me immediately so
> that I can correct and delete the original email. Thank you.
>
> !DSPAM:410c1abb221341842210701!
>
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--
--- End Message ---
--- Begin Message ---
http://web.torres.ws/dev/php
check this out, see if the instructions there help you at all.
Walter
"Bruce Guthrie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I've just installed PHP 4.3.8 on my WinXP, Apache 2.0.50, MySQL 4.0.20d
> system. Apache, MySQL are running without issue. After installing PHP,
> however, my "Hello World" test does not run. It only list out the
> source code which looks like PHP isn't running. I've checked my Apache,
> PHP installtions against the PHP Installtion guide and all seems to be
> correct. No errors appear in the Apache error log. I'm new to PHP, so
> I was wondering if anyone could give me some additional troubleshooting
> tips?
>
> Thank you for your assistance.
--- End Message ---