| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| DNOA Member | Hey all, I don't usually post here for help... so I feel kinda awkward doing this. Please be nice ![]() I have Apache running PHP and MySQL on my local workstation to make dynamic sites without the need to upload them. It works fine, never had any problems, haven't changed anything since 3 weeks ago, and everything's been good with it. So the server/config is not the problem. It's one particular file that I have which shows up completely blank. Nothing is even outputted to the source. There's no 404 error, there's no PHP errors, and there's no logical errors. I didn't really change anything; and just to double-check it, I added: echo("Test"); to the beginning of the file to see if it was even working. It's not. So I remove the ; at the end to see if it'll output a syntax error, like it always has. No errors. I haven't changed any config, as I said. Everything is like it always has been. And YES, it's configured to output all standard errors. And it's just this one file. I can't show you what's in the file for security reasons, but it's something that I really need to get fixed... any help appreciated. Thanks, -Matt
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #2 (permalink) |
| NamePros Member | Is your Apache working previously? It seems like you got to check the Apache log file and see what's it is complaining about
__________________ tanfwc [ My HomePage ] My Project : Free Image Hosting # Shorten your URL! # Submit your proxy Cheap VPS on GNAX Network -- starting US$12.99/mo! |
| |
| | #3 (permalink) | |
| Stud Sausage | Quote:
Definitely sounds like a server problem. Matt | |
| |
| | #4 (permalink) | |
| DNOA Member | Hmm... I didn't think to check the server logs, however: Quote:
EDIT: I also see this happened previously several times... but the server restarts just fine. I'm not sure why it's not giving me any errors on restart like this.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! | |
| |
| | #5 (permalink) | |
| NamePros Member | Quote:
Code: error_reporting(E_ALL); ![]() If not, run your script through console (best place to debug stuff). Code: c:\PHP\php.exe <full_path_to_script>
__________________ tanfwc [ My HomePage ] My Project : Free Image Hosting # Shorten your URL! # Submit your proxy Cheap VPS on GNAX Network -- starting US$12.99/mo! | |
| |
| | #7 (permalink) |
| DNOA Member | Thanks again for more help, but nothing there works. Like I've said, errors ARE outputted and configured correctly. All other files work, show errors, etc, except this particular one. EDIT: I'm giving rep to those that try to help Thanks.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #8 (permalink) |
| NamePros Regular | The log shows that PHP couldn't load the exif extensions. Are you calling any exif functions in the script? Also, try commenting out the entire contents of the script so that you only have your Test echo as the script body: PHP Code: Also --and this might sound weird-- did you cut and paste any of the code from somewhere else? Sometimes this copies hidden characters which get embedded in the script (for example, this happens to me sometimes when cutting and pasting source from a .chm file). You might have to retype the code by hand, or strip all bad characters from your source file (most program editors have a way to do that). And of course, last bit of advice for windows -- did you reboot the entire machine? (only half joking here). |
| |
| | #9 (permalink) |
| DNOA Member | Tried the echo thing, the removing/adding blocks of code thing, and all the code is original. Oh well, thanks for the help. I'll just re-write the file or something.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #10 (permalink) |
| Domains my Dominion | It is difficult to say without seeing the full code. But I can tell you that PHP has some bugs. The version you are using could be at fault. Could it be that you are using a particular function in that page ?
__________________ Buy now - MassDeveloper.com $500 |
| |
| | #11 (permalink) |
| DNOA Member | Possibly Thanks for all your help ... I'll just rewrite it and avoid some methods I used in this file.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #14 (permalink) |
| DNOA Member | PHP *IS* RUNNING. It's only one file that has the problem! How can I not make myself clearer?? Regardless, I fixed the problem.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
| | #16 (permalink) |
| DNOA Member | Oh, sorry. I had missed a ] to close an array index. The error_reporting(E_ALL); at the beginning of the file didn't seem to work, as previously stated... I get parse errors on every other file except this one, which didn't use any EXIF functions either. So yeah, I dunno what happened. But it's fixed; that's all I care about. Thanks for the help.
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |