Jump to content

JRS

Members
  • Posts

    45
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

JRS's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi l0ve2hat3, The code is quite large - didn't want to waste people time muddling through it. Basically it's a form - form fields are processed using $_POST and the data is verified and then inserted into a mysql db. As I mentioned it appears to work without a problem on various systems - except for this 1 system: running Vista & IE. Some records are not being inserted. I am thinking of adding some sort of logging mechanism and ask him to enter data and write everything to a file and see what is going on with the system. Thanks for your reply JRS
  2. Hi, Strange problem - My site allows users to register their client contact details on the site. One user when he tries to register his customers - randomly certain customers don't get registered, while others get registered. If the client tries to re-enter these particular data - nothing happens. If he sends me the data and I try it - I am able to enter the data without any problems. I've also tried from a system with the same OS & Browser as the client - still no problems for me. My site is built using PHP 4.4.8 & MySql 4.1.22 - standard My question is has anyone experienced a similar situation, where a client is unable to enter data on a site - and others have no problem interacting with the site. If so what caused the problem. Another question is what would be a good way to debug this type of problem? Thanks in advance JRS
  3. No there are no errors - the values that are returned on the unix system when decrypted are gibberish. If I take the same string and plug into my test windows system - decryption works correctly. I'm also running urlencode on the encrypted string so there should be no illegal chars in the URL. Also, there are other URL's generated that work on the same table and same page. If I turn off the encryption - everything works - so there is something going on with certain encrypted strings being passed via URL. Not sure how to figure what is causing the problem! Thanks JRS PS: PHP is fun. ONLY WHEN STUFF WORKS!!!!
  4. The reason for using URL parameter is due to the fact the list of people could be very large....say from 30 to 500 - I thought passing data to identify them via URL will have less drain on the system resources than storing data in sessions or in a database. Besides I didn't think I would run into this strange problem with encryption/decryption for something so simple. Thanks JRS
  5. Hi DarkWater, Thanks for your response.... I am checking access rights after I decrypt - I guess I just wanted to limit the number parameters I pass or not disclose much info on the URL. Here is a link that fails to decrypt properly on the Host site but works fine on my windows test site http://www.website.com/test.php?var=5&var1=2&ed=GBwKdfU7mpKdX+F6+pILknjlns/EQkK2 with no encryption http://www.website.com/test.php?var=5&var1=2&ed=2&var2=6&var3=32&var4=1 (works fine - no encryption) This URL works fine on both sites: listed in the same table - generated using the same code http://www.website.com/test.php?var=5&var1=2&ed=GiqCoFDo6BmZmMGjQhFsBHjlns/EQkK2 with no encryption http://www.website.com/test.php?var=5&var1=2&ed=2&var2=1&var3=36&var4=1 The last parameter var4 used to be random string but I hard coded it '1' - just to see if that was causing a problem. Since some links work and others don't about 30% fails - the others are fine. That's what's got me confused. Again thanks for looking at it - and any suggestion will be much appreciated. Thanks JRS
  6. Hello, I have a local test system using Windows (PHP 4.3.7 - mcrypt >=2.4.x)and the host I am using is on Unix (Linux) PHP 4.4.4system (mcrypt >= 2.4x). The website displays a list of users. Users can click on a name and details of the person is displayed to authorized users. When a user clicks - details are sent via URL parameters. http://mysite.com/test.php?var1=1&var2=2&var3=3 To prevent people from changing the variables and getting access to information about people they don't have access to - I decided to encrypt the parameters using mcrypt to the following format: http://mysite.com/test.php?var=x&data=ENCRYPTEDSTRING The data variable is an urlencoded mcrypt encrypted string. Here is the problem: some of the listed names do not work on the unix system - decryption appears to fail and the parameters are corrupted when decrypted. If test the same names on local windows system - works fine without a problem. If cut and paste a problem URL in Unix into the Windows system it works fine. If I remove the encryption - both system work fine. Also, the data being encrypted are var1=number; no fancy chars. Also the fact only some URLs are failing - others are working fine on UNIX system and all work on Windows - has me confused. Any thoughts or ideas on how to solve it - would be much appreciated. Thanks in advance JS
  7. alpine, wildteen88 Thank you very much for your suggestions. It was a great help. This one is solved! JRS
  8. Hello, Is there a way to stop all the files from being listed if an invalid file name is entered? For example I have www.mysite.com/scripts/main.php If I type in : www/mysite.com/scripts/ Then all the files in that directory are displayed to end user. Is there a way I can prevent all the files from being displayed to the user? Thanks in advance JRS
  9. [!--quoteo(post=376892:date=May 25 2006, 12:29 AM:name=DapperDanMan)--][div class=\'quotetop\']QUOTE(DapperDanMan @ May 25 2006, 12:29 AM) [snapback]376892[/snapback][/div][div class=\'quotemain\'][!--quotec--] Just to double check, you cannot get the problem to repeat? In other words, you do a query and get the error, doing the exact same query again gets the correct information? DapperDanMan [/quote] DapperDanMan, I think I've found the problem - REGISTER_GLOBALS!!!!!!!! - it's on the ISP system - I've turned it on my test system - still can't reproduce the problems - but making sure I'm not using the same variable names as GLOBAL variables - such as $_SESSION & $_GETs To answer your question - the query never generated any errors only blank results. Sometimes it would work - ie. I will get the list of the customers other times the customer list would come up blank. At first I thought this due to bad queries that maybe be timimg out - but after putting some echo statements in the ISP system - some variables are not being set correctly (other times they are being set correctly) - very strange. So I've decided to go through all my code to verify the $_SESSIONs & $_GETs to make sure the variable names are all different. Thanks JRS
  10. bump ISP reported back Mysql server running normally without any problems. I have error report turned on - so my queries are ok - but sometimes I'm not getting data returned for my queries - other times all is fine - very confused. JRS
  11. Hello, I am looking for suggestions on how to try and debug this problem or determine if the problem is with the ISP's system. I have a PHP/Mysql application: ISP - it's on Linux, Mysql & PHP Local - Win XP, Mysql & PHP My application access a database of customers and list them. On the ISP site - sometimes it comes up blank. Other times it lists all the customers. I assumed, there was something wrong in my code and copied the database locally to test on my development system. I was thinking the database was exposing a problem in my code. However, on the local site - I cannot get the application to fail. However, on the ISP site - it fails intermittently. So I'm thinking perhaps I'm having problems with Mysql database connection - however, I'm not getting any error messages! I'm on a shared site - so I don't have administrator priveleges. I checked the log files that are available to me and they are all empty. One other thing - I'm going to check are slow queries - but I've set limits on all my queries - so it shouldn't time out. If anyone has any suggestions on how I can track this problem down - it would be much appreciated. Thanks in advance JRS PS: I've set these ini settings ini_set("display_errors", "1"); error_reporting(E_ALL);
  12. [!--quoteo(post=372846:date=May 10 2006, 03:51 AM:name=chrscollins)--][div class=\'quotetop\']QUOTE(chrscollins @ May 10 2006, 03:51 AM) [snapback]372846[/snapback][/div][div class=\'quotemain\'][!--quotec--] I need to write a script that will sit in certian system accounts and will send an email when a file is uploaded thru proftpd. I think php would be the best choice and I would just like someone to point me in the right direction. Chris [/quote] Hi Chris, Here is a try: I'm not sure about this proftpd - application. But if the upload is initiated from a webpage - you can have php code in the upload webpage send out the email to the appropriate email address once the upload is completed. If the upload is being done independant of the webpages - then I would think you would need some method of polling the upload directory for new files that have been uploaded. Not sure how this would be done. Some of the gurus on the site would be better equipped to answer that one. Good Luck JRS
  13. [!--quoteo(post=372701:date=May 9 2006, 02:57 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ May 9 2006, 02:57 PM) [snapback]372701[/snapback][/div][div class=\'quotemain\'][!--quotec--] That sounds like you either have a CSS print class that is hiding some of the records or a bad printer setting. Post your code. [/quote] Hi ober, Thanks for your reply. It appears to work on another printer - so I suspect it might be a printer problem. Let me do further testing and if it appears to be PHP releated I will post the code. Don't want to take up your time with something that might not be PHP issue. Thanks JRS
  14. [!--quoteo(post=372654:date=May 9 2006, 12:52 PM:name=Hilly_2004)--][div class=\'quotetop\']QUOTE(Hilly_2004 @ May 9 2006, 12:52 PM) [snapback]372654[/snapback][/div][div class=\'quotemain\'][!--quotec--] *Bump* [/quote] Hilly Try the tutorial on this site all about php_mailer - take my advise and use phpmailer for all emailing stuff. [a href=\"http://www.phpfreaks.com/tutorials/130/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/130/0.php[/a] good luck JRS
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.