News
Forums
Search
Members
Sign Up
My Code Newbie
Username
Password
Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET
C.N. Friends
Planet Rome
Link to Us!
Code Newbie
Code Forums
>
Application and Web Development
>
PHP
sde, changing directory script is running in?
User Name
Remember Me?
Password
Register
FAQ
Calendar
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Display Modes
06-23-2003, 10:58 AM
#
1
(
permalink
)
Admin
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
sde, changing directory script is running in?
hey mike.
you told me about a function that would change the dir a script is executed in. what is that function called?
i need to use it for something.
woowoo.
__________________
Urban Clothing
Admin
View Public Profile
Find More Posts by Admin
06-23-2003, 12:31 PM
#
2
(
permalink
)
sde
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,532
PHP Code:
<?
chdir
(
"directory/"
);
include(
"./script_with_includes.php"
);
chdir
(
"./"
);
?>
in the use here, i had to change the directory so all includes that were in script_with_includes.php had valid paths. i love this function =)
__________________
Mike
sde
View Public Profile
Visit sde's homepage!
Find More Posts by sde
06-23-2003, 01:02 PM
#
3
(
permalink
)
Admin
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
kick ass.
thanks dude
just gotta play with my script more now.
hooray mike!
__________________
Urban Clothing
Admin
View Public Profile
Find More Posts by Admin
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
running a script at designated time
tzarin
PHP
5
05-12-2004
08:11 PM
running PHP in a specific directory?
Admin
PHP
1
04-24-2003
07:27 PM
All times are GMT -8. The time now is
07:53 PM
.
Contact Us
-
CodeNewbie.com
-
Archive
-
Top
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.
Copyright © 2000-2008,
Milano Interactive
Web Hosting provided by
Portal 360 Web Hosting
LinkBack
LinkBack URL
About LinkBacks