dcole.ath.cx Posted May 27, 2006 Share Posted May 27, 2006 I can open and edit file a.txt with script /folder/b.php but I can't access the file with /c.php!How can I fix this/var/www/a.txt/var/www/html/c.php/var/www/html/fm/b.phpand c.php can't access a.txt but b.php can Link to comment Share on other sites More sharing options...
justsomeguy Posted May 27, 2006 Share Posted May 27, 2006 Make sure it's the correct path, obviously. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted May 28, 2006 Author Share Posted May 28, 2006 The permissions are set to 777 on all files and the owners are apache on all files... The files use r(read) and a (write)..What could be the problem. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 28, 2006 Share Posted May 28, 2006 The location of the script should not be an issue when doing file operations, so the only thing that I think could be the issue is the path to the file. Link to comment Share on other sites More sharing options...
SFB Posted May 28, 2006 Share Posted May 28, 2006 The location of the script should not be an issue when doing file operations, so the only thing that I think could be the issue is the path to the file.<{POST_SNAPBACK}> Nope that isnt the only thing... dcole has bad luck Link to comment Share on other sites More sharing options...
Chocolate570 Posted May 29, 2006 Share Posted May 29, 2006 Are you sure it's not capital C? If you're running a linux distro on your server, then that would make a difference. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 29, 2006 Share Posted May 29, 2006 Nope that isnt the only thing... dcole has bad luck Well, I'm assuming the server is functioning correctly in the first place. If the server doesn't even work right, then it's pointless to troubleshoot PHP until then. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted May 29, 2006 Author Share Posted May 29, 2006 I'm going crazy over here...Well now, there are 4 files that can access this one txt fileThe scripts that only read can access that script and read itThe scripts that write to it don't work any more (some of them did work)The locations are correct! I guess I will just rewrite the 4 files into one big one or something... Link to comment Share on other sites More sharing options...
justsomeguy Posted May 29, 2006 Share Posted May 29, 2006 You can always post the code if you want more help. Link to comment Share on other sites More sharing options...
SFB Posted May 30, 2006 Share Posted May 30, 2006 Dan, I think you should just start all over. try to do everything an different way but get the same end result. there are many ways to do one thing. just try a different one. remake your file manager and everything but no coppy and paste! Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 3, 2006 Share Posted June 3, 2006 Dan, I think you should just start all over. try to do everything an different way but get the same end result. there are many ways to do one thing. just try a different one. remake your file manager and everything but no coppy and paste!<{POST_SNAPBACK}> Whos calling me :)We can't think of a possible sollution without the actual error causing code, so please post it (if necessary censor critical information) Link to comment Share on other sites More sharing options...
SFB Posted June 4, 2006 Share Posted June 4, 2006 Whos calling me DCole.ath.cx is actually Dan. D is for dan and Cole is his last name. Dan Cole, you should really post your script even if there is no mistakes. then people cant just blame your script or your locations. It isnt hard to post a script here, just do it. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted June 4, 2006 Author Share Posted June 4, 2006 Well I have not found an error or I would fix it or post it. The logs say everything is A-OKAY. Fedora, Apache, PHP... I will have MOgaard over tomorrow and we will get find and fix this problem! GRR...as for my code, my code if fine... Why would php process my code in different ways if it was on Apache or ISS, Linux or Windows... echo is echo is echo, fopen is fopen is fopen.My location are correct... Fedora highlights my code. It wouldn't be more clear. Link to comment Share on other sites More sharing options...
SFB Posted June 4, 2006 Share Posted June 4, 2006 obviously it isnt working... thus there must be something wrong. MOgaard will probably be like dan did you try this yet? and it will work... Link to comment Share on other sites More sharing options...
justsomeguy Posted June 4, 2006 Share Posted June 4, 2006 Why would php process my code in different ways if it was on Apache or ISS, Linux or WindowsIt won't, unless you are using OS-specific functions. If you are seeing different things on two different machines, then one of them is not working correctly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now