|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Including an include in an include
i have 3 php files as follows:
main.php which contains the code <?php include("news.php"); ?> along with some other news.php which contains the code <?php include("news1.php"); ?> along with some other news1.php contains some general text. but when news.php is loaded in main.php, news1.php does not show up, but if you load news.php on its own news1.php does show up. does anyone know if it is possible to get it to work - if you know what i mean. thanks in advance |
|
#2
|
|||
|
|||
|
RE: Including an include in an include
Are all these files in the same directory? Or are news.php and news1.php in one directory and main.php in another? Do you get any errors?
|
|
#3
|
|||
|
|||
|
RE: Including an include in an include
they are all in the same directory (base directory) and i dont get any errors - just blank spaces where the text is supposed to be
|
|
#4
|
|||
|
|||
|
RE: Including an include in an include
It's ok now - all sorted, I just had to add a line of code.
Thanks for your time anyway. |
|
#5
|
|||
|
|||
|
RE: Including an include in an include
Can you direct me to this site? I'm looking to see how it worked
|
|
#6
|
|||
|
|||
|
RE: Including an include in an include
It's not online yet, I should be finished by the end of september because I'm going away for 5 weeks at the end of july.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Including an include in an include |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|