Forums / Developer / Uploading content files using FTP to Ezpublish-Linux

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

eZ debug

Timing: Jan 18 2025 19:22:53
Script start
Timing: Jan 18 2025 19:22:53
Module start 'content'
Timing: Jan 18 2025 19:22:53
Module end 'content'
Timing: Jan 18 2025 19:22:53
Script end

Main resources:

Total runtime0.9631 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.8594180.8125
Module start 'content' 0.00870.8061 768.6719557.7969
Module end 'content' 0.81490.1482 1,326.4688336.7422
Script end 0.9631  1,663.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4132210.0002
Check MTime0.00160.1626210.0001
Mysql Total
Database connection0.00080.081910.0008
Mysqli_queries0.886091.98971970.0045
Looping result0.00210.21931950.0000
Template Total0.928196.420.4640
Template load0.00200.209920.0010
Template processing0.926096.150220.4630
Template load and register function0.00020.024710.0002
states
state_id_array0.00100.107010.0010
state_identifier_array0.00240.245720.0012
Override
Cache load0.00170.1761280.0001
Sytem overhead
Fetch class attribute can translate value0.00160.167030.0005
Fetch class attribute name0.00130.134950.0003
XML
Image XML parsing0.00100.105430.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00200.2082280.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs