the date recorded in the database when the document /
record was added and NOT the date/time that PHP generates the document.
I am hoping that I can pass a date / timestamp in the header.
Any ideas? Or did I confuse everyone.
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To
I use authorize.net with curl as well. It works great. There are tutorials
on http://www.phpbuilder.net on how to set this up.
David
- Original Message -
From: "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]>
To: "Chad Day" <[EMAIL PROTECTED]>; "php general" <[EMAIL PROTECTED]>
You need to build your header and include that in your mail() call:
$lc_headers = "From: $lc_from_name <$lc_from_email>\n";
$lc_headers .= "X-Sender: <$lc_sender>\n";
$lc_headers .= "X-Mailer: PHP\n"; // mailer
$lc_headers .= "Return-Path: <$lc_return>\n"; // Return path for errors
$lc_hea
Sorry, I forgot the link.
http://phpbuilder.com/columns/darrell2319.php3
David
- Original Message -
From: "David McInnis" <[EMAIL PROTECTED]>
To: "Tom Rogers" <[EMAIL PROTECTED]>; "Joseph Szobody"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PR
This is what your are looking for. It works great.
I think this article assumes Linux which is what I use anyway. I guess that
if you were to use windows you could schedule the task but you would need to
call it using
c:\pathTOphp\php.exe c:\pathTOscript\script.php
Use Linux!
David
- Or
e ($fd);
Doing this I get the contents of the file read into the $PAGE_CONTENT
variable.
I never use fopen() to write to files. Only read with the "r"
directive. So what could be causing my conflicts? Do I need to flock
the file to shared?
I am running Linux PHP, Apache and L
Henry". Remembering that I have used addslashes() before inserting
the value into mysql in the first place.
The following query will fail on insert:
Sql = "insert into orders (fname) SELECT fname from clients where
clientid = '$clientid'";
David McInnis
How necessary is this? Don't connections close automatically after the
page finishes executing?
What are the general rules for closing connections and freeing query
results?
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
can implement that would block users who are harvesting
data from our site? I do not mind legit users from using this data, but
the flippers are chewing up my bandwidth and db resources.
I also want to be careful to not block valid search engine spiders from
indexing our site.
David McInnis
I compiled php 4.2 with the following command (Linux Server)
./configure --with-mysql --with-apxs --enable-dbase --with-xml
--enable-ftp --with-curl --enable-cli
Where is my php.ini file? I cannot find it on my system.
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To
example I can give is an order. I would need to
create an order and then insert / edit and delete line items of that
order.
Can someone point me in the write direction?
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
P_url";
$fd = fopen ($filename, "r");
$PAGE_FOOTER = fread ($fd, filesize ($filename));
fclose ($fd);
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ww.php.net/manual/en/function.explode.php
David McInnis
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] variable question
On Tuesday 16 April 2002 00:41, Jule Slootbeek wrote:
> Hey Guys and Gals,
> I
I need to alter the document properties of Word DOCS that our users
upload via php. Does anyone know how to do this? (I am running PHP on
a Linux box).
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here is the scenario.
1. I set my browser to block all cookies.
2. I access this script.
3. I am thinking that I should get an error because I presume that
session_start() will attempt to set a cookie (which it appears to do).
(I tried setcookie() too and the cookie was accepted.)
My quest
completely different permissions
[-rw---]than copy() [rwxr-xr-x]. I still say . . . "strange".
David
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 11:24 PM
To: 'Rasmus Lerdorf'
Cc: 'David McInnis'; [EMAI
following permissions.
rwxr-xr-x
I am using the copy command to move the file from the tmp directory.
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This was a problem with the version of PHP that I had installed.
PHP-4.0.4pl1. Apparently there is a bug that causes this to be written
to the front of the file.
Solution? Upgrade.
David McInnis
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25
I have no such statements in my code. This is looking like a known
issue in PHP. I gather that is taken care of in later releases.
David McInnis
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:47 PM
To: David McInnis
Cc: [EMAIL
When I save a file that has been uploaded through PHP it prepends (adds
to the beginning of the file) the mime type. This renders the file
unusable when it is downloaded as MS Word cannot open the file and tries
to install some kind of converter.
Any ideas for me?
David McInnis
--
PHP
I wrote s script to upload a file. The script works, but when I point
my browser to the file it downloads, but I can no longer open the file
in MS Word. What is happening to my file? My client is Windows and the
server is Linux.
David McInnis
--
PHP General Mailing List (http
I am using RPM 4.0.2 on the YellowDog 2.1 Distro.
rpm -b php.spec yields the following:
[root@cpdev1 SPECS]# rpm -b php.spec
-b: unknown option
Is there something wrong with my version of RPM? When I type, rpm -ba
php.spec, I get nothing but the following:
output
I have installed PHP using the RPM packages from RedHat. Now I need to
reconfigure PHP to include more options. Is there a way to include
these options when reinstalling the RPM or do I need to ditch the RPM
and compile from the source files?
David McInnis
--
PHP General Mailing List (http
Are these redundant functions or are they different? I seem to be able
to use the interchangeably.
David McInnis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK, I guess I found the problem. RealOne Media player from real
networks uses Explorer within its program and I was not closing the
RealOne Player therefore it was holding onto the cookie.
Thanks,
David McInnis
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent
Here is what I am using to set my cookie.
$cp_sessionid = $CP_partnerid . "_" .
uniqid(str_pad(getenv("REMOTE_ADDR"), 15, "0"));
setcookie('cp_sessionid', $cp_sessionid);
David McInnis
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTE
I understand that if an expiration time is not set, the cookie should
expire at the end of the session (when the browser is closed). This is
not happening.
What is wrong here?
I would actually prefer for the cookie to expire when the user left the
Web site. Any ideas?
Thanks,
--
David A McIn
27 matches
Mail list logo