PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > php server installation
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
php server installation

Réponse
 
LinkBack Outils de la discussion
Vieux 10/04/2008, 09h05   #1
hce
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut php server installation

Hi,

I've installed lighty and php5 to a FC6 box for testing php code in my
local machine, I set up www.mytest.com to the /etc/hosts. I can see a
page of http://www.mytest.com/index.html, but a blank page to
http://www.mytest.com/index.php. I've run an command "php -l
index.php", the result was "No syntax errors detected in index.php".
What I was missing?

Thank you.

Jim
  Réponse avec citation
Vieux 10/04/2008, 20h24   #2
Nathan Nobbe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] php server installation

On Thu, Apr 10, 2008 at 1:05 AM, hce <webmail.hce@gmail.com> wrote:

> Hi,
>
> I've installed lighty and php5 to a FC6 box for testing php code in my
> local machine, I set up www.mytest.com to the /etc/hosts. I can see a
> page of http://www.mytest.com/index.html, but a blank page to
> http://www.mytest.com/index.php. I've run an command "php -l
> index.php", the result was "No syntax errors detected in index.php".
> What I was missing



php -l indicates only that php is working on the cli.
what are the contents of index.php; i recommend a page as follows
<?php
die(phpinfo());
?>

if the page prompts you to download something then php isnt installed, or at
least the webserver isnt configured to run it, but if you see a bunch of
stuff similar to the cli output of php -i, ur in good shape

-nathan

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 13h40.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09985 seconds with 10 queries