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
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
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
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:
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
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
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
[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
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
-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
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
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
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-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.
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
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
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
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
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
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.
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
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
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
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
[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
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
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,
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
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
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
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
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
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'?
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
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
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.
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
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
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
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
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
41 matches
Mail list logo