I am not sure of the correct syntax for attaching a PDF file to an email
message using mail(). Any help is greatly appreciated since the
documents are confusing for me.
Todd
--
Dr. Todd Cary
Ariste Software
707-773-4523
[EMAIL PROTECTED]
"It is a worthy thing to fight for one's freedom;
it is
Frank wrote:
> How know a PHP group that is in spanish?.
>
> Thanks beforehand...
> Frank.-
http://www.phpes.com/
Saludos
Àngel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
please try the following and let us know what the results are.
- Original Message -
From: "Ceyhun Güler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:41 AM
Subject: Re: [PHP] parse error? how can I print spesific message for all
error mesage
> $dir
That means that it isn't getting passed off to the PHP executable or dll.
Instead, it is getting sent to the client as plain text..
Go to the "Home Directory" tab in the IIS admin. From there, click on
"Configuration". Add an Application Mapping for .php. Restart IIS, and you
should be good.
Jo
If you want to use HTML tags in your email you can add to
$mailheaders .= "Content-type: text/html\n";
-Kevin
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] using ahref tag in $msg variable
O
I am trying to replace a perl script with the following PHP code. The perl code
acted like a redirector, sending you to a different script depending on the
value of the submit button. The following replacement code written in PHP works
quite well until the postString exceeds some unknown size (Thi
In the HTML for embedding the Flash Movie, do something like this:
http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0" id=projector WIDTH=100% HEIGHT=200%>
http://www.blabla.com/mailTarget.php?target=6";); ?>"> http://www.blabla.com/mailTarget.php?target=6";); ?>" quality=hig
Hi Hugh,
Thank you so much for the code: it's exactly what I was looking for. Sorry
about the delay in replying: we had a major power outage: went out Saturday
at 8 p.m. and we finally got it back Monday at 3:15p.m. (with multiple
on/offs!). The phone went dead as well. Great fun!
Anyway, I'
Hi,
When I try to run this, I get an error saying "invalid file permissions"
and will not run. However, I then run it using php -q bank.php and this
works fine.
Unfortunately, there is a parse error on line 68 (apparantly) which I
cannot figure out.
Can anyone help me here?
Thanks in advance,
An odd request.. I want to have optional function arguments
that *aren't* defined unless values are explicitly passed. Sorta
the equivalent of
function foo($arg1_required, $arg2_optional=undef)
if (isset($arg2_optional)) {
print "explicit";
}
else {
print "not passed
First: change -
if(file_exists($info[5]){
to -
if(file_exists($info[5])){
Second: ensure the file permissions are set to rwxrwxr-x for bank.php
-Original Message-
From: David [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Unknown Err
function foo($arg1_required, $arg2_optional="")
if ($arg2_optional=="") {
print "not passed";
}
else {
print "explicit";
}
}
-Original Message-
From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:17 PM
To: [EMAIL PROTECTED
Hello,
I have a quick question, as I recompile my PHP installation up to 4.1.2:
Is the --with-xml option to ./configure a standard these days? I seem
to remember that in my initial PHP 4.0.6 installation I used this
parameter, but I just did
[root@localhost] # ./configure --help | grep 'xml'
Rick Emery wrote:
>
> function foo($arg1_required, $arg2_optional="")
> if ($arg2_optional=="") {
> print "not passed";
> }
> else {
> print "explicit";
> }
> }
No, I said 'undef' because I mean 'undefined'. The argument
can have *any* value; I need to know when
Thanks! I think I've been working too hard :)
David.
Rick Emery wrote:
>
> First: change -
> if(file_exists($info[5]){
> to -
> if(file_exists($info[5])){
>
> Second: ensure the file permissions are set to rwxrwxr-x for bank.php
>
> -Original Message-
> From: David [mailto:[EMAIL PRO
Hi,
I have a question. I am working on a submit form that will
ask you for confirmation of info. I.e. I need to move values
submitted via form through 2 different pages. One of the ways
to do it is via session_start(). Another way to do is it via
storing variables in a QUERY_STRING and that's my
http://www.php.net/manual/en/function.func-num-args.php will return the
number of arguments passed to the function.
Kirk
> -Original Message-
> From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] 'und
Hello
Pablo Sánchez.
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi. Sorry to bother you.
I want to return my PHP script to a shell, and I have line breaks in
it. However, the shell doesn't like newlines as far as I can tell (it
puts it all one line). In my program, the line is split by \n. Can
anyone help me with this issue?
Thanks
David.
David wrote:
>
"Johnson, Kirk" wrote:
>
> http://www.php.net/manual/en/function.func-num-args.php will
> return the number of arguments passed to the function.
Bingo! That will do the trick.. Thanks *very* much!
--
#kenP-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, op
On Mon, 11 Mar 2002, Vlad Kulchitski wrote:
> The question is how reliable the session is? In other words
> I understand session works based on cookies right? So if the client
> browser has cookies disabled the session is not going to work
> right?
Not per se, cookies is one way of using sess
On Mon, 2002-03-11 at 13:14, Erik Price wrote:
> Hello,
>
> I have a quick question, as I recompile my PHP installation up to 4.1.2:
>
> Is the --with-xml option to ./configure a standard these days? I seem
> to remember that in my initial PHP 4.0.6 installation I used this
> parameter, but I
Hey People:
I made a form validator script, it redirects you back
to the page you were
before if you have an error. To do this iam putting a
hidden entry that is
$REQUEST_URI . So if the script needs to redirect you
back itll do this:
header("Location:
?$reference&message=another_message");
I have a PHP script which echos several lines, with \n newlines.
I want to return this to the Shell Script, with
return=$( bank.php )
and print $return out. However, it doesn't know how to print new
lines. Does anyone know how to do this?
Thanks in advance
--
PHP General Mailing List (ht
Hey again list,
Anybody know what the diffrance in using "%20" and "+"
as a space in the query string is?
Josepablo Pérez
_
Do You Yahoo!?
La emoción e intensidad del deporte en Yahoo! Deportes. http://deportes.yahoo.com.mx
--
PHP Genera
I guess they are almost same.
But, the contents of $QUERY_STRING are different.
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I just finished doing my re-install of PHP, updated to 4.1.2. Or so I
thought... everything went smoothly, I got all the right success
messages during the ./configure and make processes, and thought I was
ready to go -- but as I confidently started up Apache, I was greeted
with this message:
Ok, I have tried this but no luck...I have included the page I have been
working on. I have it list everything now but last name.
# This what I want to change so that I can do it by letter #
$result =mysql_query("SELECT * FROM emply_info ORDER BY Lname, Fname
DESC",$db);
I have tried everything
What do you mean " it doesn't like the "LIKE"
Please provide the query statement you used and the response from the
application
-Original Message-
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:22 PM
To: liljim
Cc: PHP General
Subject: Re: [PHP] Re: A s
$result =mysql_query("SELECT * FROM emply_info WHERE Lname ORDER BY Lname,
Fname
DESC LIKE'%$letter'",$db);
$letter="a"
That's what I tried.
Chuck
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 5:25 PM
To: 'Chuck "PUP" Payne'; liljim
Cc: PHP
OK, here its goes. I learned of this neat little app "phpMyadmin" added a
password to root and now I get no access.
checked the my.ini and php.ini for possible problems there. they are set
with passwords to the root. both .ini's
What am I missing here...should I juyst remove the password from
To help you diagnose the problem, I suggest:
$query = "SELECT * FROM emply_info WHERE Lname ORDER BY Lname, Fname DESC
LIKE'%$letter'";
print "$query\n";
$result =mysql_query("$query) or die("error: ".mysql_error());
This will tell you:
(1) whether your query is what you expected
(2) what mysql
I just noticed your WHERE clause is incomplete.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:33 PM
To: 'Chuck "PUP" Payne'
Cc: PHP General
Subject: RE: [PHP] Re: A stupid question...
To help you diagnose the problem, I suggest:
$query =
You're using the wildcard in the wrong place.
Should be
"like '$letter%'";
Or,
"left(column, 1) = '$letter'";
use a die() and mysql_error() to report problems to the browser:
$result =mysql_query("SELECT * FROM emply_info WHERE LEFT(Lname, 1) =
'$letter' ORDER BY Lname, Fname DESC",$db)
Try it like this
$letter="a"
$result =mysql_query("SELECT * FROM emply_info WHERE Lname LIKE'$letter%'
ORDER BY Lname, Fname DESC",$db);
Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]
-Original Message-
From: Chuck
Hi,
I need to store monetary (UK) information in a text file. However, it
is possible to either not put in the pence details, or to add more than
one decimal point or >3 numbers after the decimal point.
Does PHP have a function which takes a number and puts it into a
locale-formatted number (in
On Monday, March 11, 2002, at 05:21 PM, Erik Price wrote:
> I just finished doing my re-install of PHP, updated to 4.1.2. Or so I
> thought... everything went smoothly, I got all the right success
> messages during the ./configure and make processes, and thought I was
> ready to go -- but a
This does indeed help tremendously.
My problem is that while I do use Linux at home for all my PHP development,
I have to use Windows at work :(
I've already stretched the friendship by coercing them to use PHP instead of
CF/ASP.
I was thinking of looking at XMLRPC but I wanted to run with SOAP
David wrote:
>
> Hi,
>
> I need to store monetary (UK) information in a text file. However, it
> is possible to either not put in the pence details, or to add more than
> one decimal point or >3 numbers after the decimal point.
>
> Does PHP have a function which takes a number and puts it into
Hi All
I am having a problem with two pieces of software written in PHP
interfering with each
other's sessions.
That software is Squirrelmail, and another piece of software I have written
(a web-based
administration site for schools). I think part of the problem might lie in
the cookies that
are
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi,
>
> Does anyone know of a PHP based search engine for a website? I was using
> Fluid Dynamics on my site - as I've got some sections of the site in a
> MySQL database, and some sections are just static pages. However, it seems
In article <025e01c1c8eb$21fbe2b0$[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> Hy,
> In the page seriefr.php there is the code in a SWITCH loop.The problem is that when
>we use the link nothings happen. The value of the variable val don't change. if
>someone know why can you explain it to me
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> When I call the following script, $qry_1 doesn't work (No Query # 1!).
>
> set_time_limit(300);
> $connection=mysql_connect("localhost","wagner","???") or die ("No
> connection!");
> $db=mysql_select_db("sbwresearch",$connection) or d
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I have a mysql query that I need to echo a variable from "once" before I go
> into the while loop which would list the entire contents of the array. The
> field shown once will not be displayed in the while looped contents. So
> theoreti
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi,
> I wrote a few days ago and have heard nothing - can ANYONE help with this:
>
>
> I've got a script that is installed on a Solaris machine that is having
> difficulties, and I'm wondering if anyone can help. The script is trying
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Okay - here's one for you. Probably something really small and stoopid which I'm
>fergeting, but I don't mind a little egg on my face as long as I can figure out the
>problem.
>
> Since you may or may not be down, I've included plenty
Can't you just rename the cookie something else for your piece of software?
They wont write over each other if they have different names...
Rick
You will never be happy if you continue to search for what happiness
consists of. You will never live if you are looking for the meaning of life.
- Alb
Hi to all,
I have here a problem regarding auto redirecting a Frame supported page upon
session timeout. I'm redirecting the page upon session timeout to
header("Location:index.php?expire=0"); . But i want that to redirect with a
specified target tags with TARGET=_top to exit in the FRAME page. A
Sounds good, but I'm not actually setting the cookie, PHP session code does
the setting
of the cookie.
---
Adam Whitehead
Systems Developer - CSM Limited
Ph. (08) 8936 3165 ** Mobile (0411) 241 120
E-mail: [EMAIL PROTECTED]
Well then rename the session cookieid.. By using session_name() this way it
doesn¹t use the default name specified by your php.ini file.
Cheers!
Rick
"Do all the good you can, By all the means you can, In all the ways you can,
In all the places you can, At all the times you can, To all the peop
On Tue, Mar 12, 2002 at 08:08:25AM +0800, Michael P. Carel wrote:
>
> I have here a problem regarding auto redirecting a Frame supported page upon
> session timeout. I'm redirecting the page upon session timeout to
> header("Location:index.php?expire=0"); . But i want that to redirect with a
> sp
Thanks. Worked wonders. I was a bit wary of using session_name() earlier
because the
documentation on that function is pretty awful.
---
Adam Whitehead
Systems Developer - CSM Limited
Ph. (08) 8936 3165 ** Mobile (0411) 241 120
E-mail: [EMAIL PROTECTED]
At 05:58 PM 3/11/2002 -0500, Erik Price wrote:
>Ho! I have just RTFG'd, which I wish I had done before posting. Looks
>like I have omitted the --with-zlib parameter in the ./configure of
>PHP. I had it last time b/c I was following a tutorial, and omitted it
>this time since I didn't think I
You mean this
header('Window-target: _top');
header("Location:index.php?expire=0");
> On Tue, Mar 12, 2002 at 08:08:25AM +0800, Michael P. Carel wrote:
> >
> > I have here a problem regarding auto redirecting a Frame supported page
upon
> > session timeout. I'm redirecting the page upon session
function foo( $arg1, $arg2 = null )
{
.. as before ..
}
--
Alan McFarlane
Rodent Of Unusual Size <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> An odd request.. I want to have optional function arguments
> that *aren't* defined unless values are explicit
Hello,
Background info:
I'm running
o PHP 4.1.1 on a linux server kernel(2.2.16).
o Using Netscape Communicator 4.75
o Compiled and installed the gd(1.8.4) library
Problem(2 problems):
1.- The following code won't display an image(I get an ic
Oh, so that's how you deal with indexed variables inside of double quotes...
I can't believe that has eluded me for so long...
---
From: Jason Wong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Mon, 11 Mar 2002 12:09:
On Mon, 11 Mar 2002, Daniel Negron/KBE wrote:
>OK, here its goes. I learned of this neat little app "phpMyadmin" added a
>password to root and now I get no access.
>checked the my.ini and php.ini for possible problems there. they are set
>with passwords to the root. both .ini's
>
>What am I m
Warning: Unable to load dynamic library
'/usr/local/lib/php/DL/libpdf_php.so' - File not found in
/home/xxx/page.php on line 6
Fatal error: Call to undefined function: pdf_new() in
/home/xxx/page.php on line 11
[xxx@x php-4.1.0]$ ls -Al /usr/local/lib/php/DL/libpdf_php.so
lr
According to the PHP 4 docs all variables are global unless within a
function. I've got the following test code which should output 2, but
outputs 1. The while loop creates it's own class object (which seems strange
since it isn't explicitly instantiated by my code; I would think it would
cause er
On Mon, 2002-03-11 at 18:51, Randall Perry wrote:
> According to the PHP 4 docs all variables are global unless within a
> function. I've got the following test code which should output 2, but
> outputs 1. The while loop creates it's own class object (which seems strange
> since it isn't explicitl
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> I have a PHP script which echos several lines, with \n newlines.
>
> I want to return this to the Shell Script, with
>
> return=$( bank.php )
>
> and print $return out. However, it doesn't know how to print new
> lines. Does anyon
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> OK, here its goes. I learned of this neat little app "phpMyadmin" add=
> ed a
> password to root and now I get no access.
> checked the my.ini and php.ini for possible problems there. they are s=
> et
> with passwords to the root. bo
Hi list,
I have my data distribuited across 3 tables, that I'm using left join to
retrieve data from them. Now I need to make a search system in this tables
and I like, if possible, that someone can send me tips in how is the best
way to concatenate the query string in order to do the search. The
>OUTPUT from phpinfo()
>---
>GD Supportenabled
>GD Version1.6.2 or higher
>WBMP Support enabled
but does it say
GD Support enabled
GD Version 1.6.2 or higher
. . .
PNG Support enabled
. . .
?
If the line with "PNG Support enabled" is not th
On Tuesday 12 March 2002 11:11, Analysis & Solutions wrote:
> On Mon, Mar 11, 2002 at 08:39:16PM -0500, webapprentice wrote:
> > From: Jason Wong <[EMAIL PROTECTED]>
> >
> > On Monday 11 March 2002 11:10, Chris Cocuzzo wrote:
> > > $foo = "Entry for " . $HTTP_POST_VARS["name"];
> >
> > $foo = "Ent
I may be wrong, but that's exactly what I ended up having to do... but
don't quote me - I'm just learning OOP
http://www.apokalyptik.com/forum/viewtopic.php?topic=140&forum=6&0
-Original Message-
From: Randall Perry [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 6:52 PM
To: [EM
Hi,
Can anyone help with file upload?
I am uploading file through the form
And on the page where I get the variables from
the form I say:
if(!userfile)
echo "ERROR";
$filelocation="/tmp";
copy($userfile, $filelocation)
The message I get in my browser is:
Warning: Unable to open 'C:\\Do
> if(!userfile)
>echo "ERROR";
>
> $filelocation="/tmp";
Does C:\tmp exist?
>
> copy($userfile, $filelocation)
>
> The message I get in my browser is:
> Warning: Unable to open 'C:\\Documents and
> Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
> file or directory in
> and I like, if possible, that someone can send me tips in how is the best
> way to concatenate the query string in order to do the search. The users
> will have about 8 types of options to search, age (18 - 25, 25-30..),
> gender, nationality.
My favorite technique is to stick the WHERE's i
I have also had some weird problems with PNGs and Netscape. Actually, most
appear fine, but PNGs that specify a transparent color do weird things.
As well, I have have seen problems with Netscape not loading all images that
are created at runtime. Have not tracked this down, but it appears to
On Tue, Mar 12, 2002 at 11:34:14AM +0800, Jason Wong wrote:
> On Tuesday 12 March 2002 11:11, Analysis & Solutions wrote:
> > On Mon, Mar 11, 2002 at 08:39:16PM -0500, webapprentice wrote:
> > > From: Jason Wong <[EMAIL PROTECTED]>
> > >
> > > On Monday 11 March 2002 11:10, Chris Cocuzzo wrote:
>
> > Warning: Unable to open 'C:\\Documents and
> > Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
> > file or directory in /var/www/kulchitski/btl/_talkroom_submit.php on
> > line 15
Well it says "Unable to open".
My guess is the file u want to upload doesn't exist.
What d
Hello,
I've been working on this for a little while now, without success. I
want to compare the current date to a certain recurring date (ie:
compare todays date to the date of the second Sunday of the a certain
month). I have an event that happens on the second Sunday of each month,
and I wan
Hi,
I have a tab delimited file consisting of several lines, one record per line that I
have to process. I don't see a function similar to "fgetcsv" for TABS so I've used
the "file" function to read the whole file into an array, one line per array element.
So far so good.
Now I have to proc
I never try before, but I think you can use explode or strtok function to
chop each field in the line with any delimiter.
hope this would help.
Pong
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$Array = explode("\t", $Line);
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
--
PHP
I guess, you don't specify the enctype in the form you wrote.
Do you write like this?
.
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Whoops, you're right. Classic 'C' mistake using = instead of ==. Never mind
:(
> On Mon, 2002-03-11 at 18:51, Randall Perry wrote:
>> According to the PHP 4 docs all variables are global unless within a
>> function. I've got the following test code which should output 2, but
>> outputs 1. The whi
Hiya...
You can optionally pass a third parameter to fgetscsv which tells it which
delimiter to use - the default is a comma, but you can use "\t" for a tab,
or whatever other delimiters you want.
Just remember to put that \t in double quotes because it's an escape
character.
Matt
"Don" <[EMAI
Hi,
can we give a form element as td inside table element?
Thanks in advance
Balaji
**Disclaimer
Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended
In article <[EMAIL PROTECTED]>, evan@coeus-
group.com says...
> Warning: Unable to load dynamic library
> '/usr/local/lib/php/DL/libpdf_php.so' - File not found in
> /home/xxx/page.php on line 6
> Fatal error: Call to undefined function: pdf_new() in
> /home/xxx/page.php on line 11
>
101 - 182 of 182 matches
Mail list logo