Re: [PHP] PHP 4 broken after Apache upgrade

2002-07-06 Thread Chris Allen

Reinstall php. Did you do that when you upgraded Apache? For static link you
need to re-install. For DSO not sure I do not run my systems that way. I
havent heard of anyone else having problems. I will be updating myself this
weekend so...

Also you need to have the apache server handle the php type. Thats why IE
complains.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Query from POST_VARS

2002-04-03 Thread chris allen

Question on a mysql insert query:

while(list($key, $val) = each($HTTP_POST_VARS)) {

$string .= '. $val .' .,;
}

$insert_query = insert into data_16 values ('$string');


Do I need the single quotes for data being put into table? 
Ex:

$insert_query =('data' , 'data2', 'data3') etc

or can it be without the single quotes?
as in 

(data, data2, data3)  ???

As far as I understand I only need quotes here:

$insert_query = insert into data_16 values ('$string');
   ^  ^


Am i right??


thanks
-ccma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Query from POST_VARS

2002-04-03 Thread chris allen

ty tyler :)

saves a bunch of time.

w00t!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] TIMESTAMP and COMPARISON

2002-03-20 Thread chris allen

Hello,


I am looking for a standard way to compare to dates. I have a date/time
stored in a field in a mysql table as
date_added TIMESTAMP(14). (IE mmddhhmmss).

I want to delete all records in this table if date_added is older than 2
hours.

IE
if current_date   date_added +2 hours then delete record.

How do I do this from within mysql?
Do I need to go outside of mysql and code it in php to do this?
I read that mysql wants calculations done on the app side as compared to the
server side.
What do others do with these kind of situations?
It appears that if I have to bring data out of the table and do a comparison
it wouldnt be efficient.

Thanks,
ccma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dynamic Array Q

2001-12-28 Thread Chris Allen

Hey!

Looking for a way to add an entry in my array ...the way I have it the array
is getting rebuilt everytime...
Anyway to add an entry without calling a function to do it inside the main
while loop??

while ($row = mysql_fetch_object($result_query))
{
$look = $row-year . $row-month . $row-day;
$title = $row-title;


$Schedule = array(
$look = $title,
);

}


thanks,

ccma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Dynamic Array Q

2001-12-28 Thread Chris Allen

never mind...gheez my head is holidazed :)


$Schedule = array();
while ($row = mysql_fetch_object($result_query))
{
$look = $row-year . $row-month . $row-day;
$title = $row-title;


$Schedule[$look] =$title;
}


Happy New Year!!

-ccma

- Original Message -
From: Chris Allen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 4:27 PM
Subject: [PHP] Dynamic Array Q


 Hey!

 Looking for a way to add an entry in my array ...the way I have it the
array
 is getting rebuilt everytime...
 Anyway to add an entry without calling a function to do it inside the main
 while loop??

 while ($row = mysql_fetch_object($result_query))
 {
 $look = $row-year . $row-month . $row-day;
 $title = $row-title;


 $Schedule = array(
 $look = $title,
 );

 }


 thanks,

 ccma


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Paypal Instant Payment Notification

2001-12-11 Thread Chris Allen



My problem (due to my lack of fundemental understanding) is that I don't
know how to read Paypal's response to the post.  Paypal describes the
response like this,
PayPal will respond to the post with a single word,
'VERIFIED' or 'INVALID', in the body of the response.


YES EXACTLY.  it will be in that var in either xml or straight
htmlsimply regex  the $result var and look for verified or invalid and
act accordingly.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP SSL credit card transaction

2001-12-06 Thread Chris Allen

http://www.openecho.com/php/echophp-1.4.tar.gz


I used this package, which requires cURL and for you to have setup a
merchant account.
Was really easy!

As far as SSL jsut make sure you are serving the pages in SSL (https) and
all is fine.
You can home roll your on shopping cart like I did or you can DL any open
source cart and add hooks into openecho..
I owuld check the forum they have @openecho and see if anyone has a shopping
cart that you can use!


GL,

ccma

- Original Message -
From: Daniel Guerrier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:09 AM
Subject: [PHP] PHP SSL credit card transaction


 Can some give me a brief synopsis or direct me to some
 information on how to create an ecommerce site using
 php.  My main question is in the area of performing a
 secure credit card transaction.  Do I need to use a
 third party shopping or can I create my own, if I
 create my own how do I integrate it with a credit
 authorizer?  In addition how do I implement SSL with
 PHP when performing the transaction?  Thanks in advance!!

 __
 Do You Yahoo!?
 Send your FREE holiday greetings online!
 http://greetings.yahoo.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread Chris Allen

hmm looks right ...are you loading thru the server or are you doing a
file://c/:doc_root/file.php ?


heres the relevant info from my httpd.conf file on windows:

ScriptAlias /php4/ C:/php/
Action application/x-httpd-php4 /php4/php.exe
AddType application/x-httpd-php4 .php


whats a url to check it out ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Apache Php SSL

2001-12-03 Thread Chris Allen

Hey,

When rebuilding Apache/Php/Modssl etc can I re-use my existing server key
and server certificate ? Do I need to get a new certificate from
Thawte/Verisign  even if its for the same host?


Thanks,

CCMA


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Apache Php SSL

2001-12-03 Thread Chris Allen

Ya thanks...I needed to make sure what I was reading was *what* I was
reading...

Thanks Again,

ccma

 As long as the cert is still valid, it should work just fine. You'll
 need to point your httpd.conf to the right (previous) certificates
 though. That is explained pretty nicely in the mod_ssl INSTALL.

 --
  -Brian Clark


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need a script that will read Apache Log files and generate reports

2001-11-26 Thread Chris Allen

http://www.analog.cx/
Subject: [PHP] Need a script that will read Apache Log files and generate
reports




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] test

2001-11-03 Thread Chris Allen

php - php-gtk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] sending email to php script

2001-11-02 Thread Chris Allen

I think someone electrified the corridor, Tom said haltingly.

^^

shouldnt that be shockingly?

:p


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] New York Remembrance

2001-10-03 Thread Chris Allen

umm ya forward this on to the czechs and the french etc...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]