DMXzone File System Connector Support Product Page

Solved

no data show tutoral Listing the Contents of a Folder

27 Apr 2016 14:57:44 Herve de Brabandère 7ok sprl posted:
Hello,

I try to replicate tutorial "Listing the Contents of a Folder on your Page" but just get table titles, no data.

- dreamweaver cs6 php5.5.17 pc xp sp3
- dmxzone extension uptodate
- already delete dreamwevaer cache file, unistall server connect and file system connector, reinstall using dmx extension manager

Here is the link : www.7ok.ovh/folder-list.php (debug mode is on). I started from a empty www.7ok.ovh site

I get those messages :

F12 ==> Network preview
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php on line 5

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php on line 5

Parse error: syntax error, unexpected T_STRING in /home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php on line 5

F12 ==> Network response

<br />
<b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php</b> on line <b>5</b><br />
<br />
<b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php</b> on line <b>5</b><br />
<br />
<b>Parse error</b>: syntax error, unexpected T_STRING in <b>/home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php</b> on line <b>5</b><br />

/home/_p2/prod2/pub/www.7ok.ovh/dmxConnect/api/list_folder.php source :

<?php
require('../../dmxConnectLib/dmxConnect.php');


$app = new \lib\App(); <== LINE 5

$app->define(<<<'JSON'
{
"meta": {
"options": {}
},
"exec": {
"steps": {
"name": "folder_list",
"module": "fs",
"action": "dir",
"options": {
"path": "/uploads"
},
"output": true,
"outputType": "array",
"meta": [
{
"name": "type",
"type": "text"
},
{
"name": "name",
"type": "text"
},
{
"name": "path",
"type": "text"
},
{
"name": "size",
"type": "number"
},
{
"name": "folder",
"type": "text"
},
{
"name": "basename",
"type": "text"
},
{
"name": "extension",
"type": "text"
},
{
"name": "created",
"type": "date"
},
{
"name": "accessed",
"type": "date"
},
{
"name": "modified",
"type": "date"
}
]
}
}
}
JSON
);
?>
Thank you helping me

Replies

Replied 27 Apr 2016 15:22:09
27 Apr 2016 15:22:09 Teodor Kuduschiev replied:
Please check your PHP version, as it seems to me it is not 5.5 but 5.2
Replied 28 Apr 2016 10:28:26
28 Apr 2016 10:28:26 Herve de Brabandère 7ok sprl replied:
You'r right Teodor,

A old htacess was running in a upper level. After deleting it it's running fine.

Thank you Teodor

Reply to this topic