[PHP] Probleem

Pagina: 1
Acties:
  • 69 views sinds 30-01-2008

  • P.B.
  • Registratie: Juli 2001
  • Niet online
Ik heb dit:

Warning: utime failed: Operation not permitted in /www/wforum/includes/template.php on line 148

De serveradmin komt er niet uit :(

Wat is er aan de hand met php ?

Verwijderd

Er staat letterlijk wat er aan de hand is.

In template.php staat op regel 148 een instructie die niet wordt toegestaan. Verder zijn wij niet helderziend.

Lekker duidelijke topictitel trouwens :{

  • P.B.
  • Registratie: Juli 2001
  • Niet online
Dat weet ik, maar hetzelfde script werd onder een andere php server wel toegestaan.
Op de nieuwe server is er een andere php.ini waarschijnlijk, maar de admin weet niet wat ie moet veranderen.

  • ACM
  • Registratie: Januari 2000
  • Niet online

ACM

Software Architect

Werkt hier

Dan staat ie vast in safe_mode. Of een vergelijkbare restrictie.

  • Bolk
  • Registratie: Februari 2001
  • Niet online

Bolk

Change the equation.

safe_mode = off

Nadat ik de sever hergeconfigged heb is er opeens een probleem :?

Ik bespeur hier een zekere mate van onethische logica.


  • Ericston
  • Registratie: Maart 2001
  • Laatst online: 05-09 18:58
Op dinsdag 19 maart 2002 21:30 schreef Bolk het volgende:
safe_mode = off

Nadat ik de sever hergeconfigged heb is er opeens een probleem :?
Nee. :)

  • P.B.
  • Registratie: Juli 2001
  • Niet online
Dit is overigens het stukje php uit een groot php bestand, hier zit regel 148 in.
PHP:
1
<?    /**      * Load the file for the handle, compile the file,      * and run the compiled code. This will print out      * the results of executing the template.      */     function pparse($handle)     {         $cache_file = $this->cachedir . $this->filename[$handle] . ".php";         if( @filemtime($cache_file) == @filemtime($this->files[$handle]) )         {             $_str = "";             include($cache_file);             if ( $_str != "" )             {                 echo $_str;             }         }         else          {             if ( !$this->loadfile($handle) )             {                 die("Template->pparse(): Couldn't load template file for handle $handle");             } ?>

  • Ericston
  • Registratie: Maart 2001
  • Laatst online: 05-09 18:58
Op dinsdag 19 maart 2002 21:35 schreef Duncan één vette regel code.
There once was a Master Programmer who wrote unstructured
programs.

A novice programmer, seeking to imitate him, also began to
write unstructured programs.

When the novice asked the Master to evaluate his progress,
the Master criticized him for writing unstructured
programs, saying, "What is appropriate for the Master is
not appropriate for the novice. You must understand Tao
before transcending structure."
:)

Verwijderd

mooi voor de layout dat...

edit:
ok, je hebt het gefixed :P

  • Ericston
  • Registratie: Maart 2001
  • Laatst online: 05-09 18:58
Ligt aan filemtime() volgens mij.
edit:
Of een andere functie waarmee je de file modified...
DESCRIPTION

The utime() function sets the access and modification times of the named file.

Bron: http://www.mkssoftware.com/docs/man3/utime.3.asp
Description

int filemtime ( string filename)

Returns the time the file was last modified, or FALSE in case of an error. The time is returned as a Unix timestamp.

Bron: http://www.php.net/manual/en/function.filemtime.php

  • P.B.
  • Registratie: Juli 2001
  • Niet online
Laat ik 1 ding duidelijk stellen: de PHP code is GOED. :P

Dit is dus van PHPBB2 RC-3.... Het heeft gewerkt onder de oude config van de server.

  • Ericston
  • Registratie: Maart 2001
  • Laatst online: 05-09 18:58
Op dinsdag 19 maart 2002 21:41 schreef Duncan het volgende:
Laat ik 1 ding duidelijk stellen: de PHP code is GOED. :P

Dit is dus van PHPBB2 RC-3.... Het heeft gewerkt onder de oude config van de server.
Kom op zeg...

Feiten:
• Oude config werkt wel.
• Nieuwe config werkt niet.

Opties:
• Zet de oude config terug.
• Zoek verschillen tussen de twee configs.
• Wat is hier over gedocumenteerd.
• Zoek naar soortgelijke problemen.

Not done:
• Ren naar GoT en wacht op antwoord.

Beetje meer zelfstandigheid alsjeblieft, van afkijken kom je er niet.

* Ericston is done now. :)

  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 09-09 20:58

Janoz

Moderator Devschuur®

!litemod

Als je php-code goed is dan heb je natuurlijk neit zo veel te zoeken in P&W.. Daarnaast voldoet je topic ook niet echt aan de in de quickstart geformuleerde regels..

Kijk ook ff in de post hierboven van Ericston. Hij heeft namelijk wel gelijk..

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'

Pagina: 1

Dit topic is gesloten.