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.
April 20, 2014, 02:55:08 PM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27742 Posts in 6134 Topics by 1525 Members
Latest Member: alkyred
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  Recent Posts
Pages: [1] 2 3 ... 10

 1 
 on: April 10, 2014, 07:29:40 AM 
Started by jruzinok - Last post by jruzinok
Resolved.

There was a pear.php file in the site... Not the true PEAR.php... but the following:
Code:
<?php
require_once 'System.php';
var_dump(class_exists('System'false));
?>

This would be why PEAR was not really enabled on this site.... Crazy...

Thanks!
Justin

 2 
 on: April 10, 2014, 06:41:55 AM 
Started by jruzinok - Last post by jruzinok
Webko,

Thank you for the tip with the xdebug. I turned it off but I am still getting:
Code:
<html>
<head>
</head>
<body>bool(true)
Count: 1</body>
</html>

 3 
 on: April 09, 2014, 07:04:53 PM 
Started by jruzinok - Last post by webko
Someone installed xdebug on the server?

I probably wouldn't use that on a production server, although it is quite useful on dev machines...

Check your PHP.ini:

zend_extension="/wherever/you/put/it/xdebug.so"

And comment it out

 4 
 on: April 09, 2014, 05:18:47 PM 
Started by jruzinok - Last post by jruzinok
Hello,

What is random with this is that the error showed up 2 months after development. Nothing has been changed. But I am seeing bool (true) on all my pages. 

So I just tried the following code:
Code:
<?php 
require_once('FileMaker.php');

$fm = new FileMaker(); 

$fm->setProperty('database''Database Name'); 

$fm->setProperty('hostspec''ip'); 

$fm->setProperty('username''webuser'); 

$fm->setProperty('password''webuser'); 

$findCommand $fm->newFindCommand('layout_name'); 

$findCommand->addFindCriterion('_kf_StaffID''13'); 
$findCommand->addFindCriterion('BookingFlag''1'); 
$findCommand->addFindCriterion('c_SearchStatus''Active'); 

$result $findCommand->execute(); 

$records $result->getRecords();
$count = count($records);

echo 
"Count: "$count;
?>

And here is the HTML result:
 
Code:
<html>
<head>
</head>
<body>
<pre class="xdebug-var-dump" dir="ltr"><small>boolean</small> <font color="#75507b">true</font>
</pre>Count: 1
</body>
</html>

Any ideas?

Thanks!
Justin

 5 
 on: April 05, 2014, 06:27:28 PM 
Started by carmean - Last post by carmean
I am guessing the code that did not work was created with the Filemaker 10 server PHP Site Assistant.

 6 
 on: March 31, 2014, 08:29:37 PM 
Started by MBUST - Last post by webko
It should be noted that the connection file is essentially unreadable from outside - there are no echo commands to put anything to screen.

And if someone has enough access to directly read the connection file on the server, I'd suggest you have much larger security issues in play....

 7 
 on: March 31, 2014, 08:26:28 PM 
Started by xtrim - Last post by webko
Would probably help if I didn't add an extra quote mark in the middle of everything - see where it turned red and stayed that way?

Let's try:

Code:
<table>
<?php
$i 
0//Set a counter
$n 3//Number of columns - this can be changed to any value from 2 upwards
foreach(fmsValueListItems($employee,'Details','ProgramAccessList',"") as $list_item_key=>$list_item) {
//We are now inside the loop - check if it's left, right or middle
if (fmod ($i,$n) == 0) {
//Left column - we need to start a row 
$trstart "<tr>"
$trend "";
} elseif (fmod ($i,$n) = $n 1) {
//Right column - we need to end the row
$trstart "";
$trend="</tr>/n";
} else {
//must be a middle column, no start or end row tags required
$trstart "";
$trend="";
}
if( fmsCompareSet($list_item$print_row->getField('ProgramAccess')) ) {
echo $trstart//Will ony have a value for left col
echo "<td><input name="ProgramAccess[{$list_item_key}]" type=\"checkbox\" value=\"{$list_item}\" checked=\"checked\">{$list_item}</td>";
echo $trend;
} else {
echo $trstart;
echo "<td><input name=\"ProgramAccess[{$list_item_key}]\" type=\"checkbox\" value=\"{$list_item}\">{$list_item}</td>";
echo $trend//Will only have a value for right col
}
$i++; //Increment the counter
}
?>

</table>

 8 
 on: March 27, 2014, 04:20:48 PM 
Started by cooldude - Last post by thebugnut
I just checked with my new host. I can't downgrade my php. I don't have access to my php.iin file.

Any other ideas?

 9 
 on: March 27, 2014, 03:54:24 PM 
Started by cooldude - Last post by thebugnut
I have this same error. What exactly do we need to tweak in the PHP.iin file?

What if we don't have access to that file?

 10 
 on: March 19, 2014, 05:09:13 AM 
Started by MBUST - Last post by MBUST
I hope that what I'm planning to do is safe; it seems to be what Webko does. I realize that if someone gets a hold of the page, they will get the password (which points to the need to have a secure webserver with a good password), but if they do, the password is not an admin password, or better, yet, the db has that removed.

Thanks. Max

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!