I think that these kind of questions are very annoying - it is almost
rude to post this to a list.
Why don't you
a) show that you have done some thinking
b) have at least scanned the manual
c) have asked Google.
/frank
8 sep 2006 kl. 07.12 skrev Manoj Singh:
Hello all,
I am developing a s
Hi,
I'm creating a file browsing site but don't know how to list properly
filenames containing accents (french, spanish, etc). I've been
browsing the archives but couldn't find a fix.
foreach ($files as $file) {
echo $file;
}
For example:
Filename: sábado-1.mov
Lin
Larry Garfield wrote:
Another issue. :-) I've another site I've built that uses PHP sessions for
user authentication. When the user logs in with a user/pass, that is matched
against a record in the database and, if found, that user object is stored in
the session along with various other trac
Good morning.
How do I call an class?
Its correct?
$Class = new Class();
or
$class = new Class();
Att,
'É um orgulho ter você como nosso cliente'
Paulo Ricardo
Programador (Desenvolvedor)
ArgoHost.net
Hospedagem Web com Facilidad
Hi!
I think u are confused, the variable name doesnt have anything to do with
the Class name...
So you can have something like this:
$myvar = new shuttle();
$jjj = new ISS();
u just need to be sure that u are using the exact name of the class, it
doesnt matter the variable name,
hope u get c
Hi,
we validate all incoming parameters and that includes checking if the
phpsession ID is only numbers and letters and is 32 Bytes long.
This worked for some PHP5 Servers but we just encountered an 5.1.2 that
issued sessionIDs that were 26 Bytes long.
I cant find any note about that in either of
I find that politeness is always good, nevertheless using 'o senhor' to
refer to Class1 is a little too much.
Now, I am not sure what your question actually is. Are you wondering about
naming conventions? Your example seems to indicate so.
The most frequent is to have class names with the fi
On Friday 08 September 2006 01:22, Robert Cummings wrote:
> > > Binary search using error_log() and __LINE__ output to track down where
> > > the thing dies.
> >
> > Binary search? I must be using a different definition than you are,
> > since I don't know what a binary search would do for me whe
Hello everyone.
This may seem as a silly question, but I went through the
documentation and it wasn't explicit on this issue, at least for me.
Let's say that I'm on an 128kb/s upload. I need to upload an 100mb
file through a POST. PHP has, by default, 90 seconds execution limit
time.
So, the qu
> -Original Message-
> From: Jens Kisters [mailto:[EMAIL PROTECTED]
> Sent: 08 September 2006 14:53
>
> we validate all incoming parameters and that includes checking if the
> phpsession ID is only numbers and letters and is 32 Bytes long.
> This worked for some PHP5 Servers but we just en
All,
Sorry if this is a little off topic. I have been writing tutorials on
load and regression testing web applications with JMeter. I have just
posted the first. These are being do to help people in TPN, but I am
able to make them public.
As the testing is all being done on PHP based web
Greetings all,
Thanks for the help with the Spreadsheet Excel Writer yesterday.
I was wondering if anyone knew of problems with the addFormat()
within the writer and PHP 5.0. I have followed the examples for
setting up a specific format but it is not being recognized.
Here is what I hav
André Medeiros wrote:
Hello everyone.
This may seem as a silly question, but I went through the
documentation and it wasn't explicit on this issue, at least for me.
Let's say that I'm on an 128kb/s upload. I need to upload an 100mb
file through a POST. PHP has, by default, 90 seconds execution
Am 2006-09-05 08:36:21, schrieb Jon Anderson:
> Or create a simple shell/perl/php/whatever wrapper for adduser, and
> allow sudo for that wrapper by the web server user only.
>
> For example, you could create a wrapper that only allows one
> alphanumeric argument for the username, and another f
Am 2006-09-05 23:12:43, schrieb Gustav Wiberg:
> I want to save this to a string...
>
>
Michelle Konzack wrote:
Am 2006-09-05 08:36:21, schrieb Jon Anderson:
Or create a simple shell/perl/php/whatever wrapper for adduser, and
allow sudo for that wrapper by the web server user only.
For example, you could create a wrapper that only allows one
alphanumeric argument for the use
MySQL Query Tool
MySQL Admin Tool
Both free, both work flawlessly w/ MySQL and both maintained by MySQL
Wolf
Christopher Watson wrote:
> Following up on this now...
>
> I have successfully installed Apache 2.0.59 (Win32), and configured
> successfully for PHP 5.1.6 and MySQL 5.0.24. The app i
On Fri, 2006-09-08 at 09:19 -0500, Larry Garfield wrote:
>
> Our development server is an IIS/PHP 4.3 environment. The live server is a
> 4.0.6 box sitting behind a proxy server as well, which could be part of the
> problem. The whole thing is a mess, I agree. :-)
There are still boxes with PH
On Thursday 07 September 2006 16:46, you wrote:
>You seem to be at least somewhat familiar with gdb, so this may not be
>news to you, but the segfault looks to be in PHP's pcre extension. PHP
>version 4.4.3 has an updated version of PCRE. That might be worth a
> shot.
My thanks to those of you who
While I'm inside a function call, is it possible to know what function
is currently being called?
Brent
On Fri, 2006-09-08 at 14:54 -0400, Brent Meshier wrote:
> While I'm inside a function call, is it possible to know what function
> is currently being called?
RTFM: http://www.php.net/manual/en/language.constants.predefined.php
Cheers,
Rob.
--
.
> While I'm inside a function call, is it possible to know what
> function is currently being called?
Yes.
http://us2.php.net/debug_backtrace
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
One thing that jumped to mind from my PHP 4 days -- do you have output_gzip
(or similar) enabled in your PHP.ini? I seem to remember having a similar
problem a while back, and disabling the gzipped output fixed it for me.
Also, is it possible to browse the website from the web server itself? Tha
In Apache I can configure a proxy redirect from one URL to another, ej:
htp://www.somesite.com/test -> http://www.othersite.com/path/to/display/
So that when the user loads up http://www.somesite.com/test they
actually see the content of the redirect instead (without the URL
getting
I'm trying to set up a simple conditional, something like this:
If my_variable is NOT equal to (black or white)
echo "wrong color"
else
echo "right color"
Here is what I have tried:
if ($_REQUEST['id'] != ("black" or "white")) {
echo "wrong color";
} else (
echo
Let me rephrase it. Your color should be black or white to be the right
colour. Is this correct?
In that case you should change it to
if ($_REQUEST['id'] != "black" AND $_REQUEST['id'] != "white") {
echo "wrong color";
} else (
echo "right color";
}
- Or
Shouldn't that be this instead:
if (($_REQUEST['id'] != "black") OR ($_REQUEST['id'] !=
"white")) {
echo "wrong color";
} else {
echo "right color";
}
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc
I think the OR should be an AND ...
If $_REQUEST['id'] = "black" then the second test will be true and it
will output "wrong color." If the color is "white" then the same thing
will happen 'cause it meets the first criteria.
-- Mitch
Kevin Murphy wrote:
Shouldn't that be this instead:
Well, it could be this, too:
switch( $_REQUEST['id'] ) {
case "white":
echo "Right color.";
break;
case "black":
echo "Right color.";
break;
default:
echo "Wrong color.";
break;
}
---
Jeremy C. Prive
- Original Message -
From: "JD" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 08, 2006 11:03 PM
Subject: [PHP] if statement with or comparison (newbie)
I'm trying to set up a simple conditional, something like this:
If my_variable is NOT equal to (black or white)
echo "wrong c
I made a simple file uploader and it works fine (at lest I thought it
works fine). But, people uploaded files with so crazy names, like "MOORE's
20% Off.pdf" ?!?!?!?!?
First, it was uploaded with slash in front of apostrophy - I fixed that.
but, because of percent sign I can't link it.
How can I g
At 05:30 PM 9/8/2006, you wrote:
- Original Message - From: "JD" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 08, 2006 11:03 PM
Subject: [PHP] if statement with or comparison (newbie)
I'm trying to set up a simple conditional, something like this:
If my_variable is NOT equal to (
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I made a simple file uploader and it works fine (at lest I thought it
works fine). But, people uploaded files with so crazy names, like "MOORE's
20% Off.pdf" ?!?!?!?!?
This is why it is so important that you understand how to filter data
b
On Fri, 2006-09-08 at 15:30 -0600, Jeremy Privett wrote:
> Well, it could be this, too:
>
> switch( $_REQUEST['id'] ) {
> case "white":
> echo "Right color.";
> break;
>
> case "black":
> echo "Right color.";
> break;
>
> default:
>
On 9/7/06, Daniel A. Ramaley <[EMAIL PROTECTED]> wrote:
Hello. I have been struggling for a few months to solve a problem with
an Apache web server. First i'll try to describe the symptoms, then
give details about the configuration and what i have tried so far. I
would greatly appreciate any sugg
At 5:03 PM -0400 9/8/06, JD wrote:
I'm trying to set up a simple conditional, something like this:
Here is what I have tried:
if ($_REQUEST['id'] != ("black" or "white")) {
In all of the answers given thus far, no one mentioned that the use
of $_REQUEST has a security issue with regard
Hello All,
I've been struggling with a rather obscure PHP memory issue for the
last few days. Here's my setup:
FreeBSD 5.5
Apache2.0, PHP 5.1.6, and MySQL 4.1.x compiled from scratch (that is,
we're not using FreeBSD ports)
PHP is compiled with --enable-memory-limit and the limit is set to 8MB
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function returnVar($n)
{
return $(somehow n is made to reference the name of the variable);
}
And then in later scripts I can
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
> PHP List,
>
> I have a list of variables:
>
> $001
> $002
> $003
> $004
>
> And what I'd like to do is have a function which will select and return
> one of them. Something like:
>
> public function returnVar($n)
> {
> return $(somehow n is
On Fri, 2006-09-08 at 18:38 -0400, tedd wrote:
> At 5:03 PM -0400 9/8/06, JD wrote:
> >I'm trying to set up a simple conditional, something like this:
> >
> >Here is what I have tried:
> >
> > if ($_REQUEST['id'] != ("black" or "white")) {
>
>
> In all of the answers given thus far, no one me
40 matches
Mail list logo