fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
May 24, 2013, 07:58:26 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the FileMaker Web Masters Exchange.  If you have any questions about how to use this forum, please watch the getting started movie at:
http://www.fmwebschool.com/movies/forum1/forum1.html
27466 Posts in 6067 Topics by 1523 Members
Latest Member: donok
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker PHP, FX.php custom web publishing
| | |-+  Doh! Accicentally deleted IIS default web site and now get PHP error
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Doh! Accicentally deleted IIS default web site and now get PHP error  (Read 1499 times)
tedm
Jr. Member
**
Offline Offline

Posts: 57



Applications:
« on: September 10, 2009, 06:25:50 AM »

I was having an issue with a virtual directory on my IIS server so went to delete it but deleted the entire Default Web Site instead.

I've recreated the Default Web Site in IIS but my php search result pages now give me this error:
Code:
Warning: Cannot use a scalar value as an array in C:\Inetpub\wwwroot\woodward\search_result.php on line 29

Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\woodward\search_result.php on line 29

This is the code from search_result.php:
Code:
<?php
include_once('FX/FX.php');
include_once(
'FX/server_data.php');
include_once(
'FX/image_proxy.php');

$Invoice=$_POST['Invoice'];
$account_no=$_POST['account_no'];

if(isset(
$_POST['skip'])){ $skipSize=$_POST['skip'];}else{$skipSize='0';}
 if(isset(
$_POST['type'])){ $type=$_POST['type'];}else{$type='';}


$groupSize='50';

 if(
$type=='prev'){ $skipSize=$skipSize $groupSize; }
 if(
$type=='next'){ $skipSize=$skipSize $groupSize; }
 
$SearchResult=new FX($serverIP,$webCompanionPort,'FMPro7');
$SearchResult->SetDBData('woodward_images.fp7','Web_fields',$groupSize);
$SearchResult->SetDBPassword('','WebUser');
$SearchResult->AddDBParam('Invoice',$Invoice);
$SearchResult->AddDBParam('account_no',$account_no);

$SearchResult->AddSortParam('Input_date','descend');
$SearchResult->FMSkipRecords($skipSize);
$SearchResultResult=$SearchResult->FMFind();

//echo $SearchResultResult['errorCode'];
foreach($SearchResultResult['data'] as $key=>$SearchResultData);


?>

But as this worked fine before and nothing has changed with these files I don't think this is the issue.  I think I may be missing something from the Default Web Site but I'm stuck as to what it might be.

Any pointers much appreciated.
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #1 on: September 10, 2009, 12:23:46 PM »

Not a PHP error, your FileMaker Server became undeployed. You need to reinstall/redeploy the server component to get things going again.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
tedm
Jr. Member
**
Offline Offline

Posts: 57



Applications:
« Reply #2 on: September 11, 2009, 01:52:02 AM »

Thanks Michael.  Thought there must be a link between IIS and FMS somehow.  Will get onto it.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!