RE: [PHP] Run a script apart from request

2007-04-30 Thread Buesching, Logan J
> -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

RE: [PHP] FW: I really need help

2007-04-29 Thread Buesching, Logan J
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

RE: [PHP] single signon Solution php and .net

2007-04-29 Thread Buesching, Logan J
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

RE: [PHP] Object-oriented $_REQUEST?

2007-04-28 Thread Buesching, Logan J
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

FW: [PHP] Need to POST multiple values with single name

2007-04-27 Thread Buesching, Logan J
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 >

RE: [PHP] explode in mysql query

2007-04-27 Thread Buesching, Logan J
> -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 > >--

RE: [PHP] ${}

2007-04-25 Thread Buesching, Logan J
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

RE: [PHP] List

2007-04-24 Thread Buesching, Logan J
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

RE: [PHP] filetype() and exec() issues

2007-04-23 Thread Buesching, Logan J
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

RE: [PHP] What determines the relative directory, and can I control it?

2007-04-23 Thread Buesching, Logan J
[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

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Buesching, Logan J
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

RE: [PHP] should I be looking to eliminate all notices?

2007-04-22 Thread Buesching, Logan J
[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

RE: [PHP] echo date('Y-m-d', $mydata->timestamp);

2007-04-22 Thread Buesching, Logan J
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

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-22 Thread Buesching, Logan J
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

RE: [PHP] Why do i get this error message?

2007-04-22 Thread Buesching, Logan J
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. -

RE: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-22 Thread Buesching, Logan J
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

RE: [PHP] serialize an object

2007-04-19 Thread Buesching, Logan J
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

RE: [PHP] serialize an object

2007-04-19 Thread Buesching, Logan J
>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

RE: [PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Buesching, Logan J
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

RE: [PHP] isset

2007-04-15 Thread Buesching, Logan J
> 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

RE: [PHP] preg_replace and regular expressions.

2007-04-15 Thread Buesching, Logan J
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

RE: [PHP] Dreamhost! PHP as CGI!???

2007-04-13 Thread Buesching, Logan J
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

RE: [PHP] PHP editor

2007-04-13 Thread Buesching, Logan J
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

RE: [PHP] PHP Eclipse on Linux

2007-04-12 Thread Buesching, Logan J
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:

RE: [PHP] location of the PHP executable

2007-04-11 Thread Buesching, Logan J
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

RE: [PHP] DOM and XSLTProcessor

2007-04-10 Thread Buesching, Logan J
[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

RE: [PHP] Copying PHP array into a Javascript array

2007-04-10 Thread Buesching, Logan J
Something along the lines of the following: var myArray=new Array(); $val) { ?> myArray[]=""; Although it lo

RE: [PHP] PHP Directory List Script Files over 2 GB

2007-04-10 Thread Buesching, Logan J
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

RE: [PHP] Array remove function?

2007-04-10 Thread Buesching, Logan J
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

RE: [PHP] Curious Problem with $_POST

2007-04-09 Thread Buesching, Logan J
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 $_

RE: [PHP] DOM and XSLTProcessor

2007-04-09 Thread Buesching, Logan J
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

[PHP] DOM and XSLTProcessor

2007-04-09 Thread Buesching, Logan J
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

[PHP] RE: HTDIGEST FILE FORMAT

2007-04-01 Thread Buesching, Logan J
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