|
Posted by luke on 10/23/10 11:22
Without being able to see the PHP code it's difficult to pin-point what the
problem may be (viewing the source of a page online just returns HTML, no
PHP).
Just a little brainstorm:
- make sure any open braces '{' are matched with a closing brace '}'
- make sure all '<?php' tags are matched with a closing '?>' tag
- check if one of the scripts has a 'die();' command, if so, it could be
terminating the page at that point
Having 2 PHP scripts on the same page should cause no problems at all. So
I'm thinking it's probably an overlapping tag of some sort.
Luke
"ergobob" <ergobob@sonic[REMOVE].net> wrote in message
news:7arFe.5637$p%3.31307@typhoon.sonic.net...
> Hello,
>
> I have two small PHP scripts running on a test page at:
> http://www.usernomics.com/ergonomic-products-accessories5.html
>
> Both scripts work perfectly when there is one script on a page. However,
if
> I place two on the page (one above the other), the second script will not
> render. I get no PHP error messages - the script will just not render.
>
> I think the PHP Scripts are OK as they were automatically generated by RSS
> Feed Burner and both do run separately.
>
> There may be an issue with having separate calls of some kind on the page
or
> my server might not be set right. I did a server test that I think shows
> that it is OK but I am not sure. The results table is at
> http://www.usernomics.com/ergonomic-products-accessories-test.html . The
> only think I have in my htaccess file for PHP is: "AddType
> application/x-httpd-php .htm .html" .
>
> I am new to PHP and was wondering if anyone can see why both scripts will
> not run together?
>
> Thanks a lot,
>
> Bob
>
>
Navigation:
[Reply to this message]
|