ff000 Posted November 4, 2008 Share Posted November 4, 2008 Hello all, I just got confronted with a php/MySql issue at work. Apparently the whole thing used to work fine then all of a sudden things magically decided not to work anymore. Apparently none of the script was changed, (we didn't break anything in other words) but apparently the whole thing doesn't work like its supposed to anymore. Basically what is supposed to happen is the user opens a GUI (this is handled by someone else so I don't have many details in that regard) and they can input their name, email, and as a result be emailed a message with a url to a database where they can find photos associates with something they participated in (like photos taken during an event.) and for a little while it did that but all of a sudden it stopped working. The working theory is that somewhere things got upgraded version wise or permissions got changed that is blocking things. Help, please help. We're all at a loss as to what's going on. Quote Link to comment https://forums.phpfreaks.com/topic/131390-mysql-issue-sudden-breakdown/ Share on other sites More sharing options...
AndyB Posted November 4, 2008 Share Posted November 4, 2008 Wild guess. The people who host the site upgraded php to a version which no longer defaults to register_globals ON while the 'working' scripts all assumed that resiter_globals is ON (the insecure setting). Run a simple script to display phpinfo() and that might tell you something Quote Link to comment https://forums.phpfreaks.com/topic/131390-mysql-issue-sudden-breakdown/#findComment-682458 Share on other sites More sharing options...
luca200 Posted November 5, 2008 Share Posted November 5, 2008 "It stopped working" is not too much clear You could supply more details.... Quote Link to comment https://forums.phpfreaks.com/topic/131390-mysql-issue-sudden-breakdown/#findComment-682963 Share on other sites More sharing options...
ff000 Posted November 5, 2008 Author Share Posted November 5, 2008 ok I got more details today Basically this thing is supposed to take information (photos, video, and two strings) and post them to a file in an FTP server. So far only the pictures are coming through and we can't get the strings to write to the database, nor can we get the email generated that is supposed to be generated. Also, whomever built this did NOT put a lot of error checks, just one general else at the bottom which returns a string but doesn't tell us what the problem is. Is there a way to test the _POST variables and see where they're going wrong? Also, how should I set up some more error checking? periodic if's and else if's? (I am unfortunatly not at liberty to post the code here, otherwise I'd say have at it.) Quote Link to comment https://forums.phpfreaks.com/topic/131390-mysql-issue-sudden-breakdown/#findComment-682995 Share on other sites More sharing options...
Mchl Posted November 5, 2008 Share Posted November 5, 2008 Start with this excellent PHP debugging tutorial Quote Link to comment https://forums.phpfreaks.com/topic/131390-mysql-issue-sudden-breakdown/#findComment-683072 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.