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
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
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
,
Anup Shukla
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
--
Regards,
Anup Shukla
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
() {
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
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
!
--
Regards,
Anup Shukla
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
() 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
] [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
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
}
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
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
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
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
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
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
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
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
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
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
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
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
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;
28 matches
Mail list logo