|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi web developers,
I am a newbie and stuck big big time! My site has 3 includes on every page : the header.php, footer.php and the left_menu.php. The includes for some reason used to work on one of the hosting servers. when I passed on the files to my friend to upload on their server - the content of the pages would show. but the none of the include files would display. no error message and no sign of anything wrong. I checked the php config details..and it shows: vertual directory DISABLED! NOW! could this be the reason? or am I missing something else? Also, the files were not placed in the wwwroot folder, they were under: wwwroot/testing/ do i need to enable anything in directory level? I am very lost and any suggestions would be really appreciated . thanks Tala |
|
|||
|
I'd guess and it's most likely that your paths to your include files are not accurate in your main page.
Check very carefully and you'll probably find that's the case. I can't count how many times this happens to me right up to yesturday. Let me know.
__________________
Post as-it-happens crime stories of criminal behaviour at crimedigg.com |
|
|||
|
Hiya
ok, i need your help please, as I am feeling Xtremly lost! my friend's API = Apache mine is: CGI does this make a difference why the files are not showing on his server? What sort of modifications are needed for the files in order for them to function on his server? thanks, Tala |
|
|||
|
when it comes to server side includes - its usually configured to allow/enable .shtml and html files to work. but my include files are not those. they are .php - does that mean I need to enable the CGI scripting side of things in order for it to work?
please please help! |
|
|||
|
so why the files are not showing?
is there something I need to look into? there are no error messages..thats the problem.. |
|
|||
|
On the server it doesn't work on:
Create a file called test1.php Code:
<?php
include('test2.php');
echo "Test 1
\n";
?>
Code:
<?php echo "Test 2 \n"; ?> If the answer is yes then it's your paths are wrong in the includes if the answer is no then it's a PHP/Server issue. |
|
|||
|
ok will do.. thanks a lot for getting back to me so quick!
|
|
|||
|
If you access test2.php do you see 1 line of text, source, a download or nothing?
Assuming nothing for test2.php have you tried changing it's permissions so that it is not group writable? Does that help? Do you know if this server in fact has PHP on it? PS. Replied to PM |
|
|||
|
hi
there may be many reasons for ur problem 1.)your cgi management is disabled plz enable it first. 2.)your one of three files header.php,left.php or footer.php has some code which require that needs to be extra script to be instal like gd library etc.... if u still face problem after this u can contact me at: profsite-at-aol.com |
|
|||
|
thanks a lot profsite - Speed has managed to sort it out for me. I also learned a lesson from all of this: getting ALL the facts before making a start on any task. The IT department was so stupid, they had no clue what the client needed in the first please.
all sorted now though many thanks again:) |
|
||||
|
Do they use php.ini where they set include paths?
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |