Uploading content files using FTP to Ezpublish-Linux

Author Message

mathew mathew

Thursday 21 May 2009 11:34:10 am

Hi techies,

I am new to ezpublishing. I am using Ezpublish 4.1.1 version,Linux PHP 5.2.X, Apache 2.2.x

I have the below requirement

Option-1
1. We want to upload content files(word,PDF,zip etc) to linux box temporary folder using FTP/Secure-FTP client. Once the files get uploaded to temporary folder, all files should be pushed to Ezpublishing application in content section of some particular node, and content object should be created and workflow need to be initiated for further processing.

Option-2
1. We want to upload content files(word,PDF,zip etc) to directly to Ezpublishing application in content section of some particular node using FTP/Secure-FTP(here content are not storing in temp location of linux box), and content object should be created and workflow need to be initiated for further processing.
Is Option-2 possible technically in ezpublsihing?

To get the above result(either option-1, or option-2), Do we need to use some Ezpublshing extension like ezFTP or write cron job(Import or Update php) for uploading to particular node in ezpublishing?
Please provide you thoughts on the above specified option and feasibility.

It would be great help if we get some useful sample (cron job?) PHP script for achieving the above requirement.

Thanks in advance.

Ivo Lukac

Thursday 21 May 2009 12:28:30 pm

Hello Mathew,

Option 2 is possible but with webdav:
http://ez.no/doc/ez_publish/technical_manual/4_0/features/webdav

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

mathew mathew

Thursday 21 May 2009 1:26:26 pm

Hi,

I am looking for FTP method.

Ivo Lukac

Thursday 21 May 2009 9:52:44 pm

Just searched for ftp on ez.no and found this:
http://projects.ez.no/ezftp

It is alpha, but could be helpful :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:41:01
Script start
Timing: Jan 30 2025 21:41:01
Module start 'layout'
Timing: Jan 30 2025 21:41:01
Module start 'content'
Timing: Jan 30 2025 21:41:02
Module end 'content'
Timing: Jan 30 2025 21:41:02
Script end

Main resources:

Total runtime1.5885 sec
Peak memory usage8,192.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.2813151.2266
Module start 'layout' 0.00620.0053 739.5078220.7188
Module start 'content' 0.01161.5760 960.22664,462.0703
Module end 'content' 1.58750.0009 5,422.296911.8125
Script end 1.5885  5,434.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2415160.0002
Check MTime0.00140.0860160.0001
Mysql Total
Database connection0.00070.043810.0007
Mysqli_queries1.497794.2848600.0250
Looping result0.00060.0353580.0000
Template Total1.522395.820.7612
Template load0.00220.140120.0011
Template processing1.520195.691620.7600
Template load and register function0.00200.127810.0020
states
state_id_array0.00250.159610.0025
state_identifier_array0.00110.067220.0005
Override
Cache load0.00190.1184280.0001
Sytem overhead
Fetch class attribute can translate value0.00190.121520.0010
Fetch class attribute name0.00220.141450.0004
XML
Image XML parsing0.00080.052420.0004
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00100.0639170.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs