Reply to Re: Problem including the other php file.

Your name:

Reply:


Posted by Jon Slaughter on 06/09/07 12:19

"Ben Sehara" <sehara@hotmail.com> wrote in message
news:E4sai.18648$Ut6.8507@newsread1.news.pas.earthlink.net...
>I included the same and simple php file three times. It still shows the
>first two. I checked the source. It is like this.
>

Its very important if its the "first two" or "any two". In any two that
means its random which means its much harder. If its the first two then it
means that its probably something simple. Your code is bugging out after the
second one.

> ===================================================================
> <table width="760" align="center">
> <tr>
> <td>First Table Here</td>
> </tr>
> <tr>
> <td>
> <!-- start of documents.php -->
> <table width="70%">
> <tr>
> <td width="33%"><a href="./docs/doc1.pdf">Doc1</a></td>
> <td width="33%"><a href="./docs/doc2.pdf">Doc2</a></td>
> <td width="33%"><a href="./docs/doc3.pdf">Doc3</a></td>
> </tr>
> <tr>
> <td width="33%"><a href="./docs/doc4.pdf">Doc4</a></td>
> </tr>
> </table>
> <!-- end of documents.php -->
> </td>
> </tr>
> <tr>
> <td>Second Table Here</td>
> </tr>
> <tr>
> <td>
> <!-- start of documents.php -->
> <table width="70%">
> <tr>
> <td width="33%"><a href="./docs/doc1.pdf">Doc1</a></td>
> <td width="33%"><a href="./docs/doc2.pdf">Doc2</a></td>
> <td width="33%"><a href="./docs/doc3.pdf">Doc3</a></td>
> </tr>
> <tr>
> <td width="33%"><a href="./docs/doc4.pdf">Doc4</a></td>
> </tr>
> </table>
> <!-- end of documents.php -->
> ===================================================================
> The following is missing.
>
> </td>
> </tr>
> <tr>
> <td>Third Table Here</td>
> </tr>
> <tr>
> <td>
> <!-- start of documents.php -->
> <table width="70%">
> <tr>
> <td width="33%"><a href="./docs/doc1.pdf">Doc1</a></td>
> <td width="33%"><a href="./docs/doc2.pdf">Doc2</a></td>
> <td width="33%"><a href="./docs/doc3.pdf">Doc3</a></td>
> </tr>
> <tr>
> <td width="33%"><a href="./docs/doc4.pdf">Doc4</a></td>
> </tr>
> </table>
> <!-- end of documents.php -->
> </td>
> </tr>
> </table>
>
> The included file itself is showing right, but it stopped right after the
> second included file. The documents.php file seems to be fine. Something
> wrong with html tag? It's very simple though.
>

Looks like your creating an error in documents.php(last few lines probably)
that is causing execution to stop. Happens all the time.

Very simple test to find problem... Remove the code that is including the
php files(just comment it out) and see if HTML is displaying properly(but
without the included stuff). If so then its your php files.

or better yet, make very simple php files like I said before that just echo
out stuff and then check the html again.

Essentially you need to add "markers" to see where the error is occuring.
You put "mile markers" in your code and you can narrow down the issue by
finding out the last message that was shown.

Jon

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация