Saturday, May 19, 2012

file piu’ importante DataObject.php

maggio 19, 2012 by · Leave a Comment 

2 file createTables.php

maggio 19, 2012 by · Leave a Comment 

[code:3r8rr21v] <?php $path = $_SERVER["DOCUMENT_ROOT"].'/PEAR/PEAR/'; //set_include_path(get_include_path() . PATH_SEPARATOR . $path); set_include_path($path); $_SERVER['argv'][1] = "/mailing_conte/DataObject.php"; require_once("DB/DataObject/createTables.php"); ?> [/code:3r8rr21v] lanciando questo file da http://localhost/mailing_conte/createTables.php dovrebbero crearsi e riempirsi la cartella c:/wamp/www/mailing_conte/DataObjects se ci son problemi creare questa cartella e dagli il permesso di scrittura a tutti

Re: Installazione PEAR

maggio 19, 2012 by · Leave a Comment 

Ciao, al momento dell’istallazione de pacchetti ho a disposizione solo i primi due e al termine della stessa mi da una serie di errori. tipo: Cannot read the template file: "C:\wamp\php\pear\data/PEAR_Frontend_Web/data/templates/top.inc.tpl.html"Cannot read the template file: "C:\wamp\php\pear\data/PEAR_Frontend_Web/data/templates/error.tpl.html"Cannot read the template file: "C:\wamp\php\pear\data/PEAR_Frontend_Web/data/templates/error.tpl.html"Cannot read the template file: "C:\wamp\php\pear\data/PEAR_Frontend_Web/data/templates/error.tpl.html"Cannot read the template file: "C:\wamp\php\pear\data/PEAR_Frontend_Web/data/templates/error.tpl.html"Cannot read the template file: [...]

3 file config.php

maggio 19, 2012 by · Leave a Comment 

[code:2vv4jqsa] <?php $pathz= array(get_include_path(), 'c:/wamp/php/pear', $_SERVER["DOCUMENT_ROOT"].'/PEAR/PEAR', $_SERVER["DOCUMENT_ROOT"].'/PEAR/'); set_include_path(implode(PATH_SEPARATOR,$pathz) ); //set_include_path($path); define('DB_DATAOBJECT_NO_OVERLOAD', 1); require_once('PEAR.php'); //require_once('XML/Query2XML.php'); //require_once('DB.php'); require_once('MDB2.php'); require_once('Date.php'); define ("absdir","/mailing_conte/"); require (absdir.'Smarty/libs/Smarty.class.php'); $dsn="--"; $config = parse_ini_file(absdir."DataObject.php", true); foreach($config as $class=>$values) { $options = &PEAR::getStaticProperty($class,'options'); $options = $values; } $options = &PEAR::getStaticProperty('DB_DataObject','options'); if (empty($options)) { PEAR::raiseError("\nERROR: could not read ini file\n\n", null, PEAR_ERROR_DIE); exit; } if( isset($options["database"]) [...]

4 file index.php

maggio 19, 2012 by · Leave a Comment 

[code:2iegye44] <?php require_once("config.php"); //require_once("check.php"); // per il login function handlePearError($err) { echo "[".$err->getMessage()."]<pre>"; print_r($err); echo "</pre>"; } PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'handlePearError'); $html=""; $html.="<ul>"; $html.='<li><a href="?publish">Pubblica</a></li>'; $html.='<li><a href="?action=logout">Logout</a></li>'; $html.='<li><a href="createTables.php">createTables</a></li>'; $html.='<li><a href="?action=invioprova">invio prova</a></li>'; $html.='<li><a href="?action=inviotutti">invio a TUTTI</a></li>'; $html.='<li><a href="?action=forzainvio">forza invio</a></li>'; $html.="</ul>"; echo $html; require_once('Pearified/DB/DataObject/FormBuilder/Frontend.php'); $frontend = new DB_DataObject_FormBuilder_Frontend(); $frontend->display(); if(isset($_GET["publish"])){ //echo "wait.."; // publish(); } switch($_GET["action"]){ case "invioprova": [...]

Re: 2 file createTables.php

maggio 19, 2012 by · Leave a Comment 

Mi da questo errore al momento di lanciare il php. [b:1mt1dcq4]Warning[/b:1mt1dcq4]: require_once(DB/DataObject/createTables.php) [[url=http://localhost/mailing_conte/function.require-once:1mt1dcq4]function.require-once[/url:1mt1dcq4]]: failed to open stream: No such file or directory in [b:1mt1dcq4]C:\wamp\www\mailing_conte\createTables.php[/b:1mt1dcq4] on line [b:1mt1dcq4]8[/b:1mt1dcq4] [b:1mt1dcq4]Fatal error[/b:1mt1dcq4]: require_once() [[url=http://localhost/mailing_conte/function.require:1mt1dcq4]function.require[/url:1mt1dcq4]]: Failed opening required ‘DB/DataObject/createTables.php’ (include_path=’C:/wamp/www/PEAR/PEAR/’) in [b:1mt1dcq4]C:\wamp\www\mailing_conte\createTables.php[/b:1mt1dcq4] on line [b:1mt1dcq4]8[/b:1mt1dcq4] Come Risolvo?

Re: 2 file createTables.php

maggio 19, 2012 by · Leave a Comment 

bisogna installare il pacchetto db_dataobject delle pear percio’ bisogna andare su http://localhost/PEAR e installare questo pacchetto

usiamo fckeditor per inviare html

maggio 19, 2012 by · Leave a Comment 

basta scomprire il contenuto dell’allegato in c:\wamp\www\mailing_conte per queste ed altre estensioni delle PEAR andare su viewforum.php?f=4

Re: 2 file createTables.php

maggio 19, 2012 by · Leave a Comment 

[code:15b25592] <?php $path = $_SERVER["DOCUMENT_ROOT"].'/PEAR/PEAR/'; set_include_path(get_include_path() . PATH_SEPARATOR . $path); //set_include_path($path); $_SERVER['argv'][1] = "/mailing_conte/DataObject.php"; require_once("DB/DataObject/createTables.php"); ?> [/code:15b25592] cambia il file cosi' .. e aggiungi questi file senza sovrascrivere quelli vecchi c:\wamp\www\PEAR dentro c'e' un'altra cartella PEAR in cui ora manca la cartelle DB aggiungendo questi file che ti metto in allegato si dovrebbe risolvere la [...]

Re: 2 file createTables.php

maggio 19, 2012 by · Leave a Comment 

mi continua a dare errore, lo posto di seguito: [b:18i9nopr]Warning[/b:18i9nopr]: require_once(DB/DataObject/createTables.php) [[url=http://localhost/mailing_conte/function.require-once:18i9nopr]function.require-once[/url:18i9nopr]]: failed to open stream: No such file or directory in [b:18i9nopr]C:\wamp\www\mailing_conte\createTables.php[/b:18i9nopr] on line [b:18i9nopr]8[/b:18i9nopr] [b:18i9nopr]Fatal error[/b:18i9nopr]: require_once() [[url=http://localhost/mailing_conte/function.require:18i9nopr]function.require[/url:18i9nopr]]: Failed opening required ‘DB/DataObject/createTables.php’ (include_path=’.;C:\php5\pear;C:/wamp/www/PEAR/PEAR/’) in [b:18i9nopr]C:\wamp\www\mailing_conte\createTables.php[/b:18i9nopr] on line [b:18i9nopr]8[/b:18i9nopr]

« Previous PageNext Page »