[PHP] Test

2001-12-31 Thread John Monfort


Test: cannot send mail, but can read.
Please ignore.



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




[PHP] Regular Expression Help

2001-12-31 Thread John Monfort


Hello everyone,

I'm using regular expression to extract all text within the  tag.
With a BODY tag like

   \\only interested in this line.

I use

eregi("( ) ",$str,$out);
\\spaces included, here, for easy reading.

echo "$out[0]";

However, this prints everything following (and including) the '
 
 ...
 
 

I want it to ONLY take the text within the openning body tag. Like,


how do I do this? What am I missing, in the above?

eregi("()",$str,$out);

-Please help.

-john



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




[PHP] Regular Expression

2001-12-31 Thread John Monfort


Hello everyone!

I'm trying to get the text inside the  tag, using regular
expression.

$area = eregi('()',$str);

Where $str is the string containing


When I print  $area, the string contains the entire content of $str. I
get something like:



.
.
.





__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




[PHP] TEST---Please Ignore

2001-12-31 Thread John Monfort


=Testing=
Having trouble sending mail...
=Testing=

Please ignore.



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




[PHP] Testing: Igonore This Message

2001-12-31 Thread John Monfort



Test
Cannot submit to list.
Test




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




[PHP] Minimum Apache & CD-ROM root

2001-12-03 Thread John Monfort


 Hello all,

 I'm writing a PHP application that will run on a cd-rom. I have two
questions:

 1) Apache Server
I wanted to add the apache server on the disk. What are the minimum
files that I need, for apache to run? i.e.
apache.exe
httpd.conf
etc.

 2) Configuration File PATH
In the apache configuration file, the ServerRoot asks for a absolute
path.
Is there a Window's (system) Variable to shows the current directory?

I'm hoping for something like

ServerRoot  "/Apache/"

So that, apache would run correctly, regardless if the CD-ROM drive is
D: or F: or any other name.

 Any Ideas?

 If you have any suggestions on a small, portable, browser with PHP
 suport, then please let me know.

 Thanks in advance.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




[PHP] Mercantec Payment Module

2001-12-02 Thread John Monfort


 Has anyone here worked with the Mercantec Merchant Account?

 If so, do you have (or know where I can get) a payment module? Or,
 information on how I can process cards myself?

 I'm looking for something like AuthorizeNet offers.

 Please help.

 -john


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] How do I put a path to Sendmail in php script??

2001-11-29 Thread John Monfort



 If Sendmail is configured propoerly, then you should be able to call it
from the system prompt without having to worry about the path.

 That is, regardless if sendmail is in /usr/bin/sendmail or
/usr/local/bin/sendmail, you should be able to run it as:

%sendmail -argument $var $var

Hence, your php script shouldn't have any problems calling it. Regardless
of where it is located.

Alternately, you could run Sendmail from php as:

!/sendmail_path/sendmail -argument $var $var


Lastly,
if you need to a path (in an argument or passed variable), try this
concept:

$attached_file = "/path/to/file/filename.txt";

!/path/to/sendmail -argument $var $var < $attached_file;


** Doublecheck the syntax...the concept should be the same.

See if that helps!

-john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 29 Nov 2001, Mike wrote:

> The server that I am using has Sendmail in a different place than their path
> to php.  Also, you have to run php scripts with a cgi magic line
> (#!/usr/bin/php).  I am using the mail() function to send mail, but I don't
> know how to put the path to Sendmail into the script so that mail() finds
> it.  Can someone help?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Re: PHP Memory Error

2001-11-29 Thread John Monfort



I'm using it as CGI.

Note: I've developed these types of pages many times(on the same system).
I've never seem this error before.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 29 Nov 2001, lallous wrote:

> John,
>
> Question 1,
> are you using PHP as ISAPI or CGI?
>
>
> "John Monfort" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > Hey all,
> > Need some help.
> >
> > Two questions:
> >
> > 1)
> >
> > =Environment=
> > PHP 4.0.5
> > Win2k
> > Apache 1.3.20
> > MySQL ..3.24
> > ===
> >
> > I created a login page which uses MySQL to verify the username and
> > password.
> >
> > When I run the script (submit the html form), PHP returns this error:
> >
> > "The instruction at 0x10091ceb referenced memory at 0x. The memory
> > could not be read."
> >
> > The script is using basic SQL statments (if/else logic with SELECT), so
> > I'm somewhat confused as to why I'm getting a memory error.
> >
> > Especially since PHP is able to retrieve all other information from the
> > database. It only fails for the login script.  I've double checked the
> > db connection, table names, username/password, and other related fields.
> > Everything seems fine.
> >
> > Has anyone dealt with this error before? Any clues?
> > Please help!
> >
> > QUESTION 2:
> >
> > I reinstalled my apache server, and it's acting a little weird.
> > For example, this url
> >
> > http://localhost
> >
> > opens a Save File Dialog Box, and ask me to save/cancel the file (instead
> > of showing the index page).
> >
> > What is causing that?
> >
> > The DirectoryIndex is configured as
> >
> > DirectoryIndex index.html index.php index.cgi index.asp
> >
> >
> > Any suggestions?
> >
> >
> >
> > -john
> >
> >
> > On Thu, 29 Nov 2001, faeton wrote:
> >
> > > Does anyone know that  is equal , eh? :)
> > > Just wanted you to know :)
> > >
> > >
> > > 
> > > Ivan 'Faeton aka xetrix' Danishevsky
> > > ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] PHP Memory Error

2001-11-29 Thread John Monfort


Hey all,
Need some help.

Two questions:

1)

=Environment=
PHP 4.0.5
Win2k
Apache 1.3.20
MySQL ..3.24
===

I created a login page which uses MySQL to verify the username and
password.

When I run the script (submit the html form), PHP returns this error:

"The instruction at 0x10091ceb referenced memory at 0x. The memory
could not be read."

The script is using basic SQL statments (if/else logic with SELECT), so
I'm somewhat confused as to why I'm getting a memory error.

Especially since PHP is able to retrieve all other information from the
database. It only fails for the login script.  I've double checked the
db connection, table names, username/password, and other related fields.
Everything seems fine.

Has anyone dealt with this error before? Any clues?
Please help!

QUESTION 2:

I reinstalled my apache server, and it's acting a little weird.
For example, this url

http://localhost

opens a Save File Dialog Box, and ask me to save/cancel the file (instead
of showing the index page).

What is causing that?

The DirectoryIndex is configured as

DirectoryIndex index.html index.php index.cgi index.asp


Any suggestions?



-john


On Thu, 29 Nov 2001, faeton wrote:

> Does anyone know that  is equal , eh? :)
> Just wanted you to know :)
>
>
> 
> Ivan 'Faeton aka xetrix' Danishevsky
> ICQ(240266) [EMAIL PROTECTED] www.xemichat.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




RE: [PHP] Printing Reports

2001-11-27 Thread John Monfort


Grimes,

> I do this a lot. If you want to use just the browser and server abilities
> without introducing the complexities of PDF/XML/XSLT and such, it is not too
> hard. I have done PDF, Standard Text and HTML to the browser and I have
> printed directly to a printer from the server using PHP.

Have you been able to bypass the dialog box? That is, send the file
directly to the printer, without the user's interaction?

If so, then I would love to learn how you did it. I was trying to do that
with one of my projects, but couldn't. As far as I know, the browsers do
not allow that. But, I've been told you could do it via sockets...

Were you able to bypass the dialog box?

-john


> First, is the site a Corporate intranet where the server knows about all of
> the shared printers connected to the network? Or, is the site accessed over
> the internet? If it's a Corporate intranet then you can create reports and
> submit them to the appropriate spooler. On Unix this is easy. I'm not sure
> about Windows. You can gather a list of available printers and create a
> little form that allows the user to select which printer to send the report
> to.
>
> If the site is over the internet then create the report in a separate window
> that is divided into two frames. The top frame will consist of close and
> print buttons. The second will contain the report and a JavaScript function
> that performs the printing. The print button in the top frame, when pushed,
> will execute the print function in the bottom frame.
>
> The print function sets focus on the report and then executes this.print().
> The print dialogue box will automatically pop up and the user can select
> their own printer along with number of copies, etc. If you use HTML you can
> even set page breaks (in IE5 anyway).
>
> Have fun,
>
>
> Dean
>
>
>
>
>
> -Original Message-
> From: Dan Koken [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 5:00 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Printing Reports
>
>
> As a Newbe to PHP, I need to print reports. I'd like to stay away from
> PDF but will use it if necessary.
>
> In general, what seems to be the best way to print reports??
>
> It would be nice when they ask for a report it would brint in the report
> window that allows them to select the printer, number of copies, print
> quality etc.
>
> Thanks for your help...
> Dan.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Re: Printing Reports

2001-11-27 Thread John Monfort



  If all you want to do is print, then a simple JavaScript code should do
  the trick.

example:

 //use php to send the report to a new browser
 //in this case, report.php has the code to generate the reports.

  XY Report

 //in the new window (or at the end of report.php) generate this link

  Print This Report

//this would open the print dialog box, to allow users to select the
  target printer.

 The key would be to program 'report.php' to generate a clean, printer
 friendly, report.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 27 Nov 2001, Dan Koken wrote:

> There are so many reports.
> The system I have is a manufacturing system, and currently contains some
> 400 programs.
> Some examples of reports are:
>   Bill of Lading with bar codes
>   Production reports
>   Management and analysis
>   Labels for lab analysis with bar codes
>   Planning reports
>   Quality assurance
>   Preventative maintenance work orders
>   Warehouse Planning
>   Billing
>   And others
>
> Some of these are reports long, but I guess most are less than 20 pages.
>
> Most of the sites that use the system are small and usually have from
> 200 to 500 terminals and have systems that manage multiple printers. So
> they would like to direct the printed output.
>
> Like just about everyone, I'd like them to use more interactive stuff on
> the system. But users want their reports...
>
> HTH.
> Thanks again for the help.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




RE: [PHP] Missing PHP.ini

2001-11-22 Thread John Monfort



 Thanks Joseph!

 btw,

 Happy Thanksgiving to all!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 23 Nov 2001, Joseph Blythe wrote:

> John,
>
> Look in the original distribution files for php.ini-dist (or
> php.ini-optimized) and copy it to c:\windows\php.ini
>
> As far as I know php can run without a php.ini I beleive it has builtin
> defaults.
>
> Regards,
>
> Joseph
>
> -Original Message-
> From: John Monfort [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 23 November 2001 12:36 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Missing PHP.ini
>
>
>
>
>  Hello everyone!
>
>  I upgraded my system from win98 to win2k, a few weeks ago.
>  Now,  I can't seem to locate my php.ini file.
>
>  I've looked in
>   C:\
>   C:\windows
>   C:\windows\system (and system32)
>
>   to no success.
>
>  Is anyone aware of what may have happened?
>  I was under the impression that PHP could NOT run without the Php.ini
>  file, is that incorrect?
>
>  Please help.
>
>  -john
>
> __John Monfort_
> _+---+_
>  P E P I E  D E S I G N S
>www.pepiedesigns.com
> "The world is waiting, are you ready?"
> -+___+-
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Missing PHP.ini

2001-11-22 Thread John Monfort



 Hello everyone!

 I upgraded my system from win98 to win2k, a few weeks ago.
 Now,  I can't seem to locate my php.ini file.

 I've looked in
  C:\
  C:\windows
  C:\windows\system (and system32)

  to no success.

 Is anyone aware of what may have happened?
 I was under the impression that PHP could NOT run without the Php.ini
 file, is that incorrect?

 Please help.

 -john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] Flash programming

2001-11-21 Thread John Monfort


 I've seen several sites that did the opposite--use PHP in Flash.
 Try a search for 'php and flash'.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 22 Nov 2001, Martin Towell wrote:

> Anyone know how one can "import" a flash file into PHP for use with "ming"
> or something similar?
>
> It's an easy to make a flash animation with ming, but I'd like to be able to
> modify an existing flash file.
>
> thnx
> Martin
>


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




RE: [PHP] Re: A tricky one?

2001-11-20 Thread John Monfort


Try This approach:


 $msg = " I want to order: ";

  if(!empty($pizza)) {
$msg .= $pizza."Pizza";
  }
  if(!empty($chips)) {
$msg .= $chips."Chips ";
  }
  if(!empth($hamburgers)) {
$msg .= $hamburgers." Hamburgers";
  }

//Note: PHP has a one-line if statement, which slips my mind for the
moment. You can use it, to minimize the code above. Nevetheless, the
concept stays the same.


/*
  Creates the example message

  "I want to order:
  2 pizza
  4 chips
  1 hamburger
   "
*/

 You can then send $msg as the message of the e-mail, or append it to some
 more text.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 20 Nov 2001, Matthew Luchak wrote:

>
> try &&($val!="") instead of &&(isset($var)
> 
> Matthew Luchak
> Webmaster
> Kaydara Inc.
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20, 2001 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: A tricky one?
>
>
> It works after modifying it a little. BUT... :) It lists all the
> variables
> even if they aren't given any value. Is it possible to only get the
> defined
> ones?
>
> Regards Raymond
>
>
> "Matthew Luchak" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> how about...
>
>
>  $message="";
> $header="From: $email";
> $to="[EMAIL PROTECTED]";
> $subject="burger me";
>
> while(list($var, $val) = each($HTTP_POST_VARS))
> {
> if(($var !="email")&&($var !="SUBMIT")&&(isset($var)){$message
> .="$val $var were ordered \n";}
> }
>
> MAIL(
> "$to",
> "$subject",
> "$message",
> "$header"
> );
> ?>
> 
> Matthew Luchak
> Webmaster
> Kaydara Inc.
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 20, 2001 1:57 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: A tricky one?
>
>
> Thanks for answering.
>
> But this only works if the customer orders one of each. Do you know how
> to
> do it if, lets say the customer order 2 hamburgers and nothing else?
>
>
> Raymond
>
>
> "Raymond LilleøDegåRd" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi!
> >
> > I'm trying to make this form working with a mail() script.
> > I made this form. Then the customer could write how many "pizzas" or
> > "hamburgers" as he want.
> > But how do I solve this without too much headache? Havent slept for
> days
> > because of this problem : )
> >
> >
> > 
> > 
> > 
> >
> >
> >  script 
> >  > /* recipients */
> > $to  = "[EMAIL PROTECTED]" ;
> >
> > /* subject */
> > $subject = "Order";
> >
> > /* message */
> > $message = "I would like to order $?";
> >
> > /* To send HTML mail, you can set the Content-type header. */
> >
> > /* additional headers */
> > $headers = "From: Someone <[EMAIL PROTECTED]>\r\n";
> >
> >
> > /* and now mail it */
> > mail($to, $subject, $message, $headers);
> >
> >
> > Best regards
> >
> > Raymond
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Web developer

2001-11-19 Thread John Monfort



 Where are you located?

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 19 Nov 2001, Peter Marrocco wrote:

> I am looking for someone to help maintain and work on our web page. We have
> several PHP pages and can't find anyone locally who knows php.
>
> Thanks,
> Peter
>
> 800.333.9302
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Standalone PHP Application

2001-11-19 Thread John Monfort



  It seems like that project vanished...none of the urls worked.

  Thanks for the help!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 19 Nov 2001, Ulf Wendel wrote:

>
>
> Ulf Wendel wrote:
> > > Dirty windows hack: http://www.deskcode.com/phpcompiler/
> >
> > Uuups, that one is broken. But there's somethink like that. I once
> > downloaded it. It's integrating the PHP script and the PHP interpreting
> > into one .exe-File.
>
> Here's the announcement:
> http://www.phpbuilder.com/mail/php-developer-list/2001031/1305.php and
> there some more attempts e.g. http://sourceforge.net/projects/pbc/
>
> Ulf
>


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




Re: [PHP] How to create and run background process at Win2K

2001-11-18 Thread John Monfort



You can run the application as a SERVICE.
Would that do the trick?


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 19 Nov 2001, Chris Lee wrote:

> Hi,
>
> It is possible to create/run background process at Win2K / Apache
> environment? If yes, how?
>
> Regards,
> Chris Lee
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] Standalone PHP Application

2001-11-18 Thread John Monfort



 I just got it.
 So far, it doesn't look like it lets convert your code to a .exe code.
 My client's scoring logic is proprietary and I need to protect the code.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sun, 18 Nov 2001, Shane Wright wrote:

>
> Hi
>
> You could have a look at the GTK+ bindings for PHP - AFAIK they let you write
> standalone apps.
>
> There's info on the PHP web site ( www.php.net ).
>
> --
> Shane
>
> >
> >  I'm looking for information on using PHP for standalone applications.
> >  Specifically, I need to create a PHP-based application that can be runned
> >  from a CD-ROM. Have any of you done this?
> >
> >  Any suggestions?
> >
> >  On another note:
> >  I need to develop a CD-ROM based Survey, where the result will be saved
> >  in an external file. What software, would you recommend, to use for this?
> >  I'm currently using Multimedia Builder, and was wondering if
> >  there is something better.
> >
> >  I need something that allows customization(via scripting) and more
> >  interaction with external files/commands.
> >  Any help would be appreciated.
> >
> >  Thanks!
> >
> >  -John
> >
> >
> >
> > __John Monfort_
> > _+---+_
> >  P E P I E  D E S I G N S
> >www.pepiedesigns.com
> > "The world is waiting, are you ready?"
> > -+___+-
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] Standalone PHP Application

2001-11-17 Thread John Monfort


 Hello Everyone !

 I'm looking for information on using PHP for standalone applications.
 Specifically, I need to create a PHP-based application that can be runned
 from a CD-ROM. Have any of you done this?

 Any suggestions?

 On another note:
 I need to develop a CD-ROM based Survey, where the result will be saved
 in an external file. What software, would you recommend, to use for this?
 I'm currently using Multimedia Builder, and was wondering if
 there is something better.

 I need something that allows customization(via scripting) and more
 interaction with external files/commands.
 Any help would be appreciated.

 Thanks!

 -John



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] Update onBlur or onChange

2001-10-22 Thread John Monfort



 Try this:

 *** 'varname' is equivalent to ***


//adding

var total;


//html

 

//once the content of varname1 is changed, the value will be added to total

 

//add varname2 to total


...or something to that effect. Double check the syntax...

hope that that helped.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 22 Oct 2001, Stefan Rusterholz wrote:

> >From: "KING OGNAJD" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, October 22, 2001 9:33 AM
> >Subject: [PHP] Update onBlur or onChange
>
>
> >Helo:
>
> >I¹m working on a form that I¹d like to have a feature that adds your total
> >as items are selected. Currently, I¹ve got some javascript doing the job
> but
> >it only works in ie, and besides, I¹d rather use php if possible.
>
> >The current prototype form lives at http://www.seatthole.com/order2.php
>
> >Can anyone tell me if there¹s a way to update the total at the bottom of
> the
> >page in realtime as the user makes changes?
>
> >Thanks...
>
> >Django
>
> PHP is a server-side language, which means that it had to be reloaded each
> time you want to do an update which is not realtime. IMHO that's not that
> what a user expects because it takes more time to send and reload than to
> calculate the new price yourself ;-) (as long as you have a poor connection)
>
> Two possible solutions:
> -I think the javascript solution ist the best. I don't see any reason why it
> doesn't run in Netscape (I didn't look at the code but I know that there is
> a way to get it work)
> -Second: Not realtime - total appears after sending it. You can combine this
> solution with the first to avoid problems with browsers that have JavaScript
> disabled (I'd recomend that anyway)
>
> Regards
> Stefan Rusterholz, [EMAIL PROTECTED]
> --
> interaktion gmbh
> Stefan Rusterholz
> Zürichbergstrasse 17
> 8032 Zürich
> --
> T. +41 1 253 19 55
> F. +41 1 253 19 56
> W3 www.interaktion.ch
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] UD4 & PhAkt Users?

2001-09-07 Thread John Monfort



 PHAKT will reduce your development time, but you'll still need to
customize the code. That is, unless your doing something relatively
simple.
 You're best bet is to learn the code. That's invaluable.

 -john


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 5 Sep 2001, Vicki wrote:

> I'm trying to learn PHP right now for a subscription-based site that
> requires features such as user authentication and e-commerce (with a
> mySQL database) I'm using Dreamweaver 4 on a Mac running OS 9 to build
> the site. I'm wondering if the learning curve would be less steep if I
> upgraded to UltraDev and installed PhAkt. I understand the logic behind
> the code, but am having a hard time learning all the syntax (and I've
> always been a lousy typist). Would UltraDev help?
>
> Is anybody working with UltraDev and PhAkt now, esp. on a Mac? How's it
> going? Since I can't test locally with my current set-up, I also wonder
> whether I can set up remote connections to my hosting company's servers
> (and whether that's a pain to do) or if just uploading files and testing
> that way is a viable alternative.
>
> My goal is to get the site up as quickly as possible. Would UD4 + PhAkt
> speed things up?
>
> Thanks very much for any insight you can provide.
>
> Vicki
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] I dont see whats wrong!

2001-09-03 Thread John Monfort



 Try removing the last period(.) after $quote.

 Also, try this method:

 $nl = "\r\n";

 $message = $alias$nl$name$email$...so on and so forth.

 Come to think of it, I think PHP has a constant for "\r\".
 I think its  NL or something like that, I can't remember. Look in the
 manual pages for some clues...hopefully, someone on here remember it.


 I hope that helped.


 -John


On Mon, 3 Sep 2001, Kyle Smith wrote:

> i get this error message
> Parse error: parse error in 
>/web/sites/197/lk6/www.stupeedstudios.f2s.com/sendcam.php on line 53
>
> for
>
> $message = $alias. "\r\n".$name. "\r\n". $email. "\r\n". $site. "\r\n". $cam. 
>"\r\n". $quote.;
>
> i honestly dont see whats wrong!
>
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
>


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




Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread John Monfort



A few things to consider:

 1) double check the include path.
 2) if you're not the appropriate file is being included, then user
REQUIRE, as that will stop the program.

 3) Variable Scope
Your function variables may be out of scope. Double check them, or
make them global.

 4) If you include a file from within a function, then the scope of that
file is only WITHIN that function.
{something to that line...}

   double check your variable scopes.


hope that helped.

-john



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




RE: [PHP] PHP+ Curl (on Unix)

2001-09-02 Thread John Monfort



Thanks, Jason!



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 3 Sep 2001, Jason Murray wrote:

> >  As I understand it, PHP 4 has CURL support.
> >1) is enabling the curl extension a substitute for installing the curl
> >   package?
> >   In other words, if I enable the extension, do I still need to instal
> >   the CURL package?
>
> You need to install CURL, and tell PHP where it is when you compile
> it, in order to use the extensions.
>
> >   2) Can I install curl without ROOT access?
>
> Probably, but I wouldn't know...
>
> >   3) Does FOPEN()  NOT support HTTPS, or do I need to do something
> > special.
>
> Probably not. As I understand it, you need to install some kind
> of patch to your system to allow you to open URLs with fopen().
> That's unlikely to support encrypted transactions (https).
>
> >   4) How else can I innitiate a HTTPS connection on a *NIX system?
> >  Is Socket the only solution?
>
> CURL works nicely... I doubt you'd get far with sockets since you
> would have to encrypt and decrypt on your own.
>
> Jasoon
>
> --
> Jason Murray
> [EMAIL PROTECTED]
> Web Developer, Melbourne IT
> "Work now, freak later!"
>


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




[PHP] PHP+ Curl (on Unix)

2001-09-02 Thread John Monfort


 Hello everyone!

 I'm a little lost.

 As I understand it, PHP 4 has CURL support.
   1) is enabling the curl extension a substitute for installing the curl
  package?
  In other words, if I enable the extension, do I still need to instal
  the CURL package?

  2) Can I install curl without ROOT access? If so, then please tell me
 how. I've search the online manual, but didn't notice the answer.
 I'm still searching.

  3) Does FOPEN()  NOT support HTTPS, or do I need to do something
special.

  4) How else can I innitiate a HTTPS connection on a *NIX system?
 Is Socket the only solution?

 Please help.

 -John





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




[PHP] Online Membership Script

2001-08-29 Thread monfort


Hello all,

I'm working on an online membership system, for a pay-per-view website. 
I'm looking for a user authentication system that does the following:

-implements 'members only' pages
-process membership registration (backed by mysql)
-online credit card processing(using authorize.net)
-reocuring billing (monthly, quarterly, etc.)
-activate/deactivate members accounts
-mass mailling  to registered members
-etc.

Please help.
-john


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




Re: [PHP] convert 12:12:00 to seconds

2001-08-29 Thread monfort

Hello all,

I'm working on an online membership system, for a pay-per-view website. 
I'm looking for a user authentication system that does the following:

-implements 'members only' pages
-process membership registration (backed by mysql)
-online credit card processing(using authorize.net)
-reocuring billing (monthly, quarterly, etc.)
-activate/deactivate members accounts
-mass mailling  to registered members
-etc.

Please help.

-john
nafiseh saberi wrote:

>hi.
>how do I covert convert  12:12:00  to seconds ?
>I want to get time from system and covert it to seconds to do
>arithmetic work on it.
> thanks.
>



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




Re: [PHP] ASSISTANCE NEEDED

2001-08-06 Thread John Monfort



 Hahahaha !!

 I've received s many of these e-mails...

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On 6 Aug 2001, kelvin asonze wrote:

> FROM: MR.KELVIN NZE.
> AUDITING AND ACCOUNTING UNIT.
> FOREIGN OPERATIONS DEPARTMENT.
> BANQUE TOGOLAISE POUR LE COMMERCE ET L'INDUSTRIE,
> LOME- TOGO. TEL:(228)04-45-26.
>
> Dear sir,
>
>
> I am Mr.KELVIN NZE, the director in charge of
> auditing and accounting section of Banque Togolaise
> Pour le Commerce Et l'Industrie Lome-Togo in West
> Africa with due respect and regard. I have decided to
> contact you on a business transaction that will be
> very beneficial to both of us at the end of the
> transaction .
>
>
>
> During our investigation and auditing in this bank, my
> department came across a very huge sum of money
> belonging to a deceased person who died on November
> 1st 1999 in a plane crash and the fund has been
> dormant in his account with this Bank without any
> claim of the fund in our custody either from his
> family or relation before our discovery to this
> development.
>
> Although personally, I keep this information secret
> within myself and partners to enable the whole plans
> and idea be Profitable and successful during the time
> of execution. The said amount was (U.S $8.5M UNITED
> STATES DOLLARS), As it may interest you to know, I got
> your impressive information through my good friends
> who works with chamber of commerce on foreign business
> relations here in Lome- Togo. It is him who
> recommended your person to me to be viable and capable
> to champion a business of such magnitude without any
> problem.
>
> Meanwhile all the whole arrangement to put claim over
> this fund as the bonafide next of kin to the deceased,
> get the required approval and transfer this money to a
> foreign account has been put in place and directives
> and needed information will be relayed to you as soon
> as you indicate your interest and willingness to
> assist us and also benefit your self to this great
> business opportunity.
>
>
>
> In fact I could have done this deal alone but because
> of my position in this country as a civil servant(A
> Banker),we are not allowed to operate a foreign
> account and would eventually raise an eye brow on my
> side during the time of transfer because I work in
> this bank. This is the actual reason why it will
> require a second party or fellow who will forward
> claims as the next of kin with affidavit of trust of
> oath to the Bank and also present a foreign account
> where he will need the money to be re-transferred into
> on his request as it may be after due verification and
> clarification by the correspondent branch of the bank
> where the whole money will be remitted from to your
> own designation bank account.
>
>
>
> I will not fail to inform you that this transaction is
> 100% risk free. On smooth conclusion of this
> transaction, you will be entitled to 30% of the total
> sum as gratification, while 10% will be set aside to
> take care of expenses that may arise during the time
> of transfer and also telephone bills, while 60% will
> be for me and my partners. Please, you have been
> adviced to keep "top secret" as we are still in
> service and intend to retire from service after we
> conclude this deal with you.
>
> I will be monitoring the whole situation here in this
> bank until you confirm the money in your account. and
> ask us to come down to your country for subsequent
> sharing of the fund according to percentages
> previously indicated and further investment, either in
> your country or any country you advice us to invest
> in. All other necessary vital information will be sent
> to you when I hear from you.
>
> I suggest you get back to me as soon as possible
> stating your wish in this deal. My mobile telephone
> number is +228 04-45-26.
>
> I look forward to pick your call asap.
>
> Yours faithfully,
>
> KELVIN NZE.
>
>
>
>
>
>
>
> Sign up for your "FREE E-MAIL" @ MADMAIL http://www.madmail.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] phpAds advice needed

2001-08-06 Thread John Monfort



 Are you trying to add additional fields to the table, or just basic
banner info?

For the latter, you should be able to add everything from the admin page.

PHPAds will redirect you to the admin, or client, section based on your
username. When you create an account, you'll have the option to give that
user admin priviledges.

I hope that help...

-john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 6 Aug 2001, Jack wrote:

> I am trying to install phpAdsNew to my site, the given docs don't seems to have 
>enough information about how can I add banner details into table banners correctly. I 
>mean, I know how to insert data into a table and all that, but I am talking about 
>each parameters in that table and what are they suppose to do specifically.
> If there is anyone who has experiences about using this phpAdsNew or phpAds, please 
>give me some advice or tell me where could I get further information beside the given 
>docs that come when you download it.
> Jack
> [EMAIL PROTECTED]
> "Love your enemies, it will drive them nuts"
>


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




RE: [PHP] most recent 5 rows

2001-08-04 Thread John Monfort



 Or, you could do two steps

 1) retrieve the last inserted ID, with mysql_last_inserted_ID  (or
something like that).

 2) then, all records with id(s) greater then the_last_id_number minus
five.

 something like

 $most_recent = select mysql_last_id();

 select * from TABLE where id > '$most_recent - 5';

 ...or something to that effect. There's probably a more efficient way to
 do it, but this guarantees the most recent five.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sat, 4 Aug 2001, Jeff Lewis wrote:

> It will give you the 5 HIGHEST values in your auto incremented field.  If it
> was returneding the first 5, or the wrong 5, repace the DESC with ASC.
>
> Jeff
>
> > -Original Message-
> > From: Justin French [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, August 04, 2001 6:09 AM
> > To: [EMAIL PROTECTED]
> > Cc: php
> > Subject: Re: [PHP] most recent 5 rows
> >
> >
> > Jeff Lewis wrote:
> >
> > > Try this SQL Justin:
> > >
> > > $sql = "SELECT * FROM news DESC LIMIT 5";
> >
> >
> > Hrm,
> >
> > Won't that retrieve the FIRST 5 rows, not the LAST 5?
> >
> >
> > Justin French
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] PHP MyAdmin Error---weird

2001-08-03 Thread John Monfort



 Hello everyone,

 Need some help. I installed phpMyAdmin on this new server and cannot
 get it to work. I've installed this tool many times, so i'm pretty
 comfortable with the installation process. However, I've never ran into
 the errors I am getting today.

 The server is Apache+PHP 4.0.6

 Error 1) When I first installed phpMyAdmin, I got the following error:

"... magic_quotes_gpc is not enabled. phpMyAdmin needs this to
work..."

 Action:
  I had my ISP turned on Magic Quotes in my PHP.ini file.
  Now, phpinfo() shows the following settings:

 magic_quotes_gpc   On
 magic_quotes_runtime   On
 magic_quotes_sybaseOn


error 2)

The above seetings solve the 'error' issues. However, phpMyAdmin now
shows a blank  page when I try to access it.

What can cause this ?
Does it have anything to do with magic_quotes being turned on?
...that's what it requested in the first place.


Am I missing something?

Please help.

-John




__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 3 Aug 2001, Jack Sasportas wrote:

> Yes, I see what you mean...
> In showing why the last section didn't work, I messed up the actual
> overall
> logic of the code.
> I should have noticed that...nice catch
>
> so for clarification where it says (MARK) should be
> echo "Thanks for your submission.";
> }
>
> Thanks...
>
> Jack Sasportas wrote:
>
> > Yes, I see what you mean...
> > In showing why the last section didn't work, I messed up the actual overall
> > logic of the code.
> > I should have noticed that...nice catch
> >
> > so for clarification where it says (MARK) should be
> > echo "Thanks for your submission.";
> > }
> >
> > Thanks...
> >
> > Richard Baskett wrote:
> >
> > > Just curious but that last else you told him to put in... what is that
> > > referring to?  There is already an else statement, you can't have another.
> > > Unless you're putting the else statement after the if (!$State) which you
> > > would need to subtract the "}" before the else, but this would give you
> > > undesired results since this is just an else for the !$State statement.
> > >
> > > I could be missing what you were getting at.. it's definitely possible :)
> > >
> > > Rick
> > >
> > > > First you should manage your code nicer so that it is easier to read
> > > > and troubleshoot.  Go through this to find my notes...
> > > >
> > > > if (!$HTTP_POST_VARS) { exit();}
> > > > elseif ($HTTP_POST_VARS) {
> > > > if (!$Age) { echo "Please enter your age.\n";
> > > > } if
> > > >
> > > > Why would you use elseif above ? you are asking the full question in
> > > > the first line
> > > > if (!$HTTP_POST_VARS) { exit();}
> > > >
> > > > if it's NOT then why say elseif, it's else, it's either one or the
> > > > other...that's one thing.
> > > >
> > > > so lets change it to this:
> > > > if (!$HTTP_POST_VARS) {
> > > > exit();
> > > > } else {
> > > > if (!$Age) {
> > > > echo "Please enter your age.\n";
> > > > }
> > > >
> > > > if (!$Email) {
> > > > echo "Please enter your email.\n";
> > > > }
> > > >
> > > > if (!$State) {
> > > > echo "Please enter your Location.\n";
> > > > }
> > > >
> > > > (MARK)
> > > > } else ( RIGHT HERE YOU DID NOT OPEN THE REST OF THE ELSE )
> > > > echo "Thanks for your submission.";
> > > >
> > > > ( RIGHT HERE YOU DID NOT CLSE THEN END OF THE CONDITION )
> > > >
> > > >
> > > > so the last lines replacing after (MARK) should look like this
> > > >
> > > > } else {
> > > > echo "Thanks for your submission.";
> > > > }
> > > >
> > > >
> > > > As you can see keeping the code in this format makes it a lot easier to
> > > > see what is being exectued within the condition, allows you to see the
> > > > open & closes of the brackets, and should have easily let you see you
> > > > were missing something.
> > > >
> > > >
> > > > Hope that explains it
> > > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> > --
> > ___
> > Jack Sasportas
> > Innovative Internet Solutions
> > Phone 305.665.2500
> > Fax 305.665.2551
> > www.innovativeinternet.com
> > www.web56.net
>
> --
> ___
> Jack Sasportas
> Innovative Internet Solutions
> Phone 305.665.2500
> Fax 305.665.2551
> www.innovativeinternet.com
> www.web56.net
>
>


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




Re: [PHP] Spot the difference?

2001-08-02 Thread John Monfort


>...ASP has gotta have something good about it cause microsoft uses it!
>

Hmm...you can get in sooo much trouble with that statement. Microsoft, in
any language, is not a synonym for 'quality'. Innovative? maybe. Quality?
no.

That statement should be your first reason why PHP is better. :-)


>
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
>


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




Re: [PHP] Adopt A Newbie (ME)

2001-08-02 Thread John Monfort



 ...And if all else fails, try www.webmonkey.com, devshed.com or search
 for 'mysql tutorials' on google.com.

 If you need a desktop reference, then I recommend the following books:

   'MySQL and mSQL' -- by O'Reilly

   'PHP Professionals'--published by WROX.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 2 Aug 2001, Werner Stuerenburg wrote:

>
>
> Kyle Smith schrieb am Donnerstag, 2. August 2001, 22:36:57:
>
> > Ok, im trying to cut down on the posts here but this time im really stuck, so 
>could somebody guide me through the usage of mySQL and PHP and show me how to input 
>data into a mySQL database and read
> > it, or just redirect me to another page (which is what normally happens)
>
> > NOTE: i am using phpMyAdmin
>
> Fine. There is a readme. You have to insert your secret data into
> config.inc.php so that phpMyAdmin can connect. If it does, there
> are forms to put your stuff into and then: click the Go button.
> You can't go wrong with this.
>
>
>
> --
> Herzlich
> Werner Stuerenburg
>
> _
> ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen
> Tel 0(049) 5224-997 407 · Fax 0(049) 5224-997 409
> http://pferdezeitung.de
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




Re: [PHP] PHP and MySQL Insert ID

2001-08-01 Thread John Monfort



  Many thanks, Daniel!

  I trully appreciate it.

  -john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 1 Aug 2001, Daniel Rezny wrote:

> Hello John,
>
> Wednesday, August 01, 2001, 11:06:06 AM, you wrote:
>
>
> JM>   In an environment where it's possible to have multiple
> JM>   users register at the same time (relatively speaking), how can I be sure
> JM>   that the 'last ID' is indeed the 'intended' last user's ID?
>
> JM>   Ex.
> JM>Say that user A submit a registration form at 00:00:01, but
> JM>mysql_inserted_id is not called (for user A) until 00:00:03.
>
> JM>If user B submits a registration for at 00:00:02, then would
> JM>the call to mysql_insert_id (for user A---called at 00:00:03) return
> JM>the ID for user B?
>
> JM>Technically, it sounds like it would, unless mysql_insert_id implements
> JM>some type of session and/or state recognition.
> JM>Is that how it works?
>
> JM>--How can I be sure that it returns the ID for user A and not B?
>
> You can be 100% sure, 'cause mysql_insert_id() returning last inserted
> id in current connection to database.
>
> User A has another connection ID as user B.
>
> I hope it helps
>
> --
> Best regards,
>  Danielmailto:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] PHP and MySQL Insert ID

2001-08-01 Thread John Monfort


Hello everyone !

Question:

  I'm building an online membership registration system, for a 'membership
  section' of a website. As it stands, I have a registration form that
  insert the data into MySQL, then generate a confirmation page--with member ID
  number, username, and password.

  I want to use PHP's mysql_insert_id to capture the last ID that was
  entered...and that's where my question lies.

  In an environment where it's possible to have multiple
  users register at the same time (relatively speaking), how can I be sure
  that the 'last ID' is indeed the 'intended' last user's ID?

  Ex.
   Say that user A submit a registration form at 00:00:01, but
   mysql_inserted_id is not called (for user A) until 00:00:03.

   If user B submits a registration for at 00:00:02, then would
   the call to mysql_insert_id (for user A---called at 00:00:03) return
   the ID for user B?

   Technically, it sounds like it would, unless mysql_insert_id implements
   some type of session and/or state recognition.
   Is that how it works?

   --How can I be sure that it returns the ID for user A and not B?

   --Does mysql_insert_id implement some internal session function, or
 something to that effect? How does it account for that?

  Please help.

  Thanks in advance.

  -John



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] Please Please Pleeeeaaaaaaaaaasssssssseeeeeee

2001-07-27 Thread John Monfort


  got to www.hotscripts.com download anything you want.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 27 Jul 2001, Kyle Smith wrote:

> Can everybody please send me a simple script they have made it doesnt matter what, i 
>just need some material to learn from, i learn better hands on.
>
>
> -legokiller666-
> http://www.StupeedStudios.f2s.com
> New address new site
>
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
>
>
>


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




[PHP] Site Statistics, like the Counter.com

2001-07-27 Thread John Monfort


Hello everyone,

I'm looking for a PHP/MySQL script that keeps traffic stats, similar to
what the Counter.com script offers.

Do you know where I can one that offer the following features?

 The ideal script would:

  -track user domain and IP
  -track page viewed
  -provide a graphical display of site traffic by day,week, month, and/or
   year.
  -track Top Referrers
  -track user platform and browsers
  -Track Search Engines
  -Banner tracking (?)
  -password protected
  -track screen depth and resolution
  -track download documents
  -etc...

 If you know of any script that has, or is relative close to having, these
 features, then please let me know.

 Thanks in advance!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




RE: [PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread John Monfort



 Thanks for the reply, Lawrence. The embedded C option sounds tempting.

 Question:

  Is it necessary to have a customized browser? I know that most WAP
  browsers (like the UP.SDK browser) pass certain parameters to the
  server. Like, phone numbers, software version, and other values.
  Any chance that one these parameters could be the Lat/Long
  coordinates? (I don't think I've ever noticed that).

  How does the phone company triangular a cell pone user?
  Is anyone aware of a customizable GPS system?
  Or, any suggestions on GPS developers? I've noticed quite a few
  companies, but most of them focus on automobiles, and other large
  devices. The GPS device is too large for our purposes.

  I am familiar with Embedded C...with the right direction, I can
  probably put the browser together. But, I'll research the option of a
  third party browser, or outsourcing a customized browser.

  Thanks for the info.

  -john


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 25 Jul 2001 [EMAIL PROTECTED] wrote:

> I'm of the opinion you cannot do this totally in PHP.
>
> You are going to need some client side, and some server side software -
> server side can be php of course.
>
> Client side ie (gps/wap device)- One possibility - write a wap browser that
> interfaces with your gps device and returns co-ords in header variables or
> cookies. (or post variables possible).
> you are either going to have to licence a web browser (or write on yourself,
> add in some extra headers in the software), for your gps/pda.  This is most
> probably going to be an embedded system written in C or similar.
>
> 1.Its not as hard as it seems, there are open sourced browsers you can base
> it on.
> 2.It is possible inhouse, but from what you describe, but probable you want
> to outsource it.
>
> let me know if you need some more answers - i used to do embedded systems
> design in another life back in the good old days.
>
>
> -Original Message-
> From: John Monfort [mailto:[EMAIL PROTECTED]]
> Sent: July 26, 2001 7:22 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] OT--PHP, MySQL, WML and GPS Tracking
>
>
>
>
>  Hello everyone,
>
>  This is slightly off topic, but I'm sure you guys are the best group to
>  answer this.
>
>  I have a client who needs a wireless website, that interacts with PHP and
>  MySQL. In addition to that, the client wants to be able to track the
>  geographical location, of the user--who will access the site with a cell
>  phone and/or PDA device. Basically, if someone from, say Los Angeles,
>  access the website, we want to be able to (automatically) capture his/her
>  location. This is for internal uses, so the PDA device will be uniformed.
>
>
>  That means, I will need to integrate a GPS system/function in the
>  wireless pages. Once the connection is made, I can use php and mysql to
>  handle the rest.
>
>
>  My problem is with the GPS functions. I've never worked with any GPS
> system, so I'm  looking for advices, references, and general directions.
>
> 1) How do I track a user's PDA device (geographical location)?
>   **- I know some of the WAP enabled phones (like the i1000 by Nextel)
>   doesn't let you do that**
>   **- I think there some legality issues around that, but am not sure.
>
> 2) Where can I read up on that?
>
> 3) Has anyone work with something on that level? If so, then please help.
>
>  At this point, the PDA device has not been chosen. We are still in the
>  research stage.
>
>  As far as I know, Trucking Companies, uses this type of system to track
>  their trucks and drivers. And, off course, any car with a Navigation
>  System  is using the same concept.
>
>  Where can I get some information on this? Has anyone programmed anything
>  related to Global Positioning Systems? If so, then I would appreciate any
>  information that you can share.
>
>
>  Any help would be greatly appreciated.
>
>  Thanks in advance!
>
>
> __John Monfort_
> _+---+_
>  P E P I E  D E S I G N S
>www.pepiedesigns.com
> "The world is waiting, are you ready?"
> -+___+-
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] OT--PHP, MySQL, WML and GPS Tracking

2001-07-25 Thread John Monfort



 Hello everyone,

 This is slightly off topic, but I'm sure you guys are the best group to
 answer this.

 I have a client who needs a wireless website, that interacts with PHP and
 MySQL. In addition to that, the client wants to be able to track the
 geographical location, of the user--who will access the site with a cell
 phone and/or PDA device. Basically, if someone from, say Los Angeles,
 access the website, we want to be able to (automatically) capture his/her
 location. This is for internal uses, so the PDA device will be uniformed.


 That means, I will need to integrate a GPS system/function in the
 wireless pages. Once the connection is made, I can use php and mysql to
 handle the rest.


 My problem is with the GPS functions. I've never worked with any GPS
system, so I'm  looking for advices, references, and general directions.

1) How do I track a user's PDA device (geographical location)?
  **- I know some of the WAP enabled phones (like the i1000 by Nextel)
  doesn't let you do that**
  **- I think there some legality issues around that, but am not sure.

2) Where can I read up on that?

3) Has anyone work with something on that level? If so, then please help.

 At this point, the PDA device has not been chosen. We are still in the
 research stage.

 As far as I know, Trucking Companies, uses this type of system to track
 their trucks and drivers. And, off course, any car with a Navigation
 System  is using the same concept.

 Where can I get some information on this? Has anyone programmed anything
 related to Global Positioning Systems? If so, then I would appreciate any
 information that you can share.


 Any help would be greatly appreciated.

 Thanks in advance!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] a good PHP editor

2001-07-19 Thread John Monfort



 Amen !


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 18 Jul 2001, Chris Lambert - WhiteCrown Networks wrote:

> Would you give the same advice if it were Zend Cache? Show some respect,
> please.
>
> /* Chris Lambert, CTO - [EMAIL PROTECTED]
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> - Original Message -
> From: Maxim Maletsky <[EMAIL PROTECTED]>
> To: 'doug' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 2:41 PM
> Subject: RE: [PHP] a good PHP editor
>
>
> | EditPlus (editplus.com - not free but easily crackable through a simple
> | search on astalavista.box.sk)
> | A great editor - believe me.
> |
> | -maxim
> |
> |
> | -Original Message-
> | From: doug [mailto:[EMAIL PROTECTED]]
> | Sent: Thursday, July 19, 2001 3:16 AM
> | To: [EMAIL PROTECTED]
> | Subject: [PHP] a good PHP editor
> |
> |
> | Hiya everybody,
> | I'm relatively new to PHP and I'm looking for a good text editor on
> | win2k for creating/manipulating php pages. Notepad is great if your in a
> | bind, and I've tried phpedit and activestate's Komodo and both seem to
> have
> | problems (crashing etc...). Anybody got any suggestions? Free/small fee
> | programs doesn't matter Thanks
> |
> | Doug Henry
> |
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: [EMAIL PROTECTED]
> | For additional commands, e-mail: [EMAIL PROTECTED]
> | To contact the list administrators, e-mail: [EMAIL PROTECTED]
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: [EMAIL PROTECTED]
> | For additional commands, e-mail: [EMAIL PROTECTED]
> | To contact the list administrators, e-mail: [EMAIL PROTECTED]
> |
> |
> |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] PHP is cool by me.

2001-07-19 Thread John Monfort



 Amen !

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 17 Jul 2001, Sterling Hanenkamp wrote:

> Just thought I'd send in my testimonial. I run a web site for a
> relatively small business (4 employees including the President ;).
> Anyway, I had been using JSP and Servlets to manage our smallish web
> site, but in preparation for graduation and moving on to another job, we
> need a web site that can be managed by my boss and coworkers who know
> nothing of Java.
>
> Thus, I endeavored to find a solution that would be more stable (the
> servlet engine was unstable from time to time, though it is highly
> reputed as stable). Anyway, I chose PHP over everything else because of
> it's resemblance to Perl and my boss' familiarity with Perl. Within
> hours I was able to port the entire site from JSP to PHP with all the
> previous functionality.  (It took me much longer to design the original
> site in JSP.) Within hours I was able to add even more functionality to
> make it easier for them to maintain.
>
> This is not meant in any way to detract from JSP, just that PHP happens
> to make JSP look rather inept in this particular case--especially since
> PHP had built-in a lot of stuff that I had to build myself in Java code.
> PHP does for web programming what Perl does for script programming. It
> makes what should be easy, easy and yet still manages to make the hard
> stuff easier or, at least, no harder.
>
> Excellent product. My appreciation goes to the authors and anyone else
> who had a hand in this product. I have met few IT products that actually
> stand up to my expectations after I have put hours and days of effort
> into them--this one has done just that.
>
> Thanks,
> Sterling
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Credit card number checker?

2001-07-17 Thread John Monfort


> What companies issue card numbers that are not 16 numbers?  Are
> they non-US cards?  I haven't ever seen a card that wasn't 16 numbers.

  A valid VISA  card has between 13-16 digits.

  I believe AMERICAN EXPRESS only has 15 digits.

  -john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 16 Jul 2001, Christopher Ostmo wrote:

> Ashley M. Kirchner pressed the little lettered thingies in this order...
>
> > Christopher Ostmo wrote:
> >
> > > By law, the numbers are supposed to be
> > > generated at random and not generated by any kind of algorithm or
> > > formula.
> >
> > CC# must pass the Luhn MOD 10 formula, so the generated numbers can't
> > be
> > (totally) random - they have to conform to the formula.
> >
>
> I just responded to this separately... Basically, my earlier research on
> the issue must have been wrong.
>
> > Also, not all credit cards have 16 numbers.
> >
>
>
> Christopher Ostmo
> a.k.a. [EMAIL PROTECTED]
> AppIdeas.com
> Innovative Application Ideas
> Meeting cutting edge dynamic
> web site needs since the
> dawn of Internet time (1995)
>
> For a good time,
> http://www.AppIdeas.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] Printable Report Generator

2001-07-13 Thread John Monfort



>
> Ain't no such critter as a page break in html, but you can let the browser
> help out.

True. But, there is one in XML.

You can use XML to insert PRINTABLE page breaks in your documents. That
is, you can specify where a page ends, and a new one begins, when the web
doc is sent to the printer.

I haven't done it, but It is covered in most XML tutorials.

-john


> All the versions i've worked with will avoid spliting a table across pages.
> So use that fact to nudge the wanted behaviour :
>
> 
> 
> 
>   crank out 60 lines ...
> 
> 
> 
>
> 
> 
> 
> 
>   60 more lines ...
> 
> 
> 
>
>
> repeat until you either run out of memory or lines ...
>
> > There's any free tool out there??
>
> if you're writing html to disk, there's html2ps;
> i've no idea if it handles tables likewise.
>
> Regards,
> --
> Don Read   [EMAIL PROTECTED]
> -- It's always darkest before the dawn. So if you are going to
>steal the neighbor's newspaper, that's the time to do it.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] foreach loop

2001-07-07 Thread John Monfort


> >If we didn't have Microsoft, we'd have to blame ourselves for all of our
> >programs crashing

 If we didn't have microsoft, 'Crashing Programs' wouldn't be part of our
 daily vocabulary  :)



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sun, 8 Jul 2001, PHPBeginner.com wrote:

>
>
> >If we didn't have Microsoft, we'd have to blame ourselves for all of our
> >programs crashing
>
>
> I really don't think so
> :-)
>
> -maxim maletsky
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] is_alpha_numeric ?

2001-07-07 Thread John Monfort



  I missed that part...

  Thanks.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sun, 8 Jul 2001, PHPBeginner.com wrote:

> yes, you have to enable it:
>
>   --enable-ctype
>
> ...and, ctype is available only starting from PHP v.4.0.4+,
> ...and it is only the experimental family of functions... (this you read on
> the site, right?)
>
>
>
> Sincerely,
>
>  Maxim Maletsky
>  Founder, Chief Developer
>
>  PHPBeginner.com (Where PHP Begins)
>  [EMAIL PROTECTED]
>  www.phpbeginner.com
>
>
>
>
> -Original Message-
> From: John Monfort [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 08, 2001 12:59 AM
> To: PHPBeginner.com
> Cc: Lasse; [EMAIL PROTECTED]
> Subject: RE: [PHP] is_alpha_numeric ?
>
>
>
>
>   I tried that, but it didn't work.
>
>   if (ctype_alnum($var)) {
>echo "ok";
>}else {
>echo "no";
>}
>
>   I got an 'undefined function' error.
>   php4.0.4pl1
>
>
>   Did I miss something ?
>   -john
>
> __John Monfort_
> _+---+_
>  P E P I E  D E S I G N S
>www.pepiedesigns.com
> "The world is waiting, are you ready?"
> -+___+-
>
> On Sat, 7 Jul 2001, PHPBeginner.com wrote:
>
> > check out ctype (suggested to PHP by me, btw)
> >
> > php.net/ctype
> >
> > we have all that.
> >
> > -Maxim Maletsky
> >
> >
> >
> >
> > -Original Message-
> > From: Lasse [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, July 07, 2001 7:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] is_alpha_numeric ?
> >
> >
> >
> > "scott [gts]" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > you could also use this:
> > >
> > > function is_alphanum($data) {
> > >   return preg_match('/^\w+$/', $data);
> > > }
> >
> > Watch out though... IIRC \w also includes underscore...
> >
> > --
> > Lasse
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>


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




RE: [PHP] is_alpha_numeric ?

2001-07-07 Thread John Monfort



  I tried that, but it didn't work.

  if (ctype_alnum($var)) {
   echo "ok";
   }else {
   echo "no";
   }

  I got an 'undefined function' error.
  php4.0.4pl1


  Did I miss something ?
  -john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sat, 7 Jul 2001, PHPBeginner.com wrote:

> check out ctype (suggested to PHP by me, btw)
>
>   php.net/ctype
>
> we have all that.
>
> -Maxim Maletsky
>
>
>
>
> -Original Message-
> From: Lasse [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 07, 2001 7:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] is_alpha_numeric ?
>
>
>
> "scott [gts]" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > you could also use this:
> >
> > function is_alphanum($data) {
> >   return preg_match('/^\w+$/', $data);
> > }
>
> Watch out though... IIRC \w also includes underscore...
>
> --
> Lasse
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] is_alpha_numeric ?

2001-07-06 Thread John Monfort


 Hello everyone,

 I'm trying to determine if an argument is alphanumeric. Is there a
function to do this?

 I thought PHP had a IS_ALPHA_NUMERIC function, but I can't seem to find
 it anywhere. Was it wishful thinking ? Please help.

 If you do know of this function, then please send me the syntax.
  is_alpha_numeric($string) is not working.

 If you do know of another way to this, then please send me that as well.
 My expected string has the form 'A200A'. Both, letters and numbers, will
 change depending on the item. The value will ve passed via a hidden form.

 Thanks in advance.

 -John

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] testing

2001-07-05 Thread John Monfort



  My map says, 'I am here'!


On Thu, 5 Jul 2001, McShen wrote:

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


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




[PHP] My First Shopping Cart

2001-07-02 Thread John Monfort


 Hello everyone,

 I need some guidance. After browsing through a few shopping carts, I've
 decided to write my own. I want to write one to satisfy the geek in
 me...just for the love of doing it.

 Plus, I want to add some additional features to it. Like, Wireless
 access, etc.

 Anyway, I'm looking for some direction on what's involve in a shopping
 cart. Mostly, I'm looking for a roadmap to make sure that I don't miss
 critical components (like security, multithread access, etc.)

 If you can, please send me a list of things that you think (or know) that
 a GOOD shopping cart should have. Include the small as well as the large
 items. I'm not asking that you write the code for me, only that you  point
 me in the right direction.

 Any help would be greatly appreciated.

 Thanks in advance!

 -John


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] PHAkt for Macromedia Ultradev

2001-07-01 Thread John Monfort



   I used it.
   It's a great tool.

   Did you have any specific question?


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 2 Jul 2001, Matthew Delmarter wrote:

> I have just found PHAkt for Macromedia UltraDev.
> http://www.interakt.ro/products/PHAkt/
>
> Has anyone out there used it?
>
> I am interested in your opinion of the code it writes. Does it speed up
> development? Is it easy to jump in and edit the code without breaking
> something?
>
> Any feedback appreciated...
>
> Regards,
>
> Matthew Delmarter
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] (slightly OT) the bad and the good (hosting recommentations)

2001-06-30 Thread John Monfort



  www.pepiedesigns.com

  PHP 4
  Perl 5
  MySQL
  ASP
  Apache
  Web Access Panel
  SSH
  and a whole lot more...

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 29 Jun 2001, Justin French wrote:

> hi all,
>
> i'm about to change ISPs, and i'll probably be moving to a US based
> server, on Unix, with Apache, PHP4, CGI, Perl 5, MySQL, etc etc.
>
> so far the best I can find (price/service level/features) is
> experthost.com.au.  Has anyone got a bad experience with these guys, or
> a good experience with annother ISP that they can recommend?
>
>
> for what it's worth they offer a reseller package with 2-4 domains for
> US$10/month each, all the way down to 25+ for US$4.99 each / month.
> this is with 50 meg space, MySQL DB, 20 POPs, and much more.
>
>
> i don't require dial up access, just hosting.
>
>
> i'd be interested to hear of competitors to this ISP, or of any good /
> bad experiences.  I'm ony interested in Australian, US, Canada or UK ISPs.
>
>
>
> many thanks
>
> jsutin french
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] Printing Webpages--bypassing dialog box

2001-06-19 Thread John Monfort


 Hello All,

 It's good to have this list up again. Thank you, to all involved.

 Question:

  Printing a webpage (from the browser) and bypassing the print dialog
box.

I have a portable survey (laptop) that let's the user print the
results...via with windows.print(). By default, when a print request
is sent, Windows will present the Print Dialog Box. I want to
bypassing that and go straight to the printer. That is, when the user
click on 'print', (s)he should not see the dialog box. Instead, the
document should be sent directly to printer.

Has anyone done something similar? Can someone point me in the right
direction? I'm currently looking at using socket connections to
connect directly to the printer. However, I'm not fluent in sockets,
so I can use some guidance.






__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 19 Jun 2001, [iso-8859-1] sunny AT wde wrote:

> hi all!
>
> firstly a BIG thanks to rasmus for bringing the mailing lists back up
> :)
>
> secondly, seeing as there is always a big demand here and lot of
> questions asked about available PHP message boards / forums, I
> thought I'd point mine out.
>
> Wrote this one myself, very simple to configure and install. And it
> works quite well as a messageboard too :
>
> Uses Mysql, and is free!
>
> http://www.wde.org/me/php/
>
> /sunny
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>




RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked

2001-06-19 Thread John Monfort



   I had some issues with that recently. It turns out that PHP will not
   pick up the checkboxes, unless you use the GET method.

   You can then access your vars with HTTP_GET_VARS.

   This was discovered on
WIN98+ PHP 4.03pl1 + Apache 1.3++
 &
WIN ME + PHP 4.03pl1 + Apache 1.3++

   If someone had a different experience, then I would like to hear about
   it. Please share.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 19 Jun 2001, Jason Murray wrote:

> > Subject: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked
>
> That's right - if the checkbox isn't checked the browser doesn't send it.
>
> Jason
>




[PHP] Help !!

2001-05-23 Thread John Monfort



 I'm trying to configure PHP on IRIx 6.5, with NS FastTrack.

 PHP works in the shell, but not thru the server. I checked the log file
and noticed it (server) had a fatal error, because it could not find
 redirect_php.so .

 That file was not included in the distribution and is no where to be
 found.

 What is that file? Where can I get it? Did I miss a step, or something?

 I insstalled PHP from the SGI tar disctribution, from their support
 homepage, so I don't understand why I'm getting that error.

 Please help!





__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] PHP AND SSI

2001-05-23 Thread John Monfort



  even better...

 forgot about that one..

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 23 May 2001, Zak Greant wrote:

> Use PHP's include() function. See the online manual for details.
>
> --zak
>
> - Original Message -
> From: "Shashwat" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 23, 2001 4:07 AM
> Subject: [PHP] PHP AND SSI
>
>
> > How can I run SSI commands like  etc. in
> PHP
> > files... as ASP supports it.. I have Apache on Linux Server with
> PHP
> > 4 installed
> >
> > Shashwat
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] PHP AND SSI

2001-05-23 Thread John Monfort



  You should be able to just print it. The code won't matter to php, but
the browser will process it.

";



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 23 May 2001, Shashwat wrote:

> How can I run SSI commands like  etc. in PHP
> files... as ASP supports it.. I have Apache on Linux Server with PHP
> 4 installed
>
> Shashwat
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Searching a MYSQL DB

2001-05-23 Thread John Monfort



Try this sql statement:

// search for the keyword in NAME or DESCRIPION..
// using the wildcard '%'.

$sql="select * from TABLE_NAME where Name='%search_query%'
OR Description='%search_query%'";

$result=mysql_query($sql) or die ("blah, blah, blah");

...more php codes...see php manual for 'mysql_query' and other
functions..
[double check the syntax]

//where 'search_query' is the form variable that is passwd to the
script...the one the user types in the keyword.

I hope that's what you were looking for..

-John


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 23 May 2001, YoBro wrote:

> Hi,
>
> Any ideas, or any code that will allow a search of specific keywords in a
> mysql database.
>
> Feilds in a Table called:
> Name
> Description
>
> What I am after is if somebody types the word 'hammer', then I want it to
> return the results in a list if the word hammer is picked up under the name
> of description feilds.
>
> Is this easier enough to do?
>
> YoBro
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] PHP & RUBY

2001-05-22 Thread John Monfort



 Thanks for the background info.

 I'll check it out.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 22 May 2001, Maxim Maletsky wrote:

> a new (?) infamous programming language.
>
> Something similar to PHP but fully (religiously) Object Oriented.
> It claims to be more OOOriented then Python while with easier syntax than
> Perl.
> eRuby (it's embedded scripting language for web) can also run as an apache
> module, not only CGI (*nix only ).
> Ruby itself can function in similar way C does. (including windows
> management, command line, background jobs etc..)
> It is written by some Japanese gurus and is quite famous here in Tokyo.
>
> read on here:
> http://www.ruby-lang.org/en/
>
> Quite impressive as an idea and I really like it's language concept,
> but it is still soo immature.
>
> Sincerely,
>
>  Maxim Maletsky
>  Founder, Chief Developer
>  PHPBeginner.com (Where PHP Begins)
>  [EMAIL PROTECTED]
>  www.phpbeginner.com
>
>
>
>
> -Original Message-
> From: John Monfort [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 2:42 PM
> To: Maxim Maletsky
> Cc: 'PHP General List. (E-mail)'
> Subject: Re: [PHP] PHP & RUBY
>
>
>
>
>   What is RUBY?
>
>
> -John
>
>
>
>
> On Tue, 22 May 2001, Maxim Maletsky wrote:
>
> > Hello gurus,
> >
> > does anyone know a way to make PHP and RUBY running together (parsing both
> > the same file) ?
> >
> > This is what I tried to do:
> >
> > httpd.conf:
> >
> > AddType application/x-httpd-php-source .phps
> > AddType application/x-httpd-php .html
> >
> > #Action application/x-httpd-php "/php/php.exe"
> >
> > AddType application/x-httpd-eruby .rhtml .html
> > Action application/x-httpd-eruby /cgi-bin/eruby
> >
> > as you can see PHP runs as apache's module and Ruby as CGI,
> >
> > It works fine for .rhtml files (with ruby), but when I give them the same
> > file extension to parse only Ruby works, PHP shows the source.
> >
> > I know this a wrong try, well, still a try. Has anyone tried to do the
> same?
> > Any success in any way?
> >
> > There are some things I'd like Ruby to do while processing PHP files.
> >
> >
> > Sincerely,
> >
> >  Maxim Maletsky
> >  Founder, Chief Developer
> >  PHPBeginner.com (Where PHP Begins)
> >  [EMAIL PROTECTED]
> >  www.phpbeginner.com
> >
> >
> >
>


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




Re: [PHP] PHP & RUBY

2001-05-21 Thread John Monfort



  What is RUBY?


-John




On Tue, 22 May 2001, Maxim Maletsky wrote:

> Hello gurus,
>
> does anyone know a way to make PHP and RUBY running together (parsing both
> the same file) ?
>
> This is what I tried to do:
>
> httpd.conf:
>
>   AddType application/x-httpd-php-source .phps
>   AddType application/x-httpd-php .html
>
>   #Action application/x-httpd-php "/php/php.exe"
>
>   AddType application/x-httpd-eruby .rhtml .html
>   Action application/x-httpd-eruby /cgi-bin/eruby
>
> as you can see PHP runs as apache's module and Ruby as CGI,
>
> It works fine for .rhtml files (with ruby), but when I give them the same
> file extension to parse only Ruby works, PHP shows the source.
>
> I know this a wrong try, well, still a try. Has anyone tried to do the same?
> Any success in any way?
>
> There are some things I'd like Ruby to do while processing PHP files.
>
>
> Sincerely,
>
>  Maxim Maletsky
>  Founder, Chief Developer
>  PHPBeginner.com (Where PHP Begins)
>  [EMAIL PROTECTED]
>  www.phpbeginner.com
>
>
>


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




Re: [PHP] Reports in web browser

2001-05-19 Thread John Monfort



   I believe there is a  window.print() JavaScript code, that lets you
   print a document. I've never used it, so I'm not sure.

   Print Document 
   //or something like that...

  good luck !!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sun, 20 May 2001, Richard wrote:

> You need to be more specific than that.
>
> You cannot demand the browser to start printing, only thing is to write the
> contents of the report to a webpage and then the visitor/user can print it
> out if she/he likes.
>
> It depends on how you have stored the reports.
>
> - Richard
>
> ""Mihailo Dzigurski"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello,
> >
> > I have written some accounting application using PHP, and now I need to
> > create some reports. Those reports need to be printed from web browser.
> >
> > What can I do?
> >
> > Thanks
> > Mihailo.
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Problem with talnet

2001-05-18 Thread John Monfort



   Try SSH (Secure Shell)



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 18 May 2001, khuram latif wrote:

> Hi Dears,
> Please tell me the alternate software of Telnet, because i've problem
> with talnet.
>
> Regards,
> khuram
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] MYSQL Password

2001-05-17 Thread John Monfort



  Can you connect to MySQL manually?

  If so, then you should be able to connect with PHP's
mysql_connect($username,$password,$host);



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 17 May 2001, Andreas Pucko wrote:

> Hello,
>
> I am trying to get mysql running and connect via php to it.
>
> how can I set the password in a unixshell to get access to it?
>
> When I try to access the db I get:
>
>
> Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
> (Using password: NO) in /psr/mysqladmin/lib.inc.php on line 255
> Error
>
> Andy suggestions?
>
> Cheers
>
> Andy
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] parsing variables

2001-05-17 Thread John Monfort


  *oops!*

   Sorry about the double ampersands...

 newpage.php?variable1=value1&variable2=value2...



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 17 May 2001, Tarrant Costelloe wrote:

> How exactly is it that you parse variables from one page to another without
> using a form. I have heard you can do it by using the URL?
>
> Taz
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] parsing variables

2001-05-17 Thread John Monfort



 Sending variables in url:

  newpage.php?variable1=value&&variable2=value2&&variable3=value



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 17 May 2001, Tarrant Costelloe wrote:

> How exactly is it that you parse variables from one page to another without
> using a form. I have heard you can do it by using the URL?
>
> Taz
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Web Host

2001-05-16 Thread John Monfort


 We offer hosting with PHP,MySQL, and SMTP.

  www.pepiedesigns.com


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 16 May 2001, Manesh Manickam wrote:

> I need a web host with myslq and PHP. Also i would be good if it have a STMP
> server to!  Please just reply to there posts!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] I have a problem with phpMySqlAdmin

2001-05-16 Thread John Monfort



  Is your MySQl server on?

 What platform are you on?

 Also, make sure your username, password, and database name, are correct.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 16 May 2001, [iso-8859-1] Enrique Ivorra Gómez wrote:

> Sorry, but I dont speak Englich very well.
>
> I have Apache, PHP and MYSQL which work well but I want to use phpMySQLAdmin
> and I have an error:
>
>
> Fatal error: Call to undefined function: mysql_connect() in lib.inc.php on
> line 255
>
> Can anybody help me?
>
> Bye!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] Shopping with variables

2001-05-16 Thread John Monfort



 That will work, assuming the user is not allowed to purchase multiple
items...

 -John

On Wed, 16 May 2001, Ralph Guzman wrote:

> Might want to reconsider the way you are doing this, since this may not be
> the most efficient way. An alternative might be to do this as follows:
>
> In your web form set a field for Quantity and another for Item Name, so for
> example:
>
> 
>
> ...
>
> Quantity: 
>
> 
> DVD
> VIDEO
> CD
> 
>
> ...
>
> 
>
> then when you process the form all you would have to do to display your
> thank you message:
>
> print "You have asked to purchase $item_qty $item_type. Thank You";
>
> Nevertheless, if for some reason you must do things like you are doing them
> now, try something like this:
>
> if(isset($dvd)){
>$item_type = "DVD(s)";
>$item_qty = "$dvd";
> }
>
> if(isset($video)){
>$item_type = "VIDEO(s)";
>$item_qty = "$video";
> }
>
> if(isset($cd)){
>$item_type = "CD(s)";
>$item_qty = "$cd";
> }
>
> print "You have asked to purchase $item_qty $item_name";
>
> Keep in mind that this is not the most efficient method since it will
> require that you continue adding if(isset($variable)) statements, if you
> ever decide to add more item types.
>
>
> -Original Message-
> From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 2:13 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] Shopping with variables
>
> I am currently just messing around with a basic shopping cart, but have
> stumbled onto a problem.
> Bascially there is three input boxes all  DVD, VIDEO, CD and these are
> also variables. Once the user has said they wanted "15" cd's for example,
> the form then takes them onto the shop.php. Which say's something along the
> lines of:
>
> ?php print(" You have asked to purchase $dvd $video $cd 's - Thank you") >?
>
> This prints out, "You have bought 16 - Thank you" for example, see the
> problem? How do I get it to print the variable name not just it's value?
>
> Tarrant Costelloe
> Software Developer
> InsurE-com Ltd.
> 
> Tel:  +44 (0)1273 852014
> [EMAIL PROTECTED]
> http://www.insur-e.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Deleting 1 file line

2001-05-16 Thread John Monfort



  I don't know the code, but I would assume you could do the following:

  1) read the file into an array, with each line as an element
  2) search the element that has the line you're looking for...probably a
keyword
  3) remove that element from the array
  4) implode the array
  5) rewrite the file with the same name, but with the content of the new
array.

  Array keywords:  shift, push, pop, etc..

 I hope that helped.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 16 May 2001, Tarrant Costelloe wrote:

> Does anyone know what the code is, if you wanted to specify a specific line
> in a file to delete and also to wipe clean the entire file?
>
> Thanks in advance!
>
> Taz
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] PHP + IRIX + Netscape Enterprise

2001-05-09 Thread John Monfort


 I'm looking for a good reference to installing PHP 4 on a IRIX+NS
 Enterprise system.

 Please help.

 Thanks in advance.

 -John


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




[PHP] OT--Adding Commands to SGI IRIX 6.5

2001-05-09 Thread John Monfort


 Hello everyone,

 This is is a little off topic.

 I was configuring MySQL on IRIX, when I realize that the system does not
 have the commands to add users.

GROUPADD  and  USERADD

 So, I was wondering if someone could help me with the following:

  The installation guides ask me to run

 shell> groupadd mysql
 shell> useradd -g mysql mysql

 1)
  Now, if this command is to be called from '/usr/local/mysql' then, what
  is the '/etc/passwd' entry?

  I have (in the passwd file)

  mysql: * : 6 : 6 : MySQL Group: /dev/null : /dev/null

  # To create the MySQL group...equivalent to 'shell> groupadd mysql'

  mysql: * : 1061 : 6 : MySQL Default User: /dev/null : /dev/null

  # To add the regular(MySQL) user account.

  Is this correct?


 2) Also, Where can I find the 'groupadd' and 'useradd' command? I would
like to add it to the system, for future uses. I've check the sgi
support pages (support.sgi.com) but didn't find much help.
Is this considered a PATCH, or what?


 Please help.

  -John


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




[PHP] PHP Flat File Support--Where,How?

2001-05-04 Thread John Monfort


  Hello everyone,

  I remember noticing a "PHP Flat File Support" function, or script, or
  something. While reading the PHP manuals, and online tutorials. However,
  I have not been able to find concreate information about it.

  Does that function exists? If so, then where can I find some
  information?

  Or,

  Is this what CSV (CVS...sp?) is?

  Please help


  -j



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




Re: [PHP] BET News

2001-05-04 Thread John Monfort



 **Ouch !! **


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 4 May 2001, Hrishi wrote:

> 
>
> MTV Jams wrote:
>
> > http://www.mp3.com/mcpedro from [EMAIL PROTECTED]
> >
> > The question is this, If you placed a Jamaican born MC on a Hip
> > Hop/Trance/Techno track and told him to flow without losing his yard
> > essence (Jamaican Vibes), what would you get? Most likely confusion of
> > course, unless the MC was Pedro!
>
> does pedro have a problem with PHP ? i thought this group was moderated ?
>
> DIE SPAMMER.
>
> or i'll soak your nuts in liquid copper. and Pedros too.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Need to know this

2001-05-04 Thread John Monfort



  PHP Stands for
  Hypertext Pre-Processor (PHP)

  You can more info at www.php.net

  The battle between ASP and PHP is ongoing. Same thing for Perl.

   www.UDzone.com has an article on this, it's called 'Seven Reasons Why
   PHP is better than ASP".



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 3 May 2001, [EMAIL PROTECTED] wrote:

> Parsed Hypertext Processing, AFAIK.
>
> YoBro wrote:
>
> > Hello,
> >
> > I need to find out what PHP stands for.
> >
> > Also what is better,
> > ASP or PHP and who has the biggest market share.
> >
> > Any help would be really great.
> >
> > Thanks,
> >
> > Chris
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Need to know this

2001-05-04 Thread John Monfort



   www.php.net



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Fri, 4 May 2001, YoBro wrote:

> Hello,
>
> I need to find out what PHP stands for.
>
> Also what is better,
> ASP or PHP and who has the biggest market share.
>
> Any help would be really great.
>
> Thanks,
>
> Chris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] BET News

2001-05-04 Thread John Monfort



Ok...all together now, in how many languages can you say,
OUT OF PLACE !!!

--Spammers, sheesh !



--


On Thu, 3 May 2001, MTV Jams wrote:

> http://www.mp3.com/mcpedro from [EMAIL PROTECTED]
>
> The question is this, If you placed a Jamaican born MC on a Hip
> Hop/Trance/Techno track and told him to flow without losing his yard essence
> (Jamaican Vibes), what would you get? Most likely confusion of course,
> unless the MC was Pedro!
> Peter Gracey a.k.a. MCPedro (Mp3Eternity) was born and raised in Kingston
> Jamaica, and later moved to Florida where he honed his skills. Pedro would be
> the first to admit, being raised on the streets of Waterhouse in a rough political
> climate, and then later in Miami, plays a large part in his "no-nonsense"
> militant aura. Influenced by artists such as Shabba Ranks, Garnett Silk, Bob
> Marley,Papa San, Maxi Priest, Luciano and Sanchez, and fused with his
> passion for writing, it was inevitable that Pedro would be heard.
> Leaving Jamaica College at 17, Pedro resided in Miami, San Diego, Seattle and
> back to Miami where he mingled with the underground culture, toasting on local
> sound systems and appearing at parties in all three cities. After taking time off
> from the military, Pedro returned with a vengeance to show his skills. Working
> the underground Dance Hall circuit with the likes of Tinga Stewart, RPI,
> Sanchez, Luciano, Barrington Levy, Buju Banton and Gloria Estefan. He
> continued to record his first single entitled "Life" in 1996. By this time Pedro
> has been touring with 303Infinity who then introduced him to Nadine Renee
> (The voice behind Planet Soul.. " Set U Free")where melodic Dance Hall hooks
> combined with a smooth yet rugged Hip Hop/ Trance-Techno flow. He managed
> to touch Electronic fans like no other Dance Hall artist ever did, representing
> the "real Hip Hop/Techno" without losing his Jamaican borne flavor, "yardcore."
> Please visit Pedro Music Station and feel free to download his tracks at no
> charge at
>
> http://www.mp3.com/mcpedro
>
> [EMAIL PROTECTED]  : Email us with any comments or if you wish to
> stop recieving updates on Pedro.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] PHP 4.0.5 module causes Apache child processes to segfault...

2001-05-02 Thread John Monfort



  I too had to downgrade to PHP 4.0.4pl1. Version 4.0.5 would not let me
  load my extensions(dynamically).

   PHP+Apache
   Win 98

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 2 May 2001, John Huggins wrote:

> If I were you I would let the PHP guys figure this out.  I am sure they read
> messages here so stick with 4.04p11 and live on.  I was just about to
> download 4.0.5, but I want your issue to be addressed before I waste my time
> with a recompile.
>
> John
>
> > -Original Message-
> > From: Darron Froese [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 02, 2001 12:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] PHP 4.0.5 module causes Apache child processes to
> > segfault...
> >
> >
> > I compiled and installed PHP 4.0.5 onto our development server (Mandrake
> > Linux 7.1 w/kernel 2.2.17) today and tried to access one of our php
> > intensive sites on it - most of the pages wouldn't respond.
> >
> > This is how 4.0.5 was compiled:
> >
> > ./configure \
> > --with-apxs=/usr/local/apache_1.3.19/bin/apxs \
> > --with-mysql=/usr/local/mysql \
> > --enable-ftp \
> > --with-curl \
> > --with-zlib \
> > --with-pspell \
> > --with-ldap \
> > --with-pdflib \
> > --with-imap=/usr/local/src/imap-4.5 \
> > --with-zlib-dir=/usr/lib \
> > --with-gd \
> > --with-ttf \
> > --with-t1lib \
> > --with-xml \
> > --with-swf=/usr/local \
> > --with-java=/usr/local/jdk \
> > --with-gettext \
> > --with-mcrypt \
> > --with-mhash \
> > --enable-sockets \
> > --enable-calendar \
> > --enable-trans-sid \
> > --enable-track-vars=yes \
> > --enable-magic-quotes=yes
> >
> > Looking at the logs I saw a few of these - this wasn't happening with
> > 4.0.4pl1:
> >
> > [Tue May  1 20:49:21 2001] [notice] child pid 19423 exit signal
> > Segmentation
> > fault (11)
> > [Tue May  1 20:51:17 2001] [notice] caught SIGTERM, shutting down
> > [Tue May  1 20:51:45 2001] [notice] Apache configured -- resuming normal
> > operations
> > [Tue May  1 20:57:41 2001] [warn] child process 19677 still did not exit,
> > sending a SIGTERM
> > [Tue May  1 20:57:45 2001] [error] child process 19677 still did not exit,
> > sending a SIGKILL
> > [Tue May  1 20:57:46 2001] [notice] caught SIGTERM, shutting down
> > [Tue May  1 20:58:08 2001] [notice] Apache configured -- resuming normal
> > operations
> > [Tue May  1 20:59:11 2001] [notice] child pid 20039 exit signal
> > Segmentation
> > fault (11)
> > [Tue May  1 21:00:54 2001] [notice] child pid 20290 exit signal
> > Segmentation
> > fault (11)
> >
> > I've downgraded to 4.0.4pl1 and all is well again.
> >
> > I've tried to generate a core dump file (Apache also has write access to a
> > folder specified with the CoreDumpDirectory directive.) using the
> > instructions here but have been unsuccessful:
> >
> > 
> >
> > I can't run httpd -X as suggested on that page because my version
> > of Apache
> > (1.3.19) doesn't support it.
> >
> > What can I do to get more debugging information so that this can
> > get looked
> > at?
> > --
> > darron froese
> > new media technologist
> > sutton javelin corporate communications
> > t  403.716.0351
> > f  403.265.7662
> > e  [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] Trouble loading Extensions in PHP 4.0.5

2001-04-30 Thread John Monfort


 Hello everyone,

 Is anyone else having this problem?  My PHP+ Apache system was working
 fine, before I upgraded to PHP 4.0.5. Since then, my server crashes,
 everytime I try to enable my extensions.

 I have the following configuratioin:

 1)
  extension_dir= "C:/PHP/extensions"
  [both C:/PHP/extensions and C:\PHP\extensions failed!]

  extension=php_db.dll
  extension=php_gd.dll
  ...

  The dll files are inside C:\PHP\exntesions, as listed.
  All system paths are correctly set.

  2)
  Also, before PHP 4.0.5, I had ZEND configured as

  zend_optimizer.optimization_level=15;
  zend_extension_ts="C:\PHP\zend\ZendOptimizer.dll";

  Tough this does not report an error, phpinfo()  DOES NOT report the Zend
  variables, and other setup information. PHP 4.0pl1 did.

  Am I missing something, or is this bug?

   Note: I installed 4.0.5 over 4.0.pl1, assuming it would overwrite the
   necessary files. Does this have anything to do with my issues? I don't
   think it should matter, but I could be wrong. I used the Win 32
   installer [from php.net] for my installtion.


  Please help!

  -John


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 1 May 2001, Michael Hall wrote:

>
> Use include();
>
> Mick
>
> On Mon, 30 Apr 2001, Andreas Pucko wrote:
>
> > Hello,
> >
> > I am a newi in PHP. Currently I am creating my first site.
> >
> > I would like to programm it modularly. I tryed it, but I came to the point,
> > that I have everything in one file with a huge amount of tables.
> >
> > What would be the best way to build a site with a navigation on the left and
> > content on the right.
> >
> > The question is.. what is the proper syntax to open the next content from
> > the menu. Open it in
> > the same file, or open a new one??
> >
> > Thanks
> >
> > Andy
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] Best Practice-HTML In Database

2001-04-30 Thread John Monfort




  Yes,  I will need to provide searching capabilities.

  Basically, I'm creating an online referencing system with a db backend.
  A user will be able to search for a manual, and/or browse to a
  particular  section of the manual.

  It's similar to the online PHP manual...at least, in concept.


  So, in the long run, which will be more beneficial:
1) HTML code inside the db fields?
   or
2) HTML URL inside the field?


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 30 Apr 2001, Mark Roedel wrote:

> > -Original Message-----
> > From: John Monfort [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, April 29, 2001 10:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Best Practice-HTML In Database
> >
> >
> > Hello everyone,
> >
> > I'm curious. Which is the better practice?
> >
> > 1) Insert the HTML page (...HTML code) in the database ?
> >
> >or
> >
> > 2) Insert a URL in the database field, that points to the
> > HTML page?
> >
> > why?
>
> Will you ever want to do database-ish things with the contents of the
> page?  (Allow somebody to search for words or phrases in the body, for
> example?)
>
>
> ---
> Mark Roedel ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
> Systems Programmer / WebMaster  ||   My schedule is already full."
>  LeTourneau University  ||-- Henry Kissinger
>
>


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




[PHP] Best Practice-HTML In Database

2001-04-29 Thread John Monfort


  Hello everyone,

  I'm curious. Which is the better practice?
   1) Insert the HTML page (...HTML code) in the database ?

   or

   2) Insert a URL in the database field, that points to the HTML page?


  why?

  Any help will be appreciated.

  Btw, thank you all for helping with my previous questions.

 ==FOLLOW-UP ==-
 = PHP Ultradev Browser Model ==
 ===

 FYI
  For those who care about the PHP-Ultradev Server Model (PHAKT).
  I finally got it to work. Everything works for MySQL.
  However, you have to make some manual changes for it to work with MS
  Access. The changes are as follow:

   1) You have to add the 'Access' or 'ODBC' "Connection Type", in the
  server model's CONNECTION File
  (accessed via Modify->Connection->New).

  To do so:
   a) open (from the Ultradev Configuration folder)
   Connection->PHP->Win->Connection_php_adodb.htm

   b) add the value pairs  access/access, and/or odbc/odbc, to the
  dropdown list for 'Connection Type'.

   Without this, you can only select MySQL as the connection type.
   This means that ADOBD will use the wrong drivers to connect to
   your DB.

  2) There is an ERROR in the ADODB ODBC configuration file. The ODBC
 file has a format error in the ODBC connection call.
 (Site Root Folder ->ADODB->adodb-odbc.inc.php)

   The file tries to connect (to the DB) with

   $dbh = odbc_connect ('$hostname', $username,$password);

   That is an error. The correct format is

   $dbh = odbc_connect ('$DSN_NAME', $username, $password);

   You do not need to specify the host, for an ODBC connection. That
   information is already listed in the DSN description.


   Once that's done. You'll be able to use Ultradev with PHP.

   I hope that helped.

   -John

   Again, thanks to everyone who helped me find this extension.
   Don't forget my new question :)  see above.




__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] run du command uder php

2001-04-28 Thread John Monfort



 you might want to consider add the html PRE tag, to preserve the output
format.


 Something like,

> exec ("du -ks /home/apache",$test[]);
 echo " $test[0] ";

 This will display the result in the browser, just as it does in the Unix
shell.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Sat, 28 Apr 2001, Mark Lo (3) wrote:

> Hi,
>
>  I would like to know how to run du command under PHP.
>
> is this correct ??
>
> exec ("du -ks /home/apache",$test[]);
> echo $test[0]; --> I would like to print out the result in web browser
>
> Thank you
>
> Mark
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Ultradev PHP Server Model

2001-04-26 Thread John Monfort



 Thanks Andrew, but I found it. It's working pretty well, so far.

 Thanks for the help.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 26 Apr 2001, Andrew Hill wrote:

> Check out www.interakt.ro
> It's beta... but functional.
>
> Best regards,
> Andrew
>
>
> On Thursday, April 26, 2001, at 06:46 PM, John Platte wrote:
>
> > John Monfort wrote:
> >
> >> I was wondering, is anyone aware of a PHP server model, for Ultradev?
> >>
> >> Or, any leads on how I can create one?
> >>
> >> I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some
> >> of the Ultradev server model features (and convenience), but
> >> they only support ASP/JSP/JScript.
> >
> > I'm not aware of one -- I wish I were!
> >
> > The book "Extending Dreamweaver 4" from Macromedia documents their
> > API's,
> > including server models. I've got the book...it's pretty hefty. I
> > *think*
> > it's fairly complete, though I can't immediately determine if it has all
> > the info necessary to create a new server model.
> >
> > I sincerely hope someone does this! I would give it a shot if I weren't
> > so
> > green...
> >
> > John Platte
> >
> > "Truth binds the mind to what satisfies it,
> > but worldly thinking does not satisfy
> > and therefore ignites curiosity."
> >
> >-- St. Theophan the Recluse
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>


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




Re: [PHP] Ultradev PHP Server Model--found!

2001-04-26 Thread John Monfort


 Since I posted the questions, I thought I'll post the solutions.

 For those interested, UDzone.com has a PHP Server Model for Macromedia
 Ultradev. It's a beta copy, but it seems to work pretty well for
 PHP-MySQL.

 You can find it at:
  http://www.udzone.com/showDetail.asp?TypeId=3&NewsId=505


 enjoy!



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 26 Apr 2001, John Platte wrote:

> John Monfort wrote:
>
> > I was wondering, is anyone aware of a PHP server model, for Ultradev?
> >
> > Or, any leads on how I can create one?
> >
> > I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some
> > of the Ultradev server model features (and convenience), but
> > they only support ASP/JSP/JScript.
>
> I'm not aware of one -- I wish I were!
>
> The book "Extending Dreamweaver 4" from Macromedia documents their API's,
> including server models. I've got the book...it's pretty hefty. I *think*
> it's fairly complete, though I can't immediately determine if it has all
> the info necessary to create a new server model.
>
> I sincerely hope someone does this! I would give it a shot if I weren't so
> green...
>
> John Platte
>
> "Truth binds the mind to what satisfies it,
> but worldly thinking does not satisfy
> and therefore ignites curiosity."
>
>-- St. Theophan the Recluse
>


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




[PHP] Ultradev PHP Server Model

2001-04-26 Thread John Monfort


 Hello everyone,

 I was wondering, is anyone aware of a PHP server model, for Ultradev?

 Or, any leads on how I can create one?

 I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some
 of the Ultradev server model features (and convenience), but
 they only support ASP/JSP/JScript.

 Any help would be greatly appreciated.

 -john

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




RE: [PHP] PHP+MS Access and/or MS SQL

2001-04-26 Thread John Monfort



 Thanks, Andrew.

 The ODBC functions did the trick.



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 26 Apr 2001, Andrew Hill wrote:

> John,
>
> If you are using PHP from Windows you can use ODBC or the mssql_functions.
>
> From Linux/Unix, you should compile the iODBC Driver Manager into your
> PHP/Apache build, and then drop in an ODBC driver.
>
> There is a HOWTO at www.iodbc.org on compiling PHP with iODBC.
>
> Best regards,
> Andrew
> --
> Andrew Hill - OpenLink Software
> Director Technology Evangelism
> Universal Data Access Integration
> http://www.openlinksw.com
>
> > -Original Message-
> > From: John Monfort [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 25, 2001 10:02 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] PHP+MS Access and/or MS SQL
> >
> >
> >
> >  Hello everyone,
> >
> >  I'm looking for information on PHP+ MS Access , and PHP+MS SQL.
> >
> >  Any recommendations?
> >
> >  Thx in advance!
> >
> >
> > __John Monfort_
> > _+---+_
> >  P E P I E  D E S I G N S
> >www.pepiedesigns.com
> > "The world is waiting, are you ready?"
> > -+___+-
> >
> > On Thu, 26 Apr 2001, Ben Quinn wrote:
> >
> > > Hi all,
> > >
> > > I am trying to copy an image from an external server and save
> > it to my own.
> > > I have the following script to do this for a txt file and it
> > works great!
> > >
> > > ?>
> > >
> > > $page  = "../temp/yep.txt";
> > >
> > > $date = date("http:/www.example.com/yep.txt");
> > >
> > > $cartFile = fopen("$page","a");
> > > fwrite($cartFile,$date,strlen($date));
> > > fclose($cartFile);
> > >
> > > ?>
> > >
> > > But i can't get it to work for image files - the images are saved and
> > > displayed on screen as a whole bunch of rubbish.
> > >
> > > I'd appreciate any help you can give me
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


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




[PHP] PHP+MS Access and/or MS SQL

2001-04-25 Thread John Monfort


 Hello everyone,

 I'm looking for information on PHP+ MS Access , and PHP+MS SQL.

 Any recommendations?

 Thx in advance!


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Thu, 26 Apr 2001, Ben Quinn wrote:

> Hi all,
>
> I am trying to copy an image from an external server and save it to my own.
> I have the following script to do this for a txt file and it works great!
>
> ?>
>
> $page  = "../temp/yep.txt";
>
> $date = date("http:/www.example.com/yep.txt");
>
> $cartFile = fopen("$page","a");
> fwrite($cartFile,$date,strlen($date));
> fclose($cartFile);
>
> ?>
>
> But i can't get it to work for image files - the images are saved and
> displayed on screen as a whole bunch of rubbish.
>
> I'd appreciate any help you can give me
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] Online Training and User Tracking

2001-04-25 Thread John Monfort



 Hello everyone,

 I want to build an online training center that let's me monitor/track
 user progress, througout an online curriculum. The goal of the project is
 to be able to 'certify' the user after completing certain lessons.

 I want to:
-have online exams,etc.
-make it possible to track each user's progress
-provide online training videos
-provide access to reference documents [searchable db], etc.

 I'm looking for recommendations on the best tools to use to create and
 manage, such a system. I'm currently looking at MM COURSEBUILDER,
 combine with NT+SQLServer+PHP. I wanted to know if there is
 better way to approach this.

1) Have any of you done something similar?
2) What software do you recommend for this?

3) I plan to use NT+SQLserver+PHP and/or else. Any suggestions, comments?

What are the best tools to do this? By 'best', I mean:
   -easy (relatively) to implement
   -easy to manage [template based]
   -scalable


Any help would be greatly appreciated.

Thx in advance!

-John


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-




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




[PHP] Standalone Browser with PHP and/CGI

2001-04-24 Thread John Monfort


  Hello everyone,

  Quick question:

  I would like to install a standalone web server can run PHP, I'm looking
  for guidance on how to do this.

  Basically, I want to add a PHP application on a CD-ROM, for
  demonstration purposes.

  I know PHP can be runed as a standalone, but what about the server? Can
  apache do something like this? Will a person have install apache when
  they run the disk? Do you know of a server that can do this?
  I'm currently looking at the SimpleServer, by AnalogX-www.analogX.com,
  but that only allow CGI and is not too configurable.

  I would appreciate any information that you can share.

  Thanks.




__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-


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




Re: [PHP] Tip for cookies

2001-04-19 Thread John Monfort



  Is that still true when you include the file?
  Say you have a  notfoo.php file, and include foo.php in it. You don't
  still have to pass the cookies, do you?


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 17 Apr 2001, Pat Hanna wrote:

> I found out today after suffering from minor headaches and hair loss that if
> you have functions defined in and outside file name 'foo.php', and in those
> functions you use cookies, you must pass those cookies to the function
> called. I tried using a value from a cookie in a function and it never could
> access it unless I passed it. Funny
> --
> Patrick Hanna
> Database integration--E-commerce solutions
> The Wentworth Company
>


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




Re: [PHP] Job in Whistler, BC

2001-04-16 Thread John Monfort



  You'll probably won't get to see the now :-<.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 16 Apr 2001, Mark Maggelet wrote:

> On Mon, 16 Apr 2001 20:00:27 -0700, Dddogbruce \(@home.com\)
> ([EMAIL PROTECTED]) wrote:
> >Whistler's cool!
>
> Yeah, and a php job at a ski resort?! Hmm, that's way too good to be
> true.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




[PHP] Moderated Guestbook

2001-04-02 Thread John Monfort



  Hello everyone,

  I'm looking for a guestbook script that lets you moderate the new
  entries, before they are posted.

  Do you know any?
  PHP or Perl.

  Please let me know.

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-



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




Re: [PHP] php.ini

2001-02-25 Thread John Monfort



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 26 Feb 2001, David Robley wrote:

> On Sun, 25 Feb 2001 18:21, Brandon Feldhahn wrote:
> > what do i put in the "Sendmail_from" section of php.ini?
>
> Did you check the documentation, or the sample ini file? According to the
> docs,
>
> sendmail_from string
>
> Which "From:" mail address should be used in mail sent from PHP under
> Windows.
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Form Variables!!!!!

2001-02-22 Thread John Monfort



  Hey...Bruno from Brazil :)

  Try this

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

echo "$key: $value";
  }

 This will list every variable that was past to the browser.

 Enjoy!

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 21 Feb 2001, Bruno Freire wrote:

> Hi! It's me again
> Bruno From Brazil!!
>
> My problem is:
>
> I wanna know the names of the variables that my actual page recives from the
> last page (using the POST method).
>
> Thanks!!
>
> Bruno.
>


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




Re: [PHP] pop textarea field w/ text incl. quotes

2001-02-21 Thread John Monfort



 Is it necessary to include the 'http:' in the DB field?

 It would make your life a lot easier to drop it.

 You would then store the url values as
www.mydomain.com

 Then, modify your code to add the 'HTTP' whenever it encounter a URL, or
 wherever you will create a link.

 This would eliminate the need to deal with special characters...

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 21 Feb 2001, Paul Warner wrote:

> Simon-
>
> Thanks for the tip...I trued using the htmlspecialchars() which allowed the
> remainder of the form to display properly, but left no value in the
> textarea.  Then I noticed a difference in the method I was using compared to
> yours - I'm still learning the ways of PHP so it will take me a while to
> determine the significance of the syntax differences:
>
> Mine:  value="htmlspecialchars($linkurl)">\n' ?>
>
> Yours: " . htmlspecialchars($link) . "" ?>
>
> I wanted a graphical representation of the present link displayed above the
> textarea and then attempted to use php's substitution to build the text area
> within the same string.  I updated my code to be more like yours and arrived
> at:
>
> '?>" .
> htmlspecialchars($linkurl) . "\n"?>
>
> which seems to make the parser behave as I intended.
>
> Anyway...thanks!
>
> -- Paul
>
> - Original Message -
> From: "Simon Garner" <[EMAIL PROTECTED]>
> To: "Paul Warner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, February 21, 2001 8:19 PM
> Subject: Re: [PHP] pop textarea field w/ text incl. quotes
> >
> > Don't worry about quotes - the problem is that you have HTML markup inside
> > your . You just need to convert < and > to < and >,
> > respectively, in your link text. The functions htmlspecialchars() or
> > strip_tags() can do this for you.
> >
> > i.e.:
> >
> > " . htmlspecialchars($link) . "" ?>
> >
> > When the form is submitted (and when it's viewed), those entities will be
> > converted back to their real characters automatically by the browser.
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Tough one?

2001-02-21 Thread John Monfort



  Actually, you may not have to do all that.

  you can use implode().

  By default, implode will join an array, with the supplied character.

  So, if you have
  $list = (one two three four);

  you can do
$all = implode("," , $list);

 to get
 $all = "one,two,three,four";

 This works pretty well...

  enjoy!



__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 21 Feb 2001, Jason Stechschulte wrote:

> On Wed, Feb 21, 2001 at 01:34:10PM -0500, Mike wrote:
> > $keys = array_keys($HTTP_POST_VARS);
> > for($x = 2; $x < count($keys); $x++)
> > {
> > $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',";
>
> }
> $updateString = ereg_replace(",$", "", $updateString);
>
> That should take care of the trailing comma.
>
>
> --
> Jason Stechschulte
> [EMAIL PROTECTED]
> --
> One of the reasons Perl is faster than certain other unnamed interpreted
> languages is that it binds variable names to a particular package (or
> scope) at compile time rather than at run time.
>  -- Larry Wall in <[EMAIL PROTECTED]>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] what's the difference between include and require??

2001-02-19 Thread John Monfort



  An unsuccessful include will give you an error.

  An unsuccessful require will kill the program.


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 19 Feb 2001, Zenith wrote:

> Though I have read the manual about these two things, include() and
> require(), but I still not very clear about the difference between these??
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] woe is me

2001-02-19 Thread John Monfort



   I feel your pain.
:-(


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 19 Feb 2001, Adrian Murphy wrote:

> i'm sorry,i just had to share this with people who'd understand.
> we've just secured clients who are m$ affiliated and they insist
> everthing be done with asp.
> excuse me while i go off for a little cry.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




RE: [PHP] HTTP POST Question

2001-02-19 Thread John Monfort



> 1. It appears if I use the header function I have to redirect the page to
> another page, it doesn't appear possible to retrieve a page into the current
> page?  Unless someone can show me some code that would do that.
>

  If all you want is to display the remote page, within the local page,
  then all you need is fpassthru()

  ex.

  $server = "http://www.site.com";

  $fp = fopen($server,"r")// "r" is for reading
  fpassthru($fp);

 This will display the results of the remote file (html or whatever) into
 the local file (in this case, your PHP file).


>
>
> > -Original Message-
> > From:   Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
> > Sent:   Monday, February 19, 2001 7:33 AM
> > To: Montgomery-Recht, Evan
> > Subject:Re: [PHP] HTTP POST Question
> >
> > You have to use header() function and how POST work you can find in HTTP
> > RFC
> > at http://www.w3.org/Protocols/rfc2616/rfc2616.html
> > -
> > Milan Mlynarcik
> > Web Programmer
> > Charmed Technology Slovakia
> > Nam. sv. Egidia 16/37
> > 058 01 Poprad, Slovakia
> > E-mail: [EMAIL PROTECTED]
> > Office: 00421 92 7881 874
> > Mobile: 00421 905 964 535
> > Web page: http://www.charmed.com/
> > -
> > - Original Message -
> > From: "Montgomery-Recht, Evan" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, February 19, 2001 1:06 PM
> > Subject: [PHP] HTTP POST Question
> >
> >
> > > Good morning...
> > >
> > > This should be a good monday morning question.
> > >
> > > I have a cgi-bin written in perl (it's actually, a interface to a
> > > perl-module which is a interface to a telnet-like protocol).
> > >
> > > Anyways what I need to do is I have already existing code written in
> > PHP,
> > > but at some point I need to call this cgi-bin and get a return code from
> > it
> > > and process (good/bad result) and return to completed php script that
> > says
> > > it called this cgi-bin.  It's not very clear how to set the
> > HTTP_POST_VARS
> > > for sending to a post command (which doesn't seem to exist);
> > >
> > > Any ideas I don't see a function called:
> > >
> > > $HTTP_POST_VARS =set variables;
> > > $result = http_post("http://localhost/cgi-bin/script.pl");
> > >
> > > Thanks,
> > >
> > > evan
> > >
> > > PS.  I'd appricate a working example, even if it's a dummy version.
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] HTTP POST Question

2001-02-19 Thread John Monfort


  I've been struggling with the same idea.

  I haven't been able to process the returned value, but I've the
  following methods to DISPLAY the cgi results. Although, the PHP has no
  way  of knowing wether the CGI evaluated to a Yes or No result.

  If you solve this, then please let me know.

  $server =
"http://www.mydomain_name.com/my_cgi_file.cgi?var1=valueOne&var2=valueTWO";

 //var1 and var2 are the parameters that you are passing to the CGI
   for processing.
 //your cgi would process these variables, then 1) print out the
   result 2)  return the desired variable...like,  return ($var1,
   $var2).

  //open remote site

  $fp = fopen($server, "r");


  fpassthrough($fp);

  //this will display whatever the remote CGI sends to STDOUT
  //however, it will not process anything that is returned.

  That is, the PHP doesn't know wether the CGI evaluated to GOOD or BAD.


 That's as far as I've been able to get, I hope it helps.

 If you do find a better solution, then please send me a copy.
 I would appreciate it.




__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Mon, 19 Feb 2001, Montgomery-Recht, Evan wrote:

> Good morning...
>
> This should be a good monday morning question.
>
> I have a cgi-bin written in perl (it's actually, a interface to a
> perl-module which is a interface to a telnet-like protocol).
>
> Anyways what I need to do is I have already existing code written in PHP,
> but at some point I need to call this cgi-bin and get a return code from it
> and process (good/bad result) and return to completed php script that says
> it called this cgi-bin.  It's not very clear how to set the HTTP_POST_VARS
> for sending to a post command (which doesn't seem to exist);
>
> Any ideas I don't see a function called:
>
> $HTTP_POST_VARS =set variables;
> $result = http_post("http://localhost/cgi-bin/script.pl");
>
> Thanks,
>
> evan
>
> PS.  I'd appricate a working example, even if it's a dummy version.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




  1   2   >