Jump to content

simple but problem


raman

Recommended Posts

I have a solaris server and in my htdocs directory there is a subdirectory called subdir. within subdir there is a PHP script called script.php

 

In this script I use executables that are not within this subdirectory but lie within other subdirectory of htdocs called another_subdir

 

Apart from executables there is another file called 'myfile'  also that is there in another_subdir that I need to use from here also. Those executables and files are usable from another_subdir, that is have proper permissions for use from the browser.

 

But I don't want to make a copy of them here also. And my script is not using them when I give the corect path for outside directory. What should I do ?

One option is to add the executables in the path. But then how will use the 'myfile' also.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/176650-simple-but-problem/
Share on other sites

My /etc/profile looks like this

 

#ident "@(#)profile 1.19 01/03/13 SMI" /* SVr4.0 1.3 */

 

# The profile that all logins get before using their own .profile.

export PATH=$PATH:/usr/sfw/bin

. /opt/sge/default/common/settings.sh

 

trap ""  2 3

export LOGNAME PATH

 

if [ "$TERM" = "" ]

then

if /bin/i386

then

TERM=sun-color

else

TERM=sun

fi

export TERM

fi

 

# Login and -su shells get /etc/profile services.

# -rsh is given its environment in its .profile.

 

case "$0" in

-sh | -ksh | -jsh | -bash)

 

if [ ! -f .hushlogin ]

then

/usr/sbin/quota

# Allow the user to break the Message-Of-The-Day only.

trap "trap '' 2"  2

/bin/cat -s /etc/motd

trap "" 2

 

/bin/mail -E

case $? in

0)

echo "You have new mail."

  ;;

2)

echo "You have mail."

  ;;

esac

fi

esac

PATH=${PATH}:/usr/sfw/bin:/usr/sfw/sbin:/usr/ccs/bin

LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/sfw/lib:/usr/sfw/libexec:/usr/sfw/include:/usr/sfw/lib

umask 022

trap  2 3

 

Link to comment
https://forums.phpfreaks.com/topic/176650-simple-but-problem/#findComment-931286
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.