|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP and IIS - Configuration Problem?
Hey All,
I'm at wits end here, maybe someone here knows whats going on. I'm a sys admin who inherited a PHP-based website on an IIS 6 Server. Recently, due to an attack, I had to reformat the server and re-configure everything. Since I didn't initally configure the website, I'm having a problem getting it all working. The front page works fine, but the sub-pages aren't processing the PHP properly. I use a couple of files with functions that I call in my multiple pages, but the resource pages seem like they are having a problem opening them. Here is an example of the header of one of my resource files: <?php $title ="French Resources"; $pathinfo = pathinfo($_SERVER['PATH_INFO']); $deep = substr_count($pathinfo['dirname'], "/"); $rootPath = "./"; for($i = 1; $i <= $deep; $i++) { $rootPath .= "../"; } include ($rootPath."function.php"); writeHeader($title); include($rootPath."topbar.html"); ?> When I go to display the page, however, I get this: Warning: main(./function.php): failed to open stream: No such file or directory in d:FLTCWWWWWWcoursesfrenchfrench-resources.php on line 10 Warning: main(): Failed opening './function.php' for inclusion (include_path='.;c:php4pear') in d:FLTCWWWWWWcoursesfrenchfrench-resources.php on line 10 Fatal error: Call to undefined function: writeheader() in d:FLTCWWWWWWcoursesfrenchfrench-resources.php on line 11 I have the page root set fine in the PHP.ini, but I still can't seem to get this working, any ideas? |
|
#2
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'PHP Installation' by zombie.
Reason: |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP and IIS - Configuration Problem? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|