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
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
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
your code
...
}
$images[] = array('name'=>$file);
}
}
}
return $images;
}
--
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
string(2) "a2"
["a3"]=>
NULL
}
= and ==
a3 = 'a3';
}
public function __sleep() {
echo __FUNCTION__ . PHP_EOL;
return array('a1', 'a2', 'a3');
}
}
var_du
ect? new essentially
invokes __construct() and passes along its return value, near as i can tell.
Christoph,
if you dont want to write a function in the global namespace, as suggested
in the article, Eric posted, just add a simple factory method in your class,
eg.
doSomething();
?>
-nathan
in an index.php file:
If it's index.html, you could use the following:
<!--
location.href = '/';
-->
Try the PHP version first.
Will that not result in an infinite redirection loop?
Or am i missing something very obvious !
--
Regards,
Anup Shukla
--
PHP
Chuck wrote:
That is exactly what I am using now but the location I am redirecting
to is loading within the 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: http
idn't replicate. It took me 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
t have to involve Apache, just 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
ke xyz.php.txt .
(otherwise I'd just use 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
, using is_uploaded_file() 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
se let me know what I am doing wrong.
cheers
Anup
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you have this:
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
}
elseif ($b2) {
redirct to script2
}
/*Either b1 OR b2 will have a value, not both,
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 PRO
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
user/pa
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 PROTECTED
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.
Whe
message
[EMAIL PROTECTED]">news:[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
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 fiel
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 (http://w
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 ha
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
d [3], then my code can't access the session variables
(through calls 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 have
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 thi
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;
session_registe
28 matches
Mail list logo