redirection in PHP

Author Message

Albert Hornos

Tuesday 06 September 2005 1:02:46 am

Hi!
I'm trying to make a redirection in PHP to download a csv file that I'm create but I can' tfind the way to do this.
Could anybody help me?
Thanks!

Kristof Coomans

Tuesday 06 September 2005 7:55:02 am

To redirect in a module view, you can use $module->redirect( ... ).

You can take a look in the API docs for more info and related functions.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Björn Dieding@xrow.de

Tuesday 06 September 2005 9:45:54 am

eZFile::download( $path )

A direct passthrough...

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Albert Hornos

Wednesday 07 September 2005 12:29:25 am

Thank you so much both of you!
Really I was doing a well redirection it was a problem with my apache config!
(so if someone has the same problem check your config, you now!)

Albert.

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 19 2025 07:18:48
Script start
Timing: Jan 19 2025 07:18:48
Module start 'layout'
Timing: Jan 19 2025 07:18:48
Module start 'content'
Timing: Jan 19 2025 07:18:49
Module end 'content'
Timing: Jan 19 2025 07:18:49
Script end

Main resources:

Total runtime1.5327 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.7969152.6094
Module start 'layout' 0.00690.0044 743.406339.4297
Module start 'content' 0.01131.5200 782.8359581.2500
Module end 'content' 1.53130.0014 1,364.085912.1875
Script end 1.5327  1,376.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2146160.0002
Check MTime0.00140.0900160.0001
Mysql Total
Database connection0.00080.050710.0008
Mysqli_queries1.480096.5611620.0239
Looping result0.00090.0562600.0000
Template Total1.490997.320.7454
Template load0.00220.143120.0011
Template processing1.488797.125820.7443
Template load and register function0.00020.012910.0002
states
state_id_array0.00160.101710.0016
state_identifier_array0.00230.150520.0012
Override
Cache load0.00180.1197200.0001
Sytem overhead
Fetch class attribute can translate value0.00120.076830.0004
Fetch class attribute name0.00110.072760.0002
XML
Image XML parsing0.00120.077830.0004
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00100.0625220.0000
String conversion0.00000.001640.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs