This is a discussion on PHP failed to parse my script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I received a scary peice of news from one of the user from my site. he saying that he was ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I received a scary peice of news from one of the user from my site. he
saying that he was able to save the source code when trying to view my site (it was not parsed at all, he sent me the raw php script of my site) is this an apache hickup or i got some bug in my script? my first thought is apache failed to register the MIME type for that instant, and the make the php file acts like a text file what kinna things i can do to prevent this? so far all i done is move all my password files (db and other things) above the webroot path thanks, any input is greatly appreciated! |
|
|||
|
Du wrote:
> I received a scary peice of news from one of the user from my site. he > saying that he was able to save the source code when trying to view my site > (it was not parsed at all, he sent me the raw php script of my site) > > is this an apache hickup or i got some bug in my script? > > my first thought is apache failed to register the MIME type for that > instant, and the make the php file acts like a text file > > what kinna things i can do to prevent this? > > so far all i done is move all my password files (db and other things) above > the webroot path > > > thanks, any input is greatly appreciated! > > > Hey... my first guess would be that your script's extension is not registered? (ie if you have php code inside and .html file and apache isn't configured to parse .html files.. then your php will come through none parsed. Does this happen every time? are you able to recreate the problem? or has it only happened once as far as you know and worked the rest of the time? |
|
|||
|
> Hey... my first guess would be that your script's extension is not
> registered? (ie if you have php code inside and .html file and apache > isn't configured to parse .html files.. then your php will come through > none parsed. Does this happen every time? are you able to recreate the > problem? or has it only happened once as far as you know and worked the > rest of the time? this never happened to me or any other member of my site, it just strange may be my host is doing upgrade on php while that happened "Paul" <freelance@dezignage.net> wrote in message news:z6ele.1484132$Xk.616393@pd7tw3no... > Du wrote: >> I received a scary peice of news from one of the user from my site. he >> saying that he was able to save the source code when trying to view my >> site (it was not parsed at all, he sent me the raw php script of my site) >> >> is this an apache hickup or i got some bug in my script? >> >> my first thought is apache failed to register the MIME type for that >> instant, and the make the php file acts like a text file >> >> what kinna things i can do to prevent this? >> >> so far all i done is move all my password files (db and other things) >> above the webroot path >> >> >> thanks, any input is greatly appreciated! >> >> >> > Hey... my first guess would be that your script's extension is not > registered? (ie if you have php code inside and .html file and apache > isn't configured to parse .html files.. then your php will come through > none parsed. Does this happen every time? are you able to recreate the > problem? or has it only happened once as far as you know and worked the > rest of the time? |