[PHP] Best authentication system

2011-06-04 Thread Adam Tong
Hi, I'm running a site for which I need an authentication system. I have already my own (that is too simplistic and not very secure). I want some advice here. I checked PEAR, but as there are several options there, I was not sure which one to choose. Here are my needs: - Some sections of the

[PHP] Help needed with php.ini

2011-06-05 Thread Adam Tong
Hi, I can't set correctly the error display and reporting properties. I don't know what i'm doing wrong. Here is the section that i modified in php.ini: - display_errors = On ; Default Value: On ; Development Value: On ; Production Value: Off display_startup_errors = On ; Default

[PHP] Can't use class 'DOMDocument

2011-06-06 Thread Adam Tong
Hi, When I try using DOMDocument I get the following error: Fatal error: Class 'DOMDocument' not found in ... I guess something has to be fixed in my php.ini? Here is my php version: # php -version PHP 5.3.6 (cli) (built: Mar 17 2011 20:58:15) Copyright (c) 1997-2011 The PHP Group Zend Engine

Re: [PHP] Can't use class 'DOMDocument

2011-06-08 Thread Adam Tong
. Buskirk -Original Message- From: Adam Tong [mailto:adam.to...@gmail.com] Sent: Monday, June 06, 2011 9:49 PM To: php-general@lists.php.net Subject: [PHP] Can't use class 'DOMDocument Hi, When I try using DOMDocument I get the following error: Fatal error: Class 'DOMDocument

[PHP] Php filter validate url

2011-06-26 Thread Adam Tong
Hi, I wanted tu use php filters for validation to avoid regular expresions. Is it possible that FILTER_VALIDATE_URL only checks if the string has http:// and do not check for the format domain.something? $url = 'http://wwwtestcom'; $url = filter_var($url,FILTER_VALIDATE_URL); echo $url;

[PHP] php://input

2012-01-14 Thread Adam Tong
Hi, I am trying to read variables from input method. I am using this tuorial: http://www.lornajane.net/posts/2008/Accessing-Incoming-PUT-Data-from-PHP. Here is my code: ?php if($_SERVER['REQUEST_METHOD'] == 'GET') { echo this is a get request\n; echo $_GET['fruit']. is the fruit\n;

[PHP] Rest

2012-10-27 Thread Adam Tong
Hi, I need to develop a rest API.I want your feedback on how you develop rest apis. I don't want to use a heavy framework just for that, and I find url rewriting time consuming. Any suggestions? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] fopen and load balancing

2013-02-10 Thread Adam Tong
Hi, We had an issue with the code of a junior php developer that used fopen to load images using the url of the companies website that is load balanced. We could not the detect the problem in dev and test because the dev and test servers are not load balanced. I know that he could load the

Re: [PHP] fopen and load balancing

2013-02-11 Thread Adam Tong
, 2013 at 4:26 AM, ma...@behnke.biz ma...@behnke.biz wrote: Adam Tong adam.to...@gmail.com hat am 10. Februar 2013 um 23:41 geschrieben: Hi, We had an issue with the code of a junior php developer that used fopen to load images using the url of the companies website that is load balanced. We