PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Write a file to disk with PHP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Write a file to disk with PHP

Réponse
 
LinkBack Outils de la discussion
Vieux 14/09/2007, 09h47   #1 (permalink)
marco.minerva@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Write a file to disk with PHP

Hi all!

Within my PHP page (on an Apache webserver), I must call a shell
program that saves a file to disk. The program is executed correctly,
but nothing is saved; I think this is a permission problem. I can't
modify the program, so there is a way to solve the problem?

Thanks in advance.
--
Marco Minerva, marco.minerva@gmail.com
http://blogs.ugidotnet.org/marcom

  Réponse avec citation
Vieux 14/09/2007, 09h49   #2 (permalink)
gosha bine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Write a file to disk with PHP

On 14.09.2007 10:47 marco.minerva@gmail.com wrote:
> Hi all!
>
> Within my PHP page (on an Apache webserver), I must call a shell
> program that saves a file to disk. The program is executed correctly,
> but nothing is saved; I think this is a permission problem. I can't
> modify the program, so there is a way to solve the problem?
>
> Thanks in advance.



Append 2>&1 to your command line and look what it says.


--
gosha bine

makrell ~ http://www.tagarga.com/blok/makrell
php done right http://code.google.com/p/pihipi
  Réponse avec citation
Vieux 14/09/2007, 13h08   #3 (permalink)
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Write a file to disk with PHP

marco.minerva@gmail.com wrote:
> Hi all!
>
> Within my PHP page (on an Apache webserver), I must call a shell
> program that saves a file to disk. The program is executed correctly,
> but nothing is saved; I think this is a permission problem. I can't
> modify the program, so there is a way to solve the problem?
>
> Thanks in advance.
> --
> Marco Minerva, marco.minerva@gmail.com
> http://blogs.ugidotnet.org/marcom
>


Set the appropriate permissions on the directory and/or file, as necessary.

Check a Linux admin group for more info.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  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 01h25.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07711 seconds with 11 queries