Sublime directory Surf the web anonymous Pagerank Monitor


easy php upload on windows server?

pionner-websites
Tue 23 October 2007, 04:07 pm GMT +0200
Your excellent script is running on a few apache hosted clients of mine, but now I am forced to use it on a windows server. Should this be a problem?

Unedited, the script throws some chmod errors.
I can comment them out, but check_dir doesn't seem to see directories already existing, and yet can't create them either.

All the permissions are set to fully open in the working directory (ie. root/edit/), but not in the root directory as this is unavailable - but this should not be a problem either should it?

Thanks,
Paul.

http://www.cirrusaircraftnsw.com.au

olaf
Tue 23 October 2007, 04:12 pm GMT +0200
Paul welcome at webdigity,

are you using apache or IIS?

pionner-websites
Tue 23 October 2007, 04:14 pm GMT +0200
Thank you.

The problem windows server is IIS.

olaf
Tue 23 October 2007, 04:18 pm GMT +0200
then you need to change the path structure because the DOCUMENT_ROOT var does not exists :)

and of course you need to remove functions like chmod, never used IIS and this class (but I remember that I switched to apache because of this problems)

Anyway if you need to use php on windows for a production server you need a solution with IIS (apache + php + windows) is not a good solution for a production server

pionner-websites
Tue 23 October 2007, 04:25 pm GMT +0200
thanks Olaf - yea I got round the document_root problem with a script snippet suggestion from here:
http://helicron.net/php/

but then it kept saying file exists - its as though the script isn't able to accurately list files/dirs.

anyhow, thanks for the prompt support.

olaf
Tue 23 October 2007, 09:32 pm GMT +0200
try the "magic vars" from PHP to locate the "root" directory

pionner-websites
Wed 24 October 2007, 01:12 am GMT +0200
Well it's working... with the following adjustments:

1. script can't create directories, I had to remove the check_dir function
2. temp and uploaded foto directory need to be different and be a child of the dir with full permissions where the script runs
3. I couldn't use imagemagick
4. I had to get the absolute path using:
$localpath=getenv("SCRIPT_NAME");
$absolutepath=realpath($localPath);

Now to try for multiple file uploads!

olaf
Wed 24 October 2007, 08:36 am GMT +0200
try the following:
1. use windows command line commands (using exec()?)
2. ok :)
3. there is a windows version, works fine on my winXP laptop
4. thats what I meant

Nikolas
Thu 25 October 2007, 12:13 pm GMT +0200
Olaf maybe you can try a universal way like this :

$root dirname__FILE__ );?>

As far as I know this would work on any server.

olaf
Thu 25 October 2007, 12:16 pm GMT +0200
Olaf maybe you can try a universal way like this :

$root dirname__FILE__ );?>

As far as I know this would work on any server.

yeah right, I thought about that and maybe I need to configure all classes using the same config file (but for now I need to find 2 points I lost from my PR :D)

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional