Forum Moderators: coopster

Message Too Old, No Replies

simple script ok on test RH, does not work in RH production server

basic rename

         

henry0

9:31 pm on Jan 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I do not get it
what can be triggering that script to not copy
I do not get any script error
and it works fine in my local RH
all files and folder are SCHMOD to the max
and the path is OK

any input?

$source="/www/templates/biz_templates/index_test.php";
$dest="/www/templates/biz_members/index_test.php";

if (!copy($source, $dest)) {

print ("failed to copy $dest...\n");

henry0

2:27 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is it tied with a possible webserver user permission?
if yes I do not have direct access to server management
or anything else?

but remember my access is not denied only copy function

EDIT
the webserver runs as me

jatar_k

5:49 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sounds like permissions. Is the folder writable? You can change permissions through ftp and you can also use chmod [ca.php.net] in php

henry0

6:11 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



found it
Thanks

No permission involved
but I double checked the path with the ISP (I do not manage that one server)

I was told it was OK
but then
they found that it had to go deeper all the way to /pub
in order to work

so now it works as supposed to

edit
I was already using PHP schmod to 755

jatar_k

6:36 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



ah yes, seems i didn't read the first post very closely, sorry henry0.

glad you sorted it out.