Please help brother

Started on the old forum in May 2012 · view the original in the archive · old links redirect here

4 replies · 412 views · started 14 years ago · 1 min read

3 participants
WapAdda Junior · 25 posts #1

Hello, im using .shtml on my index. Im facing a problem, where i include file. That problem show [an error occurred while processing this directive] im don't sure how to solved this problem. So plz anybody help me as soon, as possible.

Ghost Senior · 366 posts #2

!!!Seriously!!!

since the code you want to be fixed is either invisible or is the same color as the background here.

you could fix it with


my point here is, if you want help, then show some sort of code for ppl to look at so they can "SEE" the problem. or you'll get exactly whats inside that code box "nothing" in return.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
WapAdda Junior · 25 posts #3

Brother i use

<!--#include file="foot.php" -->

also

<!--#include virtual="foot.php" -->

im don't sure what's my problem, b.coz same code same site some days ago working so good. But now facing that problem. Please help my brother. my site i have one idea, if i change .shtml page to .php i think that problem solved. Otherwise, what i can do?

Ghost Senior · 366 posts #4

WapAdda wrote: Brother i use

<!--#include file="foot.php" -->

also

<!--#include virtual="foot.php" -->

im don't sure what's my problem, b.coz same code same site some days ago working so good. But now facing that problem. Please help my brother. my site i have one idea, if i change .shtml page to .php i think that problem solved. Otherwise, what i can do?

well it kinda depends first of all where the actually foot.php and other include file is based.

here is a few examples of how to locate the file using different methods.

such as

<!--#include file="include/foot.php" -->

this will get the file from 1 folder up of the file cureently in use.

while

<!--#include file="../include/foot.php" -->

would go down 1 folder (usually back to public_html folder) then back up to new folder specified.

<!--#include file="foot.php" -->

this only finds the file "if" it is in the same folder as file being used to call the include.

so basically its just about pointing the include to the "correct" location of the file you want included. then as long as the code is valid in the include it should display correctly.

more examples here: Example Server Side Include

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close