> -Original Message-
> From: Brad Fuller [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 30, 2007 10:55 AM
> To: php-general@lists.php.net
> Subject: [PHP] Run a script apart from request
>
> Hi all,
>
> I am developing a program that does some intensive data processing,
and is
> trigger
You will have to find that information out through whoever your host is.
There is no one configuration for that.
The first question to ask is did you create a MySQL database? If you
did, then find out whatever the host was for doing that. Many times,
your host will put it at mysql.___domainnam
The first thing that comes to my mind is to use a database to handle
session data as defined by:
http://us2.php.net/manual/en/function.session-set-save-handler.php. You
can then, when attempting to authenticate, pass the session ID back and
forth through your applications. There may be similar t
I feel that a 'request' class wouldn't be appropriate for the $_REQUEST
array. The reason being, is that there isn't to that class other than
the $_REQUEST array, and a bunch of 'get' methods. If this were to be
expanded upon by adding filtering user input, then it *could* be more
useful. IMO an
Just make sure you use []'s in your name, such as:
Then it will fill $bob as an array, instead of a string.
http://us2.php.net/manual/en/faq.html.php#faq.html.arrays
-Logan
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: Friday, April 27, 2007 4:02 AM
>
> -Original Message-
> From: Paul Novitski [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 27, 2007 3:01 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] explode in mysql query
>
> At 4/26/2007 11:33 PM, Sebe wrote:
> >i have a mysql column that looks like this:
> >
> >groups
> >--
Heh, lucky me I was just looking into that earlier today.
http://us.php.net/manual/en/language.types.string.php
Around the "Simple Syntax" area.
-Logan
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 9:42 AM
To: Man-wai Chang
Cc: php-g
I use Outlook 2003 on Vista, no problem at all, non-digest mode.
-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 3:18 PM
To: Tijnema !
Cc: Beauford; PHP
Subject: Re: [PHP] List
Welcome to Windows
Tijnema ! wrote:
> On 4/24/07, Beauford <[EMAIL PROTE
You may also want to check and make sure that your ISO isn't more than
4GB. IIRC, I had some troubles with extremely large files and using
filetype() on them. But then again, it may have just been something on
my own end.
-Logan
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTE
[snip]
Can I somehow manipulate any of the PHP scripts involved so that the
HTML within layout.php will look first in it's own directory for
inclusion of files, such as CSS and javascript and anything else?
[/snip]
If a user accesses http://site.com/index.php, then the HTML that is spit
back out
ssage-
From: Weber Sites [mailto:[EMAIL PROTECTED] On Behalf Of WeberSites
LTD
Sent: Monday, April 23, 2007 10:49 AM
To: Buesching, Logan J; 'Dotan Cohen'; 'php php'
Subject: RE: [PHP] Preventing SQL Injection/ Cross Site Scripting
I'm trying to understand from the
[snip]
I don't really want to do a isset check for every index I have.
[/snip]
Premature optimization is the root of all evil. Checks like this will
take nanoseconds to check. Find another way to optimize, like writing
better SQL queries.
--
PHP General Mailing List (http://www.php.net/)
To un
You are misunderstanding what timestamp means. The value of a timestamp
is from UNIX epoch http://en.wikipedia.org/wiki/Unix_time. It is
calculated by the number of seconds after January 1st, 1970. Also note,
that you are overflowing the integer, which is giving you a
http://en.wikipedia.org/wik
There are many good resources out there, and one of my favorites for this type
of information is from Chris Shiflett.
http://shiflett.org/articles/sql-injection
http://shiflett.org/articles/foiling-cross-site-attacks
http://shiflett.org/blog/2007/mar/allowing-html-and-preventing-xss
Those are a
Could you also send the code? Maybe 5 lines before and 5 lines after the
line it is pointing to?
It also means it tried to allocate 2KB of memory, which put you over
your 8MB in whatever script you are running. You can set the maximum
amount of memory a PHP script can use in your PHP.ini file.
-
You say they both have the same config, so do you mean that they both
have the same version of PHP, same computer setup (Memory, CPU speed,
HDD speed), both running the same version of Apache, and that both are
running as either CGI or an apache module?
-Logan
-Original Message-
From: Don
Sorry for that ctrl+enter sends, when I wanted ctrl+V to paste :(
All registered variables are serialized after the request finishes. Registered
variables which are undefined are marked as being not defined. On subsequent
accesses, these are not defined by the session module unless the user
>From the PHP manual:
-Original Message-
From: Zoltán Németh [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 19, 2007 8:40 AM
To: Tobias Wurst
Cc: php-general@lists.php.net
Subject: Re: [PHP] serialize an object
as far as I know serialize() saves all the properties of the object...
and
My first guess would be to make sure that the version of PHP that you
are running from CLI is the same as the one running as an apache module,
and that they are configured the same. When running the CLI, do an
And compare the output with what you get from doing the same thing from
the web.
-L
> how I understand:
> clause one: isset($_GET['var'])
> clause two: ($_GET['var'] == 'foo')
> if clause two is true, clause one MUST be true.
> if clause one is true, clause two could be true or false.
>
> means, if I look for solutions where ($_GET['var'] == 'foo') they wil
> lautomaticaly cover i
In your regex, you have a greedy matcher, i.e. ".*" will match as much
as it can to satisfy its condition. I believe you can do ".*?" and it
will work, as ".*?" will match as little as it can to be satisfied.
-Logan
-Original Message-
From: Travis Moore [mailto:[EMAIL PROTECTED]
Sent: S
You can't really do `php -v` on the command line, unless you know which
php you are using. If you have several installations of PHP, then doing
`php -v` will just get you the version of PHP for which is loaded first
from your path. I'd do a `which php` to make sure you are using php 5
first befor
Komodo, written in python and XUL (yes, the firefox extention engine).
-Original Message-
From: Jarrel Cobb [mailto:[EMAIL PROTECTED]
Sent: Friday, April 13, 2007 12:08 PM
To: Tijnema !
Cc: M. Sokolewicz; Philip Thompson; php General List
Subject: Re: [PHP] PHP editor
No, C is not a scri
I haven't used Eclipse on Linux in awhile, but I believe that they have
some executable script (like, go to the eclipse directory and type
./eclipse) that you can just run and it will start up eclipse and
everything.
-Original Message-
From: Bagus Nugroho [mailto:[EMAIL PROTECTED]
Sent:
IF db not exists THEN
locate -u
END-IF
I'd hate to see the time it'd take to create a first-time database...
this could take awhile to run.
-Original Message-
From: Davi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 11, 2007 6:10 PM
To: php-general@lists.php.net
S
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 7:57 PM
To: Buesching, Logan J
Cc: Tijnema !; php-general@lists.php.net
Subject: RE: [PHP] DOM and XSLTProcessor
On Mon, April 9, 2007 3:50 am, Buesching, Logan J wrote:
> This could offer a possible workaround.
>
> Let me first sta
Something along the lines of the following:
var myArray=new Array();
$val) {
?>
myArray[]="";
Although it lo
I didn't take too much time to look at this, but I believe that where
you see:
---
sprintf("_f('%s',%d, .
---
Try and change that to:
---
sprintf("_f('%s',%u, .
---
>From what information you provided, it seems that this is what would
work.
-Logan
-Original Message-
From: Rob
Something along these lines?
$flipped=array_flip($arr);
unset($flipped[$val])
return array_flip($flipped);
>From the manual of array_flip:
If a value has several occurrences, the latest key will be used as its
values, and all others will be lost.
-Logan
-Original Message-
From: Tijnema
You may also want to take a look at
http://us.php.net/features.file-upload. That is a good resource for
starting in file uploads.
-Logan
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 8:54 PM
To: PHP-General
Subject: [PHP] Curious Problem with $_
for the idea though.
-Logan
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 4:40 AM
To: Buesching, Logan J
Cc: php-general@lists.php.net
Subject: Re: [PHP] DOM and XSLTProcessor
On 4/9/07, Buesching, Logan J <[EMAIL PROTECTED]> wrote:
&g
Greetings,
I apologize if this is a little long, but I am trying to put as much
information as I have done in this first post. I am running PHP 5 and
attempting to use DOM to create data to show on a webpage and using
XSLTProcessor with an XSLT sheet to output it into XHTML. Everything is
pre
The password is the hash of the entire thing, not just the password. So
it would be the following:
echo "admin:trac:".md5('admin:trac:admin');
-Logan
-Original Message-
From: Manolet Gmail [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 01, 2007 5:28 PM
To: php-general@lists.php.net
Subj
33 matches
Mail list logo