Re: [PHP] Unexcepted $this

2008-03-13 Thread Anup Shukla
Murat BEŞER wrote: So what do you thing about on this thing ? I really would like to figure out the problem. However, my simple script to mimic your code did not throw any errors. If you could provide some more details, maybe we can figure out the problem. -- Regards, Anup Shukla -- PHP

Re: [PHP] Unexcepted $this

2008-03-10 Thread Anup Shukla
Murat BEŞER wrote: Thank you Anup, But why I getting this error ? is this a bug ? Its not a bug. It has to do with operator precindence and associativity. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexcepted $this

2008-03-10 Thread Anup Shukla
I am sorry. Please disregard my previous post. I think i am wrong on that. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexcepted $this

2008-03-09 Thread Anup Shukla
, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Where is FAM ?

2008-01-31 Thread Anup Shukla
? -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Anup Shukla
() { return new Test(); } public function doSomething() { echo __METHOD__ . PHP_EOL; } } Test::getInstance()-doSomething(); ? -nathan -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] potentially __sleep() bug

2008-01-30 Thread Anup Shukla
A(; ? __sleep object(A)#1 (3) { [a1]= string(2) a1 [a2]= string(2) a2 [a3]= string(2) a3 } -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] avoid server folder reading

2008-01-20 Thread Anup Shukla
! -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session_start problems with FireFox on Mac

2008-01-12 Thread Anup Shukla
a long time to figure out that was the problem. What a killer! You may use ob_clean() just before the header() to get rid of the extra whitespaces. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any way to use header() or another function to force user to top level

2008-01-12 Thread Anup Shukla
Chuck wrote: That is exactly what I am using now but the location I am redirecting to is loading within the div tags and at the top level of the browser. Are you using AJAX to load the page? -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] ereg help!

2008-01-09 Thread Anup Shukla
a straight str_replace). Thanks Guess i was just trying to over think it. Have not done much with files. Steve $out = basename($file, .html) . .com; fairly limited i think, but simple. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Can't find .php3 files

2008-01-09 Thread Anup Shukla
the file systems. The admin.php3 seems to be 2 levels above the current dir. What about print realpath(../admin/admin.php3) in the same script? -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is_executable() ???

2008-01-07 Thread Anup Shukla
() and move_uploaded_file() functions is recommended while dealing with uploaded content. I'm on a NIX with Apache, etc. -- Regards, Anup Shukla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with PHP and Oracle

2003-07-02 Thread Anup Vijayaraghavan
] [notice] child pid 5590 exit signal Segmentation faul t (11) [Thu Jul 03 09:16:53 2003] [notice] child pid 5589 exit signal Segmentation faul t (11) [Thu Jul 03 09:16:53 2003] [notice] child pid 5588 exit signal Segmentation faul t (11) Please let me know what I am doing wrong. cheers Anup

[PHP] Re: two submit buttons redirecting to two scripts

2002-10-14 Thread Anup
you have this: input type=submit value=b1 name=action / input type=submit value=b2 name=action / change the name of the buttons to b1 and b2, respectively, and give them some non-null value (as you have it) Then in action.php you will have the following code: if ($b1) { redirct to script1 }

[PHP] Re: How to navigate backwards in PHP ???

2002-10-12 Thread Anup
Well, if you have control for the referring page, then create a hidden value whose value is the URL. Then you can use that. The problem is that PHP is a server-side language not a client-side (like JS), so PHP has no control over the browser. -- [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: secure access

2002-10-09 Thread Anup
I belive you can have the file atleast one directory below your root web folder (so web surfers have no access, just your script). Also since the HTML-PHP is unsecure over HTTP, look into HTTPS , I believe this is related to SSL (Secure Socket Layer). Without SSL, you will be POSTing your

[PHP] Re: Shopping cart? Ahh!

2002-10-08 Thread Anup
Hey, I just took a look at you site. It seems you are not utilizing session variables. By having session variables, you can go back and forward with no problem. Steve Jackson [EMAIL PROTECTED] wrote in message 01c26ed4$5fa50e90$[EMAIL PROTECTED]">news:01c26ed4$5fa50e90$[EMAIL

[PHP] detecting POST variables

2002-10-07 Thread Anup
Hello, I have been dealing with different form proccessing PHP scripts. When I start a new job I usually have a script that just takes the form POST values and prints them to the screen, so I know what I'm working with. Now I have a question say the form has 1 field named FirstName. If the field

[PHP] Re: detecting POST variables

2002-10-07 Thread Anup
s:[EMAIL PROTECTED]... You should use foreach($_POST as $key = $value) { echo $key.':'.$value; } Btw thats just an example to get all $_POST values, all superglobals are arrays. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Anup [EMAIL P

Re: [PHP] detecting POST variables

2002-10-07 Thread Anup
the empty textbox variables? Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 08/10/02 9:13 AM, Anup ([EMAIL PROTECTED]) wrote: Hello, I have been dealing with different form proccessing PHP scripts. When I start a new job I usually have

[PHP] Pay Pal

2002-09-30 Thread Anup
Hello everybody, I thought programming pay pal would be a cinch. I can;t find any information in programming pay pal. All I need to do is one simple transaction to paypal. payapldev.org is down for the next week. Does any one know any other site I can use? -- PHP General Mailing List

[PHP] Friend of function??

2002-09-18 Thread Anup
I want to use arrays (that are outside of a function) to be visible to a function. I understand that I must you global. But I was wondering is it possible to make it visible to only certain functions, similar to the 'friend' keyword in C (or C++ ?) ? The reason, is that I don't feel comfortable

[PHP] turn register_globals on

2002-09-08 Thread Anup
Hello I am working on a PHP server which has register_globals off. In my script is there anyway to turn it on, just for my script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] variable variables and Sessions

2002-07-30 Thread Anup
to $HTTP_SEESION_VARS) until the page is refreshed. It seems odd that I have to write lines [1] AND [2] to make the code work. They seem symantically correct. Thanks in Advance, Anup -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mySQL Queries using PHP's SESSION variables

2002-07-25 Thread Anup
Hello, I am stuck here. In the name of efficiency I want to lower the number of callls to the database. So I am trying to give the most stringent query possible. This is the problem: I have stored the surfers shopping cart, where each item is stored as a session variable.Now on the database I

[PHP] Re: Passing variables to page via POST - How?

2002-07-18 Thread Anup
Hey, I'm new, but I have some advice. Do you have to POST? becuase you can use sessions, and PHP has a bunch os session functions. Secondly, POST will not attach any variables to the URL, this is done by GET. To access the POST variables traverse through the $HTTP_POST_VARS (or $_POST array, i

[PHP] Creating Dynamic Variables

2002-07-17 Thread Anup
Hello, I have captured variables from any HTML that is POSTed to me from a 'foreach' clause. Now, possibly in this foreach clause I want to register these name/value pairs into a session var. I have tried : session_start(); foreach ($HTTP_POST_VARS as $name=$value) { $name=$value;