PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 5th, 2005, 04:53 PM
Skemo Skemo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 Skemo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old May 27th, 2005, 03:06 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'PHP Installation' by zombie.

Reason:

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP and IIS - Configuration Problem?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway