php-general Digest 6 Dec 2001 10:49:17 -0000 Issue 1036

Topics (messages 76793 through 76851):

URGENT:  IIS doesn't like GET or POST
        76793 by: Ron Newman

Pulling data out of a domain name
        76794 by: rdkurth.starband.net
        76795 by: Brian Clark
        76800 by: rdkurth.starband.net
        76801 by: Brian Clark
        76802 by: CC Zona

Looking for help in making a Mulit Page Form
        76796 by: Ben Clumeck
        76798 by: Brian Clark
        76805 by: Manuel Lemos

Re: Simple(?) Question
        76797 by: Brian Clark
        76803 by: Chris Lee

Re: PHP shopping cart packages
        76799 by: B. van Ouwerkerk
        76829 by: Attila Strauss

Re: session question: session.auto_start vs. session_register.
        76804 by: Chris Lee
        76812 by: Jason G.

Re: Recursive Threading with PHP and MySQL.
        76806 by: Chris Lee
        76809 by: Prottoss

Re: serialize object & session_auto_start
        76807 by: Chris Lee

Re: folver view options
        76808 by: Chris Lee

Re: automatic forward URL to other URL
        76810 by: Chris Lee

Re: PHP + MySQL problem (strange behavior)
        76811 by: David Robley

Re: multi-dimensional array
        76813 by: Michael Sims
        76816 by: Martin Towell

Newbie question on Tutorials?
        76814 by: Geoff E
        76815 by: Kurt Lieber

eregi_replace help!
        76817 by: David

a strange question when installing php+oracle8.1.16+apache1.3.14 (in linux)
        76818 by: ydok.21bc.com

HELP XML XML XML HELP
        76819 by: Olivier Masudi
        76823 by: Olivier Masudi
        76836 by: Olivier Masudi

Problems producing an image
        76820 by: Harshdeep S Jawanda
        76826 by: David Robley

PHP outside HTML
        76821 by: John Kolvereid
        76822 by: Tyler Longren
        76824 by: Martin Towell
        76825 by: David Robley
        76828 by: Michael A. Peters

I know I know, but quick Apache/PHP question
        76827 by: Chris Cocuzzo

Help required MySql + PHP
        76830 by: Karthikeyan
        76841 by: Kundan Kumar

very urgent assistance
        76831 by: Adewale.Johnson
        76832 by: Smith, Benjamin
        76835 by: George Pitcher

Re: XHTML compatible error messages
        76833 by: Matt McClanahan
        76834 by: Jason Lotito

Re: Class in PHP
        76837 by: Roko Roic

Re: Reg ex help-Removing extra blank spaces before HTML output
        76838 by: Ken

htpasswd file management from php
        76839 by: Kelly Benbow

Email-based PHP-Script
        76840 by: J.Mueller, pro.vider.de GmbH
        76843 by: Manuel Lemos

Checking for expired sessions
        76842 by: By Proxy

testing if mailaccount is existent
        76844 by: Oliver-B Kueppers

newbie: which packages are needed?
        76845 by: josep

PHP + Freetype:  Problem solved, quasi; Solaris problem?
        76846 by: MDowling.hew.de

please don't flame : it's an editor-question
        76847 by: Sebastian Stadtlich

How to change Return-path and sender address
        76848 by: sanjay
        76849 by: Bart Frackiewicz
        76851 by: sanjay

problem with dba with postgres connections
        76850 by: GB Clark II

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 ---
Hi,
When I pass form variables to PHP using either GET or POST it works under
PWS running on "localhost", but when I run the same script remotely on a
Win2K Advanced Server and IIS machine, I get "Warning, not defined" errors
for all the variables passed.

Is there some configuration problem with IIS, or am I overlooking something
else?

Ron


--- End Message ---
--- Begin Message ---
  Is there a more efficient way of doing what this script does is check
  a domain name and separate the domain name from the ext.
  The domain names could be in a few different formats. Like the
  samples below. This script works but I was just wondering does it
  have to be so long winded

  www.domain.com  www.domain.com.au domain.com domain.com.au



   $number= substr_count ($domaname,".");
          If ($number=="1"){
          $host1=explode(".",$domaname);
               $dhost=$host1[0] ;
               $chost=$host1[1] ;
          }
         
         If ($number=="2"){
          $host1=explode(".",$domaname);
             if($host1[0]=="www"){
               $dhost=$host1[1] ;
               $chost=$host1[2] ;
                 
              }else{
                $dhost=$host1[0] ;
                $dhost1=$host1[1] ;
                $dhost2=$host1[2] ;
                $chost=$dhost1 . "." . $dhost2;
           }}
           If ($number=="3"){
          $host1=explode(".",$domaname);
             if($host1[0]=="www"){
                 $dhost1=$host1[0] ;
                 $dhost2=$host1[1] ;
                 $dhost3=$host1[2] ;
                 $dhost4=$host1[3] ;
                 $dhost=$dhost2;
                 $chost=$dhost3 . "." . $dhost4;
          }else{
                 $dhost1=$host1[0] ;
                 $dhost2=$host1[1] ;
                 $dhost3=$host1[2] ;
                 $dhost=$dhost1;
                 $chost=$dhost2 . "." . $dhost3;
                 }
          }

  

-- 
Best regards,
 rdkurth                          mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:05]:

>   Is there a more efficient way of doing what this script does is check
>   a domain name and separate the domain name from the ext.
>   The domain names could be in a few different formats. Like the
>   samples below. This script works but I was just wondering does it
>   have to be so long winded

I think you want parse_url()

<http://www.php.net/manual/en/function.parse-url.php>

-- 
 -Brian Clark

--- End Message ---
--- Begin Message ---
Hello Brian,
actually no parse_url() will return various components of the URL
like
$url[scheme] = http
$url[host] = www.php.net 
$url[path] = /download-php.php3 
$url[query] = csel=br
I what to split the host name up not the whole URL.

Wednesday, December 05, 2001, 3:21:38 PM, you wrote:

BC> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:05]:

>>   Is there a more efficient way of doing what this script does is check
>>   a domain name and separate the domain name from the ext.
>>   The domain names could be in a few different formats. Like the
>>   samples below. This script works but I was just wondering does it
>>   have to be so long winded

BC> I think you want parse_url()

BC> <http://www.php.net/manual/en/function.parse-url.php>




-- 
Best regards,
 rdkurth                            mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:38]:

> Hello Brian,
> actually no parse_url() will return various components of the URL
> like
> $url[scheme] = http
> $url[host] = www.php.net 
> $url[path] = /download-php.php3 
> $url[query] = csel=br
> I what to split the host name up not the whole URL.

Ahh, so I see now. I guess that's what I get for being in such a hurry.
:-)

You're not using any regular expressions or anything, so I'd just go
with what you had. It's probably not going to be that slow, even on
large lists of domains, for example.

> Wednesday, December 05, 2001, 3:21:38 PM, you wrote:
> 
> >>   Is there a more efficient way of doing what this script does is check
> >>   a domain name and separate the domain name from the ext.
> >>   The domain names could be in a few different formats. Like the
> >>   samples below. This script works but I was just wondering does it
> >>   have to be so long winded
> 
> BC> I think you want parse_url()
> 
> BC> <http://www.php.net/manual/en/function.parse-url.php>

-- 
 -Brian Clark

--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
wrote:

>  Is there a more efficient way of doing what this script does is check
>   a domain name and separate the domain name from the ext.
>   The domain names could be in a few different formats. Like the
>   samples below. This script works but I was just wondering does it
>   have to be so long winded
> 
>   www.domain.com  www.domain.com.au domain.com domain.com.au
> 
>    $number= substr_count ($domaname,".");
<snip verbose code>

Regex time (untested, so may need to be tweaked slightly):

$domaname=preg_replace("/^(www\.)?(.+)\.com(\.au)$/i","$2",$domaname);

-- 
CC
--- End Message ---
--- Begin Message ---
How do I make a multi page form with the ability to attach a file.  The form
will be about 3 different pages and the last will be a place to attach the
file.  Then I results will be sent to me via email.

Please provide recommendations or any help!

Thanks,
Ben

--- End Message ---
--- Begin Message ---
* Ben Clumeck <[EMAIL PROTECTED]> [Dec 05. 2001 18:27]:

> How do I make a multi page form with the ability to attach a file.  The form
> will be about 3 different pages and the last will be a place to attach the
> file.  Then I results will be sent to me via email.
> 
> Please provide recommendations or any help!

<http://www.php.net/manual/en/features.file-upload.php>

-- 
 -Brian Clark

--- End Message ---
--- Begin Message ---
Hello,

Ben Clumeck wrote:
> 
> How do I make a multi page form with the ability to attach a file.  The form
> will be about 3 different pages and the last will be a place to attach the
> file.  Then I results will be sent to me via email.
> 
> Please provide recommendations or any help!

I think this does part of what you need. I just don't know about the
file upload because you can't pass it as an hidden field between pages.

http://phpclasses.upperdesign.com/browse.html/package/108

Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
* Andrew Forgue <[EMAIL PROTECTED]> [Dec 05. 2001 17:35]:

> Is there a way to "post" to a script without any user interventions... e.g The user 
>posts to a script, and the script posts back to the original one.

(Please set your mail client to wrap at 72 chars)

cURL can do this, among other things: curl.haxx.se

Or something like this:

<http://marc.theaimsgroup.com/?l=php-general&m=100494042908669&w=2>

-- 
 -Brian Clark

--- End Message ---
--- Begin Message ---
do a header re-direct.

header("Location: http://domain.com/page.php";);

include any variables you want, inc session vars if needed.

--

  Chris Lee
  [EMAIL PROTECTED]


"Andrew Forgue" <[EMAIL PROTECTED]> wrote in message
001d01c17ddc$a898fc40$6701a8c0@ajf">news:001d01c17ddc$a898fc40$6701a8c0@ajf...
Hello,

Is there a way to "post" to a script without any user interventions... e.g
The user posts to a script, and the script posts back to the original one.

Thanks!



--- End Message ---
--- Begin Message ---
At 16:05 5-12-01 -0600, rory o'connor wrote:
>I need a new cart program and would like to use something based in PHP.  I
>was using a CGI paltform written in C, but we had session problems out the
>wazoo when traffic was really high.  I need something that can manage
>sessions with vim and vigor.  I have only see phpshop - which looks nice, but
>I wonder if there are other packages out there that are really good.
>
>Your thoughts appreciated!

www.fishcart.org is worth to look at.. gets installed within 5 minutes..

Bye,


B.

--- End Message ---
--- Begin Message ---
Heya,

http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_Carts
/

best regards
Attila Strauss


> >I need a new cart program and would like to use something based in PHP.
I
> >was using a CGI paltform written in C, but we had session problems out
the
> >wazoo when traffic was really high.  I need something that can manage
> >sessions with vim and vigor.  I have only see phpshop - which looks nice,
but
> >I wonder if there are other packages out there that are really good.
> >
> >Your thoughts appreciated!
>
> www.fishcart.org is worth to look at.. gets installed within 5 minutes..
>
> Bye,
>
>
> B.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

--- End Message ---
--- Begin Message ---
session.auto_start is only usefull when not using classes as session
variables. because a class must be defined before it can be created (or
brought back to life from a session) it must be defined, this cant be done
with session.auto_start. I dont use session.auto_start. I find the ability
to use class's as session variables much more handy.

--

  Chris Lee
  [EMAIL PROTECTED]



"Kurt Lieber" <[EMAIL PROTECTED]> wrote in message
E16Bitf-00049T-00@z8">news:E16Bitf-00049T-00@z8...
> I am working on an open source e-commerce package and have hit a wall with
> sessions.
>
> If I have session.auto_start turned on, I get the following error message:
>
> Fatal error: The script tried to execute a method or access a property of
an
> incomplete object. Please ensure that the class definition shoppingcart of
> the object you are trying to operate on was loaded _before_ the session
was
> started in  <path to my file> on line 12
>
> If I turn session.auto_start off, the error disappears.
>
> So, the error message tells me that I can't use the class unless I've
defined
> it before the session gets started.  However, session.auto_start (as far
as I
> know) starts a session immediately, before even waiting for a script to be
> fully parsed & executed.  So, the two seem mutually exclusive. (but then
the
> usefullness of session.auto_start would seem extremely limited)
>
> Is there a way
>
> I think there's some glaring errors in my understanding here.  Can someone
> help me fill in the holes?
>
> --kurt
>


--- End Message ---
--- Begin Message ---
You may want to check out something like auto_prepend_file.  Look at the 
PHP configuration help.

I was thinking that you may be able to include your class definition there 
- IF auto_prepend_file IS INCLUDED BEFORE session.auto_start starts the 
session.

Otherwise, use auto_prepend_file to include a file that:
1. Inludes your class def
2. Starts your session.

Just my 2 Cents.

-Jason Garber
IonZoft.com


At 12:44 PM 12/5/2001 -0800, Kurt Lieber wrote:
>I am working on an open source e-commerce package and have hit a wall with
>sessions.
>
>If I have session.auto_start turned on, I get the following error message:
>
>Fatal error: The script tried to execute a method or access a property of an
>incomplete object. Please ensure that the class definition shoppingcart of
>the object you are trying to operate on was loaded _before_ the session was
>started in  <path to my file> on line 12
>
>If I turn session.auto_start off, the error disappears.
>
>So, the error message tells me that I can't use the class unless I've defined
>it before the session gets started.  However, session.auto_start (as far as I
>know) starts a session immediately, before even waiting for a script to be
>fully parsed & executed.  So, the two seem mutually exclusive. (but then the
>usefullness of session.auto_start would seem extremely limited)
>
>Is there a way
>
>I think there's some glaring errors in my understanding here.  Can someone
>help me fill in the holes?
>
>--kurt
>
>
>--
>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 ---
recursion is something that can be fun and practical at times, other times
its a bad coder trying to do something they think is clever. use it wisly.


<?php
        function power($num, $power = 1)
        {
                if ($num != 2)
                        $power = power(($num/2), $power+1);
                return $power;
        }
        echo power(16);
?>

this example is purposely coded bad to show you how recursion can mess up
with bad error checking. this example will work. change to power(30) and
you'll get a segfault because $num will allways equal anything but 2. this
gives you a starting point on recursion.

--

  Chris Lee
  [EMAIL PROTECTED]



"Alawi" <[EMAIL PROTECTED]> wrote in message
002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj">news:002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj...
I want to know how can i do that Recursive loop to get categories as example
can any body help me by give my tutorial or any thing to understand this
techniqe



--- End Message ---
--- Begin Message ---
Recursive functions are generally a bad idea especially in php.
By using a recursive function it is possible you may "smash the stack", which 
will crash an apache child (segfaults) and on a multi-threaded server take 
down the whole webserver.
Even with a default memory limit of 8 megs an attacker could crash php by 
accessing the same thread multiple times.

This is NOT a theoretical situation, I've actually came across it while 
writing a tree drawing code for a forum. The problem exists in all the php 
that I've tested (PHP 4.0.5,4.0.6,4.1.0RC5).
--- End Message ---
--- Begin Message ---
to be blunt. then dont use session.auto_start. classes must be defined
before variables can be created based on that class, obviously. the proper
order has to be.

- class definition
- session initialized

--

  Chris Lee
  [EMAIL PROTECTED]



"Matthieu Brunet" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I'm trying to save an object in the session, with the serialize and
> uunserialize fonction.
> But i got an error message wich say me that i must define the class before
> the session start.
> But my session start automaticly. So I can't include my class before the
> session start.
> I'm looking for a workaround.
>
> Thanks
>
> --
> --
> Matthieu Brunet - [EMAIL PROTECTED]
> Réseau-Photo S.A. - http://www.reseau-photo.com
> 15, rue du Général Campredon - 34000 Montpellier
> Tél. : 04 67 58 07 08 - Fax : 04 67 58 03 04
> Icq : 119683958
>
>
>


--- End Message ---
--- Begin Message ---
wrong newsgroup.

--

  Chris Lee
  [EMAIL PROTECTED]


"Caspar Kennerdale" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have just installed mandrake
>
> something that is annoying me with KDE is that the default view within the
> file manager is with icons.
>
> Is is possible to have the tree or detailed view as the default.
>
> I briefly looked at the prefences and could find it anywhere
>
> Thanks
>
>


--- End Message ---
--- Begin Message ---
header("Location: www.domain2.com");

--

  Chris Lee
  [EMAIL PROTECTED]


"Manu Verhaegen" <[EMAIL PROTECTED]> wrote in message
001301c17c93$53be4620$[EMAIL PROTECTED]">news:001301c17c93$53be4620$[EMAIL PROTECTED]...
I want automatic forward URL (www.mydomain.com) to (www.mydomain2.com)

If i type in my brower www.mydomain.com the i will see www.mydomain2.com


Greetings,
    Manu




--- End Message ---
--- Begin Message ---
On Thu,  6 Dec 2001 08:32, Javier Muniz wrote:
> Hello,
>
> I'm having trouble determining what's going wrong with a MySQL query
> that I'm doing from PHP.  Now before you go blaming MySQL read on :)
>
> I have a table with the following columns:
> id (int)
> name (varchar 20)
> starttime (int)
> duration (int)
>
> now, i have a row that has a starttime of 60, when i attempt to do the
> following update with PHP, it sets it to 0:
>
> "UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname'"
>
> but when I run it from the MySQL command line, copy/pasted from the
> code, it sets the value of starttime to 30 as expected.
>
> Anyone have any clue why this is?

mysql_error() is a good debugging tool; it will return an error string 
that may be useful.

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

   A waist is a terrible thing to mind.
--- End Message ---
--- Begin Message ---
At 03:41 PM 12/5/2001 -0500, Jordan wrote:
>Is there any way to pass a multi-dimenstional through a url.  something like
>/cart.exe?item[1][1]=3
>
>just curious.
>
>-Jordan

I haven't personally done this myself, but theoretically you could 
accomplish this by first using the serialize function:

http://www.php.net/manual/en/function.serialize.php

Then using url_encode on the results and passing that in the URL parameter.

Then on the other page you want to unserialize it:

http://www.php.net/manual/en/function.unserialize.php

I haven't personally used this function for anything yet, but it looks like 
it should work fine...

--- End Message ---
--- Begin Message ---
or you could use the method you wrote - /cart.exe?item[1][1]=3
but if you have lots of items then the url will get pretty large...

-----Original Message-----
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 12:34 PM
To: Jordan; [EMAIL PROTECTED]
Subject: Re: [PHP] multi-dimensional array


At 03:41 PM 12/5/2001 -0500, Jordan wrote:
>Is there any way to pass a multi-dimenstional through a url.  something
like
>/cart.exe?item[1][1]=3
>
>just curious.
>
>-Jordan

I haven't personally done this myself, but theoretically you could 
accomplish this by first using the serialize function:

http://www.php.net/manual/en/function.serialize.php

Then using url_encode on the results and passing that in the URL parameter.

Then on the other page you want to unserialize it:

http://www.php.net/manual/en/function.unserialize.php

I haven't personally used this function for anything yet, but it looks like 
it should work fine...


-- 
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 ---
Okay, probably been asked zillions of times already, but I couldn't find
reference to it in the last 5 minutes. :)

Where can I find newbie-novice tutorials on php/mysql?

My server is PHP4/MySql on a Apache/FreeBSD.

I want to learn how to make these types of sites: Dating, Buy&Sell, Forums,
etc...

I have VB, Delphi, and C programming experience, so I'm hoping it won't be
too hardcore. :)

Cheers,

- Geoff


--- End Message ---
--- Begin Message ---
On Wednesday 05 December 2001 05:16 pm, Geoff E wrote:
> Okay, probably been asked zillions of times already, 

Yep

>but I couldn't find reference to it in the last 5 minutes. :)

Didja try the archives?

http://marc.theaimsgroup.com/?l=php-general
--- End Message ---
--- Begin Message ---
Hi,
I have a rather annoying eregi_replace which I can't get to work.
I have a string, $page which contains a webpage. In the page links are
denoted like so:
###LINK###Link Name###URL or Section###ELINK###

There are a number of these in $page.

I need to use eregi_replace() to replace the above string with a proper
link:
<a href="URL or Section">Link Name</a>

Not too bad, right?
However, If need to do some manipulation on the "URL or Section" bit.
If it is a URL (begining with "http://";, "ftp://";, etc) then it just needs
to be put there, ie:
###LINK###PHP###http://www.php.net/###ELINK### = <a
href="http://www.php.net";>PHP</a>

But if it is a section on the site like this:
###LINK###Hello###Main.Section 1.Section 2.Hello World###ELINK###
It need to be replaced with this:
<a href="/main.section_1.section_2.hello_world.php">Hello</a>

Here is the rather long (an not working) eregi_replace call I have:

 $page = eregi_replace("###LINK##(.*)####(.*)###ELINK###", "<a
href=\".(eregi("^http://";, \\2) ? trim(\\2) : (strtolower(str_replace("\\",
"_", eregi_replace("(/|
|:|\*|\?|<|>|\|)","_",trim(\\2)))).".php")).">\\1</a>", $page);

1. I dont think the regular express is really right
2. I'm getting the message "Warning: Unexpected character in input: '\'
(ASCII=92) state=1 in c:\users\david\help\www\generate.php on line 24"
serval times, which is the above line.

Any ideas on how to make this work would be great! Thanks!

Regards,
David


--- End Message ---
--- Begin Message ---
hi,sir;

        i am installing php4.0.2+oracle8.1.16+apache1.3.14  in redhat7.0 ,first i 
installed apache at /opt/apache ,it run well.
then i installed oracle at /opt/oracle and /opt/oraclient,as you see,i installed oci 
at /opt/oraclient.now oracle works well,too.
at last,i try to install php as a dso in apache like this :
shell> ./configure --with-apxs=/opt/apache/bin/apxs --with-oracle=/opt/oracle 
--with-oci8=/opt/oraclient --enable-track-vars ;make;make install
shell> cp php.ini-dist /usr/local/lib

it didn't show any error messages.then i start apache :
[root@linux bin]# ./apachectl restart
./apachectl restart: httpd not running, trying to start
./apachectl restart: httpd started

it looks like that apache is running.but ......i can't see 'httpd' when running 'ps 
-e' in console,and when
i visit in ie5 ,i found apache didn't work.i changed httpd.conf ,change the line
'LoadModule php4_module     libexec/libphp4.so'
to 
'#LoadModule php4_module     libexec/libphp4.so'
and start apache again,this time it works well.i feel so stange,why?



i installed apache like this 
shell>./configure --with-prefix=/opt/apache --enable-module=most --enable-shared=max


so apache should support dso.in fact,i had installed php with mysql as dso,it works 
well.i think i made some mistake when configure php with oracle and oci8,who can give 
me some help? 


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

http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :

<DOCTYPE=....>
<orderID="xyz"
amount="1234"
currency="BEF">

How can I do that ?
 Should I just use echo  ?


Help

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


http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :

<DOCTYPE=....>
<orderID="xyz"
amount="1234"
currency="BEF">

How can I do that ?
 Should I just use echo  ?


Help

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



http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :

<DOCTYPE=....>
<orderID="xyz"
amount="1234"
currency="BEF">

How can I do that ?
 Should I just use echo  ?


Help




--- End Message ---
--- Begin Message ---
I am using the following code to try to produce a test image:
<?
  //phpinfo();
  $gif = ImageCreate(200,200);
$bg = ImageColorAllocate($gif,0,0,0);
$tx = ImageColorAllocate($gif,255,128,128);
ImageFilledRectangle($gif,0,0,200,200,$bg);
ImageString($gif,3,70,90,"it works !",$tx);

// send the image
header("content-type: image/jpeg");
imagejpeg($gif); 
?>

I am trying to display this image on the page
http://www.harshdeepjawanda.com/t2.html .

Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir
and --with-png-dir, among others. Why then am I not able to see any image?

=====
Please send all emails to my automatically redirecting
address: [EMAIL PROTECTED]

Regards,
Harshdeep S Jawanda
[[EMAIL PROTECTED]]

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--- End Message ---
--- Begin Message ---
On Thu,  6 Dec 2001 13:50, Harshdeep S Jawanda wrote:
> I am using the following code to try to produce a test image:
> <?
>   //phpinfo();
>   $gif = ImageCreate(200,200);
> $bg = ImageColorAllocate($gif,0,0,0);
> $tx = ImageColorAllocate($gif,255,128,128);
> ImageFilledRectangle($gif,0,0,200,200,$bg);
> ImageString($gif,3,70,90,"it works !",$tx);
>
> // send the image
> header("content-type: image/jpeg");
> imagejpeg($gif);
> ?>
>
> I am trying to display this image on the page
> http://www.harshdeepjawanda.com/t2.html .
>
> Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir
> and --with-png-dir, among others. Why then am I not able to see any
> image?

Try taking the header line out; that way if there is an error message you 
should be able to see it in 'View Source'.

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

   Enter that again, just a little slower.
--- End Message ---
--- Begin Message ---
Hi,
    I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
      John Kolvereid
      http://www.odinfo.com
      http://www.kolvereid.com
      [EMAIL PROTECTED]
      1.610.296.4485


--- End Message ---
--- Begin Message ---
PHP can be used on the command line if necessary.  Or the \n characters can
be printed to a text file or some other document that use's \n.  To compile
PHP for use on the command line, don't specify a web server to compile it
with.  Example...instead of this:
./configure --with-apxs2=/usr/local/apach2/bin/apxs --with-mysql

do this:
./configure --with-mysql

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com

----- Original Message -----
From: "John Kolvereid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 12:24 AM
Subject: [PHP] PHP outside HTML


> Hi,
>     I'm a little confused.  I see the advantage of PHP within HTML.
> However, a few of the examples of ECHO include the '\n' char.  Since
> this is not valid within HTML, I conclude they are addressing this for
> OUTSIDE HTML.  Please advise.  Thanks.
>
> --
>       John Kolvereid
>       http://www.odinfo.com
>       http://www.kolvereid.com
>       [EMAIL PROTECTED]
>       1.610.296.4485
>
>
>
> --
> 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 ---
it's so it's easier to read the output

-----Original Message-----
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP outside HTML


Hi,
    I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
      John Kolvereid
      http://www.odinfo.com
      http://www.kolvereid.com
      [EMAIL PROTECTED]
      1.610.296.4485



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On Thu,  6 Dec 2001 16:54, John Kolvereid wrote:
> Hi,
>     I'm a little confused.  I see the advantage of PHP within HTML.
> However, a few of the examples of ECHO include the '\n' char.  Since
> this is not valid within HTML, I conclude they are addressing this for
> OUTSIDE HTML.  Please advise.  Thanks.
>

Among other uses, it makes your source code easier to read in a 'View 
Source'.

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

   "I'm embarrassed," Tom admitted readily.
--- End Message ---
--- Begin Message ---
On Wed, 05 Dec 2001 22:24:08 -0800
John Kolvereid <[EMAIL PROTECTED]> mentioned:

> Hi,
>     I'm a little confused.  I see the advantage of PHP within HTML.
> However, a few of the examples of ECHO include the '\n' char.  Since
> this is not valid within HTML, I conclude they are addressing this for
> OUTSIDE HTML.  Please advise.  Thanks.

I find it extremely useful in general web programming.
For example, I have a cable modem with dhcp.
As such, occasionally my IP address changes- such as after I disconnect
from the web to go on vacation.

I use CVS to maintain my website that is on an external server.
If my IP address changes here at home, that means that the CVSROOT
environmental variable in my .bashrc and in all the CVS/Root files needs
to be changed, or I won't be able to use cvs.

So I have a password protected directory with a php script in it.
Once a day, my crontab uses wget with the username/password I specified to
wget that script.

What the php script does is write a bashrc file reflecting the new
CVSROOT.
\n is very handy for that, as it tells php to send a newline character.

//note- no, php does not have permission to write my .bashrc but I have a
cron job that cats the new bashrc (if it exists) onto the old one- and
updates the Root file in all the CVS directories

PHP is a fully featured wrapper language.
It can be used for everything from database to e-mail to pdf generation to
ldap to swf to you name it.
The ability to send the newline character is extremely critical for many
of these things.


> 
> --
>       John Kolvereid
>       http://www.odinfo.com
>       http://www.kolvereid.com
>       [EMAIL PROTECTED]
>       1.610.296.4485
> 
> 
> 
> -- 
> 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]
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/
--- End Message ---
--- Begin Message ---
hey-

I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to getting this 
installed correctly. I've edited my httpd.conf file to the point where if I call the 
php file I want, I get the source in the browser

here's what my .conf file says?

ScriptAlias /php/ "c:/php/"

and then further down in the file...

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "C:/php/php.exe"

can someone point me in the right direction ..?

-chris-
--- End Message ---
--- Begin Message ---
Dear Members,
I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor
system.
Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect
MySQL through PHP. It is giving an error 'call to unknown function
"mysql_connect" in line in __' .
Can any one provide a solution.
Thanks in advance
yours
Karthikeyan

--- End Message ---
--- Begin Message ---
Hi Karthik,
Most probably the PHP module that you are using with Apache is not compiled
with Mysql support. Can you post the information about php installation that
you have?

Put this in a file called say "phpinfo.php":

------------------------------------------------------------------------
<?php
phpinfo();
?>
------------------------------------------------------------------------

When you view this page in your browser, you will see lot of useful
information. It will also show the configure options with which PHP was
compiled. In my case, it looks like this

------------------------------------------------------------------------
Configure Command
 './configure' '--with-mysql' '--with-pgsql' '--with-apxs'
'--with-gd=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--enable-trans-sid' '--enable-exif'
'--with-xml' '--enable-wddx' '--with-curl=/usr/local'
'--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '--enable-ftp'

------------------------------------------------------------------------

Check if you have --with-mysql in the configure options.

Please let us know if you have further problems...

Regards,
Kundan

On 12/6/01 2:08 PM, "Karthikeyan" <[EMAIL PROTECTED]> wrote:

> Dear Members,
> I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor
> system.
> Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect
> MySQL through PHP. It is giving an error 'call to unknown function
> "mysql_connect" in line in __' .
> Can any one provide a solution.
> Thanks in advance
> yours
> Karthikeyan
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>  http://www.mysql.com/manual.php   (the manual)
>  http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
> <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 

--- End Message ---
--- Begin Message ---
Dr.Adewale.Johnson.
16 Kingsway Road 
Ikoyi, Lagos 
Nigeria.. 
[EMAIL PROTECTED]
6th, December , 2001. 
 
Sir, 
 
Request for Urgent Business Relationship. 
 
First I must solicit your confidence in this transaction. This is by 
virtue of its nature as being utterly confidential and top secret. We shall 
be counting on your ability and reliability to prosecute a transaction of 
great magnitude  involving a pending business transaction requiring 
maximum confidence. 
 
We are top officials of the Federal Government Contract Review Panel who 
are interested  in importation of goods into our country with 
funds which are presently trapped in Nigeria. In order to commence this 
business we solicit  your assistance to enable us RECIEVE the 
said trapped funds ABROAD. 
 
The source of this fund is as follows : During the regime of our late 
head of state, Gen.  Sani Abacha, the government officials set up 
companies and awarded themselves contracts which were grossly 
over-invoiced in various  Ministries. The NEW CIVILIAN Government 
set up a Contract Review Panel (C.R.P) and we have identified a lot of 
inflated contract  funds which are presently floating in the Central 
Bank of Nigeria (C.B.N). However, due to our position as civil servants 
and members of this  panel, we cannot acquire this money in our 
names. I have therefore, been delegated as a matter of trust by my 
colleagues of the panel  to look for an Overseas partner INTO whose 
ACCOUNT the sum of US$31,000,000.00 (Thirty one Million United States 
Dollars) WILL  BE PAID BY TELEGRAPHIC TRANSFER. 
Hence we are writing you this letter.  
We have agreed to share the money thus: 
70% for us (the officials) 
20% for the FOREIGN PARTNER (you) 
10% to be used in settling taxation and all local and foreign expenses. 
 
It is from this 70% that we wish to commence the importation business. 
Please note that this  transaction is 100% safe and we hope that the funds arrive your 
account in latest ten (10)  banking days from  the date of reciept of the following 
information  by email: A suitable name and bank account into which the funds can 
be paid. 
 
The above information will enable us write letters of claim and job 
description respectively. 
This way we will use your company's name to 
apply for payments and re-award the contract in your company name. 
 
We are looking forward to doing business with you and solicit your 
confidentiality in this  transaction. 
 
For security reasons, please respond only to the above email address or fax number 234 
1 7747907. I will bring you  into the complete picture of this pending project when I 
have 
heard from you. 
 
Yours Faithfully, 
Dr.Adewale.Johnson.
Tel/fax: 234 1 7747907 

--- End Message ---
--- Begin Message ---
This would have to be the most bizarre spam I have ever read.
 

-----Original Message-----
From: Adewale.Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 6 March 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] very urgent assistance

Dr.Adewale.Johnson.
16 Kingsway Road 
Ikoyi, Lagos 
Nigeria.. 
[EMAIL PROTECTED]
6th, December , 2001. 
 
Sir, 
 
Request for Urgent Business Relationship. 
 
First I must solicit your confidence in this transaction. This is by 
virtue of its nature as being utterly confidential and top secret. We
shall 
be counting on your ability and reliability to prosecute a transaction
of 
great magnitude  involving a pending business transaction requiring 
maximum confidence. 
 
We are top officials of the Federal Government Contract Review Panel who

are interested  in importation of goods into our country with 
funds which are presently trapped in Nigeria. In order to commence this 
business we solicit  your assistance to enable us RECIEVE the 
said trapped funds ABROAD. 
 
The source of this fund is as follows : During the regime of our late 
head of state, Gen.  Sani Abacha, the government officials set up 
companies and awarded themselves contracts which were grossly 
over-invoiced in various  Ministries. The NEW CIVILIAN Government 
set up a Contract Review Panel (C.R.P) and we have identified a lot of 
inflated contract  funds which are presently floating in the Central 
Bank of Nigeria (C.B.N). However, due to our position as civil servants 
and members of this  panel, we cannot acquire this money in our 
names. I have therefore, been delegated as a matter of trust by my 
colleagues of the panel  to look for an Overseas partner INTO whose 
ACCOUNT the sum of US$31,000,000.00 (Thirty one Million United States 
Dollars) WILL  BE PAID BY TELEGRAPHIC TRANSFER. 
Hence we are writing you this letter.  
We have agreed to share the money thus: 
70% for us (the officials) 
20% for the FOREIGN PARTNER (you) 
10% to be used in settling taxation and all local and foreign expenses. 
 
It is from this 70% that we wish to commence the importation business. 
Please note that this  transaction is 100% safe and we hope that the
funds arrive your 
account in latest ten (10)  banking days from  the date of reciept of
the following 
information  by email: A suitable name and bank account into which the
funds can 
be paid. 
 
The above information will enable us write letters of claim and job 
description respectively. 
This way we will use your company's name to 
apply for payments and re-award the contract in your company name. 
 
We are looking forward to doing business with you and solicit your 
confidentiality in this  transaction. 
 
For security reasons, please respond only to the above email address or
fax number 234 
1 7747907. I will bring you  into the complete picture of this pending
project when I have 
heard from you. 
 
Yours Faithfully, 
Dr.Adewale.Johnson.
Tel/fax: 234 1 7747907 


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

Except that its been around for a couple of years now, in various guises.

SPAM!

George
----- Original Message ----- 
From: "Smith, Benjamin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 6:20 AM
Subject: RE: [PHP] very urgent assistance


This would have to be the most bizarre spam I have ever read.
 

-----Original Message-----
From: Adewale.Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 6 March 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] very urgent assistance

Dr.Adewale.Johnson.
16 Kingsway Road 
Ikoyi, Lagos 
Nigeria.. 
[EMAIL PROTECTED]
6th, December , 2001. 
 
Sir, 
 
Request for Urgent Business Relationship. 
 
First I must solicit your confidence in this transaction. This is by 
virtue of its nature as being utterly confidential and top secret. We
shall 
be counting on your ability and reliability to prosecute a transaction
of 
great magnitude  involving a pending business transaction requiring 
maximum confidence. 
 
We are top officials of the Federal Government Contract Review Panel who

are interested  in importation of goods into our country with 
funds which are presently trapped in Nigeria. In order to commence this 
business we solicit  your assistance to enable us RECIEVE the 
said trapped funds ABROAD. 
 
The source of this fund is as follows : During the regime of our late 
head of state, Gen.  Sani Abacha, the government officials set up 
companies and awarded themselves contracts which were grossly 
over-invoiced in various  Ministries. The NEW CIVILIAN Government 
set up a Contract Review Panel (C.R.P) and we have identified a lot of 
inflated contract  funds which are presently floating in the Central 
Bank of Nigeria (C.B.N). However, due to our position as civil servants 
and members of this  panel, we cannot acquire this money in our 
names. I have therefore, been delegated as a matter of trust by my 
colleagues of the panel  to look for an Overseas partner INTO whose 
ACCOUNT the sum of US$31,000,000.00 (Thirty one Million United States 
Dollars) WILL  BE PAID BY TELEGRAPHIC TRANSFER. 
Hence we are writing you this letter.  
We have agreed to share the money thus: 
70% for us (the officials) 
20% for the FOREIGN PARTNER (you) 
10% to be used in settling taxation and all local and foreign expenses. 
 
It is from this 70% that we wish to commence the importation business. 
Please note that this  transaction is 100% safe and we hope that the
funds arrive your 
account in latest ten (10)  banking days from  the date of reciept of
the following 
information  by email: A suitable name and bank account into which the
funds can 
be paid. 
 
The above information will enable us write letters of claim and job 
description respectively. 
This way we will use your company's name to 
apply for payments and re-award the contract in your company name. 
 
We are looking forward to doing business with you and solicit your 
confidentiality in this  transaction. 
 
For security reasons, please respond only to the above email address or
fax number 234 
1 7747907. I will bring you  into the complete picture of this pending
project when I have 
heard from you. 
 
Yours Faithfully, 
Dr.Adewale.Johnson.
Tel/fax: 234 1 7747907 


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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--- End Message ---
--- Begin Message ---
On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote:

> Hi out there!
> 
> I have got a problem with PHP's standard way of reporting errors. The
> <br> in the error messages are making the XML invalid (should be
> <br/>). Is there an easy way to do this?

This was done in CVS a few months ago.  It should be in PHP 4.1.0 when
it comes out shortly.

Matt
--- End Message ---
--- Begin Message ---
There is a way to turn off HTML in Errors in PHP.  This is done in
php.ini or you can use the ini_set() function to change the value.

html_errors 
boolean
Turn off HTML tags in error messages

http://download.php.net/manual/en/configuration.php

Jason Lotito
[EMAIL PROTECTED]
www.NewbieNetwork.net

> -----Original Message-----
> From: Matt McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 06, 2001 2:05 AM
> To: Jan
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] XHTML compatible error messages
> 
> 
> On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote:
> 
> > Hi out there!
> > 
> > I have got a problem with PHP's standard way of reporting 
> errors. The 
> > <br> in the error messages are making the XML invalid (should be 
> > <br/>). Is there an easy way to do this?
> 
> This was done in CVS a few months ago.  It should be in PHP 
> 4.1.0 when it comes out shortly.
> 
> Matt
> 
> -- 
> 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 ---

"Wee Chua" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> How many extension of subclass can PHP have? Can I extend subclass to more
> different subclass?

I didn't really understand the question, but maybe this is it.
PHP class can extend only one parent class. i.e.

class Foo extends Bar {
} file://is ok

whereas

class Foo extends Bar,Cafe {
} file://does not work but maybe will in Zend 2.0 engine

Roko


--- End Message ---
--- Begin Message ---
At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote:
>$t = preg_replace('/\s+/',' ',$text);

One more thing:
How do I replace with newline instead of a space?  I read through the manuals but 
couldn't grasp how to do this.  \n didn't cut it.

And, more advanced - 
The above replaces any groups of 2 or more blanks (newlines, spaces, tabs) with a 
single blank.
Is there an easy way to replace them with EITHER a space or a newline, depending on 
whether any newlines were present in the input?
I.e. bbbbbbbbbbbbbb would be replaced with b, but bbbbbnbbbbbnbbbb would be replaced 
with n.

Right now the issue is that I'm sometimes getting results that have no line breaks for 
a really long time, and I know there are reasons to try to avoid individual lines of 
HTML longer than 200 characters.

Thanks!

- Ken
[EMAIL PROTECTED]

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

Is it possible for users to change passwords from htaccess files in php?  I do not 
want to use the database or sessions for account management as I already have 40 or so 
htaccess accounts set up for different areas.

Thanks.
--- End Message ---
--- Begin Message ---
Hello,

does anybody know of any documentation how to write scripts that
do interact with emails (Majordomo-like), i.e. when an email comes 
to

        [EMAIL PROTECTED]

that a script is starting which reads the email and completes tasks
which are defined within the email?

We are using PHP4, Apache and Sendmail.

Thanks a lot.

Juergen
--------------
pro.vider.de Internetagentur GmbH
Juergen Mueller
Clichystr. 6
89518 Heidenheim
Tel.: 07321 48 08 -72  Fax: -73
---------------------------------------



--- End Message ---
--- Begin Message ---
Hello,

"Pro.Vider.De Gmbh J.Mueller" wrote:
> 
> Hello,
> 
> does anybody know of any documentation how to write scripts that
> do interact with emails (Majordomo-like), i.e. when an email comes
> to
> 
>         [EMAIL PROTECTED]
> 
> that a script is starting which reads the email and completes tasks
> which are defined within the email?
> 
> We are using PHP4, Apache and Sendmail.

Just make that account be acessible via POP3 or IMAP and then run a
script from the command line that periodically checks the POP account
and processes the messages.

Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
Hi

Is there any way to get a list of all active sessions in apache using PHP?

Thanks

Lee

--- End Message ---
--- Begin Message ---
hi all,

does anyone know if there is a possibilty to check if a mailadress is existent, 
without sending a testemail?
thanks for your help



Mit freundlichen Grüßen,

Oliver Küppers
CIB - Firmenkunden Deutschland
Marketing und Vertrieb
Deutsche Bank AG (Zentrale)
phone   : +49 (69) 910 - 34723
fax          : +49 (69) 910 - 42390
mobile  : +49 (174) 30 44 218



--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.


--- End Message ---
--- Begin Message ---
Which packages do I need to set a web server with PHP and MYSQL support?

I guess:
apache server
php4 apache module 
mysql  module for php4

Josep

--- End Message ---
--- Begin Message ---
The problem:
PHP was compiled together with freetype version 2, gd, and several other
extensions.  It compiled and installed,
but calls to freetype from PHP failed.
 
Solution:
Use freetype version 1!
 
 
I note also that the freetype demos that required X11 also did not work on
the Sun workstation, but functioned
perfectly well on Linux.  Perhaps there is a connection.  The freetype test
binaries that come with freetype
version 1 had no such problem on Solaris.  (I did not install apache and gd
on Linux, so I cannot say how
it all works together on any platform except Solaris 8.)
 
Cheers,
Mike Dowling

M. Dowling
HEW 

 
--- End Message ---
--- Begin Message ---
Hi
 
I use PHPed for ages now, since it has one feature that i definitely
need :
if i have used the variable $fooBar somewhere in a script, then i just
have to type
'$fo' and the editor shows me all valiables that start with '$fo' and i
just have to hit
Enter to use it. 
I know of pleanty editors that have that feature for php-functions, but
i want it for
variablenames. PhpEd has lots of bugs, which are not fixed since it's
gone commercial.
I can't afford 299$ for an Texteditor,so :
Does anyone know of a free/cheap Edtor that has this feature?

thanks

Sebastian

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

I have a script which sends email from the web. The problem is the header of
the message contains "Return-path" and "Sender" email address as the
[EMAIL PROTECTED]

So, can some one help how can I set Return-path and Sender address as From
Address?

Regards
Sanjay



Return-path: <[EMAIL PROTECTED]>
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Thu, 06 Dec 2001 11:14:05 +0000
Received: from [192.168.0.2] (helo=mail.linuxserver.com)
 by mail.softhome.net with esmtp (Exim 3.22 #2)
 id 16BwTd-0007yH-00
 for [EMAIL PROTECTED]; Thu, 06 Dec 2001 11:14:05 +0000
Received: from webmaster by mail.linuxserver.com with local (Exim 3.16 #1)
 id 16BvPB-0003HI-00
 for [EMAIL PROTECTED]; Thu, 06 Dec 2001 10:05:25 +0000
To: [EMAIL PROTECTED]
Subject: Re: Your  Application
From: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Sender:  <[EMAIL PROTECTED]>
Date: Thu, 06 Dec 2001 10:05:25 +0000


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

you can add extra headers in the mail command.

example from php.net:

mail("[EMAIL PROTECTED]", "the subject", $message,
     "From: webmaster@$SERVER_NAME\r\n"
    ."Reply-To: webmaster@$SERVER_NAME\r\n"
    ."X-Mailer: PHP/" . phpversion());

Bart

-----Ursprüngliche Nachricht-----
Von: sanjay [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. Dezember 2001 11:29
An: [EMAIL PROTECTED]
Betreff: [PHP] How to change Return-path and sender address


Hi

I have a script which sends email from the web. The problem is the
header of
the message contains "Return-path" and "Sender" email address as the
[EMAIL PROTECTED]

So, can some one help how can I set Return-path and Sender address as
From
Address?

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

--- End Message ---
--- Begin Message ---
I tried this before posting to the list. it didn't worked for me.

sanjay

----- Original Message -----
From: "Bart Frackiewicz" <[EMAIL PROTECTED]>
To: "sanjay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 4:00 PM
Subject: Re: [PHP] How to change Return-path and sender address


Hi Sanjay,

you can add extra headers in the mail command.

example from php.net:

mail("[EMAIL PROTECTED]", "the subject", $message,
     "From: webmaster@$SERVER_NAME\r\n"
    ."Reply-To: webmaster@$SERVER_NAME\r\n"
    ."X-Mailer: PHP/" . phpversion());

Bart

-----Ursprüngliche Nachricht-----
Von: sanjay [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. Dezember 2001 11:29
An: [EMAIL PROTECTED]
Betreff: [PHP] How to change Return-path and sender address


Hi

I have a script which sends email from the web. The problem is the
header of
the message contains "Return-path" and "Sender" email address as the
[EMAIL PROTECTED]

So, can some one help how can I set Return-path and Sender address as
From
Address?

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


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


--- End Message ---
--- Begin Message ---
Hello,

I seem to have ran into a problem.

If I try to use the dba functions when I've got an active postgres handle the
dba funtions will return:
"Warning: Unable to find DBA identifier 1 in 
/www/sites/Test/htdocs/dbafuncs.php on line 31"

If I comment out the call to pg_connect all of the dba stuff works just fine.
I am getting a valid dbm handle back from the open, it just can not find
the first key.

Anyone have any ideas?

GB

-- 
GB Clark II             | Roaming FreeBSD Admin
[EMAIL PROTECTED] | General Geek 
           CTHULU for President - Why choose the lesser of two evils?
--- End Message ---

Reply via email to