Re: [PHP] Cannot connect to an MySQL database using Named Pipes (resolved)

2007-05-16 Thread John Comerford
I got as reply on another forum which resolved this issue. The command should be: $mysqli = new mysqli(., $username,$password, $database,null,/tmp/mysql.sock); NB. host is a dot John Comerford wrote: Hi Folks, I have a database running on Window XP, that I want to disable network

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

[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

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: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My:

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
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

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 Mailing

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

[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] 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

Re: [PHP] using preg_match

2007-05-16 Thread Christian Haensel
Hi Ed, did you try the backslash as escape character? ? $path = testing/realtors/userdata/; if(preg_match(/\/realtors/, $path)) { echo 'Success'; } ? Works for me :o) Maybe try http://de3.php.net/manual/en/function.preg-match.php too see some examples. Good luck Chris - Original

Re: [PHP] using preg_match

2007-05-16 Thread Ed Curtis
Christian Haensel wrote: Hi Ed, did you try the backslash as escape character? ? $path = testing/realtors/userdata/; if(preg_match(/\/realtors/, $path)) { echo 'Success'; } ? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks! -- PHP

[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, you

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: 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 prior

[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

[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

[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] 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

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? ? $path = testing/realtors/userdata/; if(preg_match(/\/realtors/, $path)) { echo 'Success'; } ? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure.

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

[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

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:21

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 mimic what

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

[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

[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,

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 the MIME

[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

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

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: snip If I execute the following code: $conn = DBAccess::getInstance(); Does that give you an

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

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'?

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

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: php-general@lists.php.net Sent: Wednesday, May 16, 2007 6:41 PM Subject: Re: [PHP] Download speed limit Rangel Reale wrote: Hello! For my application I need to

[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 ?php $thisPage=strtolower(contact);?, this variable could also be assigned to the $links[] $key.

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

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 parsing

[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

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

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