PHP failed to parse my script

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-26-2005
Du
 
Posts: n/a
Default PHP failed to parse my script

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!



Reply With Quote
  #2 (permalink)  
Old 05-26-2005
Paul
 
Posts: n/a
Default Re: PHP failed to parse my script

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?
Reply With Quote
  #3 (permalink)  
Old 05-26-2005
Du
 
Posts: n/a
Default Re: PHP failed to parse my script

> 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?



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:39 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0