php-general Digest 19 Nov 2001 09:39:20 -0000 Issue 1003

Topics (messages 75039 through 75081):

PHP mail() function.  Help please...
        75039 by: Anthony Ritter
        75040 by: Avdija A. Ahmedhod¾iæ
        75052 by: Anthony Ritter

Re: building a php based subscription site (not a porn site)
        75041 by: Joe Stump

Re: Auto Thumbnail?
        75042 by: Joe Stump

Re: alzheimers and confused
        75043 by: Joe Stump

Re: Error running ./configure (c++ error)
        75044 by: David Robley

Re: Question on variable variables
        75045 by: Joe Stump

Re: relative paths
        75046 by: Joe Stump

Re: Standalone PHP Application
        75047 by: John Monfort

add column?
        75048 by: Marts

Re: comma-formatting numbers
        75049 by: Joe Stump

Re: PHP Backing up a Database?
        75050 by: Joe Stump

Re: extract() question
        75051 by: Joe Stump

Segmented Code/HTML VS. ECHO??
        75053 by: Brad Melendy
        75054 by: Martin Towell
        75056 by: Richard S. Crawford
        75060 by: Christopher William Wesley

Additional e-mail address in PHP script...
        75055 by: Anthony Ritter
        75057 by: Martin Towell
        75058 by: Avdija A. Ahmedhod¾iæ
        75059 by: David Robley
        75076 by: _lallous

Re: Quiz questions on PHP
        75061 by: jimmy elab

How to create and run background process at Win2K
        75062 by: Chris Lee
        75063 by: John Monfort
        75064 by: Chris Lee

MySQL INSERT
        75065 by: Justin French
        75066 by: David Robley
        75067 by: Matthew Loff
        75068 by: Justin French
        75069 by: David Robley

Cache Control
        75070 by: Jeff Sittler

RPM Installation Did Not Install PHP Modules
        75071 by: Gabriel Richards

Virtual Directory Support disabled
        75072 by: Mit Rowe

Valid Chars Function
        75073 by: phantom
        75075 by: _lallous

Re: Resetting ID in mySQL DB
        75074 by: Thomas Edison Jr.

Re: Desperate: odbc_connect() does not work! Please help!
        75077 by: Kraa de Simon

Apache 2.0.28  module
        75078 by: Jobarr

Re: Advantages of php
        75079 by: Adrian D'Costa

mail list
        75080 by: Yura

Re: Array problem
        75081 by: De Necker Henri

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I'm reading J.Meloni's tutorial on page 119 in "Fast and Easy" and she is
explaining using the PHP mail function.

There are two scripts for this example...

One is the .html file which lays out the form with input boxes, a textarea
box and a submit button.

It is:

<HTML>
<HEAD>
<TITLE> Simple Feedback Form </TITLE>
</HEAD>
<BODY>
<FORM METHOD="post"  ACTION="send_simpleform.php">
<P> <strong> Your name: </strong> <br>
<INPUT TYPE="text"  NAME="sender_name"  SIZE=30></P>
<P> <strong> Your e-mail address: </strong> <br>
<INPUT TYPE="text"  NAME="sender_email"  SIZE=30></P>
<P> <strong> Your message: </strong> <br>
<TEXTAREA NAME ="message" COLS=30  ROWS=5  WRAP=virtual></TEXTAREA></P>
<P> <INPUT TYPE="submit"  NAME= "submit"  VALUE="Send this form"> </P>
</FORM>
</BODY>
</HTML>
........................................................

The next is the PHP script which reads as follows:

<?
$msg="This e-mail is being sent from www site\n";
$msg.="Sender's name: \t$sender_name\n";
$msg.="Sender's e-mail:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$subject="Website Feedback";
$mailheaders="From: My website<> \n";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>
<HTML>
<HEAD>
<TITLE>Simple Feedback Form</TITLE>
</HEAD>
<BODY>
<H1>The following e-mail has been sent:</H1>
<P><strong>Your Name:</strong><br>
<?echo "$sender_name";?>
<P><strong>Your email address:</strong><br>
<?echo "$sender_email";?>
<P><strong>Message:</strong><br>
<? echo "$message"; ?>
</BODY>
</HTML>
..............................................

Everytime I input a name, e-mail, and test blurb for the message box form
and hit submit, I get:

Warning: Failed to connect in C:\Program Files\Apache
Group\Apache\htdocs\send_simpleform.php
in line 10.

I have made the corrections in my php.ini file in the [mail function]
to read as follows:

SMTP=localhost
[EMAIL PROTECTED]

Please advise if anyone knows what I am doing wrong.

Thanking all in advance.
Tony Ritter









--- End Message ---
--- Begin Message ---
do you have sendmail or smtp configured properly. Yao should test that
first. Try to put instad of SMTP=localhost name of  some other server, taht
you can connect and send mail from.


----- Original Message -----
From: Anthony Ritter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 19. studeni 2001 01:07
Subject: [PHP] PHP mail() function. Help please...


> I'm reading J.Meloni's tutorial on page 119 in "Fast and Easy" and she is
> explaining using the PHP mail function.
>
> There are two scripts for this example...
>
> One is the .html file which lays out the form with input boxes, a textarea
> box and a submit button.
>
> It is:
>
> <HTML>
> <HEAD>
> <TITLE> Simple Feedback Form </TITLE>
> </HEAD>
> <BODY>
> <FORM METHOD="post"  ACTION="send_simpleform.php">
> <P> <strong> Your name: </strong> <br>
> <INPUT TYPE="text"  NAME="sender_name"  SIZE=30></P>
> <P> <strong> Your e-mail address: </strong> <br>
> <INPUT TYPE="text"  NAME="sender_email"  SIZE=30></P>
> <P> <strong> Your message: </strong> <br>
> <TEXTAREA NAME ="message" COLS=30  ROWS=5  WRAP=virtual></TEXTAREA></P>
> <P> <INPUT TYPE="submit"  NAME= "submit"  VALUE="Send this form"> </P>
> </FORM>
> </BODY>
> </HTML>
> ........................................................
>
> The next is the PHP script which reads as follows:
>
> <?
> $msg="This e-mail is being sent from www site\n";
> $msg.="Sender's name: \t$sender_name\n";
> $msg.="Sender's e-mail:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> $to="[EMAIL PROTECTED]";
> $subject="Website Feedback";
> $mailheaders="From: My website<> \n";
> $mailheaders.="Reply to: $sender_email\n\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
> <HTML>
> <HEAD>
> <TITLE>Simple Feedback Form</TITLE>
> </HEAD>
> <BODY>
> <H1>The following e-mail has been sent:</H1>
> <P><strong>Your Name:</strong><br>
> <?echo "$sender_name";?>
> <P><strong>Your email address:</strong><br>
> <?echo "$sender_email";?>
> <P><strong>Message:</strong><br>
> <? echo "$message"; ?>
> </BODY>
> </HTML>
> ..............................................
>
> Everytime I input a name, e-mail, and test blurb for the message box form
> and hit submit, I get:
>
> Warning: Failed to connect in C:\Program Files\Apache
> Group\Apache\htdocs\send_simpleform.php
> in line 10.
>
> I have made the corrections in my php.ini file in the [mail function]
> to read as follows:
>
> SMTP=localhost
> [EMAIL PROTECTED]
>
> Please advise if anyone knows what I am doing wrong.
>
> Thanking all in advance.
> Tony Ritter
>
>
>
>
>
>
>
>
>
>
> --
> 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]

--- End Message ---
--- Begin Message ---
Thank you!

It works fine.

Regards,
Tony



--- End Message ---
--- Begin Message ---
What I usually do is set a cookie BEFORE sending them to the paypal site then
on the confirm page (which they click through to after they paid) check for the
cookie - if it's there then activate the account. If not then delete the 
account after 5 days (gives them plenty of time to bitch if they didn't click
through).

Make sure to put a LARGE notice on your signup form explaining exactly how to
activate their account.

Hope this helps - it's worked great for me in the past.

--Joe

On Fri, Nov 16, 2001 at 06:02:38PM -0500, Vincent Stoessel wrote:
> I am helping a client make a transition from a ad revenue based site
> to a membership based one and I was wondering if there was some commonly
> used mechanism for php based membership sites. I have made
> membership sites before but they were free. How does one :
> 
> 1. Have a person register a username
> 2. pay for membership ( paypay, payflow)
> 3. Verify that membership is payed for
> 4. Allow user to log in and browse member only content.
> 
> 
> umber 1 and 4 I know how to do but I'm not sure if my list is in
> the correct order. Should they pay for membership, then select a username?
> 
> Has someone done this before?
> -- 
> Vincent Stoessel [EMAIL PROTECTED]
> Java Linux Apache Mysql Php (JLAMP) Engineer
> (301) 362-1750 Mobile (410) 419-8588
> AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
> 
> 
> -- 
> 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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00000.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
All you need is the nifty little program called convert - I have a frontend
class called convert.php at my website. Check out http://www.miester.org 
in the code section.

BTW, this bypasses the need for compiling gd into your php compile. Also, you'll
want to make sure you have convert on your system (sometimes isn't installed).
It's part of the Image Magik utility pack.

--Joe

On Fri, Nov 16, 2001 at 11:16:57PM +0000, cosmin laslau wrote:
> I've got a website which will alllow users to upload photos (jpegs) and, 
> once approved, they'll be up for display. To do that, I need an 
> auto-thumbnail script, preferrably for on-the-fly thumb generation.
> 
> Any ideas? Also, what kind of libraries would I need.
> 
> Thanks. The site is http://www.flat-6.net/f6
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> -- 
> 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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00001.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
if(!eregi("\.jpg$",$image) || !eregi("\.jpeg$",$image))
  die("ERROR: doesn't appear to be a JPeg image!");

--Joe

On Fri, Nov 16, 2001 at 09:45:07PM -0500, jtjohnston wrote:
> OK kids, I'm not 19 ... my old brain gets tired easily and my wife is
> complaining that I stay up too late PHPing :)
> Putting the rest aside, why does AND work and not OR. OR was what I
> meant?
> I meant ... if the string doesn't contain .jpg or the string doesn't
> contain .jpeg ... > ERROR!
> 
> John
> 
> <?php
> $errorfound = 0;
> $yourimage =
> 
>"http://callisto.si.usherb.ca/~ang96m04/cgi-bin/postcards/e.jpegstrie/sap_bucket.jpg";;
> 
> // if((!strpos($yourimage, ".jpg")) or (!strpos($yourimage, ".jpeg")))
>  if((!strpos($yourimage, ".jpg")) and (!strpos($yourimage, ".jpeg")))
>  {
>   $errorfound++;
>   echo"Your image \"<font color=\"000000\">$yourimage</font>\"<br> did
> not contain .jpg or .jpeg</b>";
>  }else{
>   echo"Your image \"<font color=\"000000\">$yourimage</font>\" contains
> .jpg or .jpeg</b>";
>  }
> 
> ?>
> 
> 
> 
> -- 
> 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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00002.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
On Sun, 18 Nov 2001 23:55, Roy Sigurd Karlsbakk wrote:
> Hi all
>
> I try to ./configure php to run on a just-upgraded rh72 box, but it
> tells me c++ cannot create executables.
>
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-msql \
>       --enable-inline-optimization --enable-ftp
> check...
> check...
> check...
> checking for c++... c++
> checking whether the C++ compiler (c++  
> -Wl,-rpath,/usr/local/Hughes/lib -L/usr/local/Hughes/lib) works... no
> configure: error: installation or configuration problem: C++ compiler
> cannot create executables.
>
> The following c++-like stuff is installed
>
> # rpm -qa | grep ++
> libstdc++-2.96-98
> gcc-c++-2.96-98
> libstdc++3-devel-3.0.1-3
> libsigc++-1.0.3-5
> compat-libstdc++-6.2-2.9.0.16
> libstdc++-devel-2.96-98
> libstdc++3-3.0.1-3
> gcc3-c++-3.0.1-3
> compat-egcs-c++-6.2-1.1.2.16
> libsigc++-devel-1.0.3-5
>
> Thanks a lot
>
> roy
> --
> Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA
>
> Computers are like air conditioners.
> They stop working when you open Windows.

Do you have appropriate permissions in the directory you are runnning 
configure in for the user running configure??

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   I would have made a good Pope. -Richard Nixon
--- End Message ---
--- Begin Message ---
This would be the logical way to do it (as I see it):

define('MY','pre_');
$a = "dog";
$new_var = MY.$a;

$$new_var and $pre_dog are the same :)

--Joe


On Fri, Nov 16, 2001 at 09:47:12PM -0500, Jeff Lewis wrote:
> I've a question regarding variable variable I was hoping someone could help me with:
> 
> All the examples in the manual have the entire variable name being variable e.g.
> $a = "hello"   and
> $$a being the same as $hello
> 
> What I need to do, however, is append a variable portion to a constant prefix.  So I 
>have a set of variables that are named $MYdog, $MYcat etc. and I need to do
> 
> $a = "dog"
> ${"MY$a"} being the same as $MYdog
> 
> Can this be done, and if so - how? I can't get it to work.
> 
> Jeff

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00003.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
An easy way to fix this common problem is this:

define('BASE_INCLUDE_PATH','/var/www/includes/');

include(BASE_INCLUDE_PATH.'my_include.inc');

Just make sure to include the file with the BASE_INCLUDE_PATH define using a
relative path ... ie.

<?

  include('./init.inc');


?>

--Joe


On Sat, Nov 17, 2001 at 05:15:02PM +0100, Mitja Pagon wrote:
> Hi!
> 
> I want to know if there is a way to include(require) a file using a path
> relative to web server root.
> 
> I'm aware of the fact that you can specify include path, but I believe that
> this is not the best solution, since applications written that way aren't
> easily portable.
> 
> What I'm looking for is something similar to what "/" does in HTML paths and
> SSI include directives.
> 
> Thanks,
> 
> Mitja Pagon
> 
> 
> 
> -- 
> 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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00004.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---


 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]
>

--- End Message ---
--- Begin Message ---
Hi,
Below is a segament of my source as you can see it Switchin is taken from
the row, I need it to be taken from the column can I just change it to
$mycolumn?

Thanks for your help

$insum = $insum + $myrow[Switchin];
                         $outsum = $outsum + $myrow[Switchout];
                         $yestodayin = $myrow[Switchin];
                         $yestodayout = $myrow[Switchout];


--- End Message ---
--- Begin Message ---
Here is an example of number format:

<?

  $foo = 100000;

  echo number_format($foo,2); // displays 100,000.00

?>

--Joe


On Sat, Nov 17, 2001 at 01:45:16PM -0800, Paul Wolstenholme wrote:
> You can do this using the number_format function or probably sprintf.
> /Paul
> 
> On Saturday, November 17, 2001, at 01:36  PM, Scott Dudley wrote:
> 
> >
> >i'm new to php and am having difficulty translating this tiny awk
> >function that i use to comma format numbers.  can someone assist?  my
> >stumbling block thus far have been the fact the the php regex matching
> >functions don't return the byte offset within the haystack and the regex
> >replace functions don't support the awk and perl-like ampersand "&" in
> >the replacement pattern.  please help and thanks.
> >
> >function commas(num) {
> >  while (num ~ /[0-9][0-9][0-9][0-9]/)
> >    sub (/[0-9][0-9][0-9]$|[0-9][0-9][0-9][,]/, ",&", num)
> >
> >  return num
> >}
> >
> >
> >--
> >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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00005.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
This is what you'll want to do:

0 0 * * * /path/to/mysqldump -u[username] -p[username] [database] > /path/to/backup.sql

Put that above in your crontab (you might want to tar/gzip it too if it's big)
then download it via cron to your local box.

You could also look into rsync.

--Joe

On Sat, Nov 17, 2001 at 10:25:04PM +0000, cosmin laslau wrote:
> Hi,
> 
> Say I'm not really confident in the prowess of my server, and I want to 
> download my database onto my computer. Can that be done? What can I look 
> (FTP access) in the directory structure. I guess, where is it usually 
> located?
> 
> Thanks.
> 
> Cosmin Laslau
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> -- 
> 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]

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00006.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
You may want to do something like this instead:

<?

  function my_extract($arr)
  {
    if(is_array($arr) && sizeof($arr))
    {
      while(list($key,$val) = each($arr)
      {
        $new_var = str_replace(' ','_',$key);
        global $$new_var;
        $$new_var = $val;
      }
    }
  }

?>

--Joe


On Sun, Nov 18, 2001 at 04:21:46PM -0500, David Bernier wrote:
> There is this array which I would like to convert into a series variables using the 
>extract function: 
> 
> <?
> $oz = array(
>  "lion" => "courage", 
>  "dorothy" => "kansas", 
>  "scarecrow" => "brain"
>  "tin man" => "heart"); 
> 
> extract($oz);
> ?>
> 
> now, I would like to access my new variables. it is obviously easy for $lion, 
>$dorothy, and $scarecrow but it isn't for "tin man".
> 
> from this, I have 3 or 4 questions:
> 1) has $oz["tin man"] been passed into a variable?
> 2) if yes, how do I access the variable that came out of $oz["tin man"]?
> 3) let's pretend that I have no control over the names of the keys for $oz, how 
>should I have called extract() to tell it to replace the space between "tin" and 
>"man" by a underscore character?
> 4)  finally, is there a way to access and retrieve that values of the symbol table 
>without knowing their names?
> 
> David
> 

Joe Stump <[EMAIL PROTECTED]>
------------------------------------------------------------------------
"How would this sentence be different if pi equaled 3?" 

Attachment: msg40443/pgp00007.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
Hello,
Other than the fact that sometimes, you just can't get raw HTML to process
properly by dropping out of PHP code, what are the pros and cons of using
RAW HTML or just ECHOING everything in PHP?  Thanks for any insights.

..Brad


--- End Message ---
--- Begin Message ---
I think it's just a matter of taste - I haven't found any noticable
differences between the two.

Sometimes the code it more readable with raw html, sometimes with echos.

-----Original Message-----
From: Brad Melendy [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 11:37 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Segmented Code/HTML VS. ECHO??


Hello,
Other than the fact that sometimes, you just can't get raw HTML to process
properly by dropping out of PHP code, what are the pros and cons of using
RAW HTML or just ECHOING everything in PHP?  Thanks for any insights.

..Brad



-- 
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]
--- End Message ---
--- Begin Message ---
I personally prefer an approach that uses an HTML generation class, sort of 
like CGI.pm, to spew out static HTML pages.  Or I would, if I could figure 
out how to do it. ;)


At 04:40 PM 11/18/2001, Martin Towell wrote:
>I think it's just a matter of taste - I haven't found any noticable
>differences between the two.
>
>Sometimes the code it more readable with raw html, sometimes with echos.


Sliante,
Richard S. Crawford

http://www.mossroot.com
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
MSN: [EMAIL PROTECTED]

"It is only with the heart that we see rightly; what is essential is 
invisible to the eye."  --Antoine de Saint Exupéry

"Push the button, Max!"

--- End Message ---
--- Begin Message ---
I _hate_ echo'n out big batches of HTML, so I never do it.  I prefer to
include HTML, or have a class or function write HTML.  However, printing
in heredoc style is very handy ... more so than sliced bread.

For example:

<?php
        $color = "#FFCC00";
        $name  = "Yogi";

        print <<<EOF
        <font color="${color}">The bear is ${name}.</font>
        <!-- this can be as much plain HTML intermixed with PHP
             variables as you like -->
EOF;
        print( date() );
?>

PHP code, followed by plain HTML (I put in some PHP variables, but they
aren't necessary) (without a bunch of echo/print calls, or having to
escape quotes), followed by more PHP ... wash, rinse, repeat as much as
necessary ... you get the picture.  It works out rather nicely.

        $0.02
        ~Chris                           /"\
                                         \ /     September 11, 2001
                                          X      We Are All New Yorkers
                                         / \     rm -rf /bin/laden

On Sun, 18 Nov 2001, Brad Melendy wrote:

> Hello,
> Other than the fact that sometimes, you just can't get raw HTML to process
> properly by dropping out of PHP code, what are the pros and cons of using
> RAW HTML or just ECHOING everything in PHP?  Thanks for any insights.
>
> ..Brad
>
>
>
> --
> 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]
>
>

--- End Message ---
--- Begin Message ---
Is there any way to add an *additional* e-mail address - a cc - besides the
one that is already in the $to variable below using the following PHP
script?

Thanking all in advance.
Tony Ritter
..........................................


<?
$msg="This e-mail is being sent from www site\n";
$msg.="Sender's name: \t$sender_name\n";
$msg.="Sender's e-mail:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$subject="Website Feedback";
$mailheaders="From: My website<> \n";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>




--- End Message ---
--- Begin Message ---
add:
$mailheaders.="CC: $other_email\n";


$mailheaders.="BCC: $other_email\n";
should also work but I haven't managed to get blind carbon copy to work for
me :(

-----Original Message-----
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Additional e-mail address in PHP script...


Is there any way to add an *additional* e-mail address - a cc - besides the
one that is already in the $to variable below using the following PHP
script?

Thanking all in advance.
Tony Ritter
..........................................


<?
$msg="This e-mail is being sent from www site\n";
$msg.="Sender's name: \t$sender_name\n";
$msg.="Sender's e-mail:\t$sender_email\n";
$msg.="Message:\t$message\n\n";
$to="[EMAIL PROTECTED]";
$subject="Website Feedback";
$mailheaders="From: My website<> \n";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>





-- 
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]
--- End Message ---
--- Begin Message ---
I have had some problems with bcc, but only on f. windows server. On "real
server" it works just fine


----- Original Message -----
From: Martin Towell <[EMAIL PROTECTED]>
To: 'Anthony Ritter' <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: 19. studeni 2001 01:45
Subject: RE: [PHP] Additional e-mail address in PHP script...


> add:
> $mailheaders.="CC: $other_email\n";
>
>
> $mailheaders.="BCC: $other_email\n";
> should also work but I haven't managed to get blind carbon copy to work
for
> me :(
>
> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 19, 2001 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Additional e-mail address in PHP script...
>
>
> Is there any way to add an *additional* e-mail address - a cc - besides
the
> one that is already in the $to variable below using the following PHP
> script?
>
> Thanking all in advance.
> Tony Ritter
> ..........................................
>
>
> <?
> $msg="This e-mail is being sent from www site\n";
> $msg.="Sender's name: \t$sender_name\n";
> $msg.="Sender's e-mail:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> $to="[EMAIL PROTECTED]";
> $subject="Website Feedback";
> $mailheaders="From: My website<> \n";
> $mailheaders.="Reply to: $sender_email\n\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
>
>
>
>
>
> --
> 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]
>

--- End Message ---
--- Begin Message ---
On Mon, 19 Nov 2001 11:15, Martin Towell wrote:
> add:
> $mailheaders.="CC: $other_email\n";
>
>
> $mailheaders.="BCC: $other_email\n";
> should also work but I haven't managed to get blind carbon copy to work
> for me :(
>
Try Bcc and Cc - note the case.

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   Never eat prunes when you're famished.
--- End Message ---
--- Begin Message ---
haven't you tried to add a CC to the header?
$mailheadrs .="Cc: [EMAIL PROTECTED]\n";

"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there any way to add an *additional* e-mail address - a cc - besides
the
> one that is already in the $to variable below using the following PHP
> script?
>
> Thanking all in advance.
> Tony Ritter
> ..........................................
>
>
> <?
> $msg="This e-mail is being sent from www site\n";
> $msg.="Sender's name: \t$sender_name\n";
> $msg.="Sender's e-mail:\t$sender_email\n";
> $msg.="Message:\t$message\n\n";
> $to="[EMAIL PROTECTED]";
> $subject="Website Feedback";
> $mailheaders="From: My website<> \n";
> $mailheaders.="Reply to: $sender_email\n\n";
> mail($to,$subject,$msg,$mailheaders);
> ?>
>
>
>
>


--- End Message ---
--- Begin Message ---
Srinivasan Ramakrishnan wrote:
> I'm preparing a quiz on PHP for some programmers. I was wondering if there
> are good questions that I can use instead of inventing my own.

How about: "Give some examples of relevant questions that one can pose
in news://php.general?";

gosh...
--- End Message ---
--- Begin Message ---
Hi,

It is possible to create/run background process at Win2K / Apache
environment? If yes, how?

Regards,
Chris Lee
--- End Message ---
--- Begin Message ---


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]
>

--- End Message ---
--- Begin Message ---
Dear John,

Actually I need to generate an report which need an half an hour to
complete. 
The MS Proxy Server time out for the long process, so I want to create the
report by following method:

apache/mod_php -> call cgi/php -> email notify end user when completed.

Regards,
Chris Lee


> -----Original Message-----
> From: John Monfort [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 19, 2001 11:38 AM
> To: Chris Lee
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] How to create and run background process at Win2K
> 
> 
> 
> 
> 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]
> >
> 
--- End Message ---
--- Begin Message ---
Hi,

I'm inserting into a table (as I've done millions of times), and I have
a column called "id", which is an auto incrementing, unique field.

Since it's auto-increment field, I have no idea what it is at the time
of insert, but I want to be able to report it to the screen.

"Thankyour for your application, for future reference, your application
# is "<the id number of the application i just inserted>."


So, what I'd like to do is INSERT, then find out the id of the row I
just inserted.


I can't just look up the most recent id, because it's *possible* that
someone else could have inserted after me.

Also, at this stage the id field is the only unique field, so I can't
try and match against annother field (of which I know the value I inserted).


Any ideas?


Justin French
--- End Message ---
--- Begin Message ---
On Mon, 19 Nov 2001 14:51, Justin French wrote:
> Hi,
>
> I'm inserting into a table (as I've done millions of times), and I have
> a column called "id", which is an auto incrementing, unique field.
>
> Since it's auto-increment field, I have no idea what it is at the time
> of insert, but I want to be able to report it to the screen.
>
> "Thankyour for your application, for future reference, your application
> # is "<the id number of the application i just inserted>."
>
>
> So, what I'd like to do is INSERT, then find out the id of the row I
> just inserted.
>
>
> I can't just look up the most recent id, because it's *possible* that
> someone else could have inserted after me.
>
> Also, at this stage the id field is the only unique field, so I can't
> try and match against annother field (of which I know the value I
> inserted).
>
>
> Any ideas?
>
>
> Justin French

mysql_insert_id is your friend, in this case. Even if someone inserts 
another record, this function will return the auto ID for the last insert 
performed using a given link identifier. So you feed it the link 
identifier for _your_ insert, which of course you know, and Bob's yer 
uncle :-)

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   Vultures only fly with carrion luggage.
--- End Message ---
--- Begin Message ---

Did you check the PHP manual?  Sounds to me like you just described the
mysql_insert_id() function verbatim.

http://www.php.net/manual/en/function.mysql-insert-id.php


-----Original Message-----
From: Justin French [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, November 18, 2001 11:21 PM
To: php
Subject: [PHP] MySQL INSERT


Hi,

I'm inserting into a table (as I've done millions of times), and I have
a column called "id", which is an auto incrementing, unique field.

Since it's auto-increment field, I have no idea what it is at the time
of insert, but I want to be able to report it to the screen.

"Thankyour for your application, for future reference, your application
# is "<the id number of the application i just inserted>."


So, what I'd like to do is INSERT, then find out the id of the row I
just inserted.


I can't just look up the most recent id, because it's *possible* that
someone else could have inserted after me.

Also, at this stage the id field is the only unique field, so I can't
try and match against annother field (of which I know the value I
inserted).


Any ideas?


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]

--- End Message ---
--- Begin Message ---
Thanks David,

I've skipped off to the manual and done a bit of reading, but i'm a
little confused.  The user-added notes have actually clouded the issue more!!

It *looks like* from what they're saying, that the number returned may
not be the number that I want, if someone else inserted just after me. 
They go to talk about locking and all sorts of junk, but I was hoping
you could clarify the bit about an idenitifier.

How do I specify an identifier upon INSERT, and how do I re-use it when
using mysql_insert_id?

Or is all of this implied by PHP/MySQL?


Many thanks,

Justin French



> mysql_insert_id is your friend, in this case. Even if someone inserts
> another record, this function will return the auto ID for the last insert
> performed using a given link identifier. So you feed it the link
> identifier for _your_ insert, which of course you know, and Bob's yer
> uncle :-)
--- End Message ---
--- Begin Message ---
On Mon, 19 Nov 2001 15:19, Justin French wrote:
> Thanks David,
>
> I've skipped off to the manual and done a bit of reading, but i'm a
> little confused.  The user-added notes have actually clouded the issue
> more!!
>
> It *looks like* from what they're saying, that the number returned may
> not be the number that I want, if someone else inserted just after me.
> They go to talk about locking and all sorts of junk, but I was hoping
> you could clarify the bit about an idenitifier.
>
> How do I specify an identifier upon INSERT, and how do I re-use it when
> using mysql_insert_id?
>
> Or is all of this implied by PHP/MySQL?
>
>
> Many thanks,
>
> Justin French
>
> > mysql_insert_id is your friend, in this case. Even if someone inserts
> > another record, this function will return the auto ID for the last
> > insert performed using a given link identifier. So you feed it the
> > link identifier for _your_ insert, which of course you know, and
> > Bob's yer uncle :-)

The link identifier is the value returned by your call to mysql_connect, 
if you do one. Otherwise, mysql_insert_id will use the last opened link, 
which will be the current link you just used to insert the data. Assuming 
this is all done in the same script, of course. If you do an insert in 
this script, then jump to another script and try to get the last inserted 
ID, you're in trouble.

But essentially, if you do

mysql_db_query($DB, 'INSERT INTO blah');
$newid = mysql_insert_id();

you can be assured that the $newid will be the ID of the record inserted 
by the previous line, notwithstanding that forty other people are 
inserting new records almost simultaneously.

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   Oxymoron: Split level.
--- End Message ---
--- Begin Message ---
How do I set a page to cache for only 5 minutes?

In ASP, I ahve used:
<%
 Response.CacheControl = "no-cache"
 Response.AddHeader "Pragma", "no-cache"
 Response.Expires = -1
 if Session("svUsername") = "" then response.redirect
"../login/accessDenied.asp"
%>
and I could just change the Response.Expires to how ever many seconds I
wanted the page to stay cached.

My PHP scripts, I'm using:
  header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
  header ("Cache-Control: no-cache, must-revalidate");
  header ("Pragma: no-cache");
I don't see an option where I can tell it to cache for say 5 minutes.

Any help would be appreciated.

Jeff



--- End Message ---
--- Begin Message ---
I installed PHP/Apache/MySQL via the Red Hat installation process (7.2), but
Apache isn't processing PHP files, they show up as plain text in the
browser. I checked with the FAQ and related documentation which said to
ensure that the AddModule and LoadModule directives where there and not
commented out. They are there, although they are within <IfDefine HAVE_PHP>
tags. When I followed the path the modules are supposed to be in
(modules/mod_php.so for example), I discovered there were no php modules in
/etc/httpd/modules, nor any other place on my system (after a find...).

Why were these modules not installed? What should I do? I tried to build
from the source, but then I got some error after ./configure that says lex
command not found. What's lex?

Gabe

-----
Ender Technology
Websites, Database Applications, Hosting
(310) 516-7411
[EMAIL PROTECTED]
http://www.endertechnology.com/


--- End Message ---
--- Begin Message ---
 in phpinfo() displays

Virtual Directory Support disabled 

what exactly is this, and where can i find documentation on it?

-Mit


 ___________________________________________________________
 Mit Rowe
 (Will Mitayai Keeso Rowe)

 Internet Services
 DreamLabs/Branch Media Inc.      ph: 416.323.0840 ext. 262
 260 Richmond St. East Suite 200  fax: 416.323.0894
 Toronto, Ontario  M5A 1P4        icq: 7161728
 Canada
 
 [EMAIL PROTECTED] / [EMAIL PROTECTED]
 ___________________________________________________________

--- End Message ---
--- Begin Message ---
Anyone know a good PHP function or script to scan a string for Valid
Characters to make sure something that is not allow is not included in a
form?

$Name = "#@@##@!#!@" would not be a valid alphabetical name, how do I
scan for that in PHP?  Thanks.

--- End Message ---
--- Begin Message ---
you can use regluar expressions, or single character scanning via for loop,

1)RegExp:
if (ereg('[^a-z0-9]', $name)) print 'error!';

2)For loop
for ($i=0;$i<strlen($name)$;$i++)
if ($name[$i] == '@' || $name[$i]=='!' .. ....) print 'error!';

"Phantom" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Anyone know a good PHP function or script to scan a string for Valid
> Characters to make sure something that is not allow is not included in a
> form?
>
> $Name = "#@@##@!#!@" would not be a valid alphabetical name, how do I
> scan for that in PHP?  Thanks.
>


--- End Message ---
--- Begin Message ---
Jack,

Thanks a lot for you help. 
I did actually work out the logistics of the code and
it's doing fine. It's probably a solution to my
problem, there's only a couple of things though :

a) I got about 800 plus records in the table. And
there's a lot of empty or duplicate records in there
which need to be deleted. So if i individually delete
every record then i will have to run the code for each
ID individually. That would be a lot to do. That's why
i was wondering if there's a way, by which after
having deleted those empty/duplicate records, i could
just clear the entire ID field and run a code that
would generate IDs in order again...

b) How can i check when the record is sent to the DB
using PHP3 or mySQL if there's any value in the field
or not? I have put up a JavScript validation to check
for the same in the form, and yet, something's
defeating that and empty records are entering into the
DB. I don't know why really!! 

Thanks a bunch!
Cheers & Glory,
Thomas Edison jr.
--- Jack Dempsey <[EMAIL PROTECTED]> wrote:
> Thomas,
> 
> The code i gave can't be copied directly in...you
> need to use it as a guide,
> but use your own variables...
> So, basically, whatever field you have as your id
> field, that is what you
> will put in place of what i called id_num...and the
> number 36 was just an
> example...see if this makes sense:
> 
> you want to delete a record with the column ID being
> X
> 'delete from table where ID=X' that would be your
> sql
> then you send another query:
> $sql = "update table set ID=ID-1 where ID>X";
> what this does is say "ok, the numbers before the
> item you deleted will stay
> the same, but from the place you deleted on higher
> you need to decrement the
> id values by one.
> 
> try this from the mysql command line on a test table
> with some fake records,
> and you should see what i mean...
> 
> good luck
> jack
> 
> -----Original Message-----
> From: Thomas Edison Jr.
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 2:09 AM
> To: Jack Dempsey
> Subject: RE: [PHP] Resetting ID in mySQL DB
> 
> 
> Jack,
> 
> Ok i get it! Lemme just go through the code once
> more... to be exact.. the code will be :
> 
> <?php
> $db = mysql_connect("localhost","dbname","pass");
> mysql_select_db("dbname",$db);
> $sql = "update table set id_num=id_num-1 where id >
> 36",$db;
> $result = mysql_query($sql);
> ?>
> 
> Or i made a mistake?
> Is there anyway i can re-write all the IDs from 1
> onwards?
> 
> Thanks a Ton!
> Cheers & Glory!
> 
> 
> 
> 
> 
> --- Jack Dempsey <[EMAIL PROTECTED]> wrote:
> > say you have 100 records.
> > you delete number 36.
> > your db will then be
> > ...
> > 34
> > 35
> > 37
> > 38
> > ...
> > correct?
> > after a delete, you could then say:
> > update table set id_num=id_num-1 where id > 36
> > and this would update all relevant records
> >
> > -----Original Message-----
> > From: Thomas Edison Jr.
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 12, 2001 1:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Resetting ID in mySQL DB
> >
> >
> > Hi,
> >
> > I'm facing a problem. I made a simple DB with
> simple
> > adding records in DB operation. I've even put up a
> > JavaScript validation of the Form from where you
> add
> > info. And yet, in the display table, there are
> many
> > many blank fields. I don't know how they are
> > generated.
> >
> > The Adding of info form is at :
> >
>
http://www.mjimm.com/index.php3?page=fanlist_add.php3
> >
> > The display of records is at :
> > http://www.mjimm.com/fanlist_view.php3
> >
> > Now the Display table also Displays the ID of the
> > Record. If i go in my mySQL Admnin, and delete the
> > rows with blank or duplicate records.. the ID also
> > is
> > deleted but then is alway missing from the list.
> > That
> > is, if i delete Row with ID 78, the next record
> > feeded
> > will start from 79 and not 78. So there's gonne be
> > missing ID's from Records. Which i don't want. But
> > which has already happened. How can i correct it??
> > I want to reset the entire IDs to reflect the true
> > Number of records after i delete the Empty/Blank
> > Rows
> > & Duplicate Record Rows!! How can i do that!
> Please
> > help!!!!!
> >
> > Cheers & Glory,
> > Thomas edison jr.
> >
> >
> >
> > =====
> > Rahul S. Johari (Director)
> > ******************************************
> > Abraxas Technologies Inc.
> > Homepage : http://www.abraxastech.com
> > Email : [EMAIL PROTECTED]
> > Tel : 91-4546512/4522124
> > *******************************************
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find a job, post your resume.
> > http://careers.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]
> >
> 
> 
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
> 
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
--- End Message ---
--- Begin Message ---
I checked openlinksw and the driver for Progress 9.1b is indeed available...
(for client is Linux glibc2.1 (x86) and server is UnixWare 7 (x86))

...but we are on Progress 9.1c.

When will the Progress 9.1c driver for this client/server config be
available?

Regards,

Simon.

> -----Original Message-----
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 31 oktober 2001 21:32
> To: Kraa de Simon; Php-General (E-mail)
> Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
> Please help!
> 
> 
> Kraa,
> 
> Sorry for the confusion; we should have that component 
> available by the end
> of the week.
> 
> Best regards,
> Andrew
> 
> 
> > -----Original Message-----
> > From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 31, 2001 2:50 PM
> > To: '[EMAIL PROTECTED]'; Php-General (E-mail)
> > Subject: RE: [PHP] Desperate: odbc_connect() does not work! 
> Please help!
> >
> >
> > Hi,
> >
> > The problem is that a Progress 9.1c is not available at
> > openlinksw.com for:
> >
> > Client:     Linux glibc2.1 (x86)
> > Server:     UnixWare 7 (x86)
> >
> > Only Progress 8.3b is supported.
> >
> > So you are saying that a setting in the .ini files or some 
> environment
> > variable could be missing.
> >
> > I will have a look at it.
> >
> > Thanks,
> >
> > Simon.
> >
> > > -----Original Message-----
> > > From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> > > Sent: woensdag 31 oktober 2001 20:25
> > > To: Kraa de Simon; Php-General (E-mail)
> > > Subject: RE: [PHP] Desperate: odbc_connect() does not work!
> > > Please help!
> > >
> > >
> > > Kraa,
> > >
> > > I'm not sure why the two sample apps are using different
> > > connection calls;
> > > It's not terribly relevant - both are legal.
> > >
> > > Driver manager and driver are not typically dependent on each
> > > other, no.
> > > The fact that the connection fails in odbctest is probably
> > > due to a missing
> > > parameter that iODBC wants in the DSN or the environment
> > > variables. You can
> > > look at error messages for the Merant driver - I'm not going
> > > to get into
> > > debugging it :)
> > >
> > > If you want to try OpenLink's ODBC drivers, you will find
> > > they work fine
> > > with PHP and Progress.
> > > I suggest you download the Multi-Tier driver from our site -
> > > they comes free
> > > with a 2 user connection.  I would also suggest that you
> > > compile --with-iodbc, as it is in greater use and has been
> > > more thoroughly
> > > tested with PHP.
> > >
> > > Free support is available as well if you have difficulties, at:
> > > http://www.openlinksw.com/support/suppindx.htm.
> > >
> > > Best regards,
> > > Andrew Hill
> > > Director of Technology Evangelism
> > > OpenLink Software  http://www.openlinksw.com
> > > Universal Data Access & Data Integration Technology Providers
> > >
> > > > -----Original Message-----
> > > > From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, October 31, 2001 1:59 PM
> > > > To: '[EMAIL PROTECTED]'; Php-General (E-mail)
> > > > Subject: RE: [PHP] Desperate: odbc_connect() does not work!
> > > Please help!
> > > >
> > > >
> > > > Hi Andrew,
> > > >
> > > > I'm using the Merant DataDirect 3.6 Progress SQL92 ODBC
> > > drivers and they
> > > > seem to be working fine when I try their test C program. I
> > > can connect to
> > > > the Progress database en retrieve data.
> > > >
> > > > I'm using their driver manager as well (--with-custom-odbc).
> > > >
> > > > The test C program uses:
> > > >
> > > > SQLConnect (hdbc, driver, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS);
> > > >
> > > > SQLConnect is executed without problems. A connection 
> can be made.
> > > >
> > > > When I try odbctest (from iODBC / odbcsdk) the connect fails
> > > > (same drivers,
> > > > same odbc.ini, same odbcinst.ini).
> > > >
> > > > SQLDriverConnect (hdbc, 0, (UCHAR *) dataSource, SQL_NTS,
> > > (UCHAR *) buf,
> > > > sizeof (buf), &buflen, SQL_DRIVER_COMPLETE);
> > > >
> > > > SQLDriverConnect returns -1. A connection cannot be made.
> > > >
> > > > Why is the first program using SQLConnect() and the other
> > > > SQLDriverConnect()?
> > > >
> > > > Are ODBC driver and ODBC driver manager dependent on each other?
> > > >
> > > > Or can I use the iODBC driver manager and the Merant 
> ODBC drivers
> > > > together?
> > > >
> > > > Are there alternatives to the Merant ODBC drivers?
> > > >
> > > > I am connect a Progress 9.1c database on SCO UnixWare 7.1.1
> > > from Red Hat
> > > > Linux 7.1 with Merant DataDirect 3.6 Progress SQL92 ODBC
> > > drivers and ODBC
> > > > driver manager.
> > > >
> > > > Any ideas?
> > > >
> > > > Regards,
> > > >
> > > > Simon.
> > > >
> > > > > -----Original Message-----
> > > > > From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> > > > > Sent: woensdag 31 oktober 2001 16:12
> > > > > To: Kraa de Simon; Php-General (E-mail)
> > > > > Subject: RE: [PHP] Desperate: odbc_connect() does not work!
> > > > > Please help!
> > > > >
> > > > >
> > > > > Kraa,
> > > > >
> > > > > The 01000 error is a 'General Error', probably at 
> connect time.
> > > > > This suggest that your DSN settings might be bad or not being
> > > > > passed into
> > > > > PHP.
> > > > > Is your DSN named "results" and is that the one you are using
> > > > > in your tests?
> > > > >
> > > > > Also, are you setting your environment variables as
> > > appropriate? e.g.:
> > > > > setenv("ODBCINI=/path/to/odbc.ini");
> > > > > setenv("LD_LIBRARY_PATH=/path/to/your/driver/manager/lib");
> > > > >
> > > > > You may also which to try this connection with 
> odbctest, a sample
> > > > > application available in the iODBC SDK at www.iodbc.org.
> > > > >
> > > > > HTH!
> > > > >
> > > > > Best regards,
> > > > > Andrew Hill
> > > > > Director of Technology Evangelism
> > > > > OpenLink Software  http://www.openlinksw.com
> > > > > Universal Data Access & Data Integration Technology Providers
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Wednesday, October 31, 2001 8:44 AM
> > > > > > To: Php-General (E-mail)
> > > > > > Subject: RE: [PHP] Desperate: odbc_connect() does not work!
> > > > > Please help!
> > > > > >
> > > > > >
> > > > > > So desperate I even forgot the attachment...
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: woensdag 31 oktober 2001 14:40
> > > > > > > To: Php-General (E-mail)
> > > > > > > Subject: [PHP] Desperate: odbc_connect() does not work!
> > > > > Please help!
> > > > > > >
> > > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > When I execute:
> > > > > > >
> > > > > > >   <? odbc_pconnect("results", "sysprogress", "mls"); ?>
> > > > > > >
> > > > > > > I get error:
> > > > > > >
> > > > > > >   Warning: SQL error: , SQL state 01000 in SQLConnect in
> > > > > > > /usr/local/apache/htdocs/odbc.php on line 1
> > > > > > >
> > > > > > > See attachment for phpinfo().
> > > > > > >
> > > > > > > BTW 1
> > > > > > >
> > > > > > > The ODBC config itself works fine. I can make a connection
> > > > > > > and retrieve data
> > > > > > > from the database using a test C program.
> > > > > > >
> > > > > > > BTW 2
> > > > > > >
> > > > > > > I used --with-custom-odbc and set env var 
> CUSTOM_ODBC_LIBS to
> > > > > > > the lib dirs
> > > > > > > and env var CFLAGS to the include dirs.
> > > > > > >
> > > > > > > Met vriendelijke groet / With kind regards,
> > > > > > >
> > > > > > > ICL Nederland B.V.                      Simon de Kraa
> > > > > > > e-Applications / Logistic Systems       Systems Architect
> > > > > > > Het Kwadrant 1                          Tel. +31 
> 346 598865
> > > > > > > Postbus 4000                            Fax  +31 
> 346 562703
> > > > > > > 3600 KA  MAARSSEN
> > > > > > > The Netherlands
> > > > > mailto:[EMAIL PROTECTED]
> > > > > > >
> > > > > > > ---
> > > > > > >
> > > > > > > Progress 9.1c, Roundtable 9.1c, NuSphere Pro 
> Advantage 2.3.1
> > > > > > > @ MS Windows
> > > > > > > 2000 5.00.2195 SP 2
> > > > > > > Progress 9.1b @ SCO UnixWare 7.1.1
> > > > > > >
> > > > > > > --
> > > > > > > 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]
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 
--- End Message ---
--- Begin Message ---
I need a build of PHP that can be used as a module with Apache 2.0.28 beta.
Anyone know where I could find one? It is not compatible with previous 2.0
builds.

thanks
-Jobarr




--- End Message ---
--- Begin Message ---
On Sat, 17 Nov 2001, Jason G. wrote:

> You could check the list archives...  This question flys by every week or 
> two...

Thanks, but browsing is one thing I am still to get used to :)  I like
things in my mail box.

Adrian

> 
> -Jason Garber
> IonZoft.com
> 
> At 01:41 PM 11/17/2001 +0530, Adrian D'Costa wrote:
> >Hi,
> >
> >Is there somewhere on the PHP site that give a list of advantages, speed,
> >etc in comparsion with other similar programs.  I have a client that is in
> >ASP and would like to move to PHP and need this info.
> >
> >Thanks
> >
> >Adrian
> >
> >
> >--
> >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]
> 

--- End Message ---
--- Begin Message ---
Hi,

I already run php site www.body-builders.org but I wanned to add to it mailing list 
like this one at 
php.net I understand general algorithm of it but as newbuy I don't know how MySQL 
database 
can receive mail and then add it to the base?

so my question is how do i make MySQL database to receive emails automaticaly?

Youri
<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org


--- End Message ---
--- Begin Message ---
> Hi there.I just want to know if the following code is suppose to work or
> not?
> I thing it must work!
> Is there something wrong with my while() funtion or must i use other
> functions?
> 
>   $query = "SELECT co_id FROM employee  ORDER BY co_id";
>   db_connect($query);
>   while($row=db_range()){
>      list($co_id) = $row ;
>      $id[$i] = "$co_id" ;
>      echo "<br>$id[$i]";              // This works 
>      $i++ ;
>   }//end while 1
>   
>   $j = 0;
> 
>   while($id[$j]){
>     echo "<br>$id[$i]";               // Doesnt wanna work. WHY ???
>     $j++;
>   }
--- End Message ---

Reply via email to