Re: [PHP] header problem

2009-09-09 Thread A.a.k
code, and ensure that all of your logic that could result in a header call is run BEFORE you send any html code. Is going to be tricky if mixing html and php calls. George On 10-Sep-09, at 12:27 AM, A.a.k wrote: hello I recentrly uploaded my project from localhost to a hosting and f

[PHP] header problem

2009-09-09 Thread A.a.k
hello I recentrly uploaded my project from localhost to a hosting and found many errors and warnings which didnt have in local. one of the most annoying one is header('Location xxx'). I have used header to redirect users from pages, and kinda used it alot. i know about the whitespace causing wa

[PHP] how to check function's execution?

2009-09-07 Thread A.a.k
hello I have a problem to check whether a function successfully inject to database or not, here is the code : if($object->dbupdate()) echo 'done'; else echo 'damn!'; inside the 'if' statement $obj->dbupdate() doesn't execute , how can I execute and check if it was a successfu

Re: [PHP] clean url problem .htaccess

2009-08-01 Thread A.a.k
52j405778fevd0c38315c3983...@mail.gmail.com... On Sat, Aug 1, 2009 at 2:11 AM, A.a.k wrote: Hi I'm trying to use clean urls in my application: lets say convert http://mysite/article.php?id=3 to http://mysite/article/3/ my problem is to use /article act as it was /article.php here is mt .htac

[PHP] clean url problem .htaccess

2009-07-31 Thread A.a.k
Hi I'm trying to use clean urls in my application: lets say convert http://mysite/article.php?id=3 to http://mysite/article/3/ my problem is to use /article act as it was /article.php here is mt .htacess : ForceType application/x-httpd-php on php code parsing string from $_SERVER['PHP_SELF']

Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread A.a.k
Hello Richard, that is exactly what I was looking for. thanks alot Paul, I didn't know its possible to use error_reporting(), that's a good hint thanks. btw if you guys know any simple php application that I can study and learn faster than going through books please let me know. I tried Wordpres

[PHP] newbie: problem with $_Post[]

2009-07-27 Thread A.a.k
Hello I have a very simple test form named "pass.php" : username : password : getting "Notice: Undefined index: user" and "Notice: Undefined index: pass". changing form action to another page will solve the problem but i want to be able to use $_POST array on the same page, how can i d