on Page One
a
b
On Page Two:
$to = $row['email_address'];
$body = stripslashes(trim($_POST['email_body']));
mail($to, $subject, $body, $headers);
What I really don't understand is why there are any line breaks at all,
because the trim is sup
Bambero wrote:
Hi
I need to split a string by the: , (comma) separator, but when the comma
is beetwen ""
it should be skipped.
Ex:
test ts sasa, assas "sasa,asaas" dasdas, da
=> test ts sasa
=> assas "sasa,asaas" dasdas
=> da
If this is a CSV file, you can try fgetcsv.
From http://www.php.net/fg
Right now I am genereating the file offline and using a hyperlink, but that
creates double the disk I/O. It reads some files (which the big file is
based on), writes the big file, and reads the big file (to deliver it when
the user clicks the hyperlink). If I could just create the file and deliver
On Sun, Mar 07, 2004 at 09:51:28AM +0600, Raditha Dissanayake wrote:
> It's an often overlooked fact that you can pass additional headers in
> the fourth parameter. I do belive you should use \n and not \r\n
> then your code will look like
>
> mail("[EMAIL PROTECTED]", "object", $message,
>
\r\n is good :)
J
Raditha Dissanayake <[EMAIL PROTECTED]> wrote:
>
> It's an often overlooked fact that you can pass additional headers in
> the fourth parameter. I do belive you should use \n and not \r\n
> then your code will look like
>
> mail("[EMAIL PROTECTED]", "object", $message,
>
It's an often overlooked fact that you can pass additional headers in
the fourth parameter. I do belive you should use \n and not \r\n
then your code will look like
mail("[EMAIL PROTECTED]", "object", $message,
"From: [EMAIL PROTECTED] ".
"Reply-To:[EMAIL PROTECTED]".
"Ret
New Session wrote:
Sir,
I am a web developer, I had made many sites like shooping cart, mangement
leads etc.
Perhaps you can design me an application that will eliminate stupid email?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
I think this is largely a matter of personal opinion. However even
though you have taken every precaution against illegal content there is
always a chance of someone getting throughwtih the
domain.org/?page=pageName approach. So perhaps it's a little bit more risky.
Barýþ Mert wrote:
A gen
Hi Juan,
What you can do is to switch off output buffering. If it is a really
large file you might want to generate the file offline and deliver it
using the more conventional hyperlink.
all the best
Juan E Suris wrote:
Hi!
I have a problem with PHP and Apache, where Apache uses up a huge am
Hi my mail was intended as a joke :-) to defuse the tension that was
building up.
Ryan A wrote:
On 3/6/2004 5:36:01 PM, Raditha Dissanayake ([EMAIL PROTECTED]) wrote:
And for the record, I didnt "single you out" the post was just
irritating...the rest of you
who dont agree..thats your opinion
This is sooo low down I think he has to look up to see the snakes belly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sir,
I am a web developer, I had made many sites like shooping cart, mangement
leads etc.
Iam comfortable in PHP as well as in ASP & iam ready to make sites in just
$500.Sites made by me are running successfully and doing great job .I can
make site having following facilities.
Admin Panel:
Nic
php-general Digest 7 Mar 2004 02:14:35 - Issue 2631
Topics (messages 179647 through 179675):
Re: How to write this correctly?
179647 by: Brian V Bonini
179658 by: joel boonstra
179665 by: Brian V Bonini
179675 by: Tom Rogers
Re: UK Bank Holidays 2
179
Hi,
Saturday, March 6, 2004, 11:50:04 PM, you wrote:
L> // or example I have some link:
L> About people
L> // so this function will output the content of people.txt file:
L> if ($action=="people"){
L> function output() {
L> $file = file("data/people.txt");
L> foreach($file as $value ) {
Hi
I need to split a string by the: , (comma) separator, but when the comma
is beetwen ""
it should be skipped.
Ex:
test ts sasa, assas "sasa,asaas" dasdas, da
=> test ts sasa
=> assas "sasa,asaas" dasdas
=> da
Thx
Bambero
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
First, some ranting about safe_mode.
Results from ini_get with safe_mode=On
[memory_limit] => Array
(
[global_value] => 8M
[local_value] => 8M
[access] => 7
)
And the manual says:
PHP_INI_ALL - 7 - Entry can be set anywhere
So I figure I have access to change memory_limit?
But when
Interesting topic,
However I don't necessarily agree that newbie's wont get their question
answered.
There are a lot of helpfully people out there, a lot of them are
advanced in their programing but find the satisfaction of helping, or
mentoring someone into advanced programming who is less ad
Sounds like you want to have more of a discussion list rather than help
list.. which is not a bad idea, regardless of expertise.
Jason
Galen <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> You do make some excellent points. Maybe an advanced list isn't the
> greatest idea. But at least listen to
Hello All,
You do make some excellent points. Maybe an advanced list isn't the
greatest idea. But at least listen to what I had envisioned:
My goal was to provide an area that fosters stretching PHP. Big
projects, unusual projects, weird hacks... all kinds of advanced stuff.
I have thought tha
Enrico Comini wrote:
I have to send a email to a server where is very important the
"Return-Path" to match the identity.
If I use mail("[EMAIL PROTECTED]", "object", $message,"From:
[EMAIL PROTECTED]".
"Reply-To:[EMAIL PROTECTED]"
."Return-Path: [EMAIL PROTECTED]);
I see in the received message th
check your logs sendmail mangles the headers, in particular
return-path.. this is a horrible thing, i had a hell of a time with
almost the same problem.. investigate sendmail.
Jason
"Enrico Comini" <[EMAIL PROTECTED]> wrote:
>
>
>
> I have to send a email to a server where is very import
I have to send a email to a server where is very important the
"Return-Path" to match the identity.
If I use mail("[EMAIL PROTECTED]", "object", $message,"From:
[EMAIL PROTECTED]".
"Reply-To:[EMAIL PROTECTED]"
."Return-Path: [EMAIL PROTECTED]);
I see in the received message that return-path Is
On Sat, 2004-03-06 at 12:19, Junaid Saeed Uppal wrote:
> Hello There,
>
> I am on a shared account server ( virtual hosting ) given by my provider. I
> want to change my charset that php uses to utf-8 but the default setting is
> some other charset. Can I put some local directives in the directory
On Sat, 2004-03-06 at 16:17, joel boonstra wrote:
> Hrm... why the switch() statement?
Ir seemed close to what he already had going.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A general thing to do while coding a site is to
include header.php at the top of the file (and
footer.php at the end of file). Another method is to
put these header and footer files together in
index.php and including the desired page between them.
We get the desired page from the query string:
dom
> Ryan, I want to officially apologize since it appears that I started
> this mess. To me, it just appeared that you were flaming someone, and
> while perhaps for good cause (since he posted two threads to the list
> about the same topic only a matter of a few hours apart), I just felt it
> was un
Ryan A wrote:
Wowee..Now isnt this a nice response with people taking sides and
everything. :-)
Ryan, I want to officially apologize since it appears that I started
this mess. To me, it just appeared that you were flaming someone, and
while perhaps for good cause (since he posted two threads to
Could you post the code you're using to write your $_POST variable to
the e-mail message? I seem to remember coming across a problem like
this in the past, and I'd like to see your code to see if it jogs my memory.
Thanks.
BTW, it shouldn't have anything to do with the fact that you're enterin
I am entering some text into a webpage, then using $_POST on the next
page to recieve it. It then should email the $_POST to an email
address. The problem that I am encountering is that I am getting an
extra line break on every line.
If I enter
a
b
into the textarea (which is the variable th
On Mar 6, 2004, "Rick Fleischer" claimed that:
|The simple example from http://www.php.net/pdf (hard-wired to paper.pdf)
|just displayed the pdf data as a dump. I can ftp the file and it's OK. My
|hard-wired version is shown below.
|
|
|
|// Thanks,
|// Rick
IF you're using IE, this might help
On Sat, Mar 06, 2004 at 09:34:26AM -0500, Brian V Bonini wrote:
> > What to do?
>
> function output($data_file)
> {
> $file = file("data/$data_file.txt");
>
> foreach($file as $value ) {
> $output .= "$value";
> }
>
> return $output;
> }
>
>
> switch($action
I definately agree with Rasmus, seperation will only cuase migration to
the advanced list anyways, you need 'advanced' users helping the
'less-advanced' users. This is the purpose of the list.
Jason
Rasmus Lerdorf <[EMAIL PROTECTED]> wrote:
>
> On Fri, 5 Mar 2004, Galen wrote:
>
> > From my
Hey,
I have seen quite a few of these on Hotscripts and other script archive
sites..
they are mostly listed under auctions and classifieds.
Check out hotscripts and after that google if you dont find what you are
looking for.
Cheers,
-Ryan
On 3/6/2004 6:03:20 PM, Denis L. Menezes ([EMAIL PROTECT
On 3/6/2004 5:36:01 PM, Raditha Dissanayake ([EMAIL PROTECTED]) wrote:
> >And for the record, I didnt "single you out" the post was just
> >irritating...the rest of you
> >who dont agree..thats your opinion..and the rest of you who got pissed
> at
> >me...bite me.
> >
> >Cheers,
> >-Ryan
> >
> >
>
Hello There,
I am on a shared account server ( virtual hosting ) given by my provider. I
want to change my charset that php uses to utf-8 but the default setting is
some other charset. Can I put some local directives in the directory of my
proggie to force php to use charset( UTF-8 ) instead of th
Dear All,
How to control php ( programms on Linux System ) convert the charset of
unicode from MS-SQL 2000 ?
Very thank for your help !
Edward.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
I have a problem with PHP and Apache, where Apache uses up a huge amount of memory.
What happens is that I have a PHP script that creates a file on the fly and sends it
directly to the broswer (as an attachment, so that the user can save it). The problem
is that when the file is big and the
Hello friends.
I am in a hurry to make a website where suppliers can advertise their
products and services and customers can place their requirements so the
requirements can be matched with the service providers.
Also vistors should be able to seek suppliers and customers.
Can anyone tell me wher
And for the record, I didnt "single you out" the post was just
irritating...the rest of you
who dont agree..thats your opinion..and the rest of you who got pissed at
me...bite me.
Cheers,
-Ryan
What come all the way from Sri Lanka to Sweden just to bite you? Good
thing the authors of PHP didn'
> This has come up many times before and I really don't think it will work.
> Splitting advanced users from beginners means that there will be nobody to
> answer the beginner questions which means they will get posted to the
> advanced list where the people with the answers are. It is a
> self-def
Wowee..Now isnt this a nice response with people taking sides and
everything. :-)
Shaun,
> Ryan, I may be getting out of my league here, but if the makers of PHP
> didn't care about us here in the UK then why was this function created:
> gmmktime();
I didnt say they didnt care about you in the UK
On Sat, 2004-03-06 at 08:50, Labunski wrote:
> // or example I have some link:
>
> About people
>
> // so this function will output the content of people.txt file:
>
> if ($action=="people"){
> function output() {
> $file = file("data/people.txt");
> foreach($file as $value ) {
>
php-general Digest 6 Mar 2004 14:08:01 - Issue 2630
Topics (messages 179621 through 179646):
Re: UK Bank Holidays 2
179621 by: Tom Rogers
179625 by: Ben Ramsey
179627 by: Ryan A
179631 by: Shaun
179633 by: Jason Wong
179634 by: Shaun
17
On Sat, 2004-03-06 at 01:57, Galen wrote:
> Who runs the php official mailing lists? Can we ask them to start a
> php-advanced list? Give it a description like "Ready to take you coding
> to the next level? Got questions about high-level PHP code? This is the
> list for you." Redirect people ask
// or example I have some link:
About people
// so this function will output the content of people.txt file:
if ($action=="people"){
function output() {
$file = file("data/people.txt");
foreach($file as $value ) {
$output .= "$value";
}
return $output;
}
$content = ou
On Fri, 2004-03-05 at 06:55, Amimu Austin wrote:
> Hi
>
> I am a newbie in PHP and MySQL. I have developed a web databse using PHP and
> MySQL. However , I need more info on these product. Any sites you can
> recommend.
php.net
mysql.com
--
Brian V Bonini <[EMAIL PROTECTED]>
--
PHP General Mai
> Do yourself a favour, study the example in the manual, get it working,
> understand how it works,
Lighten up Francis, it was 10pm at night after a 14 hour day and 62 hour
week.
I appreciate the help but can do without the cynicism.
--
Brian V Bonini <[EMAIL PROTECTED]>
--
PHP General Ma
Hi,
The most likely reason that one guy can't upload when everyone else can
is because he is behind a proxy that limits the size of post data.
Kenn Murrah wrote:
Greetings.
I have an odd (to me) problem ... from most computers, the upload
code (shown, in part, below) works just fine bu
Dominique ANOKRE wrote:
on line 66 there is :
$date=$_POST["date"];
Thanks
$_POST['date'] isn't set.
if ( isset ( $_POST['date'] ) ) {
$date = $_POST['date'];
}
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
The simple example from http://www.php.net/pdf (hard-wired to paper.pdf)
just displayed the pdf data as a dump. I can ftp the file and it's OK. My
hard-wired version is shown below.
// Thanks,
// Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
on line 66 there is :
$date=$_POST["date"];
Thanks
- Original Message -
From: "Chris W. Parker" <[EMAIL PROTECTED]>
To: "Dominique ANOKRE" <[EMAIL PROTECTED]>; "Php List"
<[EMAIL PROTECTED]>
Sent: Friday, March 05, 2004 8:20 PM
Subject: RE: [PHP] undefined index please help
Hi
I am a newbie in PHP and MySQL. I have developed a web databse using PHP and
MySQL. However , I need more info on these product. Any sites you can
recommend.
Amimu
CAFCA Limited
Zimbabwe
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to b
8:45 pm EST, no content is showing in the middle ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 06 March 2004 17:10, electroteque wrote:
NB Your mail client is severely broken in the quoting department.
> > Which is? In most cases reposting at such a short time interval will only
> > annoy a lot people.
>
> I think it was 4 hours apart, one at 7am another at 11am but still ..
>
> I know reposting like this is wrong but I was just trying to make a point.
Which is? In most cases reposting at such a short time interval will only
annoy a lot people.
I think it was 4 hours apart, one at 7am another at 11am but still .. google first,
ask list after.
--
PHP General Mailin
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Saturday 06 March 2004 16:17, Shaun wrote:
>
> [snip]
>
> > Ryan, I may be getting out of my league here, but if the makers of PHP
> > didn't care about us here in the UK then why was this function created:
> > gmmktime(
On Saturday 06 March 2004 16:17, Shaun wrote:
[snip]
> Ryan, I may be getting out of my league here, but if the makers of PHP
> didn't care about us here in the UK then why was this function created:
> gmmktime();
What has *that* got to do with UK users? The fact is that for historical
reasons
This has come up many times before and I really don't think it will work.
Splitting advanced users from beginners means that there will be nobody to
answer the beginner questions which means they will get posted to the
advanced list where the people with the answers are. It is a
self-defeating se
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Ryan: Well, that's
> > not a very nice way to treat someone on the list,
> > even if it was the second time
> > you'd seen the question in the same day
> > or even if it was a question that is obviously in the manual. Some
59 matches
Mail list logo