[PHP] htDig on PHP pages

2003-02-16 Thread David McInnis
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

Re: [PHP] Recommend payment processors?

2003-01-04 Thread David McInnis
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:

Re: [PHP] Getting the From: admin@site.com to work

2002-10-26 Thread David McInnis
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 .=

Re: [PHP] Running a PHP script automatically?

2002-09-22 Thread David McInnis
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 -

Re: [PHP]Running a PHP script automatically? FORGOT the link

2002-09-22 Thread David McInnis
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

[PHP] fopen() and flock()

2002-09-01 Thread David McInnis
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

[PHP] Mysql Insert from select problem with php

2002-06-20 Thread David McInnis
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

[PHP] closing mysql connections

2002-06-14 Thread 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

[PHP] How to stop site flipping?

2002-05-13 Thread David McInnis
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

[PHP] Install Question - Missing php.ini

2002-05-06 Thread 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

[PHP] XML creation / edit class?

2002-05-03 Thread David McInnis
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

[PHP] fopen() question

2002-04-18 Thread David McInnis
= 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

RE: [PHP] variable question

2002-04-15 Thread David McInnis
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

[PHP] Removing Properties from Word DOC

2002-04-04 Thread David McInnis
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

[PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread David McInnis
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

[PHP] Does this seem odd? File Upload Permissions

2002-03-26 Thread David McInnis
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

RE: [PHP] Does this seem odd? File Upload Permissions

2002-03-26 Thread David McInnis
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

[PHP] File Upload

2002-03-25 Thread David McInnis
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

[PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis
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

[PHP] RESOLVED -- RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis
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

[PHP] rpm -ba php.spec fails

2002-03-24 Thread David McInnis
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

[PHP] Configure PHP during RPM install

2002-03-22 Thread David McInnis
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

[PHP] Cookies not expiring

2002-03-14 Thread David McInnis
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

RE: [PHP] Cookies not expiring

2002-03-14 Thread David McInnis
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

RE: [PHP] Cookies not expiring (RESOLVED)

2002-03-14 Thread David McInnis
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

[PHP] require() vs include()

2002-03-14 Thread David McInnis
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