[PHP] Valid Chars Function

2001-11-18 Thread phantom

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.


-- 
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] Virtual Directory Support disabled

2001-11-18 Thread Mit Rowe

 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 1P4icq: 7161728
 Canada
 
 [EMAIL PROTECTED] / [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] RPM Installation Did Not Install PHP Modules

2001-11-18 Thread Gabriel Richards

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



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

2001-11-18 Thread Jeff Sittler

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




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

2001-11-18 Thread David Robley

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.

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

2001-11-18 Thread Justin French

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 :-)

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

2001-11-18 Thread Matthew Loff


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 "."


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]


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

2001-11-18 Thread David Robley

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 "."
>
>
> 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.

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

2001-11-18 Thread Justin French

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 "."


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]




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

2001-11-18 Thread Chris Lee

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

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




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

2001-11-18 Thread Chris Lee

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] Re: Quiz questions on PHP

2001-11-18 Thread jimmy elab

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

-- 
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] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Christopher William Wesley

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:

The bear is ${name}.

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


-- 
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] Additional e-mail address in PHP script...

2001-11-18 Thread David Robley

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.

-- 
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] Additional e-mail address in PHP script...

2001-11-18 Thread Avdija A . Ahmedhodziæ

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


-- 
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] Additional e-mail address in PHP script...

2001-11-18 Thread Martin Towell

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


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



RE: [PHP] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Richard S. Crawford

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!"


--
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] Additional e-mail address in PHP script...

2001-11-18 Thread Anthony Ritter

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


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




RE: [PHP] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Martin Towell

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]



[PHP] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Brad Melendy

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]




Re: [PHP] PHP mail() function. Help please...

2001-11-18 Thread Anthony Ritter

Thank you!

It works fine.

Regards,
Tony




-- 
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] extract() question

2001-11-18 Thread Joe Stump

You may want to do something like this instead:



--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?" 




msg40414/pgp0.pgp
Description: PGP signature


Re: [PHP] PHP Backing up a Database?

2001-11-18 Thread Joe Stump

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 +, 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?" 




msg40413/pgp0.pgp
Description: PGP signature


Re: [PHP] comma-formatting numbers

2001-11-18 Thread Joe Stump

Here is an example of number format:



--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?" 




msg40412/pgp0.pgp
Description: PGP signature


[PHP] add column?

2001-11-18 Thread Marts

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



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




Re: [PHP] relative paths

2001-11-18 Thread Joe Stump

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.



--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?" 




msg41133/pgp0.pgp
Description: PGP signature


Re: [PHP] Question on variable variables

2001-11-18 Thread Joe Stump

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?" 




msg40409/pgp0.pgp
Description: PGP signature


Re: [PHP] Error running ./configure (c++ error)

2001-11-18 Thread David Robley

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

-- 
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] alzheimers and confused

2001-11-18 Thread Joe Stump

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
> 
>  $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 \"$yourimage\" did
> not contain .jpg or .jpeg";
>  }else{
>   echo"Your image \"$yourimage\" contains
> .jpg or .jpeg";
>  }
> 
> ?>
> 
> 
> 
> -- 
> 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?" 




msg40407/pgp0.pgp
Description: PGP signature


Re: [PHP] Auto Thumbnail?

2001-11-18 Thread Joe Stump

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 +, 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?" 




msg40406/pgp0.pgp
Description: PGP signature


Re: [PHP] building a php based subscription site (not a porn site)

2001-11-18 Thread Joe Stump

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?" 




msg40405/pgp0.pgp
Description: PGP signature


Re: [PHP] PHP mail() function. Help please...

2001-11-18 Thread Avdija A . Ahmedhodžić

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:
>
> 
> 
>  Simple Feedback Form 
> 
> 
> 
>   Your name:  
> 
>   Your e-mail address:  
> 
>   Your message:  
> 
>   
> 
> 
> 
> 
>
> 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);
> ?>
> 
> 
> Simple Feedback Form
> 
> 
> The following e-mail has been sent:
> Your Name:
> 
> Your email address:
> 
> Message:
> 
> 
> 
> ..
>
> 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]


-- 
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 mail() function. Help please...

2001-11-18 Thread Anthony Ritter

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:



 Simple Feedback Form 



  Your name:  

  Your e-mail address:  

  Your message:  

  





The next is the PHP script which reads as follows:

 \n";
$mailheaders.="Reply to: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>


Simple Feedback Form


The following e-mail has been sent:
Your Name:

Your email address:

Message:



..

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]




php-general Digest 18 Nov 2001 21:21:48 -0000 Issue 1002

2001-11-18 Thread php-general-digest-help


php-general Digest 18 Nov 2001 21:21:48 - Issue 1002

Topics (messages 75024 through 75038):

Re: What's wrong with this date ?
75024 by: Andrew Forgue
75026 by: Fred

Changing var value from int to string
75025 by: phantom
75033 by: Shane Wright

Re: Form's : making me sick!
75027 by: Papp Gyozo

Re: [PHP-DEV] ldap_search sort extension, patch included
75028 by: Stig Venaas
75030 by: Andre Oppermann
75035 by: Stig Venaas
75037 by: Andre Oppermann

Re: Difference of queries in PHP/mySQL?
75029 by: Jason G.

Quiz questions on PHP
75031 by: Srinivasan Ramakrishnan
75032 by: Shane Wright

Re: Standalone PHP Application
75034 by: Shane Wright

Error running ./configure (c++ error)
75036 by: Roy Sigurd Karlsbakk

extract() question
75038 by: David Bernier

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

Well it should be '$date',

Also.. If the column type is date and you are entering it for a form,
check to make sure you are typing it in ok and you trim() the variable

if It still doest work... do a  before the mysql_query()
and see exactly what its inserting...





-Original Message-
From: trongduc [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 8:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] What's wrong with this date ?


hi there,
I try to save a record (in the "date" type in MySQL) from the  by :

$query = "INSERT INTO $table VALUES  ($post_id, 0, '$topic', '$uname',
'$body', $date, '$newdate', 0) ";

But it couldn't work (I used $date or '$date' on above, but they got the
same results) !

It showed me the wrong value, as : 1970-0-0 (always this, although I try to
input different values in the text box with the date format is -MM-DD)
I don't understand the way MySQL saves my date field in his data (is it
-MM-DD ?)

Can anyone help me in this case ?
Thanks much...

ps : I used the $date field in "varchar(20) type" instead. BWT, what's
different beween the Varchar(length) type with the Char(length) type ?


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

Do yourself a favor and read the mysql manual.  It explicitly answers your
questions and many more you are likely to have.  Furthermore, there is a
searchable manual online at mysql.com that makes it rather easy to find
answers about mysql.

To get you started, here is a link to a description of all of the column
types includeing date, varchar and char.

Good Luck
Fred

Trongduc <[EMAIL PROTECTED]> wrote in message
000201c16ff6$ff36e470$1b0b10ac@d">news:000201c16ff6$ff36e470$1b0b10ac@d...
> hi there,
> I try to save a record (in the "date" type in MySQL) from the  type=text> by :
>
> $query = "INSERT INTO $table VALUES  ($post_id, 0, '$topic', '$uname',
> '$body', $date, '$newdate', 0) ";
>
> But it couldn't work (I used $date or '$date' on above, but they got the
> same results) !
>
> It showed me the wrong value, as : 1970-0-0 (always this, although I try
to
> input different values in the text box with the date format is -MM-DD)
> I don't understand the way MySQL saves my date field in his data (is it
> -MM-DD ?)
>
> Can anyone help me in this case ?
> Thanks much...
>
> ps : I used the $date field in "varchar(20) type" instead. BWT, what's
> different beween the Varchar(length) type with the Char(length) type ?
>



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

Is there any inherit danger or taboos against changing the value of a
variable from an integer to a string?

example:

if ($Msg==1) $Msg = "You have foobar'ed your entire server.";

Thanks.




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


Hi

Nope, this is fine

[not necessarily good programming practise mind, but thats a different 
story...]

--
Shane

On Sunday 18 Nov 2001 6:13 am, phantom wrote:
> Is there any inherit danger or taboos against changing the value of a
> variable from an integer to a string?
>
> example:
>
> if ($Msg==1) $Msg = "You have foobar'ed your entire server.";
>
> Thanks.

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

 > I just want to know how to make a  inside a  get to respond or
 > dont make any browser errors?

This is prohibited by either SGML DTDs if HTML 
4.01(http://www.w3.org/TR/html4/interact/forms.html#h-17.3):



and XML DTDs of XHTML 1.0 (http://www.w3.org/TR/xhtml1/#prohibitions)
"form 
cannot contain other form elements."

So, it is a good reason why browsers don't like it.

Respect to your original problem, value of element  can be changed b

[PHP] extract() question

2001-11-18 Thread David Bernier

There is this array which I would like to convert into a series variables using the 
extract function: 

 "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




[PHP] Error running ./configure (c++ error)

2001-11-18 Thread Roy Sigurd Karlsbakk

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.



-- 
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 Shane Wright


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]




Re: [PHP] Changing var value from int to string

2001-11-18 Thread Shane Wright


Hi

Nope, this is fine

[not necessarily good programming practise mind, but thats a different 
story...]

--
Shane

On Sunday 18 Nov 2001 6:13 am, phantom wrote:
> Is there any inherit danger or taboos against changing the value of a
> variable from an integer to a string?
>
> example:
>
> if ($Msg==1) $Msg = "You have foobar'ed your entire server.";
>
> 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] Quiz questions on PHP

2001-11-18 Thread Shane Wright


Hi

Have a look at the PHP tests on Brainbench.com - they're of a different ilk 
but may be useful (I think they're still free)...

[dunno about the copyright though - but it should say on the site, if nothign 
else it might help with some pointers]

--
Shane

On Sunday 18 Nov 2001 12:43 pm, Srinivasan Ramakrishnan wrote:
> Hi,
>
> 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.
>
> I'm also evaluating any quizzing software out there that will allow me to
> conduct it. Actually I'm in the process of throwing together a script to do
> that, but I'm guessing any prefab script will be more feature packed. Do
> you know of any?
>
> Cheers,
> -Srini

-- 
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] Quiz questions on PHP

2001-11-18 Thread Srinivasan Ramakrishnan

Hi,

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.

I'm also evaluating any quizzing software out there that will allow me to
conduct it. Actually I'm in the process of throwing together a script to do
that, but I'm guessing any prefab script will be more feature packed. Do you
know of any?

Cheers,
-Srini
--
http://www.symonds.net/~sriniram


-- 
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] Difference of queries in PHP/mySQL?

2001-11-18 Thread Jason G.

Check the return value of mysql_query().  It should either evaluate to 
false, or true.  If false, then output some error messages using 
mysql_error() and mysql_errno().

-JasonGarber
IonZoftDotCom

At 01:29 PM 11/17/2001 -0500, Jeff Lewis wrote:
>I am wondering if there are any difference between using PHP and using the
>command line for mySQL.  Entering this at the comman line returns all the
>membergroups properly.  When I use this in my PHP program, it doesn't
>continue past this line:
>
>$request = mysql_query("SELECT membergroup FROM membergroups WHERE 1 ORDER
>BY ID_GROUP");
>
>
>Jeff
>
>
>--
>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's : making me sick!

2001-11-18 Thread Papp Gyozo

 > I just want to know how to make a  inside a  get to respond or
 > dont make any browser errors?

This is prohibited by either SGML DTDs if HTML 
4.01(http://www.w3.org/TR/html4/interact/forms.html#h-17.3):



and XML DTDs of XHTML 1.0 (http://www.w3.org/TR/xhtml1/#prohibitions)
"form 
cannot contain other form elements."

So, it is a good reason why browsers don't like it.

Respect to your original problem, value of element  can be changed by 
JavaScript
without submitting the whole form.

Here is a little example (this behaves like a combobox ,common input + select with 
history list):


 
  one
  two
  three
 

- Original Message - 
From: "Steve Maroney" <[EMAIL PROTECTED]>
To: "George Pitcher" <[EMAIL PROTECTED]>
Cc: "De Necker Henri" <[EMAIL PROTECTED]>; "PHP-General (E-mail)" 
<[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 8:18 PM
Subject: Re: [PHP] Form's : making me sick!


> Thats sounds right becasuse anything between  ...  can only
> will be passeed only to one script.
> 
> Steve
> 
> On Tue, 13 Nov 2001, George Pitcher wrote:
> 
> > I don't think that you can nest forms.
> >
> > George
> >
> > - Original Message -
> > From: "De Necker Henri" <[EMAIL PROTECTED]>
> > To: "PHP-General (E-mail)" <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 13, 2001 1:09 PM
> > Subject: [PHP] Form's : making me sick!
> >
> >
> > > I just want to know how to make a  inside a  get to respond or
> > > dont make any browser errors?
> > >
> > > It looks someting like this :
> > >
> > > 
> > > 
> > > 
> > > 
> > >//This must
> > > change the next  values !
> > > 
> > > 
> > > 
> > > //this values must be cahnge
> > > 
> > > 
> > >
> > > Everthing is working fine but i just cant get the two forms to work
> > > together.If i only can get some ideas on what action,or onchange values to
> > > change it will be greatfull!
> > >
> > >
> > > --
> > > 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]
> >
> >
> > _
> > 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]
> >
> >
> 
> 
> 
> 
> 
> 
> 
> 
> Thank you,
> Steve Maroney
> 
> 
> 
> 
> 
> -- 
> 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]
>