php-general Digest 31 Jan 2007 15:27:03 - Issue 4600
Topics (messages 248077 through 248086):
Re: What search algorithm does in_array() use?
248077 by: Ligaya A. Turmelle
regarding ereg() problem
248078 by: jekillen
248080 by: Jim Lucas
Re: Need tool to graphically
- Original Message -
From: Jon Anderson [EMAIL PROTECTED]
To: Skip Evans [EMAIL PROTECTED]
Cc: PHP-General php-general@lists.php.net
Sent: Tuesday, January 30, 2007 11:46 PM
Subject: Re: [PHP] Help wtih a query?
Wrong list. Putting $sql=... in there doesn't make it a PHP question.
;-)
Finally, after a long course about the fishing philosophy :-)
A private discussion with Jon give me a very good way to find a solution.
I would to share it with guys who need it :
PECL mailparse package: http://pecl.php.net/package/mailparse
It parses mail files with attachments (rfc822 and
Thx All
-Oorspronkelijk bericht-
Van: Jim Lucas [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 30 januari 2007 16:52
Aan: Jim Lucas
CC: Arpad Ray; [EMAIL PROTECTED]; php-general@lists.php.net
Onderwerp: Re: [PHP] convert date to reversed date
Jim Lucas wrote:
Arpad Ray wrote:
$filename
Hello everyone
I need a good sql-editor where I can write sqlcode. The problem is that I
don't have rights to list tables, functions and so on. Now I use EMS Sql
Manger 2005, and if I want to write and execute sqlcode I need access to the
system tables, and I don't have it on this database.
Thanks everyone for the useful input. I've looked around a bit using the
various links and info that I got. The Gallery2 documentation on the
modules is far from transparent to me, and the idea of having a general
module class that needs to get extended by the module doesn't appeal to
me either. I
I'm making a simple socket server that just receive some data, and then
send some data back again to the client.
EDIT:
I forgot to tell that i need help!
I have search around for hours now, and the examples are always not what
I needed :(
the program is written in Python, if that helps, and is
On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote:
I'm making a simple socket server that just receive some data, and then
send some data back again to the client.
EDIT:
I forgot to tell that i need help!
I have search around for hours now, and the examples are always not what
I needed
Németh Zoltán wrote:
On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote:
I'm making a simple socket server that just receive some data, and then
send some data back again to the client.
EDIT:
I forgot to tell that i need help!
I have search around for hours now, and the examples are always
2007/1/30, speedy [EMAIL PROTECTED]:
Hello Martin,
Tuesday, January 30, 2007, 8:45:50 PM, you wrote:
function f()
{
global $arr;
foreach($arr as $k=$v) {
$v-do_something();
}
}
I don't see your point anywhere... foreach iterates over a copy of
the array so where
jekillen wrote:
Hello php list;
I am having trouble with ereg().
The following is the problem code
$x = ereg(route name='$to' x='../(.*)/in' rec='.*' /, $get_route, $m);
do we need to break out of the text to include the $to variable??
testing $route I get:
do you mean $get_route?
$route
Okay, so SQL questions shouldn't come to the list,
but I am in dire need of some assistance that uses
a LEFT JOIN and must also get a count of records
in the RIGHT table, plus group by that count and
order by it.
If anyone can help out with this and would be
willing to email me off list to
Hello Martin,
Wednesday, January 31, 2007, 4:50:22 PM, you wrote:
There is nothing wrong with the global keyword, just use $GLOBAL
['arr'] instead to avoid the reference, or create a copy by
assignment.
Yep, already did, 10x for the suggestion. :)
Anyway, I couldn't find this change of
-Message d'origine-
De : Skip Evans [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 31 janvier 2007 17:26
À : PHP-General
Objet : [PHP] Need desperate help with query
Okay, so SQL questions shouldn't come to the list,
You are aware of that too eh?
So why mail here?
but I am in
Stut skrev:
Németh Zoltán wrote:
On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote:
I'm making a simple socket server that just receive some data, and then
send some data back again to the client.
EDIT:
I forgot to tell that i need help!
I have search around for hours now, and the examples
speedy wrote:
Hello Martin,
Wednesday, January 31, 2007, 4:50:22 PM, you wrote:
There is nothing wrong with the global keyword, just use $GLOBAL
['arr'] instead to avoid the reference, or create a copy by
assignment.
Yep, already did, 10x for the suggestion. :)
Anyway, I couldn't
[EMAIL PROTECTED] wrote:
hi,
is it possible to specify email address in mail() function where bounced
email could return?
I checked http://us2.php.net/manual/en/function.mail.php but didn't find
anything.
That's the right place. It's the 5th parameter you want to change.
--
Postgresql
# [EMAIL PROTECTED] / 2007-01-31 19:41:42 +0100:
instead I would suggest that your better off doing one of 2 things:
1. pass in the array to the function explicitly.
2. use a special function that can be called to retrieve the array
from within your example function.
bad advice? I'm open
Hello Jochem,
Wednesday, January 31, 2007, 7:41:42 PM, you wrote:
use of 'global' is bad practice in anything that resembles a complex/real
application. your function has no control over the what $arr is and any piece
of
code code change $arr into *anything* at any time.
instead I would
SELECT COUNT(*) AS thecount FROM table1 LEFT JOIN tabel2 ON (table1.col1 =
table2.col2) GROUP BY table1.col3 ORDER BY thecount;
It might give you some hints...
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon
Señores buenas tardes.
Tienen un buen ejemplo o manual para programación orientada a objetos en PHP
con MySql.
Muchas gracias.
HI Jairo!
This is a list only in english. Please, check other list in spanish.
Esta es una lista en inglés. Por favor, verificá otras listas en español.
JP
On 1/31/07, Jairo Torres [EMAIL PROTECTED] wrote:
Señores buenas tardes.
Tienen un buen ejemplo o manual para programación orientada a
[snip]
Tienen un buen ejemplo o manual para programación orientada a objetos en PHP
con MySql.
[/snip]
Hay varios buenos libros y clases particulares. Búsqueda Google.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try to google for orientada a objetos en PHP con MySql :)
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Jairo Torres [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January
On Wed, 31 Jan 2007 17:49:20 +0100, Tim wrote:
-Message d'origine-
De : Skip Evans [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 31 janvier 2007 17:26
À : PHP-General
Objet : [PHP] Need desperate help with query
Okay, so SQL questions shouldn't come to the list,
You are aware of
Hi
In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in PHP?
I am working on converting a Listener script from Perl to PHP and at one point
when the script forks it has a line
$0 = Listener is accepting
[snip]
In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in
PHP?
[/snip]
$_SERVER['PHP_SELF']
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 1/31/07, Richard Luckhurst [EMAIL PROTECTED] wrote:
Hi
In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in PHP?
I am working on converting a Listener script from Perl to PHP and at one point
when the
Jay Blanchard wrote:
[snip]
In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in
PHP?
[/snip]
$_SERVER['PHP_SELF']
Or if you're using it from the command line, $argv[0]
--
Postgresql php tutorials
On Jan 31, 2007, at 8:13 AM, Jim Lucas wrote:
jekillen wrote:
Hello php list;
I am having trouble with ereg().
The following is the problem code
$x = ereg(route name='$to' x='../(.*)/in' rec='.*' /, $get_route,
$m);
do we need to break out of the text to include the $to variable??
The $to
On Wed, January 31, 2007 5:59 pm, Richard Luckhurst wrote:
In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in
PHP?
$_SERVER['PHP_SELF']
I am working on converting a Listener script from Perl to PHP and
Hi Richard,
RL And, frankly, why would you want to do that? It only sows confusion
RL in ps output. :-)
I happen to agree with you. Why would you want to do it. The reason it is being
done in this application is to keep a specification for he application happy.
When the php program is
On Tue, January 30, 2007 8:36 pm, jekillen wrote:
I am having trouble with ereg().
The following is the problem code
$x = ereg(route name='$to' x='../(.*)/in' rec='.*' /, $get_route,
$m);
testing $route I get:
$route = $m[1];
print $route.'br';
jk/in' rec='a_378e6dc4.xml' / (out put of
Richard Luckhurst wrote:
Hi Richard,
RL And, frankly, why would you want to do that? It only sows confusion
RL in ps output. :-)
Unless you're talking about apps spawned by inetd and its cousins. ps
shows the name as specified in arguments in the inetd.conf file, not the
name of the
On Tue, January 30, 2007 4:14 pm, nitrox . wrote:
Richard, ive included your suggested code and now my php script is
working
properly. But I dont want to be a php copy/paste newb who has no clue
of how
things are working. If its not too much would you (or anybody) give a
brief
explanation
On Tue, January 30, 2007 7:23 pm, Craige Leeder wrote:
atleast this part: $user_id = mysql_real_escape_string((int)
$_GET['user_id']);
I'm not sure who put this in there, but you don't need to use
mysql_real_escape_string() on that value if you're type casting it. If
you are forcing it to be
Take out the @ symbol.
Better to have error output to confuse the XML parser but lead you
where you need to go, than to have NO OUTPUT which is what is
confusing you *and* the XML parser.
On Tue, January 30, 2007 2:34 pm, Skip Evans wrote:
Hey all,
I have getting the following error page in
On Tue, January 30, 2007 2:31 pm, Scripter47 wrote:
I'm making a simple socket server that just receive some data, and
then
send some data back again to the client.
it is a program that send data by sockets, (not port 80)
It has to a simple solution :)
plz ask for more infomation.
On Wed, January 31, 2007 6:42 pm, Mark Charette wrote:
Richard Luckhurst wrote:
Hi Richard,
RL And, frankly, why would you want to do that? It only sows
confusion
RL in ps output. :-)
Unless you're talking about apps spawned by inetd and its cousins. ps
shows the name as specified in
On Wed, January 31, 2007 9:39 am, Németh Zoltán wrote:
On sze, 2007-01-31 at 16:26 +0100, Scripter47 wrote:
I'm making a simple socket server that just receive some data, and
then
send some data back again to the client.
EDIT:
I forgot to tell that i need help!
I have search around for
On Tue, January 30, 2007 2:30 pm, Ken Dozier wrote:
Thanks to all for your input, guys.
Regarding the construction of the SQL query, I would love to try it
with
SUBSELECTs; but, alas, we are using RHEL 3 which ships with MySQL
3.23. I
don't think RH supports any 4.0 or later versions of
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-31 19:41:42 +0100:
instead I would suggest that your better off doing one of 2 things:
1. pass in the array to the function explicitly.
2. use a special function that can be called to retrieve the array
from within your example function.
speedy wrote:
Hello Jochem,
Wednesday, January 31, 2007, 7:41:42 PM, you wrote:
use of 'global' is bad practice in anything that resembles a complex/real
application. your function has no control over the what $arr is and any
piece of
code code change $arr into *anything* at any time.
On Tue, January 30, 2007 12:36 pm, Tim wrote:
This is more of a conceptional question rather then a technical one.
I am developping an online catalog, the catalog is a standard
categorie/subcat/subsubcat system using the following logic in my
database:
cat_id cat_name
10DVD
On Tue, January 30, 2007 12:47 pm, Tim wrote:
Oh and about the double msg, sorry fighting with outlook here, not my
usual
client ;)
It's not on-topic, but go ahead and just abandon Outlook now.
:-)
--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some
Check permissions on all the intermediary directories from C: down to
the DLL.
Check the environment PATH on the two machines -- If dev has a
different PATH that leads to the DLL...
Some folks advocate putting the DLLs in System or System32 or whatever...
If there are any directories with SPACE
jekillen wrote:
On Jan 31, 2007, at 8:13 AM, Jim Lucas wrote:
jekillen wrote:
Hello php list;
I am having trouble with ereg().
The following is the problem code
$x = ereg(route name='$to' x='../(.*)/in' rec='.*' /, $get_route,
$m);
do we need to break out of the text to include the $to
jekillen wrote:
On Jan 31, 2007, at 8:13 AM, Jim Lucas wrote:
jekillen wrote:
Hello php list;
I am having trouble with ereg().
The following is the problem code
$x = ereg(route name='$to' x='../(.*)/in' rec='.*' /, $get_route,
$m);
do we need to break out of the text to include the $to
On Tue, January 30, 2007 9:44 am, [EMAIL PROTECTED] wrote:
is it possible to specify email address in mail() function where
bounced
email could return?
I checked http://us2.php.net/manual/en/function.mail.php but didn't
find
anything.
Some MTAs follow some standards which at one time or
Just leave the email in your Inbox (or whatever mailbox you want) and
use this:
http://php.net/imap
You cna also open up a local file with that, if it's more convenient.
On Tue, January 30, 2007 2:58 am, Pierre Pintaric wrote:
Hello there,
I'm sure this question was ask 1,000 times, but I
On Mon, January 29, 2007 10:55 pm, Jay Blanchard wrote:
[snip]
I am writing a program for managing leads and contacts. I would like
to
add
the ability to see what TIME it is where the contact is not there
server
time. So if you looked at a list of contacts from all over the country
you
An mbox file is pretty much just a whole bunch of email files smushed
together into one big file.
If you pretend that your single email *IS* an mbox, by putting it into
a file, it will work.
On Tue, January 30, 2007 3:32 am, Pierre Pintaric wrote:
Jim Lucas a écrit :
Pierre Pintaric wrote:
Teste
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, January 30, 2007 11:06 am, Jay Blanchard wrote:
[snip]
of course people read documentation before asking help
[/snip]
ROFLMMFAO! Sorry, that just made my day!
Actually, I suspect most people at least make some kind of attempt to
read docs before posting here...
Reading does not
Niklas Karlsson wrote:
Hello everyone
I need a good sql-editor where I can write sqlcode. The problem is that I
don't have rights to list tables, functions and so on. Now I use EMS Sql
Manger 2005, and if I want to write and execute sqlcode I need access to the
system tables, and I don't
On 01/02/07, Richard Lynch [EMAIL PROTECTED] wrote:
Actually, I suspect most people at least make some kind of attempt to
read docs before posting here...
Reading does not guarantee comprehension.
For that matter, reading WHICH docs is always an interesting
challenge. Clearly, nobody can
Hi
In reference to my query about 'greed' in regex in php and the following
code
$x = ereg(route name='$to' x='\.\./(.*)/in' rec='.*' /,
$get_route, $m);
I solved the immediate problem with the following:
route name='$to' x='\.\./([a-z]{2}|a?u_[0-9a-z]{8})/in' rec='.*' /
as you can see, the
On Jan 31, 2007, at 4:38 PM, Richard Lynch wrote:
On Tue, January 30, 2007 8:36 pm, jekillen wrote:
I am having trouble with ereg().
The following is the problem code
$x = ereg(route name='$to' x='../(.*)/in' rec='.*' /, $get_route,
$m);
testing $route I get:
$route = $m[1];
print
Hi everyone
I aneed top maintain a persisistent Queue can anyone help.
--
Have A plesant Day
Chetan. D. Rane
Location: Pune , India
Contact: +91-9890792762
otherID: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Niklas Karlsson wrote:
Hello everyone
I need a good sql-editor where I can write sqlcode. The problem is that I
don't have rights to list tables, functions and so on. Now I use EMS Sql
Manger 2005, and if I want to write and execute sqlcode I need access to
the
system tables, and I
60 matches
Mail list logo