php-general Digest 8 Jan 2007 15:46:29 - Issue 4558
Topics (messages 246732 through 246761):
Arrays?
246732 by: William Stokes
246734 by: Nicholas Yim
246739 by: Sumeet
246740 by: Sumeet
Re: Question regarding include() and symlinks to directories
php-general Digest 9 Jan 2007 04:26:17 - Issue 4559
Topics (messages 246762 through 246778):
Re: unpack on offsets in binary data in variable?
246762 by: Robert Cummings
Re: send email by php class
246763 by: Sancar Saran
246764 by: Jochem Maas
Table contents not
Hello everyone,
I store files on the server (.pdf, .doc, .txt, etc.) which are
referenced by entries in a database. The filenames are only stored in
the database and are not BLOBs.
What I'd like to do is to be able to show a web form wherein a user
can choose stored documents on the server and
# [EMAIL PROTECTED] / 2007-01-08 19:06:16 +1100:
Hello everyone,
I store files on the server (.pdf, .doc, .txt, etc.) which are
referenced by entries in a database. The filenames are only stored in
the database and are not BLOBs.
What I'd like to do is to be able to show a web form
Matt Arnilo S. Baluyos (Mailing Lists) kirjoitti:
What's the easiest way to go about this? Specifically, what's the
easiest way to read a file from the server and send it as an email
attachment.
I would suggest you to use http://phpmailer.sourceforge.net/ that is a
featured class for sending
Nicholas Yim wrote:
Hello William Stokes,
1 write a callback function:
[php]
function cmp_forth_value($left,$right){
return $left[4]$right?-1:($left[4]==$right[4]?0:1);
return $left[4]$right[4]?-1:($left[4]==$right[4]?0:1);
^^^
add this
}
Nicholas Yim wrote:
Hello William Stokes,
1 write a callback function:
[php]
function cmp_forth_value($left,$right){
return $left[4]$right?-1:($left[4]==$right[4]?0:1);
return $left[4]$right[4]?-1:($left[4]==$right[4]?0:1);
^^^
add this
}
Hi all,
I got a doubt about the str_replace function.
?php
$string=avenue 1, ave 1;
$words=str_replace (ave,avenue, $string);
echo $words;
?
the php code above will return me avenuenue 1, avenue 1. i expect the
result will be avenue 1, avenue 1. any idea of how can i get such result?
Thank
change it to
?php
$string=avenue 1, ave 1;
$words=str_replace (ave ,avenue , $string);
echo $words;
?
Kencana wrote:
Hi all,
I got a doubt about the str_replace function.
?php
$string=avenue 1, ave 1;
$words=str_replace (ave,avenue, $string);
echo $words;
?
the php code above will return
I think you'd better use regular expression to replace the word
Regards,
Dick
-Original Message-
From: Kencana [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 5:12 PM
To: php-general@lists.php.net
Subject: [PHP] question about str_replace function
Hi all,
I got a doubt about
Beauford wrote:
...
function searchdir ( $page , $maxdepth = -1 , $mode =
FILES , $d = 0 ) {
if ( substr ( $page , strlen ( $page ) - 1 ) != '\\' ) {
$page .=
'\\' ;}
this if statement will run given the value of $page, it's not
needed AFAIKT.
then again I can't see it
Larry Garfield wrote:
On Sunday 07 January 2007 8:26 pm, Jochem Maas wrote:
...
with regard to wanting results returned in a 'named' fashion, does the new
setup still not allow use of odbc_fetch_array() instead of
odbc_fetch_row()? not that I see any logic in that solving the issue, again
Vincent DUPONT wrote:
hello,
if I can still contribute to this topic, I suggest you never use simlinks.
We experienced very bad maintenance problems at a customer : when copying new
files through FTP, the simlinks were often erased or overwriten.
And this occured on every upgrade of the
Hi there,
I do have a text value inside a variable: exif[FNumber] = 56/10 which I
would like to save as a float value: 5,6 into a database.
How can I compute this 56/10? I tried things like calculate() or math()
but did not find the propper function to do this.
Can anybody help, please?
Merlin wrote:
Hi there,
I do have a text value inside a variable: exif[FNumber] = 56/10 which I
would like to save as a float value: 5,6 into a database.
How can I compute this 56/10? I tried things like calculate() or math()
but did not find the propper function to do this.
Can
You could use exec() but that's not good practice due to the security
implications.
I'd extract the two numbers using explode() on the / and then just use the
division operator.
Edward
-Original Message-
From: Merlin [mailto:[EMAIL PROTECTED]
Sent: 08 January 2007 10:22
To:
Dick Jiang wrote:
I think you'd better use regular expression to replace the word
agreed - only it a serious dive in the deep end of regexps - the OP may
have to use a negative lookahead assertion, something like:
$string=avenue 1, ave 1 both have av+e :-);
$words =
Jochem Maas schrieb:
Merlin wrote:
Hi there,
I do have a text value inside a variable: exif[FNumber] = 56/10 which I
would like to save as a float value: 5,6 into a database.
How can I compute this 56/10? I tried things like calculate() or math()
but did not find the propper function to do
Merlin schrieb:
Jochem Maas schrieb:
Merlin wrote:
Hi there,
I do have a text value inside a variable: exif[FNumber] = 56/10 which I
would like to save as a float value: 5,6 into a database.
How can I compute this 56/10? I tried things like calculate() or math()
but did not find the propper
# [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100:
Dick Jiang wrote:
I think you'd better use regular expression to replace the word
agreed - only it a serious dive in the deep end of regexps - the OP may
have to use a negative lookahead assertion, something like:
$string=avenue 1, ave 1
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100:
Dick Jiang wrote:
I think you'd better use regular expression to replace the word
agreed - only it a serious dive in the deep end of regexps - the OP may
have to use a negative lookahead assertion, something like:
Hi,
To send email confirmation (after registration or to administrator after
Contact us form is submitted) I use the standard way:
function send_confirmation($to, $subject, $message)
{
$header = Content-type: text/plain; charset=iso-8859-1\n;
$header .= From: Vernon Company [EMAIL
[EMAIL PROTECTED] wrote:
Hi,
To send email confirmation (after registration or to administrator after
Contact us form is submitted) I use the standard way:
function send_confirmation($to, $subject, $message)
{
$header = Content-type: text/plain; charset=iso-8859-1\n;
$header .=
[EMAIL PROTECTED] wrote:
Hi,
To send email confirmation (after registration or to administrator after
Contact us form is submitted) I use the standard way:
function send_confirmation($to, $subject, $message)
{
$header = Content-type: text/plain; charset=iso-8859-1\n;
$header .=
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi,
...
Was looking on phpclasses.net for the class but there are tons of them.
Can somebody recomend any class? Something simple.
phpmailer.sourceforge.net
I think this is it.
:)
not to sound like an ass (there's at least 3 people out
Hi,
I'm searching for an efficient way to use unpack on binary data within a
variable (php 5.1.something). In the past I was doing
fopen
fseek
unpack( fread(...)
fseek
etc.
Now this time I need to do the same, but I don't have an actual file: my
data is only in a variable and I don't want to
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi,
...
Was looking on phpclasses.net for the class but there are tons of
them.
Can somebody recomend any class? Something simple.
phpmailer.sourceforge.net
I think this is it.
:)
not to sound like an ass (there's at least 3 people
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi,
...
...
Jochem,
I'm reading most of the posted questions/answers on the mailing list
because of exact reason you mentioned. You're right. But, don't remember
any that can help me with this issue. Though,
On Mon, 2007-01-08 at 16:20 +0100, Markus Fischer wrote:
Hi,
I'm searching for an efficient way to use unpack on binary data within a
variable (php 5.1.something). In the past I was doing
fopen
fseek
unpack( fread(...)
fseek
etc.
Now this time I need to do the same, but I don't have
On Monday 08 January 2007 16:56, Jochem Maas wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi,
...
Was looking on phpclasses.net for the class but there are tons of them.
Can somebody recomend any class? Something simple.
phpmailer.sourceforge.net
I think this is it.
Sancar Saran wrote:
On Monday 08 January 2007 16:56, Jochem Maas wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi,
...
Was looking on phpclasses.net for the class but there are tons of them.
Can somebody recomend any class? Something simple.
phpmailer.sourceforge.net
I think
Hi.
I am new to uising html forms with php and I am having a problem with
database contents not being updated although it seems my coding is
correct.
It's a xhtml formatted site with html forms:
Here are my functions:
?
function login($uid, $pwd)
{
$pass = md5($pwd);
$pasw =
The function page IS included on every page so that wouldn't be what
is causing the errors.
On 1/8/07, Wikus Moller [EMAIL PROTECTED] wrote:
Hi.
I am new to uising html forms with php and I am having a problem with
database contents not being updated although it seems my coding is
correct.
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that infinite recursion within PHP is a bug.
Shouldn't the interpreter catch this sort of thing before it
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that infinite recursion within PHP is a bug.
Shouldn't the interpreter catch this
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that infinite recursion within PHP is a bug.
Shouldn't the interpreter catch this sort of
Wikus Moller wrote:
Hi.
I am new to uising html forms with php and I am having a problem with
database contents not being updated although it seems my coding is
correct.
Is it getting into the function? What is the exact database query that
is being run? Does that return an error when you
On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote:
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that infinite recursion
On Tue, 2007-01-09 at 10:01 +1100, Chris wrote:
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that infinite recursion within
Robert Cummings wrote:
On Tue, 2007-01-09 at 10:01 +1100, Chris wrote:
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that infinite
Robert Cummings wrote:
On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote:
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as such doesn't give much insight.
It would seem to me that
New to php.
I took over a web site where everything is written in javascript and
renders on the browser level. One of the pages is a weekly announcements
page that takes an hour to update by hand, copying in the text, then
escaping all the 's etc., then adding the br tags for carriage
On Tue, 2007-01-09 at 01:11 +0100, Jochem Maas wrote:
Robert Cummings wrote:
On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote:
Bill Moran wrote:
With reference to:
http://bugs.php.net/bug.php?id=40067
I'm confused as to why this was marked bogus, and the message that
marked as
Jade Tippett wrote:
New to php.
I took over a web site where everything is written in javascript and
renders on the browser level. One of the pages is a weekly announcements
page that takes an hour to update by hand, copying in the text, then
escaping all the 's etc., then adding the
Hi List
I am working owards completing a rather urgent project for one of our clients.
There is a requirement to send a request to a server and I now have that working
using cURL, thanks to help from this list. I now have the responses coming back
as an XML response. What I need to do is to parse
On 1/8/07, Ville Mattila [EMAIL PROTECTED] wrote:
Matt Arnilo S. Baluyos (Mailing Lists) kirjoitti:
What's the easiest way to go about this? Specifically, what's the
easiest way to read a file from the server and send it as an email
attachment.
I would suggest you to use
===ORIGINAL===
Hi List
I am working owards completing a rather urgent project for one of our
clients.
There is a requirement to send a request to a server and I now have that
working
using cURL, thanks to help from this list. I now have the responses coming
back
as an XML response. What I need
47 matches
Mail list logo