Code Newbie
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 Newbie
    forums
Old 04-24-2003, 06:14 PM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
running PHP in a specific directory?

i have something set up with .htaccess that allows me to run PHP out of safe mode.

/scripts is that dir.

i need to access some scripts in there with a script that is in /. i have it set up to include a file in /scripts but its still running in safe mode.

how can i get it to run the files in /scripts out of safemode?

its kinda hard to explain on here.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 04-24-2003, 06:27 PM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
maybe this will help, here is how i am calling the script:

PHP Code:
      if (file_exists($_FILES['image']['tmp_name']) ) 
        {
          
$getID mysql_query("select max(id) as id from Items",$db);
          list(
$id) = mysql_fetch_row($getID);
          include (
"scripts/add_image.php");
          } 
anything i can do?
__________________


Urban Clothing
Admin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
I need to learn PHP Nitro PHP 9 06-28-2003 11:24 AM
sde, changing directory script is running in? Admin PHP 2 06-23-2003 12:02 PM
PHP as CGI?? bdl PHP 8 05-08-2003 08:29 AM
running PHP with a cron? Admin PHP 4 01-08-2003 11:16 AM


All times are GMT -8. The time now is 01:25 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting