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
13 matches
Mail list logo