php-general Digest 24 Dec 2002 04:01:39 -0000 Issue 1781

Topics (messages 129198 through 129239):

Richiesta collaborazioni
        129198 by: Armando

Re: Configuring printer output for a POS printer --> Admin Configuring Printer Drivers 
or a Select Driver Menu
        129199 by: Chris Hewitt
        129206 by: Chris Hewitt

Re: Undefined Functions
        129200 by: Beauford.2002
        129203 by: Rasmus Lerdorf
        129219 by: Beauford.2002
        129221 by: Gerald Timothy Quimpo
        129222 by: Leif K-Brooks
        129223 by: Rasmus Lerdorf

Re: calendar solution for workgroups ???
        129201 by: Rick Emery

Re: MySQL vs PostgreSQL
        129202 by: David T-G

Forms
        129204 by: Vicente Valero
        129205 by: John Nichel
        129207 by: Rick Emery
        129208 by: Chris Hewitt
        129209 by: Johannes Schlueter
        129210 by: Jason Reid
        129224 by: Jason Sheets

Are there macros in PHP?
        129211 by: Don
        129212 by: Rick Emery
        129217 by: Chris Hewitt

Suggestions on how I should handle this
        129213 by: Sarah Heffron
        129214 by: Edward Peloke
        129215 by: John W. Holmes

socket_select() on STDIN
        129216 by: Geir Torstein Kristiansen

mbstring and iconv status and conversion problems
        129218 by: Jan Schneider
        129220 by: Jan Schneider

Unable to match dollar sign in preg_match
        129225 by: Randall Perry
        129227 by: John W. Holmes
        129228 by: Randall Perry
        129237 by: John W. Holmes

Re: upload_max_filesize + ini_set
        129226 by: Dan Rossi

Date Subtraction
        129229 by: Christopher J. Crane
        129231 by: Marco Tabini
        129235 by: Justin French

Re: [PHP-WIN] Tutorials on OOP
        129230 by: Davy Obdam

php+gif problems take 2
        129232 by: cj

mcrypt
        129233 by: Ysrael Guzmán
        129234 by: Alex Piaz

Re: $_COOKIE and include() or require()
        129236 by: Luke Sneeringer

Problem with Include
        129238 by: sport4ever

Beginner examples?
        129239 by: Chris Rehm

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

A chiunque possa interessare, cerco persone su Napoli con cui avere scambi
di pareri e info  circa PHP/MySQL, eventualmente ci sarebbero opportunitŕ
lavorative.

Saluti

--
Armando Alario

ICQ# 172677921



--
Armando Alario

ICQ# 172677921


--- End Message ---
--- Begin Message ---
Axis Computers wrote:

I'm developing a Pizza delivery application which uses printer output, and I
want to know which is the better way to format the output to the printer,
and how can I design a select printer menu (communicate with printer
drivers), so the user can select from a number of POS printers (45 columns
?).

I assume that you mean a printer connected to the client computer, not the server? As php is all executed on the server, like other server-side languages, it has no access to the client computer (for security reasons).

HTH
Chris

--- End Message ---
--- Begin Message ---
Axis Computers wrote:

Yes, but in my application's case the server and the client are on the same
computer, because the server will act as localhost, so you are saying there
is no way to dump any printer output ?

Ah, you do mean the server. OS dependent. If linux then probably call lpr via an exec call in php. If windows then possibly COM. I've not had to do this so I'm not going to be the best person to advise here. Any printing gurus please chip in.

HTH
Chris

--- End Message ---
--- Begin Message ---
I have a function at the bottom of my script which is called from withing an
if/else statement. If I take it out of the if/else and just call the
function it works fine (except I don't get the results I want). So it
appears where you are calling it from does matter. See the examples below.
This isn't the first time either, I have had to redo several scripts for
this project because of it.  If I'm doing this wrong based on the examples
below, please let me know. Thanks.

i.e.

This doesn't work.                                            This does.

some code ......                                                 some code
........

If ($bob) { gotofunction($bob); }                      gotofunction($bob);
    elseif ($sally) { gotonextfunction($sally); }
gotonextfunction($sally)
       else { gotolastfunction(); }
gotolastfunction()
some other code .....                                         some other
code

function gotofunction($bob)                               function
gotofunction($bob)
function gotonextfunction()                                 function
gotonextfunction()
function gotolastfunction()                                  function
gotolastfunction()


----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 11:16 PM
Subject: Re: [PHP] Undefined Functions


> An undefined function error has nothing to do with where you are calling
> the function from.  It has to do with whether or not you have defined the
> function you are calling.
>
> -Rasmus
>
> On Sun, 22 Dec 2002, Beauford.2002 wrote:
>
> > Hi,
> >
> > I previously asked a question about getting undefined function errors in
my
> > script and someone mentioned that it may be that I am calling it from
within
> > an if or else statement. This turned out to be the case. Now the
question -
> > is there a way around this? What I need to do resolves around many
different
> > conditions, and depending on the what's what I call the necessary
function.
> > I have looked my script over and over and can not see any other way of
doing
> > this. I am fairly new to PHP and maybe there is a better way, and I'm
open
> > to suggestions.
> >
> > TIA
> >
> > Example:
> >
> > if ($a == $b) call function one;
> >
> > elseif ($a  > $b) call function two;
> > elseif ($a  == $c) call function two;
> > elseif ($a  < $b) call function two;
> > elseif ($c >  $b) call function two;
> > elseif ($d == $e) call function two;
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
Like I said, where you define your function is important, not where you
call it.  If you are defining and calling it all in the same place, then
yes, obviously it makes a difference.

-Rasmus

On Mon, 23 Dec 2002, Beauford.2002 wrote:

> I have a function at the bottom of my script which is called from withing an
> if/else statement. If I take it out of the if/else and just call the
> function it works fine (except I don't get the results I want). So it
> appears where you are calling it from does matter. See the examples below.
> This isn't the first time either, I have had to redo several scripts for
> this project because of it.  If I'm doing this wrong based on the examples
> below, please let me know. Thanks.
>
> i.e.
>
> This doesn't work.                                            This does.
>
> some code ......                                                 some code
> .........
>
> If ($bob) { gotofunction($bob); }                      gotofunction($bob);
>     elseif ($sally) { gotonextfunction($sally); }
> gotonextfunction($sally)
>        else { gotolastfunction(); }
> gotolastfunction()
> some other code .....                                         some other
> code
>
> function gotofunction($bob)                               function
> gotofunction($bob)
> function gotonextfunction()                                 function
> gotonextfunction()
> function gotolastfunction()                                  function
> gotolastfunction()
>
>
> ----- Original Message -----
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "Beauford.2002" <[EMAIL PROTECTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Sunday, December 22, 2002 11:16 PM
> Subject: Re: [PHP] Undefined Functions
>
>
> > An undefined function error has nothing to do with where you are calling
> > the function from.  It has to do with whether or not you have defined the
> > function you are calling.
> >
> > -Rasmus
> >
> > On Sun, 22 Dec 2002, Beauford.2002 wrote:
> >
> > > Hi,
> > >
> > > I previously asked a question about getting undefined function errors in
> my
> > > script and someone mentioned that it may be that I am calling it from
> within
> > > an if or else statement. This turned out to be the case. Now the
> question -
> > > is there a way around this? What I need to do resolves around many
> different
> > > conditions, and depending on the what's what I call the necessary
> function.
> > > I have looked my script over and over and can not see any other way of
> doing
> > > this. I am fairly new to PHP and maybe there is a better way, and I'm
> open
> > > to suggestions.
> > >
> > > TIA
> > >
> > > Example:
> > >
> > > if ($a == $b) call function one;
> > >
> > > elseif ($a  > $b) call function two;
> > > elseif ($a  == $c) call function two;
> > > elseif ($a  < $b) call function two;
> > > elseif ($c >  $b) call function two;
> > > elseif ($d == $e) call function two;
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>

--- End Message ---
--- Begin Message ---
Then based on the one below that doesn't work, what is the problem with it?
As I said, the functions are at the bottom of the script. The only thing
after them is the closing ?>. I also said that they work if I don't call
them from within an if/else. This tells me it is not where it is defined but
where it is being called from. Your saying this doesn't matter, but have not
given any reasons for my problems.  If you could elaborate on this it would
be appreciated.

Beauford

----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 11:14 AM
Subject: Re: [PHP] Undefined Functions


> Like I said, where you define your function is important, not where you
> call it.  If you are defining and calling it all in the same place, then
> yes, obviously it makes a difference.
>
> -Rasmus
>
> On Mon, 23 Dec 2002, Beauford.2002 wrote:
>
> > I have a function at the bottom of my script which is called from
withing an
> > if/else statement. If I take it out of the if/else and just call the
> > function it works fine (except I don't get the results I want). So it
> > appears where you are calling it from does matter. See the examples
below.
> > This isn't the first time either, I have had to redo several scripts for
> > this project because of it.  If I'm doing this wrong based on the
examples
> > below, please let me know. Thanks.
> >
> > i.e.
> >
> > This doesn't work.                                            This does.
> >
> > some code ......                                                 some
code
> > .........
> >
> > If ($bob) { gotofunction($bob); }
gotofunction($bob);
> >     elseif ($sally) { gotonextfunction($sally); }
> > gotonextfunction($sally)
> >        else { gotolastfunction(); }
> > gotolastfunction()
> > some other code .....                                         some other
> > code
> >
> > function gotofunction($bob)                               function
> > gotofunction($bob)
> > function gotonextfunction()                                 function
> > gotonextfunction()
> > function gotolastfunction()                                  function
> > gotolastfunction()
> >
> >
> > ----- Original Message -----
> > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> > To: "Beauford.2002" <[EMAIL PROTECTED]>
> > Cc: "PHP General" <[EMAIL PROTECTED]>
> > Sent: Sunday, December 22, 2002 11:16 PM
> > Subject: Re: [PHP] Undefined Functions
> >
> >
> > > An undefined function error has nothing to do with where you are
calling
> > > the function from.  It has to do with whether or not you have defined
the
> > > function you are calling.
> > >
> > > -Rasmus
> > >
> > > On Sun, 22 Dec 2002, Beauford.2002 wrote:
> > >
> > > > Hi,
> > > >
> > > > I previously asked a question about getting undefined function
errors in
> > my
> > > > script and someone mentioned that it may be that I am calling it
from
> > within
> > > > an if or else statement. This turned out to be the case. Now the
> > question -
> > > > is there a way around this? What I need to do resolves around many
> > different
> > > > conditions, and depending on the what's what I call the necessary
> > function.
> > > > I have looked my script over and over and can not see any other way
of
> > doing
> > > > this. I am fairly new to PHP and maybe there is a better way, and
I'm
> > open
> > > > to suggestions.
> > > >
> > > > TIA
> > > >
> > > > Example:
> > > >
> > > > if ($a == $b) call function one;
> > > >
> > > > elseif ($a  > $b) call function two;
> > > > elseif ($a  == $c) call function two;
> > > > elseif ($a  < $b) call function two;
> > > > elseif ($c >  $b) call function two;
> > > > elseif ($d == $e) call function two;
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
On Monday 23 December 2002 11:11 am, Beauford.2002 wrote:
> Then based on the one below that doesn't work, what is the problem with it?

your example wasn't runnable (since parts of it were is the
attached a fair example of what you're trying to do?  i don't
have any problem with it.  it works as expected with no
undefined function problems.  now, if i were to have an 
elseif ($b==9) b9(); in there, then i'd expect that error.

can you distill the problem to a runnable example which
demonstrates the problem for you and post the example?

tiger

-- 
Gerald Timothy Quimpo  tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"
                   Veritas liberabit vos.
                   Doveryai no proveryai.

Attachment: bb.php
Description: application/php

--- End Message ---
--- Begin Message ---
Try defining them at the top instead...

Beauford.2002 wrote:

Then based on the one below that doesn't work, what is the problem with it?
As I said, the functions are at the bottom of the script. The only thing
after them is the closing ?>. I also said that they work if I don't call
them from within an if/else. This tells me it is not where it is defined but
where it is being called from. Your saying this doesn't matter, but have not
given any reasons for my problems. If you could elaborate on this it would
be appreciated.

Beauford

----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 11:14 AM
Subject: Re: [PHP] Undefined Functions



Like I said, where you define your function is important, not where you
call it. If you are defining and calling it all in the same place, then
yes, obviously it makes a difference.

-Rasmus

On Mon, 23 Dec 2002, Beauford.2002 wrote:


I have a function at the bottom of my script which is called from

withing an

if/else statement. If I take it out of the if/else and just call the
function it works fine (except I don't get the results I want). So it
appears where you are calling it from does matter. See the examples

below.

This isn't the first time either, I have had to redo several scripts for
this project because of it. If I'm doing this wrong based on the

examples

below, please let me know. Thanks.

i.e.

This doesn't work. This does.

some code ...... some

code

.........

If ($bob) { gotofunction($bob); }

gotofunction($bob);

elseif ($sally) { gotonextfunction($sally); }
gotonextfunction($sally)
else { gotolastfunction(); }
gotolastfunction()
some other code ..... some other
code

function gotofunction($bob) function
gotofunction($bob)
function gotonextfunction() function
gotonextfunction()
function gotolastfunction() function
gotolastfunction()


----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, December 22, 2002 11:16 PM
Subject: Re: [PHP] Undefined Functions



An undefined function error has nothing to do with where you are

calling

the function from. It has to do with whether or not you have defined

the

function you are calling.

-Rasmus

On Sun, 22 Dec 2002, Beauford.2002 wrote:


Hi,

I previously asked a question about getting undefined function

errors in

my

script and someone mentioned that it may be that I am calling it

from

within

an if or else statement. This turned out to be the case. Now the

question -

is there a way around this? What I need to do resolves around many

different

conditions, and depending on the what's what I call the necessary

function.

I have looked my script over and over and can not see any other way

of

doing

this. I am fairly new to PHP and maybe there is a better way, and

I'm

open

to suggestions.

TIA

Example:

if ($a == $b) call function one;

elseif ($a > $b) call function two;
elseif ($a == $c) call function two;
elseif ($a < $b) call function two;
elseif ($c > $b) call function two;
elseif ($d == $e) call function two;



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


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




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






--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.


--- End Message ---
--- Begin Message ---
I have no idea what you have done wrong.  I am simply telling you how it
works.  Create a small test script that reproduces the problem and we can
help you.  What you have provided so far does not give us anything to work
with.

Try this, for example:

<?
    if(true) func1();
    else func2();

    function func1() { echo 1; }
    function func2() { echo 2; }
?>

When you run this you will see that it prints out 1 which should satisfy
you that you can safely call functions inside conditionals and have them
be defined at the bottom of your script.

Your job now is to tell us how your script differs from the above test
script, because as far as I have understood this is the exact situation
you say isn't working.

-Rasmus

On Mon, 23 Dec 2002, Beauford.2002 wrote:

> Then based on the one below that doesn't work, what is the problem with it?
> As I said, the functions are at the bottom of the script. The only thing
> after them is the closing ?>. I also said that they work if I don't call
> them from within an if/else. This tells me it is not where it is defined but
> where it is being called from. Your saying this doesn't matter, but have not
> given any reasons for my problems.  If you could elaborate on this it would
> be appreciated.
>
> Beauford
>
> ----- Original Message -----
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "Beauford.2002" <[EMAIL PROTECTED]>
> Cc: "PHP General" <[EMAIL PROTECTED]>
> Sent: Monday, December 23, 2002 11:14 AM
> Subject: Re: [PHP] Undefined Functions
>
>
> > Like I said, where you define your function is important, not where you
> > call it.  If you are defining and calling it all in the same place, then
> > yes, obviously it makes a difference.
> >
> > -Rasmus
> >
> > On Mon, 23 Dec 2002, Beauford.2002 wrote:
> >
> > > I have a function at the bottom of my script which is called from
> withing an
> > > if/else statement. If I take it out of the if/else and just call the
> > > function it works fine (except I don't get the results I want). So it
> > > appears where you are calling it from does matter. See the examples
> below.
> > > This isn't the first time either, I have had to redo several scripts for
> > > this project because of it.  If I'm doing this wrong based on the
> examples
> > > below, please let me know. Thanks.
> > >
> > > i.e.
> > >
> > > This doesn't work.                                            This does.
> > >
> > > some code ......                                                 some
> code
> > > .........
> > >
> > > If ($bob) { gotofunction($bob); }
> gotofunction($bob);
> > >     elseif ($sally) { gotonextfunction($sally); }
> > > gotonextfunction($sally)
> > >        else { gotolastfunction(); }
> > > gotolastfunction()
> > > some other code .....                                         some other
> > > code
> > >
> > > function gotofunction($bob)                               function
> > > gotofunction($bob)
> > > function gotonextfunction()                                 function
> > > gotonextfunction()
> > > function gotolastfunction()                                  function
> > > gotolastfunction()
> > >
> > >
> > > ----- Original Message -----
> > > From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> > > To: "Beauford.2002" <[EMAIL PROTECTED]>
> > > Cc: "PHP General" <[EMAIL PROTECTED]>
> > > Sent: Sunday, December 22, 2002 11:16 PM
> > > Subject: Re: [PHP] Undefined Functions
> > >
> > >
> > > > An undefined function error has nothing to do with where you are
> calling
> > > > the function from.  It has to do with whether or not you have defined
> the
> > > > function you are calling.
> > > >
> > > > -Rasmus
> > > >
> > > > On Sun, 22 Dec 2002, Beauford.2002 wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I previously asked a question about getting undefined function
> errors in
> > > my
> > > > > script and someone mentioned that it may be that I am calling it
> from
> > > within
> > > > > an if or else statement. This turned out to be the case. Now the
> > > question -
> > > > > is there a way around this? What I need to do resolves around many
> > > different
> > > > > conditions, and depending on the what's what I call the necessary
> > > function.
> > > > > I have looked my script over and over and can not see any other way
> of
> > > doing
> > > > > this. I am fairly new to PHP and maybe there is a better way, and
> I'm
> > > open
> > > > > to suggestions.
> > > > >
> > > > > TIA
> > > > >
> > > > > Example:
> > > > >
> > > > > if ($a == $b) call function one;
> > > > >
> > > > > elseif ($a  > $b) call function two;
> > > > > elseif ($a  == $c) call function two;
> > > > > elseif ($a  < $b) call function two;
> > > > > elseif ($c >  $b) call function two;
> > > > > elseif ($d == $e) call function two;
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>

--- End Message ---
--- Begin Message ---
Another good PHP/mySQL calendar application.  Group scheduling, etc.  Does not have
extraneous things such as web-mail.  Cost is $35

http://abledesign.com/demo/calendar/

rick
"People will forget what you said. People will forget what you did.
But people will never forget how you made them feel."
----- Original Message -----
> On Monday, December 23, 2002, at 06:09 AM, Tariq Murtaza wrote:
>
> > Hi all,
> > I am looking for a good calendar system for a group of people. (PHP
> > /Mysql)
> > any idea??
> >
> > Help/Comments will be appreciated.
> >
> > Tariq Murtaza
> >
> >
> >
> > -- PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> --
> Brent Baisley
> Systems Architect
> Landover Associates, Inc.
> Search & Advisory Services for Advanced Technology Environments
> p: 212.759.6400/800.759.0577
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Miro, et al --

...and then Miro Kralovic said...
% 
% Hi,

Hello!


% 
% I'm just deciding which DB to use for my projects and I'm not clear with one
% thing... When considering a database for web, is MySQL good enough? I read
% it only supports table locking, which is not very satisfying in such a
% multiuser environment as the internet..

You will probably find mysql, just like postgresql, quite sufficient for
your needs; it works for many people in many situations -- very much
including the web.


% 
% Based on your experience, what are pros and cons of MySQL and why most of
% you prefer to use MySQL to PostgreSQL, which is aparently more powerful..

Your best bet is probably to check out the mysql and postgresql docs
and see for yourself, as well as check the mailing list archives for
each for posts about the other or comparisons.  I do know that asking
this question on the mysql list will generally return lots of "it really
depends on what you're doing" responses, with a number of "here's my
[often truly staggering] example of how I'm using mysql; are you planning
anything [bigger than, faster than, different from] this today?" and the
occasional "MySQL R00LZ, d00d!!!!!!!" frothing :-)


% 
% Thanks for your opinions..
% Miro..


HTH & HAND & Happy Holidays

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg90569/pgp00000.pgp
Description: PGP signature

--- End Message ---
--- Begin Message ---
I'm having problems using variables from a html form. I've been reading, and it seems 
that I have register_globlas=off in php.ini. But I've tried to find this file in my 
Linux, but I haven't been able to locate it. Could someone tell me where is it?

Thank you
--- End Message ---
--- Begin Message ---
How did you install php?  RPM, from source?  Check in /etc, or do a...

find / -name php.ini

as root.

Vicente Valero wrote:
I'm having problems using variables from a html form. I've been reading, and it seems that I have register_globlas=off in php.ini. But I've tried to find this file in my Linux, but I haven't been able to locate it. Could someone tell me where is it?

Thank you

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--- End Message ---
--- Begin Message ---
For my Linux (RedHat 7.1), it's at /etc/php.ini

----- Original Message -----
From: "Vicente Valero" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 10:25 AM
Subject: [PHP] Forms


I'm having problems using variables from a html form. I've been reading, and it seems 
that
I have register_globlas=off in php.ini. But I've tried to find this file in my Linux, 
but
I haven't been able to locate it. Could someone tell me where is it?

Thank you

--- End Message ---
--- Begin Message ---
Rick Emery wrote:

For my Linux (RedHat 7.1), it's at /etc/php.ini

If its not there, check phpinfo(), this will specifiy where that particular installation of php requires it to be.

HTH
Chris

--- End Message ---
--- Begin Message ---
On Monday 23 December 2002 17:30, John Nichel wrote:
> How did you install php?  RPM, from source?  Check in /etc, or do a...
>
> find / -name php.ini

Or run a script

<?php
  phpinfo();
?>

and look what "Configuration File (php.ini) Path" tells you. On the output ob 
this comamnd you can see the settin of register_globals, too.

johannes
--- End Message ---
--- Begin Message ---
And remember that if you alter the php.ini file once you have found it, that
you MUST restart apache in order for the changes to take place.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

----- Original Message -----
From: "Johannes Schlueter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 10:07 AM
Subject: Re: [PHP] Forms


> On Monday 23 December 2002 17:30, John Nichel wrote:
> > How did you install php?  RPM, from source?  Check in /etc, or do a...
> >
> > find / -name php.ini
>
> Or run a script
>
> <?php
>   phpinfo();
> ?>
>
> and look what "Configuration File (php.ini) Path" tells you. On the output
ob
> this comamnd you can see the settin of register_globals, too.
>
> johannes
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
php.ini can be in several different locations, the best way to identify
its location is to ask PHP where it is at (I have seen it in
/usr/local/etc, /etc, /usr/local/lib, /usr/local/conf, among others).

Construct a php file with phpinfo() like:

<?php
        phpinfo();
?>

Then visit the page in your browser, now look for: Configuration File
(php.ini) Path section, it is in the top 1/5 of the page, this will give
you the directory PHP is looking for php.ini at.

You can also use filesystem utils such as locate php.ini or find / -name
php.ini

Jason


On Mon, 2002-12-23 at 09:53, Rick Emery wrote:
> For my Linux (RedHat 7.1), it's at /etc/php.ini
> 
> ----- Original Message -----
> From: "Vicente Valero" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 23, 2002 10:25 AM
> Subject: [PHP] Forms
> 
> 
> I'm having problems using variables from a html form. I've been reading, and it 
>seems that
> I have register_globlas=off in php.ini. But I've tried to find this file in my 
>Linux, but
> I haven't been able to locate it. Could someone tell me where is it?
> 
> Thank you
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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

I need to search a MySQL table based on a condition that can change at
runtime.

Example
======
$condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']";
<other code>
$queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . "
ORDER BY CustCode");

Will the above work?

Thanks,
Don


--- End Message ---
--- Begin Message ---
What happened when you experimented with this code?  You did try, right?

----- Original Message ----- 
From: "Don" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Monday, December 23, 2002 11:57 AM
Subject: [PHP] Are there macros in PHP?


> Hi,
> 
> I need to search a MySQL table based on a condition that can change at
> runtime.
> 
> Example
> ======
> $condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']";
> <other code>
> $queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . "
> ORDER BY CustCode");
> 
> Will the above work?
> 
> Thanks,
> Don
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Don wrote:

$condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']";
<other code>
$queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . "
ORDER BY CustCode");

Not sure about the multiple assignment (I have not looked it up in the manual), but otherwise the principle is right, yes. Doing things at run-time is what web server-side languages are all about.

HTH
Chris

--- End Message ---
--- Begin Message ---
I have an application I've written for a pet sitting service. So someone
calls and says they need a pet sit and we take their info and pick a sitter.
We call that sitter to see if they can take the job, but if they say no,
then we have to change it to a new sitter who can take the job. I want to
keep track of who says yes and who says no and make sure we know who the
active sitter is for each job.

Does anyone have suggestions of a good way to handle this with the database
and such?


Any thoughts appreciated,
Sarah

--- End Message ---
--- Begin Message ---
Not usre how your db is designed but I would probably just add a table that
links to the sitter and job tables.  As people are called a row is put into
this table with the sitter and job ids and an 'accepted' column is set to 0,
or 1 or Y or N.  Then you can query the job table and join the sitter and
this new table to get all the info you need.

Eddie
-----Original Message-----
From: Sarah Heffron [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 1:33 PM
To: php list
Subject: [PHP] Suggestions on how I should handle this


I have an application I've written for a pet sitting service. So someone
calls and says they need a pet sit and we take their info and pick a sitter.
We call that sitter to see if they can take the job, but if they say no,
then we have to change it to a new sitter who can take the job. I want to
keep track of who says yes and who says no and make sure we know who the
active sitter is for each job.

Does anyone have suggestions of a good way to handle this with the database
and such?


Any thoughts appreciated,
Sarah


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


--- End Message ---
--- Begin Message ---
> I have an application I've written for a pet sitting service. So
someone
> calls and says they need a pet sit and we take their info and pick a
> sitter.
> We call that sitter to see if they can take the job, but if they say
no,
> then we have to change it to a new sitter who can take the job. I want
to
> keep track of who says yes and who says no and make sure we know who
the
> active sitter is for each job.
> 
> Does anyone have suggestions of a good way to handle this with the
> database
> and such?

Well, I assume you have a 'sitter' table and a 'job' table. Each sitter
would have an ID and each job would have an ID. You could then add
another table that keeps track of who accepts and declines jobs. It
would simply store the sitter ID, job ID, and decline/accept. Throw in a
little logic to make sure two sitters can't accept the same job and you
should be good to go. 

Hope that helps. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/


--- End Message ---
--- Begin Message ---
Is it possible to use socket_select() on STDIN with the socket extension?

If not, consider this a feature request.

I know about fopen('php://stdin', 'r') and this is not what I want unless I 
can socket_select() on that socket (which I cant).

Please cc as I am not subscribed to this list.

-- 
Geir Torstein Kristiansen

web: http://projects.gtk.mine.nu

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

I'm currently playing a bit with the iconv and mbstring extensions and have some problems.

First question: Is there any place where I can find information about the current status of these extensions and their functions?

Second question: Since iconv's output buffering charset conversions doesn't seem to work quite well, I tried to use mbstring's one. But afaics it doesn't support converting into utf-8. Is there any other preferred method to convert to utf-8?

Jan.

--- End Message ---
--- Begin Message ---
Jan Schneider wrote:
Second question: Since iconv's output buffering charset conversions doesn't seem to work quite well, I tried to use mbstring's one. But afaics it doesn't support converting into utf-8. Is there any other preferred method to convert to utf-8?
Sorry, not converting _to_ uft-8 but _from_ gb2312 was the problem. Looking at the manual I found that this charset is not supported. I guess the best solution would be to fall back to iconv() if mb_convert_encoding() fails. But how do I know if mb_... failed?

Btw, this problem didn't happen with output buffering but manual converting from gb2312 to utf-8.

Jan.

--- End Message ---
--- Begin Message ---
Here's my expression:

$data = "xyz_%split%_$10.21";
preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);

Returns nothing (escaping the $ with a \ does the same), but this returns
10.21:
preg_match ("/^.*_\%split\%_\D*(\d*\.\d*)/", $data, $match);

How is it done?

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/


--- End Message ---
--- Begin Message ---
> preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);

Should be

preg_match ("/^.*_\%split\%_\\\$(\d*\.\d*)/", $data, $match);

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/


--- End Message ---
--- Begin Message ---
Hokay, that works, but what's with the triple backslashes?


>> preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);
> 
> Should be
> 
> preg_match ("/^.*_\%split\%_\\\$(\d*\.\d*)/", $data, $match);
> 
> ---John W. Holmes...
> 
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
> 
> 

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/


--- End Message ---
--- Begin Message ---
I don't know. I just got that from reading the manual. The very first
user comment on the preg_match page.

----
chrisbolt at home dot com
12-Mar-2000 03:23 
 
If you want to use some of PHP's special characters in your expression,
such as $, you must escape it twice. For example: 

$matchme = "\$example"; 
if (preg_match("/\$example/", $matchme)) { 

will not be matched because PHP interprets the \$ and passes it as $.
Instead, you must do this: 

if (preg_match("/\\\$example/", $matchme)) {
---

Don't forget to check the manual.

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

> -----Original Message-----
> From: Randall Perry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 23, 2002 4:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Unable to match dollar sign in preg_match
> 
> Hokay, that works, but what's with the triple backslashes?
> 
> 
> >> preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);
> >
> > Should be
> >
> > preg_match ("/^.*_\%split\%_\\\$(\d*\.\d*)/", $data, $match);
> >
> > ---John W. Holmes...
> >
> > PHP Architect - A monthly magazine for PHP Professionals. Get your
copy
> > today. http://www.phparch.com/
> >
> >
> 
> --
> Randall Perry
> sysTame
> 
> Xserve Web Hosting/Co-location
> Website Development/Promotion
> Mac Consulting/Sales
> 
> http://www.systame.com/
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
maybe someone would like to report it , my reports either get ignored or are
false alarms , i am creating a function to get the line upload_max_filesize
and change its value in .htaccess its the only way , and this is everytime i
load the uploader page

-----Original Message-----
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 11:40 PM
To: 'electroteque'; [EMAIL PROTECTED]
Subject: RE: [PHP] upload_max_filesize + ini_set


> -----Original Message-----
> From: electroteque [mailto:[EMAIL PROTECTED]]
> Sent: 20 December 2002 19:34
>
> and i just tested the script and it let me upload a 2.5M
> file.

Well, I was just quoting from the manual, so that sounds worthy of a bug
report in itself -- either the manual is wrong, or the behaviour of PHP is!

>   so there must
> be a way to put it in the page aswell

No, there mustn't -- this I am sure about.  As I said before:

> As all file upload activity takes place before
> your script even *starts* executing, you can't use
> ini_set on this [upload_max_filesize].

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211

--- End Message ---
--- Begin Message ---
I have two periods in time from a Cisco router that I would like to find the
difference in seconds. I am not sure the best way to do this since it is not
a date, but rather an amount of time since last reset.

Here is the numbers

181 days, 7:11:06.66
//stands for 181 days, 7 hours, 11 minutes, 6.66 seconds.

The next is

181 days, 7:16:6.75
//stands for 181 days, 7 hours, 16 minutes, 7.75 seconds.

I would probably shave off the .66 and .75 seconds while it was still a
string. It may be faster to round when it's in seconds, I really don't know.
Then what do I do?

I was thinking of using strtotime(); but because it's not really a date, I
am at a loss for what to do.

Any help with this would be great.


--- End Message ---
--- Begin Message ---
I don't think you can use strtotime in that case. However, assuming that
your data is properly formatted every time, you can use a simple
function like this (I'm doing it from memory, so it might not actually
work):

<?php

function conv_time ($s)
{
        preg_match ("/^([0-9]*) days,
([0-9]*)\:([0-9]*)\:([0-9]*)(\.[0-9]*)$/", $s, $res);
        return $res[1] * 86400 + $res[2] * 3600 + $res[3] * 60 + $res[4] +
$res[5];
}

echo number_format (conv_time ("181 days, 7:16:6.75") - conv_time ("181
days, 7:11:06.66"), 2);

?>

Hope this helps.

Cheers,


Marco
-- 
------------
php|architect - The Magazine for PHP Professionals
The monthly magazine dedicated to the world of PHP programming

Check us out on the web at http://www.phparch.com!
--- Begin Message ---
I have two periods in time from a Cisco router that I would like to find the
difference in seconds. I am not sure the best way to do this since it is not
a date, but rather an amount of time since last reset.

Here is the numbers

181 days, 7:11:06.66
//stands for 181 days, 7 hours, 11 minutes, 6.66 seconds.

The next is

181 days, 7:16:6.75
//stands for 181 days, 7 hours, 16 minutes, 7.75 seconds.

I would probably shave off the .66 and .75 seconds while it was still a
string. It may be faster to round when it's in seconds, I really don't know.
Then what do I do?

I was thinking of using strtotime(); but because it's not really a date, I
am at a loss for what to do.

Any help with this would be great.



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

--- End Message ---
--- End Message ---
--- Begin Message ---
okay, this is just me thinking out loud... none of this is tested...

<?
function something($time)
    {
    $time = substr($time, 0, -3);
    list($days,$theRest) = explode(' days, ', $time);
    list($h,$m,$s) = explode(':', $theRest);
    $days = $days * 86400;
    $h = $h * 360;
    $m = $m * 60;
    $seconds = $days+$h+$m+$s;
    return $seconds;
    }

$t1 = something('181 days, 7:16:6.75');
$t2 = something('181 days, 7:11:06.66');

echo $t1 - $t2;
?>


basically,
- take the string
- get rid of the last 3 chars (eg .75)
- split on ' days, '
- split the 2nd half on ':'
- multiply each bit (days, hrs, mins) by the appropriate no of seconds
- add it all together to get a number in seconds



Cheers,

Justin




on 24/12/02 8:29 AM, Christopher J. Crane ([EMAIL PROTECTED]) wrote:

> I have two periods in time from a Cisco router that I would like to find the
> difference in seconds. I am not sure the best way to do this since it is not
> a date, but rather an amount of time since last reset.
> 
> Here is the numbers
> 
> 181 days, 7:11:06.66
> //stands for 181 days, 7 hours, 11 minutes, 6.66 seconds.
> 
> The next is
> 
> 181 days, 7:16:6.75
> //stands for 181 days, 7 hours, 16 minutes, 7.75 seconds.
> 
> I would probably shave off the .66 and .75 seconds while it was still a
> string. It may be faster to round when it's in seconds, I really don't know.
> Then what do I do?
> 
> I was thinking of using strtotime(); but because it's not really a date, I
> am at a loss for what to do.
> 
> Any help with this would be great.
> 
> 

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

Thanks for all the reply`s. I found the tuturials very usefull and much better then the most tutorials i have found so far, usualy with an example class car or something not very usefull....

Thanks,

Davy Obdam
mailto:[EMAIL PROTECTED]

Davy Obdam wrote:

Hi people,.

I have to build several classes for a project i am doing, but i am quite new to OOP programming. I need to make a database abstraction layer class and a user login class.. Does anyone know some good tutorials about these things and OOP in general. Thanks in advance..

Best regards,

Davy Obdam
mailto:[EMAIL PROTECTED]





--- End Message ---
--- Begin Message ---
Hi would any one know what the following error's are for/mean
I am using gd 2.0.7 with gif support and php4.2.3.
I am using the exact same gd version and php version as I used on another
machine and it compiled with only minor problems, but these errors are
different to the errors I got on the other machine.

Thanks

gcc -I. -I/usr/local/src/php-4.2.3/ext/gd -I/usr/local/src/php-4.2.3/main -I
/usr/local/src/php-4.2.3 -I/usr/local/src/apache_1.3.26/src/include -I/usr/l
ocal/src/apache_1.3.26/src/os/unix -I/usr/local/src/php-4.2.3/Zend -I/usr/lo
cal/include -I/usr/local/src/gd-2.0.7gif/ -I/usr/local/src/php-4.2.3/ext/mys
ql/libmysql -I/usr/local/pgsql/include -I/usr/local/src/php-4.2.3/ext/xml/ex
pat  -I/usr/local/src/php-4.2.3/TSRM -g -O2  -c gd.c && touch gd.lo
gd.c: In function `zm_startup_gd':
gd.c:303: `gdArc' undeclared (first use in this function)
gd.c:303: (Each undeclared identifier is reported only once
gd.c:303: for each function it appears in.)
gd.c:304: `gdPie' undeclared (first use in this function)
gd.c:305: `gdChord' undeclared (first use in this function)
gd.c:306: `gdNoFill' undeclared (first use in this function)
gd.c:307: `gdEdged' undeclared (first use in this function)
gd.c: In function `zif_imagecreatetruecolor':
gd.c:588: warning: assignment makes pointer from integer without a cast
gd.c: In function `zif_imagecreatefromstring':
gd.c:1093: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecreatefromgif':
gd.c:1235: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:1235: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagegif':
gd.c:1462: `gdImageGifCtx' undeclared (first use in this function)
gd.c: In function `zif_imagecolorat':
gd.c:1626: structure has no member named `tpixels'
gd.c: In function `_php_image_convert':
gd.c:3521: `gdImageCreateFromGif' used prior to declaration
gd.c:3521: warning: assignment makes pointer from integer without a cast
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.3/ext'
make: *** [all-recursive] Error 1

--- End Message ---
--- Begin Message ---
Hi, my server is win 2000 server and IIS 5.0 
i wnat to work to MCRYPT, but i don't know.......
 
help me please.
 
Por favor yo estoy trabajando con windows 2000 server, y mi servidor web
es un Internet Information Service, trabajo con PHP y Mysql...
deseo encriptar con MCRYPT, pero no viene instalado como hago...
es dificil????
 
alguien sabe o a trabajado con esto en windows...
 
AYUDAAAAAAAAAAAAA!!!!!!!!!!!!!
 

Ysrael Guzmán Meza

 
--- End Message ---
--- Begin Message --- As far as I know, there is no mcrypt windows version. You´ll have to try to compile it yourself. And don´t ask me how because I don´t know:-)

A sugestion: If you can, change to linux. It´s better and it´s Free.

Regards

Alex


At 18:33 23/12/2002 -0500, Ysrael Guzmán wrote:
Hi, my server is win 2000 server and IIS 5.0
i wnat to work to MCRYPT, but i don't know.......

help me please.

Por favor yo estoy trabajando con windows 2000 server, y mi servidor web
es un Internet Information Service, trabajo con PHP y Mysql...
deseo encriptar con MCRYPT, pero no viene instalado como hago...
es dificil????

alguien sabe o a trabajado con esto en windows...

AYUDAAAAAAAAAAAAA!!!!!!!!!!!!!


Ysrael Guzmán Meza



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

--- End Message ---
--- Begin Message ---
That worked perfectly! The problem is fixed. Thank you so much.
Luke

Chris Wesley wrote:

On Mon, 23 Dec 2002, Luke Sneeringer wrote:


That doesn't seem to work. This might be because my require tags also
send variables (e.g. common.php?variable=1)--would this make a call to
a non-PHP extention file fail?

You've already demonstrated that you know included code inherits the
parent's variables at the scope where require() is called ... so I'll
leave it up to you to determine whether or not the "?variable=1" is
necessary. I dont' know if it breaks require(), but I doubt it.

Here's the trick: visit the URL of the require()'d code with a web
browser. If you don't see /code/, then your require() won't work. If you
do see the php code ... all of it, including the start & end tags ... in
plain text, then you're on the right track; your code should be able to be
included into the parent.

You're trying to include /code/ into some parent code, so you don't want
the processed result of the PHP script (unless it's more PHP code).

If this doesn't get you closer, post a simple example of what you're
trying to do. I routinely include PHP across domains for various reasons
... I know it works, and works well ... it will for you too, I hope!

hth,
~Chris



--
"God and sinners reconciled" (!!!)

Luke Sneeringer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.aggieruf.org/

--- End Message ---
--- Begin Message ---
Hello,
my problem is that I can't use more than one SSI INCLUDE in a page....

Please access this test page to check the problem yourself:
http://www.sport4ever.com/test/hello.shtml

The first INCLUDE will appear correctly and prints "HELLO World, include #1" which is 
the output of "hello.php"

Whereas the second INCLUDE won't appear, and instead, it will print the content (code) 
of "hello2.php", which is the follwoing:
<? echo "HELLO World, include #1"; ?>

So, it always executes the first include statement perfectly, and doesn't execute the 
rest!

note: the problem appears only if I include a PHP file, it will execute it correctly 
if it's a SHTML or HTML file.

PLEASE is there any solution for this strange problem!

--- End Message ---
--- Begin Message --- I have a friend who has asked me about some sites she's working on. She maintains multiple sites on different servers. Each of these sites runs a different contest, currently handled by formmail.pl and then some hand entry by her part.

I've suggested she use MySQL, her own host allows it, and modify formmail.php to add the records to her SQL database in addition to sending her an email (just as backup). Then using an SQL front end to retrieve the information when the winners need to be drawn.

Now, she is not a programmer other than the HTML she's been hand coding. I'd like to find a site I can refer her to where she might be able to see some example of what she wants to do.

Any recommendations? Did I make a valid suggestion?

--
Chris Rehm
[EMAIL PROTECTED]

For all the law is fulfilled in one word, even in this; Thou shalt love thy neighbour as thyself.
Gal. 5: 14



--- End Message ---

Reply via email to