![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
If I put a tag like this <?php include ('menu.php'); ?> in my file, I can only preview it after putting the file on a server. How can I preview it in my local computer without uploading the files to a server? Thanks |
#4
| |||
| |||
|
|
you can set up a test server on your machine, but as php is a server side language, thats where it is read from. if the php include only includes echoed html, then you can put the html in the rellevant position on the html page first, test it, and then transfer to an include afterwards. |
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| ||||
| ||||
|
|
I want to see the hole page with the includes together |
|
in the same html page |
|
The content of the php files is only html |
|
I want to see the hole page with the includes together in the same html page, not in separate html files. The content of the php files is only html |
#8
| |||
| |||
|
|
I want to see the hole page with the includes together in the same html page, not in separate html files. The content of the php files is only html |
#9
| |||
| |||
|
|
It will work locally and will work once you upload to your server, most support .shtml files |
#10
| |||
| |||
|
|
yehu67 wrote: I want to see the hole page with the includes together in the same html page, not in separate html files. The content of the php files is only html Why are you using php? Sounds like you could do this by using a 'virtual' include !--#include virtual="test.html" -- If you do make sure that the page that you are bringing the file into has a .shtml extention It will work locally and will work once you upload to your server, most support .shtml files |
![]() |
| Thread Tools | |
| Display Modes | |
| |