[PHP] Minimizing Database Hits

2003-07-01 Thread Ralph
I wrote class that contains a function that retrieves users shopping
cart items from database and then returns an array with qty, item number
, item name, etc.

So now whenever I want to retrieve the users cart I use the following:

$cart_contents = $cart->get_cart_contents();

I then iterate through $cart_contents to display info. Now I am trying
to minimize the number of hits to the database so my question is, am I
querying the database every time I call on $cart_contents?



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



RE: [PHP] Eregi filtering..

2003-07-07 Thread Ralph
Here is one of doing this:

if(strrpos($v_tel_filter,' ') > 0 || strspn($v_tel_filter,
"0123456789-") != strlen($v_tel_filter)){
  echo "'$v_tel_filter' Telephone Number Contains words";
} else {


  
}


-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 5:10 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Eregi filtering..


elseif (eregi("a-ZA-9", $v_tel_filter)) { 
echo "'$v_tel_filter' Telephone Number Contains words"; 

} else { 

im looking how to verify numbers alone and dash "-" can that be
possible? I
have tried using "a-ZA-9" but did not work. 

any ideas? 

thanks, 
louie



--
Thank you,
Louie

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




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



RE: [PHP] php arrays into flash

2003-07-07 Thread Ralph
Here is a site you might want to look at:

http://polar-lights.com/en/


-Original Message-
From: Jim McNeely [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 4:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php arrays into flash

I know a lot more about php than about flash (which is probably sad) 
but does anyone know how to take info in an array and pass it into an 
array in flash? I think they have arrays, but the only thing I can seem 
to find in flash to get info from php is the loadvariable actionscript 
step. I looked around via google and I couldn't find anything within a 
reasonable time that seemed to answer this question.

TIA

Jim McNeely
Envision Data
[EMAIL PROTECTED]
http://www.envisiondata.com


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




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



RE: [PHP] Table trouble

2003-07-07 Thread Ralph
Here's a tutorial on doing this:

http://codewalkers.com/tutorials.php?show=15


-Original Message-
From: phpu [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 3:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Table trouble

Hello
I need help.
I'm querying a database then printing the results in a table. I want the
result to be in a table with 2 columns per row.
something like that
 

----  --
--  row 1  -- row 2 --
----  --

----  --
--  row 3  -- row 4 --
----  --

----  --
--  row 5   -- row 6 --
----  --

 and so on.

How can I do that?
Please help me asap





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



RE: [PHP] Table trouble

2003-07-07 Thread Ralph
> fetchinto?
> On Mon, 2003-07-07 at 14:42, phpu wrote:
> > 10x but i am new to php and i do not know how to dump all of the
results
> > into an array can you help me with this one please?


$sql="select * from cate order by name asc";
$resurs=mysql_query($sql);
while ($row=mysql_fetch_array($resurs))
{
  $results_array[] = (
 'field_1' => $row['1'],
 'field_2' => $row['2'],
 'field_3' => $row['3'] 
  );
}

echo "\n";
for($i=0; $i\n";
   for($j=0; $j<2; $j++)
   {
  echo "\t\t".$results_array[$i]."\n";
  $i++;
   }
   echo "\t\n";
}








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



RE: [PHP] New to PHP

2003-07-07 Thread Ralph
Here are some sites for you to get started:

http://www.zend.com/developers.php
http://www.phpcomplete.com/tutorials.php
http://www.evilwalrus.com/articles.php

And for books, here are some excellent books I've come across:

Programming PHP
By Rasmus Lerdorf

Web Application Development with PHP 4.0
by Tobias Ratschiller

Professional PHP4 Programming
By Deepak Thomas





-Original Message-
From: Hiren Mehta [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 2:28 PM
To: PHP
Subject: [PHP] New to PHP

Hi I am new to PHP and would like to learn more about it. Which would be
the best place to start with besides the manual and what would you
suggest is a pre-requiste for learning PHP.

Thanks

Regards,

Hiren



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



RE: [PHP] Image verification problem..

2003-07-07 Thread Ralph
You should register session for 'new_string' after assigning a value to
it.

So try placing

session_start();
session_register('new_string');

after the rest of your first.php code.

That should work.



-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 6:45 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Image verification problem..

Im trying the image verification thing I think everything goes well for
the
generation of the image but when it comes to verifying the text when I
typed
in any text it just generates and process the form, but when I leave it
blank it says the error. I think the session variables for $new_string
is
not being passed I tried to echo the session variable but it doesn't
show
up.

Any ideas on this?

I think this is the problem? elseif ($new_string == $verify_random) but
I
don't think so..


-- first.php --
session_start();
session_register('new_string');

Header("Content-Type: image/png");
$new_string;
$im = ImageCreate(200, 50); 
$white = ImageColorAllocate($im, 255, 255, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
srand((double)microtime()*100); 
$string = md5(rand(0,)); 
$new_string = substr($string, 17, 5);
ImageFill($im, 0, 0, $black);
ImageString($im, 4, 96, 19, $new_string, $white);
ImagePNG($im, "verify.png");
ImageDestroy($im);
-- end // first.php --








-- second.php --
session_start();
$random = $_POST['random'] ;
$verify_random = trim($random);

if (empty($v_name_filter) || empty($v_email_filter)) { 
echo "All fields are Required"; 
}
elseif ($new_string == $verify_random)
{
echo "Please go back and get verified.\n\n";
echo "$new_string\n\n";
echo "$verify_random\n\n";
echo "SessionID: $PHPSESSID";
} else {
echo "$new_string\n\n";
echo "$verify_random\n\n";
echo "SessionID: $PHPSESSID";
-- end // second.php --



--
Thank you,
Louie

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



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



[PHP] Netbilling Gateway

2003-06-06 Thread Ralph
Anybody know of a Netbilling Gateway that I can plug into my shopping
cart?



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



[PHP] Capturing HTTP Response

2003-06-06 Thread Ralph
Hi, I'm currently setting up a form for CC processing. At the moment I
am able to send the required flags to authorize the CC transaction, but
then I do not know  how I go about parsing the returned headers.

After processing the transaction the merchant returns either HTTP 200
(ok) along with values or HTTP 400(ERRROR) with a string indicating
reason for error. 

So how would I go about parsing these in my script?



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



[PHP] Netbilling Connect Script or Class...

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com,
does anybody know of a PHP based Netbilling connect script or class?

Your help is appreciated.



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



RE: [PHP] PHP redirect

2003-05-29 Thread Ralph
Use the header function:

http://www.php.net/manual/en/function.header.php


-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2003 1:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP redirect

Hi guys what is the function in PHP for directing a php page??

thanx in advance
Angelo




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



[PHP] Netbilling PHP Script

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com,
does anybody know of a PHP based Netbilling gateway script or class?

Thanks in advance



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



RE: [PHP] Will Pay for Netbilling PHP Script

2003-05-29 Thread Ralph
Yeah. But no luck. Only in PERL. 

I'm pushed for time and I'm still working on other modules that I need
for my client. Anybody interested in helping me out? I will gladly pay
for help. Just give me quote.

Here is Netbilling's API manual for anybody that is interested:

http://netbilling.com/direct/
 

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2003 2:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Netbilling PHP Script

On Thursday 29 May 2003 17:36, Ralph wrote:
> I have to setup credit card verification/processing with
Netbilling.com,
> does anybody know of a PHP based Netbilling gateway script or class?

Have you searched google?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--


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




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



RE: [PHP] preg_match array question

2003-05-31 Thread Ralph

Try this:

Let say you have these three fields in your form:


 


then use the following to iterate through each field: 

foreach($_POST['num'] as $key => $value){
preg_match ( '(foo)' , $_POST["num"][$key] );
}

or you can also try this:

$c = count($num);
for($i; $i < $c; $i++){
preg_match ( '(foo)' , $_POST["num"][$i] );
}

this should get you started.

-Original Message-
From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_match array question

Hey,

Im trying to use preg_match to validate numbers in multiple fields.  I
can check one field but Im having trouble checking multiple fields.  

preg_match ( '(foo)' , $_POST["num1"] ); <- That works fine.  but I need
to check multiple fields.  

I thought I would build an array with the POST data like this...

$num = array ($_POST["num1"],
($_POST["num2"]);  There are more than that...  

and then use 
preg_match ('(foo)', $num) ;   $num should point to my array, but that
doesnt work.  I get a warning message.. and it doesnt check the first
num1 in the array.  

Im certain that Its my code, and I wanted to get some input on what Im
doing wrong.

-Dan



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



RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
Not sure if I'm misunderstanding, but I know that foreach() will do
this. 

-Original Message-
From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 11:58 AM
To: Ralph; [EMAIL PROTECTED]
Subject: Re: [PHP] preg_match array question

The problem is, that I have multiple fields and what I am trying to do
is
check each field to make sure I get the data that I need and not some
crap,
like letters in a number field or a 

RE: [PHP] preg_match array question

2003-05-31 Thread Ralph
foreach ($_POST as $key=>$value) { 

if (empty($value)) { 
   error_message[] = "$key :: Missing Data";
}

// if email field, perform email validation
if($_POST[$key] == 'email')
   if (!preg_match('/([a-z0-9\-\.\#\:[EMAIL PROTECTED])/i',
$_POST[$key])) {
   error_message[] = $value . " is not a valid address.";  }
} 

// etc..

}

// check for error message
if(!empty($error_message)){
  $c = count($error_message);
  for($i = 0; $i < $c; $i++){
echo $error_message[$i];
  }  
} else {
  // no error found 
}

-Original Message-
From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 1:04 PM
To: Ralph; [EMAIL PROTECTED]
Subject: Re: [PHP] preg_match array question

perhaps I am misunderstanding...  I have snipit of my foreach.  I have a
preg_match that checks for a valid email address.  basically it just
checks
for an @ and a .  When I place this in my loop all of the keys are
evaluated, so hence the name key is evaluated and thrown error because
of
the check.

To remedy this problem I took it out of the loop and it worked fine.
Ultimately I would love to keep it in the loop and throw checks for
certain
fields, but syntaxtually it doesnt work for me.  Any Suggestions ?


  foreach ($_POST as $key=>$value) { # Begin Foreach loop


   if (empty($value)) { # Begin If
echo "$key :: Missing Data";

   if (!preg_match('/([a-z0-9\-\.\#\:[EMAIL PROTECTED])/i',
$_POST["eaddy"]))
{echo $_POST["eaddy"]," is not a valid address.";  }
   } # End if

   else { echo "$key, ->Ok";}

  } # End Foreach


- Original Message - 
From: "Ralph" <[EMAIL PROTECTED]>
To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 2:42 PM
Subject: RE: [PHP] preg_match array question


> Not sure if I'm misunderstanding, but I know that foreach() will do
> this.
>
> -Original Message-
> From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 30, 2003 11:58 AM
> To: Ralph; [EMAIL PROTECTED]
> Subject: Re: [PHP] preg_match array question
>
> The problem is, that I have multiple fields and what I am trying to do
> is
> check each field to make sure I get the data that I need and not some
> crap,
> like letters in a number field or a 

[PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
I'm querying prices off a database then storing these in an array, I
want to add these up to get the grand total, how would I go about adding
up all the prices stored in the array?

Thanks in advance.





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



RE: [PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
Right... I never thought of this.

But can I use this if what I'm trying to get the (price * quantity).

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 01, 2003 12:43 AM
To: Ralph
Cc: PHP General Mailing List
Subject: Re: [PHP] Add Up Prices in Array

If they are coming out of your database, why not get your database to do
it for you by calling SUM() in your query?

On Sun, 1 Jun 2003, Ralph wrote:

> I'm querying prices off a database then storing these in an array, I
> want to add these up to get the grand total, how would I go about
adding
> up all the prices stored in the array?
>
> Thanks in advance.
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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



RE: [PHP] Add Up Prices in Array

2003-06-01 Thread Ralph
Disregard my last post, I went with what you suggested and I got it to
work.

Thanks again.

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 01, 2003 12:43 AM
To: Ralph
Cc: PHP General Mailing List
Subject: Re: [PHP] Add Up Prices in Array

If they are coming out of your database, why not get your database to do
it for you by calling SUM() in your query?

On Sun, 1 Jun 2003, Ralph wrote:




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



[PHP] Shipping Rates

2003-06-01 Thread Ralph
Maybe it's just that it's late, but can't seem to figure this out. I
want to show a shipping price depending on the amount of purchase. I
thought about using a lot of if() statements, but I know this is not the
best way to go about this.

Can anybody enlighten me on this one and give me a better approach.

Here is an example of my shipping rates:

Less than $20.00 = $7.45 
$20.01-$35.00 = $8.45 
$35.01- $55.00 = $9.45 
$55.01-$80.00 = $10.45 
$80.01-$100.00 = $11.45 
$100.01-$150.00 = $13.45 
$150.01-$200.00 = $15.55 
$200.01 or more  = $19.45

Thanks.





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



RE: [PHP] Shipping Rates

2003-06-01 Thread Ralph
I thought about this but how would I go about performing greater than or
equal to without having to specify a CASE for every price range?

-Original Message-
From: Jason Paschal [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 01, 2003 1:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Shipping Rates

this, maybe?
http://www.php.net/switch


>From: Ralph <[EMAIL PROTECTED]>
>To: PHP General Mailing List <[EMAIL PROTECTED]>
>Subject: [PHP] Shipping Rates
>Date: Sun, 01 Jun 2003 01:48:30 -0700
>
>Maybe it's just that it's late, but can't seem to figure this out. I
>want to show a shipping price depending on the amount of purchase. I
>thought about using a lot of if() statements, but I know this is not
the
>best way to go about this.
>
>Can anybody enlighten me on this one and give me a better approach.
>
>Here is an example of my shipping rates:
>
>Less than $20.00 = $7.45
>$20.01-$35.00 = $8.45
>$35.01- $55.00 = $9.45
>$55.01-$80.00 = $10.45
>$80.01-$100.00 = $11.45
>$100.01-$150.00 = $13.45
>$150.01-$200.00 = $15.55
>$200.01 or more  = $19.45
>
>Thanks.
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail




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



[PHP] TABLE COLUMNS

2003-06-02 Thread Ralph
I'm querying a database then printing the results in a . What I
want to do is format the results in a  with 4 columns per row.
Any suggestions?

Thanks.



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



[PHP] Session to Secure Form

2003-06-03 Thread Ralph
I'm setting up a payment form on same server but different domain name,
and I need to pass the customers id that I have stored in a session so
that I can use it on the secure form to query the database for the
customers order. 

What would be the best way for me to go about this?



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



RE: [PHP] Planning a new job

2003-06-03 Thread Ralph
Tim,

This is really beyond the scope of this list, but I can help then it
doesn't matter. :-)

A few months ago I was asking myself the same questions you are asking
now. I found the following articles:

http://www.sitepoint.com/article/913

http://www.sitepoint.com/article/677

http://www.sitepoint.com/article/693

http://www.sitepoint.com/article/909

There is some valuable info on this site, you might want to look through
the rest of the articles under Sell Your Services, category:

http://www.sitepoint.com/cat/85

And if you want a book on the subject, take a look at:

Web ReDesign - Workflow the Works
By Kelly Goto & Emily Cotler

http://www.amazon.com/exec/obidos/tg/detail/-/0735710627/qid=1054614092/
sr=8-1/ref=sr_8_1/102-6577267-6528106?v=glance&s=books&n=507846

Hope this helps. Good luck.

Ralph

-Original Message-
From: Tim Burgan [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2003 4:45 PM
To: PHP Lists
Subject: [PHP] Planning a new job

Hello,

I'm wondering what processes everyone has before quoting a web
programming /
design job?

Do you have a face-to-face meeting with the client?

What questions do you ask?

What information should be found-out about the job?

Do I then go away and draw up a quote? or a quote and a proposal?

Any help would be wonderful, thanks.


Tim Burgan
[EMAIL PROTECTED]


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




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



[PHP] Secure Page Problem

2003-06-03 Thread Ralph
I currently have a secure form from which I am querying a mysql database
but I am unable to print out the results to the page. Is there something
I have overlooked in working with secure pages?



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



[PHP] Round Off $ prices

2003-06-04 Thread Ralph
How do I round off prices to the  like rounding off $24.80 to $25?



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



[PHP] Count on Multiple Tables

2003-06-05 Thread Ralph
I've been stuck on this one all morning. Can't seem to figure it out.

I have 2 tables, one with affiliate sales and another with affiliate
clickthroughs. I have to query both tables, so that I can get
clickthrough dates, hits, and then query affiliate sales table to get
number of orders for each date. I want to display the results like this:

DATE  | TOTAL HITS | TOTAL SALES
05/03/2003   6   1
05/04/2003   7   0

 
I've managed to get dates and total hits by using the following query:

SELECT DATE_FORMAT(affiliate_clientdate, '%M %D, %Y') AS date, COUNT(*)
AS hits FROM affiliate_clickthroughs WHERE affiliate_id = '111' AND
affiliate_stores_id = '123' AND MONTH(affiliate_clientdate) = '06' AND
YEAR(affiliate_clientdate) = '2003' GROUP BY date";

But then I can't get the total number of sales on affiliate sales table.

Any suggestions? Your help is greatly appreciated.




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



[PHP] fsockopen and SSL

2003-06-07 Thread Ralph
i'm trying to make a POST request to my merchant's https server using
the following:

foreach($HTTP_POST_VARS as $key => $value){
$value = urlencode(stripslashes($value));
$req .= "&$key=$value";
}

$header .= "POST /gw/native/direct2.1 HTTP/1.0\r\n";
$header .= "Content-Type:
application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: ".strlen($req)." \r\n\r\n";
$fp = fsockopen('ssl://secure.netbilling.com', 443,
$errno, $errstr, 30);

if(!$fp){
echo $errstr($errno);
} else {
fputs($fp, $header . $req);
while(!feof($fp)){
$res = fgets($fp, 1024);
}

fclose($fp);
}


but I get following error:

Warning: fsockopen() [function.fsockopen]: no SSL support in this build
in
/usr/home/trivisions/html/sextoymerchant.com/payment/checkout_confirm.ph
p on line 64

So does this mean that my PHP installation does not support SSL, and
that I have to recompile PHP again?

I looked at the PHP installation configure options but did not see
anything regarding SSL, so how would I install this?

I am running  PHP Version 4.3.1



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



RE: [PHP] PHP using Linter...

2003-06-09 Thread Ralph
What is Linter?

-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2003 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP using Linter...

Hi Everyone!

Have anyone here ever use the Linter software?  What is your opinion
on
this?  Have anyone experienced compiling Apache/PHP with Linter and was
it
easy to use?  Have anyone experienced writing a PHP script to access the
Linter?   All of those questions, is it giving you a headache or is it a
very nice experience?

I already downloaded the Linter demo and been using it for a day or
two.
I'm having trouble trying to make the SQL query work for the sample
database
that come with the demo.  I have not yet compile Apache and PHP to
Linter
yet because I want to become familiar with Linter first.  It's like
playing
with database software to understand how to use it and manage it.

Thanks,
 Scott F.



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




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



RE: [PHP] PHP using Linter...

2003-06-10 Thread Ralph
Why don't you just use mySQL?

-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2003 5:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP using Linter...

Linter is a SQL database that is written by a company in Russia and is
for
everyone around the world to use.  It is smaller, faster, use less
memory,
cost less than most of the pricy 3rd party software like MS-SQL,
IBM-DB2,
Oracle, etc...   Linter can also sychronize (mirror) the database
between
two machines, for example, with a backup server.  Linter can also copy
in
the database from MS-SQL, IBM-DB2, Oracle, etc..., so that you can have
exact copy of the database.  Linter also doesn't use a lot of
administrative
overhead as IBM-DB2 does.  It is a very nice commercial software that
have
better license flexibility in some way.  You can find out more about
this
product at www.relexus.com but Linter is kind of confusing to use at
first
because it's a very different software.

Scott

"Ralph" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What is Linter?
>
> -Original Message-
> From: Scott Fletcher [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 09, 2003 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP using Linter...
>
> Hi Everyone!
>
> Have anyone here ever use the Linter software?  What is your
opinion
> on
> this?  Have anyone experienced compiling Apache/PHP with Linter and
was
> it
> easy to use?  Have anyone experienced writing a PHP script to access
the
> Linter?   All of those questions, is it giving you a headache or is it
a
> very nice experience?
>
> I already downloaded the Linter demo and been using it for a day
or
> two.
> I'm having trouble trying to make the SQL query work for the sample
> database
> that come with the demo.  I have not yet compile Apache and PHP to
> Linter
> yet because I want to become familiar with Linter first.  It's like
> playing
> with database software to understand how to use it and manage it.
>
> Thanks,
>  Scott F.
>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



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




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



RE: [PHP] adding confirmation to an existing upload form

2003-06-11 Thread Ralph

If you want them to preview then commit, simply give the SEND PHOTO TO
SERVER button a name like:



then in your code you can simply check for $_POST['send_photo'] before
calling the function that saves the image like:

if($_POST['send_photo']){
   // call the upload and add to database function.
   upload_image();
}

-Original Message-
From: Artoo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 12:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] adding confirmation to an existing upload form

Hi,

I have an upload script in which the user selects an image to upload,
and a
brief description.  I would like to have some kind of  confirmation
that
allows the user the ability to upload the file and description or go
back
and make changes.

I was thinking of adding  to the beginning of the "upload.php" script a
thumbnail of the image and the short description followed by two buttons
 and  before the call to the function that actually
uploads
the image and saves the description in a database.  But I'm not sure how
to
pause the execution of the script at this point and wait for the user to
press either button before continuing the rest of the script.   Do I set
up
a variable that I keep polling until either button is pressed?  If the
user
presses the SEND PHOTO TO SERVER button I would continue with the rest
of
the script to send the file to the server and save the description to
the
database.   Otherwise I would return to the upload form.

Is there a better way to accomplish this?

Thanks



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




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



RE: [PHP] How do I capture a POST responce

2003-06-12 Thread Ralph
You have to use socket connection. Take a look at:

http://us4.php.net/fsockopen

In the User Contributed Notes look for a post by 

info at agriya dot com
02-Feb-2003 12:38

there you will see a script that shows you how to do it.

Hope this helps.


-Original Message-
From: Joaco [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 3:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How do I capture a POST responce

I am writing a module that will allow a customer to process a credit
card
refund thru a web interface that I am designing. The problem I am having
is
that once the information is posted to the gateway, it returns a url
encoded
string with the responce from the transaction. How can I capture that
responce on my page rather than having to open or save the returned
file?



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




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



RE: [PHP] $_SESSION as $key=>$value

2003-06-12 Thread Ralph
Daniel,

Rather than sending them to a new page to validate the form and then
sending them back if a field is invalid, do the error checking from the
same script.

Here's an example, a bit simple but just to give you an idea.

For a better explanation, you should read this article which elaborates
on this method:

http://www.zend.com/zend/spotlight/form-pro-php4.php










and so on



-Original Message-
From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $_SESSION as $key=>$value

Is this valid to iterate over a form variables.?

foreach ($_SESSION as $key=>$value) 

and another question,  do I need this   in my form?  

Im really struggling with $_SESSION.  Im trying to program smarter and
make friendlier applications.  

Ive submitted several emails dealing with this function and I apologize
for beating a dead horse, so to speak.  

I have a form with a few form fields.  Im working on an error function
that will take the data that was entered and pass it back to the form so
that the user will not have to input the data again.  If an error is
found I use the header function to go back to the form.  Im having
trouble with passing back the data.  Do I in my form setup a $_GET or
should I use the $_SESSION to call it.  I am also going to setup a few
css styles that highlight which field was found in error.  

Again, I apologize for my lack of vision and maybe a spark of light will
go off, and I will be able to make some connections to get this done.  

Dan



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



RE: [PHP] General question...

2003-06-13 Thread Ralph
Read the following: 

http://us2.php.net/fsockopen

http://www.zend.com/manual/ref.stream.php

-Original Message-
From: Jason Paschal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 12, 2003 8:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] General question...

ppl, you're missing the point.  you keep re-stating his problem.  he
knows 
it's not good to make the 3rd party gateway so obvious.  he's looking
for a 
way to make it transparent, so it looks like it's actually part of his
site.

i think there should be a way to do it.  maybe use the fsock stuff to
pass 
the data (security is an issue, and i'm not familiar with the fsock 
functions much less how they'd be affected if you in a secure section of

your site).

good luck.

>From: "Valentin" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [PHP] General question...
>Date: Thu, 12 Jun 2003 15:53:39 +0200
>
>hi all,
>
>is it possible with php:
>first to pass request to another URL and after that to get the html 
>responce
>as a string and put it into php $variable?
>
>best,
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


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




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



RE: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Ralph
I think this may be because you did not include echo in:

value=" "

so try this:

mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 4:28 PM
To: Ralph; [EMAIL PROTECTED]
Subject: Re: [PHP] $_SESSION as $key=>$value

I read the document 4 times.  I understand how it works and now Im
excited
about applying this to my application, however Im running into a
problem.
Im recieving an error on my page.

I have this in my form.


and when running, I recieve
Notice: Undefined index: fname

I also used the example from here
http://www.zend.com/zend/spotlight/form-pro-php4.php and I recieved the
same
message.

Any Ideas, to help me break through these barriers?

Thanks so much
Dan



- Original Message - 
From: "Ralph" <[EMAIL PROTECTED]>
To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 1:50 AM
Subject: RE: [PHP] $_SESSION as $key=>$value


> Daniel,
>
> Rather than sending them to a new page to validate the form and then
> sending them back if a field is invalid, do the error checking from
the
> same script.
>
> Here's an example, a bit simple but just to give you an idea.
>
> For a better explanation, you should read this article which
elaborates
> on this method:
>
> http://www.zend.com/zend/spotlight/form-pro-php4.php
>
>
> 
> if($HTTP_POST_VARS){
>
> // check for required fields
> if(!HTTP_POST_VARS['name'] || !HTTP_POST_VARS['email'])
>   $error_message = 'You did not provide all required fields'
> }
>
> // any other error checking you want to do
> 
> ?>
>
>
> 
> // if error, print out error message
> if($error_message){
>   echo $error_message;
> }
>
> ?>
>
> 
> 
> 
> and so on
>
> 
>
> -Original Message-
> From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 2:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] $_SESSION as $key=>$value
>
> Is this valid to iterate over a form variables.?
>
> foreach ($_SESSION as $key=>$value)
>
> and another question,  do I need this  method="post">  in my form?
>
> Im really struggling with $_SESSION.  Im trying to program smarter and
> make friendlier applications.
>
> Ive submitted several emails dealing with this function and I
apologize
> for beating a dead horse, so to speak.
>
> I have a form with a few form fields.  Im working on an error function
> that will take the data that was entered and pass it back to the form
so
> that the user will not have to input the data again.  If an error is
> found I use the header function to go back to the form.  Im having
> trouble with passing back the data.  Do I in my form setup a $_GET or
> should I use the $_SESSION to call it.  I am also going to setup a few
> css styles that highlight which field was found in error.
>
> Again, I apologize for my lack of vision and maybe a spark of light
will
> go off, and I will be able to make some connections to get this done.
>
> Dan
>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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



RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
http://www.mydomain.com/moz4_page.php";)
} 

elseif(strstr = ($HTTP_USER_AGENT, "MSIE")){
   header("Location: http://www.mydomain.com/ie_page.php";)
}

etc...

?>



My Page


etc..


-Original Message-
From: Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2003 11:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Redirecting to index.php from index.html

I'm a relative newbie to PHP coming from the Zope/Python/DTML world.
Does 
anyone know of a good way, short of a javascript, to redirect from
index.html 
to index.php.   Also, can I use PHP to test for browsers, then redirect
them 
to the appropriate page.  In DTML/Python it would be :

= 0>



This can be called from anywhere in the page.  I know that PHP does not
work 
this way and that this would need to be done before , but I'm even

having problems with that.  I guess I'm just having a hard time THINKING
like 
php.

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




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



RE: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Ralph
Alternative, using concatenation:

$sql = "SELECT * FROM db WHERE apple = '". $_POST['foo'] . "'";

-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2003 7:57 AM
To: [EMAIL PROTECTED]; Chris Hayes
Subject: Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

> At 16:19 17-6-03, you wrote:
> >$sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';';
> >Like that?
> you missed some quotes:
> $sql = 'select * from db where apple = \''' . $_POST['foo'] . '\'"';

Go back and count the quotes again. The original post is correct as far
as
quotes go. Yours is not, though, since you have three single quotes in a
row
and have thrown in a double quote by itself.

Without color coding, this is all very hard to tell. That's why I prefer
to
do it such as:

$sql = "SELECT * FROM db WHERE apple = '{$_POST['foo']}' ";

or, like someone else said, the following is perfectly valid:

$sql = "SELECT * FROM db WHERE apple = '$_POST[foo]' ";

There are way to many methods to do this, though, so just use the one
that
makes the most sense to you. I've changed my mind about this a few times
in
the past. :)

---John Holmes...


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




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



RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
Oops. Typos. Try this:

if(strstr($HTTP_USER_AGENT, "Mozilla/4")){
header("Location: http://www.mydomain.com/moz4_page.php";);
}

elseif(strstr($HTTP_USER_AGENT, "MSIE")){
   header("Location: http://www.mydomain.com/ie_page.php";);
}

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2003 1:12 PM
To: Jay Blanchard; Ralph; [EMAIL PROTECTED]
Subject: Re: [PHP] Redirecting to index.php from index.html

With that I get:

Parse error: parse error, unexpected T_STRING in
/path/to/file_named/main.php 
on line 4

Michael


On Tuesday 17 June 2003 02:50 pm, Jay Blanchard wrote:
> [snip]
> If I use this on index.html, it does nothing.  If I use it on
index.php
> I get:
>
> Parse error: parse error, unexpected '=' in
> /path/to/file_named/main.php on line 3
>
> What am I doing wrong
>
> On Tuesday 17 June 2003 02:11 pm, Ralph wrote:
> >  >
> > if(strstr = ($HTTP_USER_AGENT, "Mozilla/4")){
> >header("Location: http://www.mydomain.com/moz4_page.php";)
> > }
> >
> > elseif(strstr = ($HTTP_USER_AGENT, "MSIE")){
> >header("Location: http://www.mydomain.com/ie_page.php";)
> > }
>
> [/snip]
>
>
> Shouldn't it  be 
>
> > if(strstr($HTTP_USER_AGENT, "Mozilla/4")){
> >header("Location: http://www.mydomain.com/moz4_page.php";)
> > }
> >
> > elseif(strstr($HTTP_USER_AGENT, "MSIE")){
> >header("Location: http://www.mydomain.com/ie_page.php";)
> > }
>
> HTH

-- 
Exasource Inc.
Web: http://www.exasource.com
Email: [EMAIL PROTECTED]
Phone: 970-206-4556

"The Israelite army looked at Goliath and said,  he's so big we can't 
 possibly win.  David looked at Goliath and said, wait a minute, he's 
 so big I can't possibly miss"



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



RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph

Well it does appear to be working because according to this error, the
problem is with main.php on line 4.

-Original Message-
From: Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2003 2:27 PM
To: Ralph; 'Jay Blanchard'; [EMAIL PROTECTED]
Subject: Re: [PHP] Redirecting to index.php from index.html


Parse error: parse error, unexpected T_STRING in
/path/to/file_named/main.php 
on line 4

Here is my actual code so you can look at it and see what I am doing 
something wrong.  I know I must be, since I don't see how php could
become so 
popular for site development when it appears to be so difficult to do a 
simple test and redirect.  

It works fine in forms such as:


" maxlength="50">

But I have yet to be able to do a redirect after a test.

index.html is a dhtml splash screen to allow time for image preloading.
It 
does not work on Opera or Konqueror.

http://www.servantsmc.com/main.php";);
}

elseif(strstr($HTTP_USER_AGENT, "Konqueror")){
   header("Location: http://www.servantsmc.com/main.php";);
}

?>


Motorcycle Clubs. Servants For Christ - Northern Colorado



On Tuesday 17 June 2003 03:26 pm, Ralph wrote:




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



RE: [PHP] Getting at $_POST values using a loop

2003-06-22 Thread Ralph

echo "$fieldname:";

for ($i=0, $n=sizeof($_POST['FieldName']); $i<$n; $i++){

   // do whatever you need to do with each field
   echo $_POST['FieldName'][$i];
}


-Original Message-
From: Dave Alger [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 22, 2003 9:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting at $_POST values using a loop

Hi all,

This one is causing me a few headaches. How should I be doing this?

On my previous page I've created a series of fields using a loop so that
a
field is created like this:

 echo "$fieldname:";

On my next page then I've got to try to read these values. I could do
this
as $_POST['Field0'], $_POST['Field1'] etc but a loop is what is
required.

I've tried getting at the value by:

$a=$_POST['Field$n'];

and

$nb='$'."_POST['Field".$n."']";
$a=$$nb;

And neither works. How should I be doing it?

Thanks in advance for all help.

regards,
Dave


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003



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




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



RE: [PHP] OOT Payflow Urgent

2003-06-22 Thread Ralph
I've never done this using CURL however I have done this using socket
connections. If you haven't already you may want to look into this, I'm
sure payflow will allow you to post data using socket connection.

Take a look at:

http://us4.php.net/fsockopen

In the User Contributed Notes look for a post by 

info at agriya dot com
02-Feb-2003 12:38

there you will see a script that shows you how to do it.

-Original Message-
From: Haseeb Iqbal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 19, 2003 1:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OOT Payflow Urgent

hi all,
i am using curl to post data to the payflow link server.
now here are the questions that i want to ask.
here is the server stats
Linux+ php + mysql + curl + ssl
1) now i want to know if curl is safe to use?
i know about the payflow sdk but i also know that i can execute the sdk
by
exec call and if anyone is loged on the computer at the time of the
transection he/she can view all the data passed to the sdk by simply one
command.(i.e. ps.). as

also don't want to show the user any page from verisign. but when i send
the
data i get back html output. i want some kind of error codes.how can i
achieve this. know there must some way around this problem.
i want to collect all the information on my page send the data to the
payflow link without leaving my site the get back the result from the
transection and show the result to the user.

thanx in advance
Haseeb





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



[PHP] Sorting Country List

2003-06-24 Thread Ralph
I am getting a list of all countries from mysql database, and then I am
sorting by country name. However since most orders will be from US I
want the US to appear first over the rest of the countries. How can I go
about doing this?

Currently, this is my query:

SELECT countries_id, countries_name FROM TABLE_COUNTRIES ORDER BY
countries_name;



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



RE: [PHP] Sorting Country List

2003-06-25 Thread Ralph
Thanks for your replies, however what I was looking for was to have the
countries sorted by alphabetical order starting with the US. I rewrote
the query to:

"SELECT IF(countries_id='US', 0, 1) as ctsort, countries_id,
countries_name
  FROM TABLE_COUNTRIES 
  ORDER BY ctsort, countries_name"

-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 12:13 AM
To: Ralph; PHP General Mailing List
Subject: RE: [PHP] Sorting Country List

Why don't you just add a hard coded line like this:

USA

as the 1st option in your select box?

Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-Original Message-
From: Ralph [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 6:43 AM
To: PHP General Mailing List
Subject: [PHP] Sorting Country List


I am getting a list of all countries from mysql database, and then I am
sorting by country name. However since most orders will be from US I
want the US to appear first over the rest of the countries. How can I go
about doing this?

Currently, this is my query:

SELECT countries_id, countries_name FROM TABLE_COUNTRIES ORDER BY
countries_name;



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


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




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



[PHP] HTML_QuickForm

2003-06-25 Thread Ralph
Anybody used PEAR: HTML_QuickForm or Manuel Lemos Forms Generation and
Validation class? I'm looking to use one of these for my forms, so I was
wondering if anybody had any experience in working with either.  



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



[PHP] Re: contents from a database

2002-07-16 Thread Ralph

You need to use the concatenating assignment operator .=  after $sub. The
way you had it the variable $sub was getting assigned a new value each time
through the while loop. The .= oprerator will add to the existing value of
$sub each time through the loop.

Try this:

$query = "SELECT * FROM content WHERE section='$section' ";
$result = mysql_query($query);

while ($row = mysql_fetch_array($result))
{
   $sub .= "" . $res[art_name] . "\n";
}

Good luck :-)



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




RE: [PHP] [posibleOT] Forcing entering te site thru index.php

2004-01-28 Thread Ralph
The only other way I can think of doing this without sessions is to use
$_SERVER['HTTP_REFERER'] to check if page request is coming from an existing
page within your site or not. But I don't think this method will work 100%
of times.

Another approach would probably be to use single entry point controller
model meaning, all pages are served by index.php. 

Still not sure as to how you can do this without sessions but you might want
to look at frameworks like php.MVC or Fusebox that use the controller model 

http://www.phpmvc.net/

http://php-fusebox.sourceforge.net/

Hope this helps.



-Original Message-
From: Fernando M. Maresca [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 21, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] [posibleOT] Forcing entering te site thru index.php

Hello everybody.
Well, i'm trying to avoid access to the site for the middle. Say there
is a initial page with a form and other pages that depends on this. Is
there a way to force users access the site thru the initial form page,
regardless of the url?
Something like this:
lynx http://mysite/forma2.php/
produce the browser to redirect to 
http://mysite/index.php/

Of course, the forma2.php must be served if its accesed after index.php.
Thanks

-- 

Fernando M. Maresca

Cel: (54) 221 15 502 3938
Cel: 0221-15-502-3938

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

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



RE: [PHP] PHP EDITORS

2004-01-28 Thread Ralph
I agree that Zend Studio is phenomenal. Another editor that I like is
NuSphere's PhpEd. You might want to look at this one too:

http://www.nusphere.com/


-Original Message-
From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 28, 2004 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP EDITORS

Up until recently, I've used Crimson Editor
(http://www.crimsoneditor.com) which does a great job with syntax
highlighting and is a great all around editor I think.  I'm surprised I
don't see it mentioned more often when I see lists of PHP-happy editors.

Right not I'm evaluating Zend Studio ($200-$250) which is PHENOMEMAL!..
But of course that's money.. Not free.

Since my boss said he might foot the bill if I found a good commercial
editor, I'm giving Zend a shot.   I did install and fool around with
PHPEdit briefly and for a free system, it looks really great.  For what
I'm doing though, I really wanted something a little more powerful (and
not necessarily free).

I really didn't dig into PHPEdit very deeply.  If Zend turns out to have
major problems, I'll give PHPEdit a more honest look.  First glance it
appeared fairly functional though.  Much more so than Crimson Editor.
But CE is still my favorite basic free code and text editor.

-TG

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 28, 2004 8:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP EDITORS
> 
> 
> Hello John,
> 
> On 28 Jan 2004 at 0:10, John Jensen wrote:
> 
> > Hello everyone. I am new to PhP and MySQL. I was wondering 
> what a good
> > (Or Free) Php Editor is?
> 
> If you want something nice and simple to start with, try WinSyntax 
> (http://www.winsyntax.com).
> 
> If you want a very nice and configurable editor that has 
> loads of great plugins for other 
> technologies (such as XML/XSLT), go straight to jEdit 
(http://www.jedit.org).

If you want a nice IDE with lots of menus and helpers, try either
PHPEdit 
(http://www.phpedit.org) or Maguma Studio 
(http://www.maguma.com/products.php?article=free).

My suggestion is that you download them all, have a go at each one and
keep the one 
you find more intuitive and feel most comfortable with.

Good luck,

Erik

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

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

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



[PHP] PHP Social Software

2004-01-30 Thread Ralph
Anybody know of any PHP based Social Software projects?

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



RE: [PHP] How many days between two dates

2004-02-16 Thread Ralph
Use KronoClass:

http://lafucina.holosoft.it/kronoclass/index.html

example:

// Now calc how days are between date_from and date_to
echo 'How many days are between 03/20/2003 and 04/21/2003 ?: ';
echo $k->days_diff('03/20/2003','04/21/2003');
echo '';


-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 16, 2004 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How many days between two dates


"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Shaun wrote:
> > Hi,
> >
> > how can I check how many days are between two given dates?
> >
> > Thanks for your help
> >
>
> There are many ways, it would help if you tell us what form are the
> dates in - timestamp, formated string, sql date column ...

Sorry,

The dates are retrieved from the database so are stored as -MM-DD
HH-MM-SS in MySQL

Thanks for your help

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

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



RE: [PHP] small business inventory management package

2004-03-10 Thread Ralph
OSSUITE:

http://sourceforge.net/projects/ossuite/

or just browse through sourceforge projects:

http://sourceforge.net/softwaremap/trove_list.php?form_cat=129&discrim=183


-Original Message-
From: Christian Calloway [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 09, 2004 1:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] small business inventory management package

Hey,

Not looking to reinvent the wheel.. I am looking for an inventory management
software package (written in PHP of course) that would be suitable for a
small business. So in otherwords, nothing with any bells or whistles, just
something that is easily modified/extensible. Any suggestions, Thanks in
advance

Christian

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

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



RE: [PHP] session.bug_compat_42

2004-03-24 Thread Ralph
It's great to see you on the list Rasmus! 

Anxiously awaiting for official release of PHP5...I haven't been this
excited since the release of PHP4!!! :-)

Many thanks go out to you and the others who make PHP possible.


-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 9:12 AM
To: James E Hicks III
Cc: PHP-General
Subject: Re: [PHP] session.bug_compat_42

This has nothing to do with the browser.  Instead of using 
session_register("last_time") and setting $last_time, do this:

  $_SESSION['last_time'] = time();

It's shorter and it will make the warning go away.

-Rasmus

On Tue, 23 Mar 2004, James E Hicks III wrote:

> What does the code look like that is causing this error? I know I can turn
the 
> error off but how do I fix the code that is causing it?
> 
> Warning: Unknown(): Your script possibly relies on a session side-effect
which 
> existed until PHP 4.2.3. Please be advised that the session extension does

> not consider global variables as a source of data, unless register_globals
is 
> enabled. You can disable this functionality and this warning by setting 
> session.bug_compat_42 or session.bug_compat_warn to off, respectively. in 
> Unknown on line 0
> 
> It only seems to appear when viewed using MSIE, Konqueror and Mozilla do
not 
> display this error, why?
> 
> Here is some example code that I am using.
>  if (!session_is_registered('U_SI')) {
>   #do some stuff.
> }
> session_register("last_time");
> $last_time = time();
> echo $_SESSION['last_time'];
> ?>
> 
> Here are some settings from php.ini from the server that is giving the
error.
> 
> /etc/php4/php.ini
> 
> register_globals = Off
> [Session]
> session.save_handler = files
> session.save_path = /tmp
> session.use_cookies = 1
> session.name = PHPSESSID
> session.auto_start = 1
> session.cookie_lifetime = 0
> session.cookie_path = /
> session.cookie_domain =
> session.serialize_handler = php
> session.gc_probability = 1
> session.gc_divisor = 100
> session.gc_maxlifetime = 1440
> session.bug_compat_42 = 1
> session.bug_compat_warn = 1
> session.referer_check =
> session.entropy_length = 0
> session.entropy_file =
> session.cache_limiter = nocache
> session.cache_expire = 180
> session.use_trans_sid = 0
> url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
> 
> 
> PHP 4.3.2 (cli) (built: Aug 12 2003 14:25:22)
> Copyright (c) 1997-2003 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
> with Turck MMCache v2.3.20, Copyright (c) 2002-2003 TurckSoft, St. 
> Petersburg, by Dmitry Stogov
> 
> 
> James Hicks
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

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



RE: [PHP] Image verification problem..

2003-07-07 Thread Ralph Guzman


-Original Message-
From: Ralph [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 7:02 PM
To: 'Miranda, Joel Louie M'; [EMAIL PROTECTED]
Subject: RE: [PHP] Image verification problem..

You should register session for 'new_string' after assigning a value to
it.

So try placing

session_start();
session_register('new_string');

after the rest of your first.php code.

That should work.



-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 6:45 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Image verification problem..

Im trying the image verification thing I think everything goes well for
the
generation of the image but when it comes to verifying the text when I
typed
in any text it just generates and process the form, but when I leave it
blank it says the error. I think the session variables for $new_string
is
not being passed I tried to echo the session variable but it doesn't
show
up.

Any ideas on this?

I think this is the problem? elseif ($new_string == $verify_random) but
I
don't think so..


-- first.php --
session_start();
session_register('new_string');

Header("Content-Type: image/png");
$new_string;
$im = ImageCreate(200, 50); 
$white = ImageColorAllocate($im, 255, 255, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
srand((double)microtime()*100); 
$string = md5(rand(0,)); 
$new_string = substr($string, 17, 5);
ImageFill($im, 0, 0, $black);
ImageString($im, 4, 96, 19, $new_string, $white);
ImagePNG($im, "verify.png");
ImageDestroy($im);
-- end // first.php --








-- second.php --
session_start();
$random = $_POST['random'] ;
$verify_random = trim($random);

if (empty($v_name_filter) || empty($v_email_filter)) { 
echo "All fields are Required"; 
}
elseif ($new_string == $verify_random)
{
echo "Please go back and get verified.\n\n";
echo "$new_string\n\n";
echo "$verify_random\n\n";
echo "SessionID: $PHPSESSID";
} else {
echo "$new_string\n\n";
echo "$verify_random\n\n";
echo "SessionID: $PHPSESSID";
-- end // second.php --



--
Thank you,
Louie

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



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




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



RE: [PHP] a recommended FREE PHP shopping cart

2003-07-07 Thread Ralph Guzman
http://www.oscommerce.com


-Original Message-
From: Noah Solodky [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] a recommended FREE PHP shopping cart

Hello
can any one  recommended a FREE PHP  /MYSQL shopping cart,,that they
have 
set up themselves??

thanks so much


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




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



RE: [PHP] PEAR

2003-07-07 Thread Ralph Guzman

http://www.appelsiini.net/~tuupola/php/peardoc2/index.html

http://www.phpkitchen.com/staticpages/index.php?page=2003041204203962

you might sign up for the pear mailing lists and ask these specific
questions:

http://pear.php.net/support.php


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Monday, July 07, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PEAR

hi 
 
i'm interested in learning more about the PEAR project, and the
possibility of incorporating 
PEAR code in my future projects.  i was wondering if anyone can
recommend 
some good 
PEAR tutorials.  i also wanted to get an idea as to the percentage of
people who use PEAR 
on a regular basis in their projects. 
 
any comments welcome 
 
thanks 
redmond 



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




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



RE: [PHP] print vs. heredoc

2003-07-07 Thread Ralph Guzman
One way to get around having to edit backslashes is to echo using single
quotes. For example:

echo '' . $variable .
'';





-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 06, 2003 3:48 PM
To: Sparky Kopetzky
Cc: PHP General
Subject: Re: [PHP] print vs. heredoc


> I'm looking for opinions as to which is better, print or heredoc.

I prefer heredoc mostly because I do not enjoy editing html that is full
of 
backslashes.  I build up the html and only output anything at the end.
This 
allows for custom compression, whitespace stripping, etc.

> print makes the code layout look nice and eazy to debug, where heredoc
IS
> faster but makes the code look like a nightmare and I'm pretty picky
about
> what looks good.

Sounds like you already have your mind made up.


-- 
Greg Donald
http://destiney.com/



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




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



RE: [PHP] Forgotton Command

2003-07-07 Thread Ralph Guzman
Are you talking about number_format()?

http://www.php.net/number_format

or substr():

http://www.php.net/manual/en/function.substr.php

-Original Message-
From: Brenton Dobell [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 7:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Forgotton Command


Hey all, Im new to this list and fairly new to php,

anyways I had a command to get a variable of numbers eg.
14.39287376585639584673

I used to know a command to strip the variable back to 4 digits eg 12.3

But for the life of me i cant remember the command, can anyone please
help,
ive tried looking in the php manual but nothing has jogged my memory

Thanks in advance

Brenton Dobell


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




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



[PHP] Regular Expression

2003-07-07 Thread Ralph Guzman
I have a form where I have to check whether user is submitting a PO Box
as an address. I wrote the following using eregi, but it returns true
even when the field is not Po Box. How do I go about doing this
properly?

if(eregi("^Po Box$", $address)){
  $error_message_custom = "You cannot use a PO BOX for Bill To Address";
}



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



RE: [PHP] Read a file

2003-07-08 Thread Ralph Guzman
You might want to look at patConfiguration:

http://www.php-tools.de/

It can read/write text and xml files.



-Original Message-
From: carlos castillo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 8:53 AM
To: 'PHP List'
Subject: RE: [PHP] Read a file

But them how i can look for the tag i need if i have the file in an
array, i need to read an xml file and extract the info between tags
 and .

Thanks,

Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]

 
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia 

- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico



-Mensaje original-
De: Burhan Khalid [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 08 de julio de 2003 10:15
Para: Carlos Castillo
Asunto: Re: [PHP] Read a file

On Tuesday, July 8, 2003, 6:08:20 PM, Carlos wrote:
CC> I need to read a whole file and then look for an info on it, i want
to know
CC> with which function is better, fopen(),
fpasstrhu()...fseek()
 
The function that will be best will depend on what kind of file you
are wanting to read. For simple text files, this works well :

$contents = file("somefile.txt");

Which puts all the information in the file in an array.

http://www.php.net/file


-- 
Regards,
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com




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




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



RE: [PHP] Going Back in PHP

2003-07-08 Thread Ralph Guzman
If you still have the older version of PHP running, you can use
phpinfo(); and look under Configure Command to see how PHP was
originally configured.

Otherwise, just look at PHP configure options and figure out what
settings you need:

http://www.php.net/manual/en/install.configure.php


-Original Message-
From: Mike At Spy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 10:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Going Back in PHP


I am trying to help one of our admins with a php config/setup issue on
one
of our servers; the admin re-compiled php, but did not include all of
the
correct settings.  Outside of having the previous make and config files,
is
there any other files on the server that may hold the old settings so
that
we can gather them and return to the previous way we had php set up?

Thanks,

-Mike



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




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



RE: [PHP] Regular Expression

2003-07-08 Thread Ralph Guzman
Thanks Wendell. This is exactly what I was looking for.

-Original Message-
From: Wendell Brown [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 4:47 AM
To: PHP General Mailing List
Subject: Re: [PHP] Regular Expression

On Mon, 07 Jul 2003 21:59:23 -0700, Ralph Guzman wrote:

>I have a form where I have to check whether user is submitting a PO Box
>as an address. I wrote the following using eregi, but it returns true
>even when the field is not Po Box. How do I go about doing this
>properly?
>
>if(eregi("^Po Box$", $address)){
>  $error_message_custom = "You cannot use a PO BOX for Bill To
Address";
>}

I think this would do better...

  if( preg_match( "/P[\. ]*O\.* +BOX/i", $address ) )

This will look for a "P" followed by a space, period or an "O" followed
by a period and/or one or more spaces and the word BOX.  It will also
ignore case.


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




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



RE: [PHP] Mail Header/Return Receipt

2003-07-08 Thread Ralph Guzman
Disposition-Notification-To: is not a sure bet, since the majority of
people ignore the return receipt.

The only way you will know if the email address is invalid is when the
email bounces back and the server sends you the error message. At this
point you can have a script check the email server spool file for
bounced messages containing invalid email addresses. 

If are running an in-house web server, one way you can check if the user
received the email, rather than attaching the pdf file to the email,
generate and keep the pdf file on your web server. Then on the email
give them a link to your web server where they can download the file.
But instead of linking straight to the pdf file, use a download script
that will check what file is being downloaded and then report this back
to you. Something like:

http://www.mydomain.com/download.php?file=Quote.pdf

If you must attach the file to the email, then another method would be
to include an  tag in the email message, so when the recipient
opens up the email  will call out a script on your server which
will track the users email address and then report this back to you.
Something like:

http://www.mydomain.com/[EMAIL PROTECTED]"
WIDTH="1" HEIGHT="1" BORDER="0">

 
-Original Message-
From: Brian S. Drexler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 11:19 AM
To: 'Ralph Guzman'
Subject: RE: [PHP] Mail Header/Return Receipt

That is a good idea.  I can tell them it has at least been sent from our
server, but what if the e-mail address they are sending it to is not
valid?
I'd like for them to know if it fails.  I'll figure it out.  When I do
I'll
let you know what I did.  Thanks for all the help and suggestions!

Brian

-Original Message-
From: Ralph Guzman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail Header/Return Receipt


once the email is sent out, can't you simply have your script send the
user a receipt?

If you must use Disposition-Notification-To: for the receipt then I
think you will have to figure how to do this on the email server level.
Afterall, the script is doing what it's supposed to.

-Original Message-
From: Brian S. Drexler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 10:47 AM
To: 'Ralph Guzman'
Subject: RE: [PHP] Mail Header/Return Receipt

I can't.  Server A has a printer driver installed that calls some PHP
functions.  It takes the title tag from a Postscript file sent to the
printer and gets some information from a different machine running MySQL
on our network.  Depending on this information it may fax the postscript
file using HylaFAX or e-mail it.  If it is going to e-mail then it then
takes that information (e-mail address, to and from, phone number, etc.)
and creates an HTML e-mail and a PDF file and e-mail's them.  It works
pretty well for us and it makes it simple for the people using the
application. All they do is print the report to a default printer and it
does all the work for them.  With the faxes it will e-mail them a
confirmation if it fails or not, and that's what I'm trying to get the
e-mail to do (quite unsuccessfully I might add).  Good thought though.
Any other ideas?

-Original Message-
From: Ralph Guzman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 1:41 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Mail Header/Return Receipt


What if you run the script from server b?

-Original Message-
From: Brian S. Drexler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 10:33 AM
To: 'Ralph Guzman'
Subject: RE: [PHP] Mail Header/Return Receipt

Ok, I wasn't sure if it was a simple "header" tag that I was missing or
something like that.  Thanks though...




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



RE: [PHP] Refresh PHP

2003-07-08 Thread Ralph Guzman
How about:

if($_GET['url_variable'] != $url_variable){
   $url_variable = $_GET['url_variable'];
   session_register('url_variable')
}


-Original Message-
From: Mauricio [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 11:14 AM
To: PHP
Subject: Re: [PHP] Refresh PHP

Hello Ralph,

Actually, after calling session_destroy() I reset those variables
assigning
an empty value like you said. But it still doesn't work. I did a test
after
destroying session variables, printing them. They are empty.

Another weird thing is that when a login as "joao" them logoff,  exclude
IE
cache, going in Tools >> Internet Option..., and login again with
another
user, this way the variable are printed correctly.

It happens in any windows version (95,98,ME,2K,XP) using IE 6.0 and
Netscape
7.



- Original Message -
From: "Ralph Guzman" <[EMAIL PROTECTED]>
To: "'Mauricio'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 2:11 PM
Subject: RE: [PHP] Refresh PHP


> Rather than using session_destroy() reset the session variable by
> assigning it an empty value. For example, lets say your url looks
> something like this:
>
> http://www.mydomain.com/?url_variable=Mauricio
>
> then do the following:
>
> if($_GET['url_variable'] != $url_variable){
>$url_variable = "";
>session_register('url_variable')
> }
>
>
> -Original Message-
> From: Mauricio [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 08, 2003 7:02 AM
> To: PHP
> Subject: [PHP] Refresh PHP
>
> Hi people!
>
> Did anyone get this situation?
>
> I'm creating a Site that uses 3 session variables. One of them I
always
> print at the top of the page, it's the name of the user. There is a
link
> that calls the function session_destroy(). Everytime that I follow
this
> link
> and log in with another user, that session variable printed doesn't
> change,
> but if I press F5 in IE or Netscape them it brings the right user. I
> can't
> make the page return the current user login, it always came with the
> last
> user logged. I tried to add some headers to set no cache in all php
> pages,
> but it doesn't work.
>
> Anyone can help me???
>
> Thanks
>
> PS: Sorry about my poor english...
>
>
> Maurício Valente
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



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




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



RE: [PHP] Compiling PHP

2003-07-08 Thread Ralph Guzman
The error you are providing here is because you do not have the required
libraries installed. Some of these modules require that the programs or
libraries be installed, php does not install them for you.

This is an extensive config. Are you sure you need all these. I see that
you are trying to enable pgsql, mySQL, interbase. Will you be running
all these databases on you server? 

I've looked through your config, and below are some notes I made.

Hope this helps.


..


>> --prefix=/usr 
is there a reason why you must install php to /usr. The default
directory is /usr/local/lib?

>> --with-apxs=/usr/sbin/apxs 
is your apache compiled with mod_so for apxs support?
http://httpd.apache.org/docs/programs/apxs.html

>> --enable-safe-mode 
this may restrict some php functions

>> --with-exec-dir=/usr/bin 
this will allow executables in your /usr/bin directory. This might be a
security risk. Why not let it default to /usr/local/php/bin? 

>> --with-zlib 
I think this should be --with-zlib-dir=
http://www.php.net/zlib

>> --with-regex=system 
PHP supports regular expressions by default. Why don't you use
--with-regex=php 
http://www.php.net/regex

>> --with-ttf 
do you have the FreeType libraries installed?
http://www.php.net/image

>> --with-db 
does your server support this type of database?
http://www.php.net/manual/en/ref.dbm.php

>> --with-gdbm 
does your server support this type of database?

>> --with-mbstring 
do you need multi-byte character support?
http://www.php.net/mbstring

>> --with-mbstr-enc-trans
not sure what this does.

>> --with-libdir  
not sure what this does.

>> --with-interbase=shared 
are you running Interbase on your server?
http://www.php.net/manual/en/ref.ibase.php

>> --with-pgsql=shared 
are you running PostgreSQL on your server?
http://www.php.net/manual/en/ref.pgsql.php

>> --with-ldap 
do you have LDAP libraries installed?
http://www.php.net/manual/en/ref.ldap.php

>> --with-imap-ssl
I think this should be --with-imap-ssl=[DIR]
 http://www.php.net/imap

>> --with-mysql 
are you running MySQL on your server?
http://www.php.net/manual/en/ref.mysql.php

--with-gd
Do you have the GD library installed?
http://www.php.net/manual/en/ref.image.php

--with-png 
Do you have PNG library installed?
http://www.php.net/manual/en/ref.image.php



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




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



RE: [PHP] Compiling PHP

2003-07-09 Thread Ralph Guzman
Installing PHP CLI binary:/usr/local/bin/
Installing PHP CLI man page:  /usr/local/man/man1/
Installing PHP SAPI module
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

HAVE YOU CHECKED TO MAKE SURE THAT --with-apxs=/usr/sbin/ IS SET
PROPERLY. IF YOU INSTALLED APACHE TO IT'S DEFAULT DIRECTORY THEN THIS
SHOULD BE --with-apxs=/www/apache/bin/apxs. YOU MAY WANT TO CHECK THAT
APXS IS PROPERLY INSTALLED WITH APACHE.

BTW, this all stems from another admin on the server wanting to upgrade
apache to 1.3.27 - when that was done, my php written in my scripts
started
failing.  It doesn't even work now.  Whenever I have a script that
passes a
value (example: a link going to somewhere.php?w=4), it does not process
at
all (nothing happens - so w doesn't do anything).  Everything worked
fine
until this started...

THIS SOUNDS LIKE A REGISTER GLOBALS ISSUE. AS OF PHP 4.2.0 REGISTER
GLOBALS IS TURNED OFF BY DEFAULT. SO YOU CAN NO LONGER CALL A GET OR
POST VARIABLE FROM YOUR SCRIPT BY SIMPLY SPECIFYING $w YOU MUST USE
$_GET['w'] or $HTTP_GET_VARS['w'], IF DOING A FORM POST YOU MUST USE
$_POST['w'] or $HTTP_POST_VARS['w'] (read:
http://www.php.net/variables.predefined). IF YOU CANNOT MODIFY YOUR
SCRIPT AT THE TIME, YOU CAN TURN REGISTER GLOBALS BACK TO ON BY EDITING
YOUR PHP.INI FILE, AND SET REGISTER_GLOBALS = ON. BUT JUST KEEP IN MIND
THAT TURNING REGISTER GLOBALS ON PRESENTS SECURITY RISKS. Read:
http://www.php.net/manual/en/security.registerglobals.php


--with-config-file-path=/usr/local/
DO YOU WANT TO PLACE PHP.INI FILE IN /usr/local/apache? BY DEFAULT THIS
GOES IN /usr/local/lib/php.ini, IF YOU MUST CHANGE THIS I THINK IT WOULD
BE MORE APPROPRIATE TO PUT IT IN YOUR /etc/ directory.








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



RE: [PHP] PHP, MySQL and Flash

2003-07-09 Thread Ralph Guzman
Might want to look at: http://polar-lights.com/en/

-Original Message-
From: Rankin, Randy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 5:30 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] PHP, MySQL and Flash

Does anyone know of any articles on integrating PHP, MySQL and Flash to
perform a drag and drop routine for updating a db?

Specifically, I have a client who is _INSISTING_ that I integrate a drag
and
drop feature into his railcar storage application. He wants to be able
to
view two railcar storage tracks, Track A and Track B, then drag and drop
cars from Track A to Track B ( or Track B to Track A ). Once he
positions (
orders ) all the cars properly on each track, I need to update a MySQL
db to
reflect the changes. 

I have already developed the above feature so that he can do this
'textually', but he is _determined_ that he must have the graphic 'drag
and
drop' feature. 

There may be another method ( Javascript ? ) to accomplish the same
effect.
I am certainly open to any advice and/or opinions. Any pointers would be
_greatly_ appreciated.

Thanks, 

Randy Rankin



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



RE: [PHP] New to PHP

2003-07-09 Thread Ralph Guzman
Yes, and also the same Rasmus founder of PHP. From time to time he may
even respond to one of you questions. :-)

And you're right one of the best ways to learn is to look at other open
source code. I've learned how to write efficient code and also learned
programming tricks by studying other code.

Welcome to the team,

-Original Message-
From: Ow Mun Heng [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 7:52 PM
To: PHP
Subject: RE: [PHP] New to PHP

Wow.. There's a guy named Rasmus here. Is here(or u) the same person who
wrote that book? this is way cool..

Oh.. BTW, "PHP & Mysql Web Development" is GOOD.

Also, since a lot of codes are open sourced, Read through them as well.
I'm
learning through that too. (& this list)

Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia 
DID : 03-7870 5168


-Original Message-
From: Ralph [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 9:01 AM
To: 'Hiren Mehta'; 'PHP'
Subject: RE: [PHP] New to PHP


Here are some sites for you to get started:

http://www.zend.com/developers.php
http://www.phpcomplete.com/tutorials.php
http://www.evilwalrus.com/articles.php

And for books, here are some excellent books I've come across:

Programming PHP
By Rasmus Lerdorf

Web Application Development with PHP 4.0
by Tobias Ratschiller

Professional PHP4 Programming
By Deepak Thomas





-Original Message-
From: Hiren Mehta [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 2:28 PM
To: PHP
Subject: [PHP] New to PHP

Hi I am new to PHP and would like to learn more about it. Which would be
the best place to start with besides the manual and what would you
suggest is a pre-requiste for learning PHP.

Thanks

Regards,

Hiren



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




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



RE: [PHP] Credit card/Debit card validation

2003-07-09 Thread Ralph Guzman
Go to http://www.phpclasses.org and look for CreditCard Class under
Validation, else look for one at http://www.hotscripts.com

-Original Message-

-Original Message-
From: Sparky Kopetzky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 2:33 PM
To: PHP General
Subject: [PHP] Credit card/Debit card validation

Does anyone know of a PHP routine to validate Credit/Debit cards? I've
seen some convoluted Javascript scripts but want a PHP version so
validation can be done done server-side.

Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net




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



RE: [PHP] Handling Credit Card Payment

2003-07-09 Thread Ralph Guzman
If you will be processing credit cards you first need to sign up with a
credit card processor like Authorize.net, PSIGate.com, Netbilling.com.
Another alternative would be use PayPal which is a bit easier to
implement but at the cost of flexibility.

They will provide you with a gateway to which you will submit your
shopping cart orders. Gateways vary but the process is usually the same.
You might want to read Authorize.net or any other cc processors manual
to get a better idea of how it works. Here is authorize.net maual: 

http://www.authorizenet.com/support/AIM_guide_SCC.pdf


-Original Message-
From: Student4 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 7:51 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Handling Credit Card Payment

dear all

hello im new user. i want create e-comerce site but i dont know how to
handle credit card paying, procedure, maintenence, etc. can anybody help
me?

regard,

xmadda

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




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



RE: [PHP] ImageTTFText for mac? win? linux?

2003-07-13 Thread Ralph Guzman

http://www.codephobia.com/tutorials/view.php3?idnum=6
-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:04 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] ImageTTFText for mac? win? linux?

Im confused.. I know I have TrueType support on php. Now I wonder where
will
I put my fonts into my server? Like verdana, etc just a sample. Does
this
means even macintosh truetype fonts I can also load in?

--
Thank you,
Louie Miranda ([EMAIL PROTECTED])

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



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



RE: [PHP] Missing php.ini file

2003-07-14 Thread Ralph Guzman
Chris,

Not sure how you went about searching for php.ini, but you can type in
the following find command in your command prompt and it will search
your entire system:

find / -name php.ini -print

You may also want to look for php.in in /usr/local/lib. This is where
php install php.ini by default.

If phpinfo() is showing php.ini in /etc and you can't find it, simply
look for a copy of the original php.ini-dist in the php source directory
and copy it to /etc. Just be sure to rename it from php.ini-dist to
php.ini.

To copy, in your php source directory type:

cp php.ini-dist /etc/php.ini 

Hope this helps.

-Original Message-
From: Chris Blake [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 3:30 AM
To: PHP Mailing List
Subject: [PHP] Missing php.ini file

Greetings learned PHP(eople),

My php.ini file has gone awol, how or why I don`t know

The only php.ini file I can find on my system (MDK 9.1) is located in 
'/usr/local/ZEND/bin' and only contains the following entries :
===
zend_extension=/usr/local/Zend/lib/ZendDebuggerLocal.so
zend_debugger.allow_hosts=127.0.0.1/32
session.save_path=/tmp
===

I did phpinfo() on a test page and it reports the following..

---
Configuration File (php.ini) Path /etc  

Scan this dir for additional .ini files /etc/php  

additional .ini files parsed /etc/php/23_gd.ini, /etc/php/26_imap.ini,
/etc/php/27_ldap.ini, /etc/php/34_mysql.ini, /etc/php/41_readline.ini 


Could the file be hidden in one of these directoriesI`m kinda new to
both MDK and php, so would appreciate any ideas if you have some as to
how I can get my php.ini file back

Do I need to re-install/recompile PHP ?

Many thanks
-- 
Chris Blake
Office : (011) 782-0840
Cell : 083 985 0379

Just because the message may never be received does not mean it is
not worth sending.


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




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



RE: [PHP] SquirrelMail + Writable Directories

2003-07-14 Thread Ralph Guzman
Most ftp programs allow you to chmod. If using windows, check out wsftp
www.ipswitch.com.

I don't think there is another way to change directory/file privileges
other than chmod.

-Original Message-
From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2003 12:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SquirrelMail + Writable Directories

My question is simple - I want to install Squirrelmail on my webserver, 
but I can't chmod or chown the data directory. Is there any way to stop 
Squirrelmail from trying to write to the directory without limiting 
functionality too much, or is there a way to allow it to write without 
using chmod, chgrp or chown?

I can't SSH into the box, only set up cron jobs. :S Can anyone help!?



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




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



RE: [PHP] Lots of PHP

2003-07-14 Thread Ralph Guzman
If you're going to be keeping track of all these demographics, you'll
want to store these in a database rather than a text file.

-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 13, 2003 7:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Lots of PHP

Hi all,

I'm in the early steps of the design of a portal kid of site dedicated
to
Fly Fishing and one of the most relevant section will be a "Shopping
Guru"
that visitors will be able to use to determine what is the best
equipment
they should buy or bring, in order to catch the size and kind of trout
they want to get, wherever they want to go and whenever they decide to
go.

This sounds simple, but I have to take in consideration that my Country
has LOTS of places to fish and every time of year it's different as
trout
are never in the same place, so equipments to be used are different
depending the time of year (grouped in two weeks), etc.

A solution will be to start writing several miles of text into text
files
or databases so PHP can fire these up and seek for a solution depending
on
what the visitor has chosen, but this is an extremely log solution,
specially having in mind that this site will be in two languages.

What would be the best solution for this? I even want to let visitors
select the equipment (what they own), the place and the time of year and
get the kind of trout they will be fishing, or maybe even more ways
around... is this possible? has anyone made something so "intelligent"
in
PHP before?

I use PHP 4+ and MySQL 3.4

Thanks in advance,

---
Cesar Aracena
[EMAIL PROTECTED]
http://www.icaam.com.ar
Cel: +54.299.635-6688
Tel/Fax: +54.299.477-4532
Cipolletti, Rio Negro
R8324BEG
Argentina




---
Soluciones profesionales en
 Internet y Comunicaciones
  http://www.icaam.com.ar



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




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



RE: [PHP] php script billing receipt

2003-07-14 Thread Ralph Guzman
What you are looking for is called an Invoice. I'm attaching a simple
invoice for you to look at. 

-Original Message-
From: Duncan [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 13, 2003 4:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php script billing receipt

Hi,

I just finished a script for an US company and now have to provide them 
with a billing receipt stating my work and the price for it.
google didn't come up with anything usefull, most search results came up

with billing scripts and not an example text of such a billing receipt.
Does anyone have an example text, which you use when you have to charge 
a client for your work?
I am asking because english isn't my first language and instead of 
making s.th. up in my own words it would surely look better, if I can 
present s.th. which is 100% correct :)

Thanks,
Duncan


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


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

RE: [PHP] XML Array

2003-07-16 Thread Ralph Guzman
Take a look at patConfiguration http://www.php-tools.de/site.php


-Original Message-
From: Michael Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] XML Array

Hey,

I'm looking for a function to take an XML file and turn it into a PHP 
array with the same structure. So if I have:


#00
image.jpg


It would give me an array:

Array (
[template] => Array (
[color] => #00
[background] => image.jpg
)
)

Anyone know of anything like that?

-Michael
-- 
Pratt Museum IT Intern
All programmers are playwrights and all computers are lousy actors.


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



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



RE: [PHP] HTTPS POST without user/client intervention

2003-07-16 Thread Ralph Guzman
I think what you are looking for is socket connections:
http://www.php.net/manual/en/function.fsockopen.php

Or CURL

http://www.php.net/manual/en/ref.curl.php


-Original Message-
From: PHP List [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 1:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTPS POST without user/client intervention

I am writing a php script to accept an HTTPS POST of data from a remote
site, process the data, and send an HTTPS POST response back (not
necessarily to the same remote site). I can do this pretty easily in
PERL (which I may have to if I can't find a PHP solution).  Also I need
to do the https post without any kind of client or user interaction. I
have checked through php.net and phpbuilder.com but have only come up
with things for HTTP POST (no SSL Encryption).  Anyone run across
something like this, or can point me in a direction to look?

-- 
Woody

In a world without boundaries why
do we need Gates and Windows?


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




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



RE: [PHP] bcc on php

2003-07-16 Thread Ralph Guzman
Just include Bcc in the extra headers. Take a look at 

Example 4. Sending complex email
http://www.php.net/manual/en/function.mail.php


-Original Message-
From: Louie Miranda [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 16, 2003 5:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] bcc on php

hello,

how do you make a bcc on php on a form 2 email settings..



--
Thank you,
Louie Miranda ([EMAIL PROTECTED])



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



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



RE: [PHP] paypal and ecommerce

2003-07-18 Thread Ralph Guzman
Maybe it's just me, but I don't quite understand what you mean by this:

"The problem is, when we allow anyone to post items, you
may go to the site, chose five items to buy but they are all from
different
people.  How do you handle the check out?"  

Can you rephrase? Are you talking about having an affiliate program?

-Original Message-
From: Edward Peloke [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 12:01 PM
To: [EMAIL PROTECTED] Php. Net
Subject: [PHP] paypal and ecommerce

Looking for opinions as to the best way to handle this.

I am using a php ecommerce product(osCommerce) to create an 'online
yardsale'.  This will not be an auction site but items for sale at a
straight price.  Currently the site is set up so the user can place
several
things in their basket, check out and the website owner is credited (via
paypal accounts).  The problem is, when we allow anyone to post items,
you
may go to the site, chose five items to buy but they are all from
different
people.  How do you handle the check out?  We don't want them to have to
check out five times so all of the five sellers can have their accounts
credited.

Any help would be greatly appreciated.

Thanks,
Eddie


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




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



RE: [PHP] Multidimensional arrays

2003-07-18 Thread Ralph Guzman
Here's a way of doing it:

--

$query = "SELECT id, name FROM customer";
$result = mysql_query($query);

while ($oRsCusts = mysql_fetch_array($result)){
   $customers_array[] = array(
  'id' => $oRsCusts['id'],
  'name' => $oRsCusts['name']   
   );
}

--

You now have your db results store in array $customers_array


Hope this help.

-Original Message-
From: Gary Broughton [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 8:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Multidimensional arrays

Hi

Many thanks for your time Matt.  I tried that method amongst a few
others, and couldn't seem to get it right.  What I have eventually come
across is the function 'array-push' (bizarre!) to add a new array line
for each record (after it's been initially defined).  It seems to work
for me, and hopefully it is the correct, standard way to do such a task.

$strCusts = array(array('id','name'));
/* setting up empty array for cust id and name */
if (mysql_num_rows($resCusts) > 0) {
$intCusts = mysql_num_rows($resCusts);
/* store the number of records retrieved */
while ($oRsCusts = mysql_fetch_array($resCusts)) {

array_push($strCusts,array($oRsCusts["id"],$oRsCusts["name"])); /* add
new array row */
}
}

Many thanks once again.
Gary

"Matt Matijevich" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> 
> select id, name from customer
> redim custarray(recordcount,2)
> i = 0
> while not eof
> custarray(i,0) = id;
> custarray(i,1) = name;
> i = i+1;
> movenext
> wend
> 
> 
> Not sure what kind of db you are using but I put this together using 
> postgresql using the manual. So this is untested.
> 
> $conn = pg_connect("host=localhost dbname=whatever");
> $result = pg_exec($conn, "select id, name from customer");
> $i = 0;
> while ($row = pg_fetch_array($result))
> {
>   $custarray[$i][0] = $row["id"];
>   $custarray[$i][1] = $row["name"];
>  $i++;
> } 


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




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



RE: [PHP] osCommerce and modifications

2003-07-18 Thread Ralph Guzman
where can I see eShox?

-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 18, 2003 6:16 AM
To: PHP General
Subject: Re: [PHP] osCommerce and modifications

You might want to look at eShox, it's based on osCommerce, but in my
opinion
it's quite a lot better.

Cheers!

Rick




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



RE: [PHP] computing 2 value and adding it..

2003-07-20 Thread Ralph Guzman


if($pcs_1000){
  $total = $amount * 2;
}

-Original Message-
From: Louie Miranda [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 20, 2003 7:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP] computing 2 value and adding it..
Importance: High

I have a 2 form value on 500/pcs and 1000/pcs
And i was hoping how will i compute this when i comes to this code..

--- start 
$final_price_usmail = ( $bcard_price + $usmail_price );
$final_price_courier = ( $bcard_price + $courier_price );

if ($v_sendvia === 'USMail') {
 echo '$' . $bcard_price . ' (Business Card) + ' . $usmail_price . '
(U.S.
Mail) = $' . $final_price_usmail . '.00';

} elseif ($v_sendvia === 'Courier') {
 echo '$' . $bcard_price . ' (Business Card) + ' . $courier_price . '
(Courier) = $' . $final_price_courier . '.00';
}
--- end 

Im looking for a way that when the user click on the 1000/pcs it will
compute * 2.
But i couldt figure this out..

--
Thank you,
Louie Miranda ([EMAIL PROTECTED])



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




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



RE: [PHP] Re: Hi

2003-07-22 Thread Ralph Guzman
http://www.club66.ro/poker/poker.html

Spam? 

-Original Message-
From: Paul Chvostek [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 1:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Hi

On Tue, Jul 22, 2003 at 11:42:04AM +0300, Rausch Alexandru wrote:
> From: "Rausch Alexandru" <[EMAIL PROTECTED]>
> Subject: Hi
> 
> MYSQL problems problems.
> I want to install an user login aplicationa on my site, but it is
intarely in FLASH. ( www.poker.club66.ro ).
> What do u think?

I think this doesn't sound like a problem with "Hi", as your subject
line indicated.

-- 
  Paul Chvostek <[EMAIL PROTECTED]>
  it.canadahttp://www.it.ca/
  Free PHP web hosting!http://www.it.ca/web/


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


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



RE: [PHP] Problem setting variables.

2003-07-28 Thread Ralph Guzman
//Find User Configuration
$sql = mysql_query("SELECT field_name FROM config WHERE show_field=1")
OR die("Could not query database: ".mysql_error()."");
while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){
   $field_name_array[] = $result['field_name']
}

// Iterate through array and print fields
if($field_name_array == ""){
print 'please select at least 1 field to be shown';
} else {
for($i=0, $n=sizeof($field_name_array); $i<$n; $i++){
print $field_name_array[$i];
}
}


-Original Message-
From: Jason Martyn [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 27, 2003 9:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem setting variables.

I'm creating a script that filters the table of results from a database
based on the configuration set by the user (config stored in database as
well).

For example a table has 30 columns. However the user need only see 5.
Every user is different so a user configuration is stored in the
database.

The database has 2 columns: field_name and show_field. 
field_name is the name of the field (obviously) that is shown in the
table.
show_field can either be a 1 or a 0. 1 = show field. 0 = don't show
field.

I'm getting to a certain point. But I'm not sure how I can go about
setting variables for each field_name that has a show_field value of 1.

Heres the code.
 0)
 {


//*//
// Here is where I would like to set variables.
// I first thought of using a for statement, but
// realized that variables cannot begin with a
// number. Is there any possible way to set
// variables for the array results of my query?
//*//

 }

else
 {
  die("Please select at least 1 field to be shown.");
 } 

 }
 
?>

Thanks,
Jason



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



RE: [PHP] Problem setting variables - Correction

2003-07-28 Thread Ralph Guzman
Correction...Forgot a ;

//Find User Configuration
$sql = mysql_query("SELECT field_name FROM config WHERE show_field=1")
OR die("Could not query database: ".mysql_error()."");
while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){
   $field_name_array[] = $result['field_name'];
}

// Iterate through array and print fields
if($field_name_array == ""){
print 'please select at least 1 field to be shown';
} else {
for($i=0, $n=sizeof($field_name_array); $i<$n; $i++){
print $field_name_array[$i];
}
}


-Original Message-
From: Ralph Guzman [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 28, 2003 4:24 AM
To: 'Jason Martyn'; [EMAIL PROTECTED]
Subject: RE: [PHP] Problem setting variables.

//Find User Configuration
$sql = mysql_query("SELECT field_name FROM config WHERE show_field=1")
OR die("Could not query database: ".mysql_error()."");
while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){
   $field_name_array[] = $result['field_name']
}

// Iterate through array and print fields
if($field_name_array == ""){
print 'please select at least 1 field to be shown';
} else {
for($i=0, $n=sizeof($field_name_array); $i<$n; $i++){
print $field_name_array[$i];
}
}


-Original Message-
From: Jason Martyn [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 27, 2003 9:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem setting variables.

I'm creating a script that filters the table of results from a database
based on the configuration set by the user (config stored in database as
well).

For example a table has 30 columns. However the user need only see 5.
Every user is different so a user configuration is stored in the
database.

The database has 2 columns: field_name and show_field. 
field_name is the name of the field (obviously) that is shown in the
table.
show_field can either be a 1 or a 0. 1 = show field. 0 = don't show
field.

I'm getting to a certain point. But I'm not sure how I can go about
setting variables for each field_name that has a show_field value of 1.

Heres the code.
 0)
 {


//*//
// Here is where I would like to set variables.
// I first thought of using a for statement, but
// realized that variables cannot begin with a
// number. Is there any possible way to set
// variables for the array results of my query?
//*//

 }

else
 {
  die("Please select at least 1 field to be shown.");
 } 

 }
 
?>

Thanks,
Jason



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




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



[PHP] Registering Session

2003-07-30 Thread Ralph Guzman
I have a shopping cart checkout form where I am using GET to specify
payment method from payment_method.php page.

So I have something like the following:

>From payment_method.php the user chooses payment method by clicking on a
payment link that then send them to the checkout_form.php

checkout_form.php?form=cc for credit card
checkout_form.php?form=ch for credit check
checkout_form.php?form=ph for phone

since checkout_form is broken down into multiple forms, I am using
session_register to set form type in checkout_form.php

$form_type = $_GET['form'];
session_register('form_type');

The problem is that at times it registers $form_type properly as 'cc,
ch, or ph', but other times it registers $form_type as 'Object'. 

Why is it registering sessiong as 'Object'. Anybody experience similar
problem?



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



[PHP] Article: PHP vs ASP

2003-07-31 Thread Ralph Guzman
Might want to file this link, next time somebody asks about PHP vs. ASP

http://www.wowwebdesigns.com/wowbb/forum12/149.html




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



RE: [PHP] Search Engine

2003-08-01 Thread Ralph Guzman
Check out:

http://www.htdig.org/


-Original Message-
From: imran [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2003 4:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Search Engine

Hi,

Does anyone know any free search engine for web application


imee






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



[PHP] PHP SESSIONS and FRAMES

2003-08-03 Thread Ralph Guzman
I have a shopping cart with affiliate sales support. What's happening is
that some affiliates are using frames to use their domain while using
our shopping cart. So they are using a frameset like this:



   

   http://www.domain.com/?store_id=15008";>



The problem I'm having is that sessions are not being passed properly or
are expiring. 

Anybody experience this kind of problem? If so can you provide any
advice on passing sessions through frames?

Thanks.




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



[PHP] How to Ask Questions THe Smart Way...

2003-08-04 Thread Ralph Guzman
Here is something some of you on this list may find funny, others may
find this useful. This is not spam, this is actually a good manual you
should all read:

http://catb.org/~esr/faqs/smart-questions.html

Good Reading.

  



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



[PHP] Regular Expression

2003-08-04 Thread Ralph Guzman
Been working on this one for a while but can't get it working properly.
I need a regular expression to match if address is 

1. PO Box 
2. P.O. Box
3. P.O.Box

I'm using /i to make this case insensitive.

I got it working with 1 & 2, but it's still not matching 3. Any
suggestions?

if(preg_match( "/p[\.]o\.* +box/i", trim($_POST['address'])){ 
   echo "Address is P.O. BOX";
}



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



[PHP] PHP Fusebox

2003-08-04 Thread Ralph Guzman
I am trying to standardize my development process and have been looking
at the different frameworks out there.

One of the philosophies I like is that of Fusebox, although originally
developed for ColdFusion it is now available for PHP:

http://bombusbee.com/

Anybody have any experience working with Fusebox, or can anybody
recommend any other frameworks that I should also look at? I am looking
for a framework that will be developed going into PHP 5 also.

Your help is appreciated.

Ralph



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



RE: [PHP] Re: PHP Fusebox

2003-08-06 Thread Ralph Guzman
I am not set on Fusebox, but the reason I've been considering it is
because I came across ezPublish 3, that uses this framework.

I am looking for a CMS with a framework that I can use to develop my
future projects.

Are there any PHP/MySQL based XML/XSLT CMS that I can look at?

I am just doing my research now, and I will decide on a standard once I
have looked at all my options.


-Original Message-
From: Nicolas Frisby [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 10:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Fusebox

I just recently did a bit of research into "standardized development
processes" and such and the most robust system I have found is XML and
XSLT.

I realize that the whole idea of the 'fusebox' page is lost, but XSL
allows
you to generate just about anything and XML's standard formats (DocBook
and
Apache's Cocoon to name a couple) guarantee some degree of easy sharing
or
even an easy switch to a different system in the future.

Come to think of it, if you are really set on this Fusebox idea, you
could
(theoretically) use XSL to generate your php files that conatin your
fusebox
templates from XML...

Hope this offers even the tiniest bit of illumination
-Nick

" 



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



RE: [PHP] Best PHP CMS

2003-08-10 Thread Ralph Guzman
Any opinions on ezPublish 3? 

http://www.ez.no/

I am considering this as a CMS and framework for my future projects.


-Original Message-
From: Matt Schroebel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 12:14 PM
To: Anthony; [EMAIL PROTECTED]
Subject: RE: [PHP] Best PHP CMS


> -Original Message-
> From: Anthony [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 9:52 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Best PHP CMS
> 
> 
> I'm just looking for some opinions.  I've been going though 
> sourceforge
> looking at different CMS systems.  There are a lot of really good CMS
> projects out there.  I'm looking for some opinions on the 
> best ones out
> there.  I'm obviously looking at something PHP based and using mySQL
> backend.  Some of the features that I'd like are an easy template
> implementation, blog features, media gallery and something 
> that's easy to
> build custom modules to add features.  So far I'm looking at 
> about 6 CMS
> systems, I like certain things in each of them. so what's 
> your opinion.
I've looked at these:

http://www.midgard-project.org/
Midgard looked good but I couldn't get the admin to work right, and it
requires php-4.2.2 or lower (which drove me a little nuts at first).
It's optimized for php as it's functions are written in C and become
built in php functions with --with-midgard, plus it has a mod_midgard to
link into apache.  Midgard allows lots of customization and you could
place php code just about anywhere.  Runs on *nix only and requires
access to add modules to php and apache.

http://www.tikiwiki.org/
TikiWiki had lots of cool features.  It looked to me to be more suitable
for a community CMS (baseball team etc) rather than a general CMS. All
php.

http://www.geeklog.net/
There's also GeekLog, with a similar community slant as TikiWiki, and it
was reviewed in last months php-architect magazine. All php.

http://www.typo3.org
I agree with what Nick Tabbet said.  Of these 4 CMSs, this one has the
most refined user interface, and most general purpose features.  It's
written in all object oriented php and will easily install on an ISP
hosted system.  Quick setup 1-2-3, and your ready to go.  It does have a
long learning curve, but anything complex does.  Since it's all OO, has
it's own TypoScript code to design content and big, it will really
benefit if run with a php accelerator to cache the intermediate code.
Has good tutorial for getting started, and another good intro to it's
templates.  It's more for small to mid-sized sites, as anything larger
should be written in native C, C++, etc.

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




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



[PHP] Regular Expression

2003-08-10 Thread Ralph Guzman
Been working on this one for a while but can't get it working properly.
I need a regular expression to match if address is 

1. PO Box 
2. P.O. Box
3. P.O.Box

I'm using /i to make this case insensitive.

I got it working with 1 & 2, but it's still not matching 3. Any
suggestions?

if(preg_match( "/p[\.]o\.* +box/i", trim($_POST['address'])){ 
   echo "Address is P.O. BOX";
}



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



RE: [PHP] PHP vs ASP.NET "formal opinions" request

2003-08-12 Thread Ralph Guzman

http://www.wowwebdesigns.com/wowbb/forum12/149.html

you might also want to take a look at mono project. An open source
implementation of .net 

http://www.go-mono.com/

-Original Message-
From: Douglas Douglas [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 10, 2003 7:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP vs ASP.NET "formal opinions" request

Hello everybody.

I've been doing some research about the PHP vs ASP.NET
debate, because I need to justify the use of PHP in my
graduation work.

In my University, people in charge of approving the
graduation works advocate Microsoft's technologies.
They don't believe in the free software movement or
the open source movement. Some guys tried to develop a
system using PHP and those people made them change to
ASP.NET. They say because "It's the future". According
to them it's where the money is.

Well, I only have one year using PHP, but I'll try to
fight. I've read a lot of opinions that have been very
useful to me.

I collected a lot of those opinions and printed to
show them to the authorities, but they said that I
needed "formal" basis (books, scientific journals,
etc.) to justify the use of PHP. They said that they'd
only allow "BIG COMMERCIAL, IMPARTIAL, RECOGNIZED
WEBSITES" opinions and articles.

I pretend to use this comparison found in the
Microsoft MSDN website:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/
html/phpvsaspnet.asp

Can you give me some pointers (websites, names, etc)
where I could find this kind of "formal comparison"
about both technologies?

I've been looking for some book that covers this
issue. I've also been looking for some magazine
article that I could use.

I'd appreciate any kind of help. Thanks.

Regards, Douglas.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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




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



RE: [PHP] Stop neurotic posting

2003-08-14 Thread Ralph Guzman

This will help:

http://catb.org/~esr/faqs/smart-questions.html

This has got to be the longest thread I've seen.

-Original Message-
From: andu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 9:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Stop neurotic posting

This is a very busy list, over 100 message in a quiet day and most
people 
are helpful and decent, don't mind reading and learning. Unfortunately 
there are some who mostly post stuff like 'read the manual' and other
shit 
like that. Stuffing e-mailboxes with such garbage day after day doesn't
do 
anybody any good even if the manual is  not being read as much as it
should 
be. Is it too difficult to not answer the post at all if you disagree
with 
the content?


Andu

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




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



RE: [PHP] Re: PHP Fusebox

2003-08-14 Thread Ralph Guzman
Alexandru, 

I will take a look at Krysalis. Thanks for your response.

Ralph

-Original Message-
From: Alexandru COSTIN [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 12:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: PHP Fusebox

Hello Ralph,

Anyway, as a sample of a very powerful and open Krysalis
application, we
have an already open CMS built upon Krysalis - the Komplete Lite CMS (I
am
proposing the lite for now as it's open source). Komplete Lite was
designed
for Krysalis and I can also say that Krysalis advanced because of
Komplete
requirements.

We have tried to make Komplete a very adaptive CMS, that allows us
to
use most of the nice Krysalis features - I think all of them

- it uses taglibs everywhere for code completion
- it's pages are designed as aggregated pipelines with cache support
for
performance and for site section independence
- it is based completely on the separation of application logic from
the
presentation layer - so changing the presentation layer can be made with
a
simple click
- it already includes a very powerful structure manager
- has various page types (to be rendered in the central site
section)
and can easily include new page types
- it can import RSS streams from other sites
- has support for various types of nuggets (not as many as nuke, but
we
are welcoming contributions)
- includes a visual HTML editor (KTML lite)
- and many other features.

 Komplete can be found at
http://www.interakt.ro/products/KompleteLite/index.php

Alexandru


-- 
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
"Ralph Guzman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am not set on Fusebox, but the reason I've been considering it is
> because I came across ezPublish 3, that uses this framework.
>
> I am looking for a CMS with a framework that I can use to develop my
> future projects.
>
> Are there any PHP/MySQL based XML/XSLT CMS that I can look at?
>
> I am just doing my research now, and I will decide on a standard once
I
> have looked at all my options.
>
>
> -Original Message-
> From: Nicolas Frisby [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 10:38 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: PHP Fusebox
>
> I just recently did a bit of research into "standardized development
> processes" and such and the most robust system I have found is XML and
> XSLT.
>
> I realize that the whole idea of the 'fusebox' page is lost, but XSL
> allows
> you to generate just about anything and XML's standard formats
(DocBook
> and
> Apache's Cocoon to name a couple) guarantee some degree of easy
sharing
> or
> even an easy switch to a different system in the future.
>
> Come to think of it, if you are really set on this Fusebox idea, you
> could
> (theoretically) use XSL to generate your php files that conatin your
> fusebox
> templates from XML...
>
> Hope this offers even the tiniest bit of illumination
> -Nick
>
> "
>
>



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




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



RE: [PHP] Application Dev -- Separating code for speed.

2003-08-14 Thread Ralph Guzman
http://bombusbee.com/

-Original Message-
From: Jonathan Pitcher [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 7:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Application Dev -- Separating code for speed.

I have a application, almost like a web portal.  I am working on 
developing a version for public use. And have run into some development 
questions.

The application is split into 4 major parts.

Plugins -- A class that can be used by one or more modules.
Example:  A PDF generator.

Modules -- A Class of commands that do a specific task.
Example: A Work flow controller.

User Information -- An object that holds all the current user 
information including the user access levels.

Portal Controller -- A main object that controls all plugins, modules, 
and user information.



A complex Portal with complex modules can begin to slow things down, 
especially when you start to have 800 + users and thousands and 
thousands of lines of code loaded for each user.

  My question is this:

Is there a way in PHP to have the "Portal Controller" run seperately 
with out needing to load or include the objects for every user?  I was 
thinking of something like 
http://mysite/PortalController?Action=GetUserAccessRules

Are there other ways to do this?  Would this speed anything up or would 
it slow it down.  Just trying to find a good way to keep code seperated 
and speed up access on large sites.

Any input you could give me would be greatly appreciated.

Thanks in advance,

Jonathan Pitcher


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




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



[PHP] Generate Dates

2003-08-14 Thread Ralph Guzman
I have to generate a menu for all months in a year, with each month
broken down into two periods. For example:

January 01-15
January 15-31
February 01-15
February 15-28
March 01-15
March 15-31
Etc...

How can generate a list of all 12 months using the above format?



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



[PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
How can I get the last day for the current month?



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



RE: [PHP] php, search engine that index via local filesystem?

2003-08-15 Thread Ralph Guzman
Might want to take a look at:

http://www.htdig.org/

Using the PHP wrapper class:

http://sourceforge.net/projects/htphp/

-Original Message-
From: Louie Miranda [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 15, 2003 12:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php, search engine that index via local filesystem?

Do you know any?


--- -
Thanks,
Louie Miranda





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




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



  1   2   3   4   >