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
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]
Sent:
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_headers .=
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
-
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 PROTECTED]
Sent: Sunday, September 22, 2002 12:16 AM
Subject: Re
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 Linux.
David McInnis
--
PHP General
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
--
PHP General Mailing List (http
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
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
= 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
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'm writing this little script
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
the 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
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'; [EMAIL PROTECTED]
Subject: RE: [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
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
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 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
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
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 PROTECTED]]
Sent: Thursday, March 14, 2002 6:01 AM
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
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
26 matches
Mail list logo