 |
| Voir le sujet précédent :: Voir le sujet suivant |
| Auteur |
Message |
enzo83
Inscrit le: 18 Juin 2008 Messages: 3
|
Posté le: 18 Juin 2008 08:16 |
|
|
Bonjour,
Je viens d'installer un script de gestion d'association "CRM Elyazalée" Disponible Ici en local
Après plusieurs heure de galère je suis parvenus à l'installer le script en local
avec easyphp 1.8 (+Mise à jour) en activant et désactivant les éléments suivant.
- error_reporting = E_ALL & ~E_NOTICE
- register_globals = On
- register_argc_argv = On
- magic_quotes_gpc = On
- magic_quotes_runtime = Off
- magic_quotes_sybase = Off
Mais je rencontre un nouveau problème et la mais compétence en PHP ne sont pas assez développer.
Quand j'ouvre ma page index.php à la racine il me donne comme erreur
| Code: |
Notice: Undefined variable: chemin_font in c:\program files\easyphp1-8\www\class\class.image.config.unix.php on line 53
Parse error: parse error in c:\program files\easyphp1-8\www\class\class.image.interface.php on line 9
|
Je regarde donc mais deux fichier mais je ne trouve rien d'anormal ou même d'erreur !
Je me permet donc de mettre les deux fichier en complet
Le fichier "[COLOR="DarkRed"]class.image.config.unix.php[/COLOR]"
| Code: |
<?php
/**************************************************************************
* CONFIG clsImage (filename: class.image.config.php)
*
* This is the configuration file for the class clsImage
*/
/* SCRIPT ERROR REPORTING
Used for script debugging only.
Options:
error_reporting [OFF|ON] [ error_reporting(0) | error_reporting(E_ALL) ]
IMAGEDEBUG [OFF|ON|SOURCEDEBUG] [ 0 | 1 | 2 ]
*/
//error_reporting(0);
define("IMAGEDEBUG","1");
/* FILE BASE LOCATIONS (no trailing slash!)
These parameters are used for loading and storing images from and
to disk, the browser clients must have read/write access on
the psysical disk locations.
Do not provide execute (and list) permissions to this
directory for security reasons.
WINDOWS examples:
IMAGEDIRSEPARATOR \\
IMAGEBASEURL [url]http://www.domain.com/images/temp[/url]
IMAGEBASEPATH C:\\inetpub\\wwwroot\\sitename\\images\\temp
UNIX examples:
IMAGEDIRSEPARATOR /
IMAGEBASEURL [url]http://www.domain.com/images/temp[/url]
IMAGEBASEPATH /www/sitename/images/temp */
define("IMAGEDIRSEPARATOR","/");
define("IMAGEBASEURL",$chemin_upload_image);
define("IMAGEBASEPATH",$chemin_upload_image_relatif);
/* FONT FILE LOCATION (no trailing slash!)
This parameter provides the full filelocation of the fontfile
which is used for writing text on the image. The full path with
filename and extension must be provided.
WINDOWS example: C:\WINNT\fonts
UNIX example: /usr/local/font */
define("IMAGEFONTDIR",$chemin_font);
/* DEFAULT IMAGE QUALITY
These parameters define the image quality, these parameters
are used in the script when saving an image to disk.
These parameters set the defaultvalues, these values can be
overruled by setting the object properties to a custom value.
$objImage->jpegquality = 80 (range 1..100)
$objImage->interlace = true (or false)
*/
define("IMAGEINTERLACE","1");
define("IMAGEJPEGQUALITY","80");
?>
|
Le Fichier "[COLOR="DarkRed"]class.image.interface.php[/COLOR]"
| Code: |
<?php
/**************************************************************************
* INTERFACE interfaceImage (filename: class.image.interface.php)
*
* This is the interface definition and documentation for
* the class clsImage.
*/
interface interfaceImage {
/**
* Load an imagefile into memory.
* @constant GLOBAL string IMAGEBASEPATH
* @param string $sFileName - the filename of the imagefile
*/
public function loadfile($sFileName);
/**
* Store the memoryimage to file.
* @constant GLOBAL string IMAGEBASEPATH
* @param string $sFileName [default: clsImage->filename] - the new filename of the memoryimage
*/
public function savefile($sFileName = NULL);
/**
* Send the memoryimage to the client browser with mimetype header.
* The script terminates after sending the preview to the client, a
* new header will be send.
*/
public function preview();
/**
* Echo the imagefile as a html imagetag to the client browser. The imagefile is used not
* the memoryimage, store the memoryimage to file first.
* @constant GLOBAL string IMAGEBASEURL
* @param string $sAltText [default: no alt text] - the alt text for the html imagetag
* @param string $sClassName [default: no class] - the css classname for the html imagetag
*/
public function showhtml($sAltText = NULL, $sClassName = NULL);
/**
* Resize the memoryimage to a given width and height, do not keep the aspect ratio.
* @param integer $iNewWidth - the new width of the memoryimage in pixels
* @param integer $iNewHeight - the new height of the memoryimage in pixels
*/
public function resize($iNewWidth, $iNewHeight);
/**
* Convert the memoryimage, change the imagetype and mimetype. Also the
* filename will be changed to the corresponding filetype extension.
* @param string $sTargetType [options: jpg | gif | png ] - the new imagetype
*/
public function convert($sTargetType);
/**
* Resize the memoryimage to a given width, keep the aspect ratio. The height
* of the memoryimage will be changed according to the aspect ratio.
* @param integer $iNewWidth - the new width of the memoryimage in pixels
*/
public function resizetowidth($iNewWidth);
/**
* Resize the memoryimage to a given height, keep the aspect ratio. The width
* of the memoryimage will be changed according to the aspect ratio.
* @param integer $iNewHeight - the new height of the memoryimage in pixels
*/
public function resizetoheight($iNewHeight);
/**
* Resize the memoryimage to a given percentage, keep the aspect ratio. The width
* of the memoryimage will be changed according to the aspect ratio.
* @param integer $iPercentage - the resize percentage
*/
public function resizetopercentage($iPercentage);
/**
* Resize and crop the memoryimage to a given height and width, keep the aspect ratio.
* Before cropping a resize will be executed, after the resize the crop is executed.
* @param integer $iNewWidth - the new width of the memoryimage in pixels
* @param integer $iNewHeight - the new height of the memoryimage in pixels
* @param integer $iResize [default: 0]- the resize value in percentage (%)
*/
public function crop($iNewWidth, $iNewHeight, $iResize = 0);
/**
* Write text on the memoryimage, use several parameters to define the text-layout.
* @constant GLOBAL string IMAGEFONTDIR
* @param string $sText - the text
* @param integer $iFontSize - the text fontsize in pixels
* @param string $sTextColor [default: 0,0,0] [range: 0..255,0..255,0..255] - the text color in comma seperated RGB values
* @param string $sFontname [default: arial] - the truetype font filename
* @param integer $iXPos [default: 5] [range: 0..clsImage->width] - the text start X-pixel-position
* @param integer $iYPos [default: 15] [range: 0..clsImage->height] - the text start Y-pixel-position
* @param integer $iTextAngle [default: 0] [range: 0..360] - the text rotation-angle
*/
public function writetext($sText, $iFontSize = 10, $sTextColor = '0,0,0', $sFontname = 'arial', $iXPos = 5, $iYPos = 15, $iTextAngle = 0);
}
?>
|
pour info
Easyphp 1.7 => debut d'install ok apres erreur SQL (Ce qui semble normal)
Easyphp 1.8 => Le grand gagnant installation complète mais problème cité au dessus ( Erreur class.image.config.unix & class.image.interface)
easyphp 2.0c => Impossible de faire l'install pas d'erreur page blanche (après 2h de recherche impossible de trouver pourquoi)
Wamp 2.0 => Impossible de faire l'install pas d'erreur page blanche (Bis)
Svp j'ai vraiment besoin de se script Merci
Si quelqu'un peut m'aider sa serait super.
En vous remerciant |
|
| Revenir en haut |
|
Elyazalée
Inscrit le: 19 Juin 2008 Messages: 2 Localisation: PLéRIN
|
Posté le: 19 Juin 2008 17:30 |
|
|
Bonjour,
Ton message d'erreur provient de fonctionnalités non présentes dans ta version de Php (4).
Logiquement, va dans le dossier "class" tu devrais avoir des fichiers comme par exemple : class.image.php4.php~.
Utilise les pour remplacer les fichiers contenant "php5" en gardant l'ancien nom.
@+ |
|
| Revenir en haut |
|
enzo83
Inscrit le: 18 Juin 2008 Messages: 3
|
Posté le: 19 Juin 2008 18:41 |
|
|
| Elyazalée a écrit: | Bonjour,
Ton message d'erreur provient de fonctionnalités non présentes dans ta version de Php (4).
Logiquement, va dans le dossier "class" tu devrais avoir des fichiers comme par exemple : class.image.php4.php~.
Utilise les pour remplacer les fichiers contenant "php5" en gardant l'ancien nom.
@+ |
Bonjour,
Bonjour,
et merci de ta réponse mais il semble que cela ne soit pas sa.
J'ai quand même test ta solution mais rien à faire j'ai donc pris les chose en main en installant directement la conf ci-dessous avec les résultats si cela peut t'aider merci
Circonstance :
- Apache 2.2.9
- PHP 5.2.6
- MySQL 5.1
- phpMyAdmin 2.11.6
Pour info :
J'ai aussi tester avec :
Easyphp 2.0b1 => Pas d'erreur page blanche à l'installation du script
Easyphp 1.8 => Pas d'erreur Début de l'installation ok jusqu'a la connection de la DB sql aprés page blanche
WampServer 2.0c => Pas d'erreur page blanche à l'installation du script
xampp 1.6.6a => Pas d'erreur page blanche à l'installation du script
Avec la configuration ci-dessus si je tape:
http://localhost => page blanche
http://127.0.0.1 => page blanche
adresse ip de la machine ex 192.168.1.2 =>
Avec la configuration Easyphp 1.8 si je tape:
http://localhost =>
et pour finir voila les fichier de log
| Citation: |
access.log
127.0.0.1 - - [19/Jun/2008:17:39:48 +0200] "GET / HTTP/1.1" 200 292
127.0.0.1 - - [19/Jun/2008:17:39:51 +0200] "GET /favicon.ico HTTP/1.1" 404 209
|
| Citation: |
error.log
[Thu Jun 19 17:39:36 2008] [notice] Apache/2.2.9 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Thu Jun 19 17:39:36 2008] [notice] Server built: Jun 13 2008 04:04:59
[Thu Jun 19 17:39:36 2008] [notice] Parent: Created child process 288
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Child process is running
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Acquired the start mutex.
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Starting 64 worker threads.
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Starting thread to listen on port 80.
[Thu Jun 19 17:39:51 2008] [error] [client 127.0.0.1] File does not exist: C:/Apache/www/favicon.ico
|
quelqu'un pourrais t'il m'aidai à trouver une solution ?
En vous remerciant  |
|
| Revenir en haut |
|
enzo83
Inscrit le: 18 Juin 2008 Messages: 3
|
Posté le: 19 Juin 2008 18:42 |
|
|
| enzo83 a écrit: | | Elyazalée a écrit: | Bonjour,
Ton message d'erreur provient de fonctionnalités non présentes dans ta version de Php (4).
Logiquement, va dans le dossier "class" tu devrais avoir des fichiers comme par exemple : class.image.php4.php~.
Utilise les pour remplacer les fichiers contenant "php5" en gardant l'ancien nom.
@+ |
Bonjour,
Bonjour,
et merci de ta réponse mais il semble que cela ne soit pas sa.
J'ai quand même tester ta solution mais rien à faire j'ai donc pris les chose en main en installer directement la conf ci-dessous avec les résultats si cela peut t'aider merci
Circonstance :
- Apache 2.2.9
- PHP 5.2.6
- MySQL 5.1
- phpMyAdmin 2.11.6
Pour info :
J'ai aussi tester avec :
Easyphp 2.0b1 => Pas d'erreur page blanche à l'installation du script
Easyphp 1.8 => Pas d'erreur Début de l'installation ok jusqu'a la connection de la DB sql aprés page blanche
WampServer 2.0c => Pas d'erreur page blanche à l'installation du script
xampp 1.6.6a => Pas d'erreur page blanche à l'installation du script
Avec la configuration ci-dessus si je tape:
http://localhost => page blanche
http://127.0.0.1 => page blanche
adresse ip de la machine ex 192.168.1.2 =>
Avec la configuration Easyphp 1.8 si je tape:
http://localhost =>
et pour finir voila les fichier de log
| Citation: |
access.log
127.0.0.1 - - [19/Jun/2008:17:39:48 +0200] "GET / HTTP/1.1" 200 292
127.0.0.1 - - [19/Jun/2008:17:39:51 +0200] "GET /favicon.ico HTTP/1.1" 404 209
|
| Citation: |
error.log
[Thu Jun 19 17:39:36 2008] [notice] Apache/2.2.9 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Thu Jun 19 17:39:36 2008] [notice] Server built: Jun 13 2008 04:04:59
[Thu Jun 19 17:39:36 2008] [notice] Parent: Created child process 288
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Child process is running
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Acquired the start mutex.
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Starting 64 worker threads.
[Thu Jun 19 17:39:36 2008] [notice] Child 288: Starting thread to listen on port 80.
[Thu Jun 19 17:39:51 2008] [error] [client 127.0.0.1] File does not exist: C:/Apache/www/favicon.ico
|
quelqu'un pourrais t'il m'aidai à trouver une solution ?
En vous remerciant  |
|
|
| Revenir en haut |
|
Elyazalée
Inscrit le: 19 Juin 2008 Messages: 2 Localisation: PLéRIN
|
Posté le: 20 Juin 2008 09:12 |
|
|
| Oui mais quand tu installes EasyPhp il y a quand même un minimum de modification à faire dans le php.ini (short tags, etc) et dans les librairies php a activer (ex : gd2, mbstring, etc) |
|
| Revenir en haut |
|
|
 |
|
Toutes les heures sont au format GMT + 2 Heures
|
| Page 1 sur 1 |
|
Vous ne pouvez pas poster de nouveaux sujets Vous ne pouvez pas répondre aux sujets Vous ne pouvez pas éditer vos messages Vous ne pouvez pas supprimer vos messages Vous ne pouvez pas voter dans les sondages
|
|