You are here: Re: Problem including the other php file. « PHP Programming Language « IT news, forums, messages
Re: Problem including the other php file.

Posted by Ben Sehara on 06/09/07 18:04

Sorry, I didn't mention what I have done. I removed the include file and
simple html worked fine. I replaced the include file with echo statement and
it worked fine.

Then, I replaced the echo statement with the include files, only the first
and second one worked fine.

I switched the first one with the third (not visible) one, again, the first
two files worked fine. This first one was not visible before. Any first two
include files worked fine even if you switch the files.

I tried the different include file in three places. Again, the first two
files worded fine.

Now I combined those files into one include file. It is OK for now. But if I
can find the resolution, I post it here.

Thanks for your help.

Ben


"Jon Slaughter" <Jon_Slaughter@Hotmail.com> wrote in message
news:7Uwai.16886$C96.12152@newssvr23.news.prodigy.net...
>
> "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
>

 

Navigation:

[Reply to this 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

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