Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: php script directory  (Read 2128 times)
« on: July 08, 2005, 05:20:47 AM »
banahaw Offline
Newbie

View Profile
*
Posts: 3



Im new in php and want to know where should i point a script right directory. I installed a script on my root directory for example the directory script but the page that calling that script is not located in that dirctory i created for the script. For example myphp.php page is located in the root.My question is what would be its directory not its full url.'coa everytime i run the script the page says undefine function or error bout global off and that kind of error.
Report to moderator   Logged

 
« Reply #1 on: August 01, 2005, 08:50:53 AM »
EliteDuelist Offline
Newbie

View Profile
*
Posts: 23



Well, if I understand you right, you should be able to get away with a simple code like this:

Code:
<?PHP

include("/myphp.php");

?>

But if you mean as a link, try using something like:

Code:
<a href="/myphp.php">Name of link</a>
« Last Edit: August 01, 2005, 08:52:24 AM by EliteDuelist » Report to moderator   Logged
 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC