Re: [PHP] Random SELECT SQL list

2007-05-16 Thread Larry Garfield
On Wednesday 16 May 2007, Eduardo Vizcarra wrote: > Hi > > I would like to know if a SELECT SQL query list of records can be unsorted. > SELECT statement retrieves a list of records from a certain table starting > from record # 1 till record #N and when publishing the records, this is how > it is p

Re: [PHP] Random SELECT SQL list

2007-05-16 Thread Paul Novitski
At 5/16/2007 09:40 PM, Eduardo Vizcarra wrote: I would like to know if a SELECT SQL query list of records can be unsorted. SELECT statement retrieves a list of records from a certain table starting from record # 1 till record #N and when publishing the records, this is how it is presented, in a s

[PHP] Random SELECT SQL list

2007-05-16 Thread Eduardo Vizcarra
Hi I would like to know if a SELECT SQL query list of records can be unsorted. SELECT statement retrieves a list of records from a certain table starting from record # 1 till record #N and when publishing the records, this is how it is presented, in a sequential way, is there any way to not pre

Re: [PHP] Extracting Variables From URL

2007-05-16 Thread J R
http://www.php.net/reserved.variables use $_SERVER['PHP_SELF'] or $_SERVER['REQUEST_URI'] just parse its value to get what you needed. hth, John On 5/17/07, CK <[EMAIL PROTECTED]> wrote: Hi All, The following code works just fine for outputting links from an array. The next goal, is parsin

Re: [PHP] mime type over http post?

2007-05-16 Thread Oliver Block
Hello Ray, 1. create the xml markup (dom) 2. open a connection to the 3rd party server (fsockopen) 3. send the header (fputs) 4. send the body (fputs) 5. close the connection Additional Questions? Best Regards, Oliver P.S: I just know better where to look for information:-) - original Nac

[PHP] Extracting Variables From URL

2007-05-16 Thread CK
Hi All, The following code works just fine for outputting links from an array. The next goal, is parsing the $thisPage variable from the URL (http://bushidodeep.com/contact.html/) so as $thisPage=strtolower("contact");?>, this variable could also be assigned to the $links[] $key. Moving to

Re: [PHP] Download speed limit

2007-05-16 Thread Rangel Reale
Between 90 and 350 MB. - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Rangel Reale" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, May 16, 2007 6:41 PM Subject: Re: [PHP] Download speed limit Rangel Reale wrote: Hello! For my application I need to limit the speed that m

Re: [PHP] delete_global_variable & session_unset

2007-05-16 Thread Stanislav Malyshev
Best to ask the php-internals list - they write the C code that does all of this work ;) Yeah, I know, clicked on wrong item, already resent there. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] using preg_match

2007-05-16 Thread Chris
Ed Curtis wrote: I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself. How do I escape it to find the string '/realtors'? http://www

Re: [PHP] delete_global_variable & session_unset

2007-05-16 Thread Chris
Stanislav Malyshev wrote: I recently noticed that session_unset in 5.2 (and probably in 6) uses delete_global_variable which looks up global scope and then deletes variable from it. Fine so far, but it does it in a loop - meaning it looks for the global scope each time anew for each session varia

Re: [PHP] Mysqli insert / OO Design Problem - Call to a member function bind_param() on a non-object in...

2007-05-16 Thread Chris
Lee PHP wrote: Hi there, I'm new to OO-PHP and have encountered a problem that I just can't figure out. I have a class called DBAccess that extends mysqli. In a nutshell, it looks like this: If I execute the following code: $conn = DBAccess::getInstance(); Does that give you an object? C

Re: [PHP] Download speed limit

2007-05-16 Thread Jim Lucas
Rangel Reale wrote: Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte counts for this example). To s

[PHP] Download speed limit

2007-05-16 Thread Rangel Reale
Hello! For my application I need to limit the speed that my application sends data, in my case a binary file. I need to send the speed as a parameter, like: sendfile.php?speed=2 Would send the file at 20kb/s (forgetting about real byte counts for this example). To send the file, I am doi

Re: [PHP] mime type over http post?

2007-05-16 Thread Tijnema !
On 5/16/07, Ray <[EMAIL PROTECTED]> wrote: On Wednesday 16 May 2007 11:12 am, Stephen wrote: > > I'm having a hard time getting support from from them. the method of > > comunication (direct quote from their docs is: > > "Data will be transferred to [server] via an HTTP POST operation using > > t

[PHP] Static methods have access to private members

2007-05-16 Thread Theodore Root
I have a question regarding static methods in PHP5.x. Specifically, it seems that one can access member variables declared private from static methods, just as you can from instance methods. I was wondering if this is by design, or if this "feature" might go away. I have worked up an example,

[PHP] delete_global_variable & session_unset

2007-05-16 Thread Stanislav Malyshev
I recently noticed that session_unset in 5.2 (and probably in 6) uses delete_global_variable which looks up global scope and then deletes variable from it. Fine so far, but it does it in a loop - meaning it looks for the global scope each time anew for each session variable! Also it seems to go t

RE: [PHP] Boilerplate Requirements Document for Web Site Kinda' OT

2007-05-16 Thread Jay Blanchard
[snip] Can anyone provide or direct me to the subject? I need more than a checklist of what to include. Something to go over with the client, complete the sections, and create a document to determine scope and determine price. [/snip] Web sites are like elbows and opinions. Everyone has one or

Re: [PHP] mime type over http post?

2007-05-16 Thread Ray
On Wednesday 16 May 2007 11:12 am, Stephen wrote: > > I'm having a hard time getting support from from them. the method of > > comunication (direct quote from their docs is: > > "Data will be transferred to [server] via an HTTP POST operation using > > the MIME type, text/xml" > > They want you to

Re: [PHP] PHP debugger

2007-05-16 Thread Miles Thompson
On 5/16/07, Arno Kuhl <[EMAIL PROTECTED]> wrote: -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED] Sent: 16 May 2007 02:15 To: PHP List Subject: Re: [PHP] PHP debugger > > > -Original Message- > From: Miles Thompson [mailto:[EMAIL PROTECTED] > Sent: 15 May 2007 08

[PHP] Boilerplate Requirements Document for Web Site

2007-05-16 Thread Stephen
Can anyone provide or direct me to the subject? I need more than a checklist of what to include. Something to go over with the client, complete the sections, and create a document to determine scope and determine price. Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] mime type over http post?

2007-05-16 Thread Stephen
I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: "Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml" They want you to mimic what a browser would send to a web site when the user cl

Re: [PHP] using preg_match

2007-05-16 Thread M.Sokolewicz
Ed Curtis wrote: Christian Haensel wrote: Hi Ed, did you try the backslash as escape character? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks! Why didn't you just test it yourself? Most people (well, I hope) would try it out, fi

[PHP] mime type over http post?

2007-05-16 Thread Ray
Hello, I'm trying to write a web-based aplication that talks to a third party server. I'm having a hard time getting support from from them. the method of comunication (direct quote from their docs is: "Data will be transferred to [server] via an HTTP POST operation using the MIME type, text/xml

[PHP] Mysqli insert / OO Design Problem - Call to a member function bind_param() on a non-object in...

2007-05-16 Thread Lee PHP
Hi there, I'm new to OO-PHP and have encountered a problem that I just can't figure out. I have a class called DBAccess that extends mysqli. In a nutshell, it looks like this: class DBAccess extends mysqli { private static $instance; private static $preferences; /** Create an instance

[PHP] pdo-oracle + nls_lang environment variable...

2007-05-16 Thread Javier Ruiz
Hi, I'm using pdo-oci on php-5.2.2 against an oracle-10g server, using oracle-instantclient (compiled oracle with '--with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib'). The problem...: I make a simple php script that makes a select from a table. The table contains spanish characters s

[PHP] Large amount of data over SOAP / MTOM

2007-05-16 Thread Gal
Hello, I'll appreciate your answer to the following questions: 1) What standard modules in PHP (5.x) enable to move large amount of data over a SOAP response (I know about DIME support)? 2) Is there a plan to support MTOM in PHP (if you're involved with php/pear development)? Thank you in advan

[PHP] Re: Bounty, NOW!

2007-05-16 Thread Michelle Konzack
Am 2007-05-15 02:51:17, schrieb Brad Sumrall: > Yes, I do still need legit help. But obviously I needed to make a point to > all the script kiddies out there that you are playing with fire if you even > attempt to miss use an admin password or access a server that does not > belong to you. > As a p

Re: [PHP] Re: using preg_match

2007-05-16 Thread Rob Desbois
[re-sending, forgot to include list :-|] If you're matching a string and not a pattern then it is far more efficient to use strpos: if (strpos($path, '/realtors') !== FALSE) { echo 'Success'; } rob On 5/16/07, Al <[EMAIL PROTECTED]> wrote: The "container", as you called it, are delimiters.

[PHP] Re: using preg_match

2007-05-16 Thread Al
The "container", as you called it, are delimiters. They can be about any character you choose; but, stay away from preg control characters. Personally, I use "%" most of the time. It's a good habit to use delimiter characters that you can be certain will not be included in your strings. Then, y

Re: [PHP] using preg_match

2007-05-16 Thread Ed Curtis
Christian Haensel wrote: Hi Ed, did you try the backslash as escape character? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using preg_match

2007-05-16 Thread Christian Haensel
Hi Ed, did you try the backslash as escape character? Works for me :o) Maybe try http://de3.php.net/manual/en/function.preg-match.php too see some examples. Good luck Chris - Original Message - From: "Ed Curtis" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 16, 2007 2:12 PM Sub

Re: [PHP] PHP debugger

2007-05-16 Thread Miles Thompson
-Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED] Sent: 15 May 2007 08:21 To: PHP List Subject: [PHP] PHP debugger I am trying to load a PHP debugger in our most recent build of PHP 5.2.1. The debugger which I am trying to set up is the free, pre-compiled Linux version

[PHP] using preg_match

2007-05-16 Thread Ed Curtis
I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself. How do I escape it to find the string '/realtors'? Thanks, Ed -- PHP General

RE: [PHP] RE: Bounty

2007-05-16 Thread Jay Blanchard
[snip] Where are the list administrators to ban this guy?? [/snip] This is an un-moderated list, so that makes us the police of our own list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Bounty

2007-05-16 Thread Tijnema !
On 5/15/07, Brad Sumrall <[EMAIL PROTECTED]> wrote: Ok, maybe most of my fun will come from schmucks! Hehehehe 75.34.61.72 from Baltimore is already giving it a whack!!! Hehehehehe Ok, this may be a fun night! Where are the list administrators to ban this guy?? -- PHP General Mailin

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
Robin Vickery wrote: use parse_url() http://www.php.net/parse_url then append the 'path' part to document root ? OMG, that looks like it will do the trick! Jeez, how did I miss that. I feel like a dufus. Are list members allowed at least one "RTFM" question per month? :D Thanks Robin! I appr

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Robin Vickery
On 16/05/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi folks, I hope everyone is having a good week. :) Let me cut to the chase... Basically, I need to get this: http://www.site.com/folder/foo To work like this: $_SERVER['DOCUMENT_ROOT'].'folder/foo/file.ext'; For use with getimagesize() and

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
Micky Hulse wrote: /* ** Output: ** /web1/httpd/htdocs/blogs/images/uploads */ Ooops, typed that wrong, example output should be: /web1/httpd/htdocs/folder/foo -- Wishlists: Switch: BCC?: My:

[PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
Hi folks, I hope everyone is having a good week. :) Let me cut to the chase... Basically, I need to get this: http://www.site.com/folder/foo To work like this: $_SERVER['DOCUMENT_ROOT'].'folder/foo/file.ext'; For use with getimagesize() and a few other functions (trying to avoid possible ope

RE: [PHP] PHP debugger

2007-05-16 Thread Arno Kuhl
If you don't see any change in phpinfo then maybe it's not picking up the dbg extension in your php.ini. Presumably you've also put the other debugger directives in your ini? You can also try download the trial version of PHPEd from Nusphere, install that, and check how it configures the debugger.