Forum Moderators: coopster & phranque

Message Too Old, No Replies

my script breaks php pages

worked for htm - why not php?

         

louponne

11:26 pm on Dec 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a small perl script that enables a site owner to update part of the text on a webpage. Works really neatly, on htm pages.

I just had to change those pages to php4. The script seems to still work, but once it has done its stuff, it's impossible to open the pages up on the web. I get:
Error:

/directory/myfile.php4
isn't executable by user. 'chmod u+x file' to correct

But the persmissions are set properly. If I simply rename the file back to myfile.htm the script works and the page is openable.

What might be the problem?

jatar_k

11:25 pm on Dec 17, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



very strange,

I know that when I create pages it messes up the owner and causes a few issues but it doesn't make sense why it would affect .php only and that the exact same file is fine when changed to .htm.

anyone have any ideas?

louponne

11:12 pm on Dec 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it messes up the owner

hm - not sure I understand what you're saying, but any way this could somehow be involved in permissions & differences between how .htm and .php are treated by the server? This is really bizarre.