php-windows Digest 16 Jan 2002 15:16:00 -0000 Issue 955

Topics (messages 11463 through 11472):

Re: calling an ASP program or object from within php
        11463 by: alain samoun

A problem under php4+pws+mysql
        11464 by: sleetdrop.netscape.net
        11465 by: Ignatius Teo

mail() gives Unknown error from command line...
        11466 by: Jeff D. Hamann
        11467 by: Jeff D. Hamann

Re: Fatal Error : Allowed Memory Size Exhausted
        11468 by: Ertan Tike

PHP Mail / PHP.ini
        11469 by: Paul Wallace

Re: New PHP
        11470 by: Michel Laine
        11472 by: Nicole Amashta

R: [PHP-WIN] PHP Mail / PHP.ini
        11471 by: Darvin Andrioli

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 ---
Though, it's not very difficult to update Access with PHP too ;)
A+
Alain

-----Original Message-----
From: ST Ooi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] calling an ASP program or object from within php


Do you need to call the ASP at the end of the PHP execution? Or at the
middle of
the PHP execution? I have been using both PHP for major HTML generation and
ASP to update Access database, but that's after PHP has been executed.

Thanks.

ST Ooi
Malaysia



----- Original Message -----
From: "Nicole Lallande" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 8:25 AM
Subject: [PHP-WIN] calling an ASP program or object from within php


> Greetings,
>
> Documentation searched through:  book, search through newsgroup archive,
> php.net -- frankly having a tough time posing the question.
>
> I am new to php-windows and am clueless about ASP.  I am having to
> create a code that will call an ASP script for the database
> connectivity.  I need to pass a couple of variables to the asp program.
>   I don't need any return - my job is done once I call the asp script.
> I know that php can call external programs by using 'exec' but I am not
> sure if a) that will work with asp and b) if that is the most
> effective/efficient way.
>
> I have the php4 bible which has the most windows info I have see in the
> literature and it discusses COM objects but not really calling a program.
>
> Please advise,
>
> TIA,
>
> Nicole
>
>
> --
> PHP Windows 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 Windows 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 ---
When I use php4+pws to run some php programes, an error like this often 
happens,"undefined variable xxx......", while the php progares run correctly on the 
web server, can you tell me why, is there anything wrong with my php.ini file?
I know little about php programming,and I am a Chinese, please tell me about it use 
simple English,Thank you very much.
-- 




__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

--- End Message ---
--- Begin Message ---
Check your php.ini for the "Error Handling and Logging" section
and see what the error_reporting is set to. Then read the bits
about what the settings all mean....

Specifically, the E_NOTICE one....

Ignatius

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 1:15 PM
Subject: [PHP-WIN] A problem under php4+pws+mysql


> When I use php4+pws to run some php programes, an error like this often
happens,"undefined variable xxx......", while the php progares run correctly
on the web server, can you tell me why, is there anything wrong with my
php.ini file?
> I know little about php programming,and I am a Chinese, please tell me
about it use simple English,Thank you very much.
> --
>
>
>
>
> __________________________________________________________________
> Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
>
> --
> PHP Windows 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 ---
Why does this one line script execute when run from the web browser and not
from the command line? That is to say, when I run this one line script in a
web browser, the code executes, mail is sent, and I'm happy. When I attempt
to execute the script from the command line "php < mailtest.php", it doesn't
work.

<?
    mail( [EMAIL PROTECTED], "subject", "test" );
?>

this yields when run from the command line...

X-Powered-By: PHP/4.0.6
Content-type: text/html

<br>
<b>Warning</b>:  Unknown error in <b>-</b> on line <b>2</b><br>

I would like to run this from the command line.

jeff.


--
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
[EMAIL PROTECTED]
www.hamanndonald.com



--- End Message ---
--- Begin Message ---
I mean...

<?
    mail( "[EMAIL PROTECTED]", "subject", "test" );
?>



"Jeff D. Hamann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why does this one line script execute when run from the web browser and
not
> from the command line? That is to say, when I run this one line script in
a
> web browser, the code executes, mail is sent, and I'm happy. When I
attempt
> to execute the script from the command line "php < mailtest.php", it
doesn't
> work.
>
> <?
>     mail( [EMAIL PROTECTED], "subject", "test" );
> ?>
>
> this yields when run from the command line...
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
>
> <br>
> <b>Warning</b>:  Unknown error in <b>-</b> on line <b>2</b><br>
>
> I would like to run this from the command line.
>
> jeff.
>
>
> --
> Jeff D. Hamann
> Hamann, Donald & Associates, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> [EMAIL PROTECTED]
> www.hamanndonald.com
>
>
>


--- End Message ---
--- Begin Message ---
check your string formatting routines. probaly you have little bug..

for example this code giving same error

while(true)
 {
 $a = $a . "blabla";
 }


-----Original Message-----
From: Lee Denny [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 7:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Fatal Error : Allowed Memory Size Exhausted


I'm getting the error

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 12288 bytes) in ../includes/resultheader.inc on line 16


The exact line of code does change - so its not syntax or semantics.

Can anyone enlighten me on what this means and what I'm doing wrong.

Cheers,

Lee



-- 
PHP Windows 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 ---
Hello,
    I have recently installed PHP 4 (c:\PHP) with Apache. I have
successfully run multiple PHP scripts with some quite complex code. Except
for MAIL!
    Upon installing PHP I had 3 PHP.? files with a search for 'php.ini':

c:\PHP\pear\tests\php - with 2 line content:

; php.ini for PEAR tests
include_path=..

and two much more comprehensive files located at:

c:\PHP\php.ini-dist
c:\PHP\php.ini-recommended

When trying to configure the ini file to accomodate email, I rightly or
wrongly edited the 'php.ini-recommended' file to my SMTP entry to:

[mail function]
; For Win32 only.
SMTP = xxx.xxx.xxx.xxx (where xxx is my valid mail server IP)

I saved this and also saved it as php.ini in c:\PHP (again, rightly or
wrongly).

With the PHP code - mail($address, $subject, $message); - where the 3
variables ARE valid, the mail is NOT sent and I am given the warning:

Warning: Unknown error in c:\program files\apache
group\apache\htdocs\req\reqprocess.php on line 24

where line 24 is the line quoted above - mail($address, $subject, $message);

Can anyone offer me information on firslty if I have blundered blindly into
the .ini configuration, and a possible resolution of my broken email?

Many thanks

Paul.

--- End Message ---
--- Begin Message ---
I would recommend spending a couple of hours hacking in this Tutorial:

http://www.devshed.com/Server_Side/PHP/MilesToGo/
It deals with something we all know how it's supposed to work (an appointment
calendar) and it is both simple and a little tricky (for a total newbie) at the
same time...

That's how my first PHP experience started, and i'm doing fine  :-)´

Have in mind that this newsgroup isn't your only choice of help.
There are tons of tutorials out there.
If that isn't enough, you'll also have a ton of scripts (in sourcecode) that you
can manipulate, learn and use.

Welcome to the wonderful world of PHP!

--

Michel Laine


Burrito wrote:

> I'm thinking of making the conversion from Cold Fusion.  I am NOT a
> programmer and so Cold Fusion has been very easy for me to use.  However due
> to cost and a few other factors, I"m thinking PHP might be a good switch.
> Some the deciding factors will be its ease of use and how good these forums
> are.  The Cold Fusion forums have proven to be a fantastic resource for
> problems and so I would need these forums to be as good or better for me to
> justify changing languages...this leads me to my first php question.  I have
> a database set up using MySQL on my windows 2000 server using an ODBC driver
> for my connection.  My datasource name is "test," my database name is
> "testdatabase" and I have a table named "testtable".  My username is
> "usernametest" and my password is "passwordtest"  How would I run a simple
> query to insert a row in my testtable table that has two fields, one called
> testfield1 the other called testfield2.  Then, how would I run another query
> to select that row and print it on my html page?  I have scanned over the
> manual (VERY BRIEFLY) and didn't see anything related to the database
> integration.
>
> My apologies for this totally mundane question, but as I said above, this
> messages serves a two-fold purpose and the first is to see how good these
> forums are :)
>
> any help you can provide is greatly appreciated,
>
> thx in advance for your time,
>
> Burrito

--- End Message ---
--- Begin Message ---
One of the best resources for PHP is the php.net site. I use it religiously!
Go to http://www.php.net (which I'm sure you've already visited), and type
in the search box "mysql" (without the quotes). Then you will be brought to
the page that coveres all the php-mysql functions to use. They are very
simple to use. If you need examples, you should find plenty there in the
"comments" sections that follow the function definitions.

Nicole Amashta
www.aeontrek.com

==================
"Burrito" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm thinking of making the conversion from Cold Fusion.  I am NOT a
> programmer and so Cold Fusion has been very easy for me to use.  However
due
> to cost and a few other factors, I"m thinking PHP might be a good switch.
> Some the deciding factors will be its ease of use and how good these
forums
> are.  The Cold Fusion forums have proven to be a fantastic resource for
> problems and so I would need these forums to be as good or better for me
to
> justify changing languages...this leads me to my first php question.  I
have
> a database set up using MySQL on my windows 2000 server using an ODBC
driver
> for my connection.  My datasource name is "test," my database name is
> "testdatabase" and I have a table named "testtable".  My username is
> "usernametest" and my password is "passwordtest"  How would I run a simple
> query to insert a row in my testtable table that has two fields, one
called
> testfield1 the other called testfield2.  Then, how would I run another
query
> to select that row and print it on my html page?  I have scanned over the
> manual (VERY BRIEFLY) and didn't see anything related to the database
> integration.
>
> My apologies for this totally mundane question, but as I said above, this
> messages serves a two-fold purpose and the first is to see how good these
> forums are :)
>
> any help you can provide is greatly appreciated,
>
> thx in advance for your time,
>
> Burrito
>
>
>


--- End Message ---
--- Begin Message ---
Paul wrote
...
> When trying to configure the ini file to accomodate email, I rightly or
> wrongly edited the 'php.ini-recommended' file to my SMTP entry to:
>

These are "suggested" configuration. You may use one of them and configure
it to match your requirement. About mail parameter, I haven't notice any
difference.

> [mail function]
> ; For Win32 only.
> SMTP = xxx.xxx.xxx.xxx (where xxx is my valid mail server IP)
>

Ok

> I saved this and also saved it as php.ini in c:\PHP (again, rightly or
> wrongly).
>
Put php.ini in your Windows directory and remove any other php.ini from your
system.

> With the PHP code - mail($address, $subject, $message); - where the 3
> variables ARE valid, the mail is NOT sent and I am given the warning:
>
I use 4 parameter in mail statement in my script:
$extra="From: [EMAIL PROTECTED]\nX-Mailer: PHP/".phpversion();
mail($Dest,$Subj,$Text,$extra);

Hope this help you
Regards
Darvin

--- End Message ---

Reply via email to