cvs: phpdoc /scripts/rtlpatch hackmanuallang.php

From: Date: Tue, 23 Dec 2003 12:25:10 +0000
Subject: cvs: phpdoc /scripts/rtlpatch hackmanuallang.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357677@lists.php.net to get a copy of this message
moriyoshi Tue Dec 23 07:25:10 2003 EDT Modified files: /phpdoc/scripts/rtlpatch hackmanuallang.php Log: Suppress warning about SCRIPT_FILENAME Index: phpdoc/scripts/rtlpatch/hackmanuallang.php diff -u phpdoc/scripts/rtlpatch/hackmanuallang.php:1.2 phpdoc/scripts/rtlpatch/hackmanuallang.php:1.3 --- phpdoc/scripts/rtlpatch/hackmanuallang.php:1.2 Tue Jul 22 01:13:42 2003 +++ phpdoc/scripts/rtlpatch/hackmanuallang.php Tue Dec 23 07:25:10 2003 @@ -16,7 +16,7 @@ | Authors: Moshe Doron <momo@php.net> | +-------------------------------------------------------------------------------+ - $Id: hackmanuallang.php,v 1.2 2003/07/22 05:13:42 momo Exp $ + $Id: hackmanuallang.php,v 1.3 2003/12/23 12:25:10 moriyoshi Exp $ */ /* @@ -29,11 +29,7 @@ */ error_reporting(2047); // finding the real path of the needed files: -$mypath = $_SERVER["SCRIPT_NAME"]; -$spos = strrpos($mypath,"/"); -if(!$spos) $spos = strrpos($mypath,"\\"); -$mypath = substr($mypath,0,$spos); -if($mypath) $mypath.="/"; +$mypath = dirname(__FILE__)."/"; $lang= $argv[1]; @@ -59,4 +55,4 @@ $shell = shell_exec($cmd); //echo $shell; } -?> \ No newline at end of file +?>

« previous php.doc (#969357677) next »