php-windows Digest 24 Jun 2004 03:45:37 -0000 Issue 2296

Topics (messages 24051 through 24065):

Re: COM function
        24051 by: John Lim

Re: LINUX php version 7.2 support COM function?
        24052 by: Jordi Canals
        24053 by: Jordi Canals

view xml thru php
        24054 by: Joakim Ling
        24055 by: Jason Barnett
        24058 by: Joakim Ling
        24060 by: Jason Barnett

mail error
        24056 by: Cory D. Wiles

Need MSSQL client
        24057 by: Rafi Sheikh
        24063 by: Frank M. Kromann
        24064 by: Rafi Sheikh

SOAP in php 4.3.7
        24059 by: Darren Horrocks
        24061 by: Jason Barnett
        24062 by: Justin Patrin

Re: User Online
        24065 by: Yi Socheat

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 ---
Sorry, Linux does not support COM.

"Heekw" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I couldn't run the com progam on my server but everthing well on my pc.
>   The only different is server is using UNIX version while pc is Window
> version.
> It game me error like this -> "Fatal error: Cannot instantiate
> non-existent class: com in
> /home/www/hermes/data/program/log_report/TPSpartSales/comExample5.php4
> on line 2".
> com.allow_dcom has to be set to TRUE.  Kindly help me to solve this
> issue.  TQ.
>
> Best Regard,
> Hee

--- End Message ---
--- Begin Message ---
    Just want to know if LINUX php version 7.2 support COM function?
What I need to do if it support?  TQ

I think yo are talking about a non existent PHP version. Latest PHP version is 4.3.7 (And the latest development branch is PHP 5 RC 3)


Regards,
Jordi.

--- End Message ---
--- Begin Message ---
Jordi Canals wrote:

    Just want to know if LINUX php version 7.2 support COM function?
What I need to do if it support?  TQ


I think yo are talking about a non existent PHP version. Latest PHP version is 4.3.7 (And the latest development branch is PHP 5 RC 3)

Sorry ... you're asking for a LINUX version ... COM is only supported under Windows Platform as it is, I think, an MS technology.

Regards.
--- End Message ---
--- Begin Message ---
Hi,

Im trying to view a xml file (texttv.xml) thru php.

<?php
require("./classes/texttv.class");

$tv = new XMLTv4TextTV("texttv.xml");
$tv->Init();
$tv->WriteHeader();
$tv->CreateDataArray();
$tv->ArrayToXML();
$tv->Close();

header("Content-type: application/xhtml+xml");
readfile("texttv.xml");
?>

But its printed in html, its not a big deal but how can I do this correct?

Thx // jocke

--- End Message ---
--- Begin Message ---
Joakim Ling wrote:

Hi,

Im trying to view a xml file (texttv.xml) thru php.


Are you wanting to see the raw xml? You can do it like so:

<?php

$file = './path/to/file.xml';
header("Location: $file");

?>

Or, are you wanting to have the xml as part of the php script's output? Then you might do this:

<?php

$file = './path/to/file.xml';
$xml = file_get_contents($file);
echo '<pre>';
echo htmlentities($xml);

?>
--- End Message ---
--- Begin Message ---
The raw xml. I tried header("Location: $file"); but its not working in
IE. NN works fine. 

http://www.lokalguiden.se/tv4/texttv.php

Any ideas?

"Jason Barnett" <[EMAIL PROTECTED]> skrev i meddelandet
news:<[EMAIL PROTECTED]>...
> Joakim Ling wrote:
> 
> > Hi,
> > 
> > Im trying to view a xml file (texttv.xml) thru php.
> > 
> 
> Are you wanting to see the raw xml?  You can do it like so:
> 
> <?php
> 
> $file = './path/to/file.xml';
> header("Location: $file");
> 
> ?>
> 
> Or, are you wanting to have the xml as part of the php script's
output? 
>   Then you might do this:
> 
> <?php
> 
> $file = './path/to/file.xml';
> $xml = file_get_contents($file);
> echo '<pre>';
> echo htmlentities($xml);
> 
> ?>

--- End Message ---
--- Begin Message ---
Joakim Ling wrote:

The raw xml. I tried header("Location: $file"); but its not working in
IE. NN works fine.


http://www.lokalguiden.se/tv4/texttv.php

Any ideas?


I tried the link you posted above; it did not redirect me to any xml file (Mozilla). Were you hoping to have me view the contents of that file? If so, then make sure you've changed $file to the path and file name of your actual xml file.


I played around a bit and I think the following code will show your raw xml:

********************** texttv.php ******************

<?php

$file = 'texttv.xml';
header("Location: $file");

?>

****************************************************

Alternatively, just type the link in your browser:
http://www.lokalguiden.se/tv4/texttv.xml

--- End Message ---
--- Begin Message --- I just upgraded to PHP5RC3 and for some reason the mail() function is throwing an error.
*Warning*: mail() [function.mail
<http://www.randomthoughtprocess.com/cmc/function.mail>]:
"sendmail_from" not set in php.ini or custom "From:" header missing in
*C:\Program Files\Apache Group\Apache2\htdocs\cmc\parts_request.php*
on
line *157*



In my php.ini i did set a value for the sendmail_from (which i have never had to before) and it still doesn't work.


Here is the code:
http://www.randomthoughtprocess.com/parts_request.phps

Thoughts?

--
Cory Wiles
Systems Engineer
ePerformax - Memphis, TN
901.751.4902
http://www.eperformax.com

--- End Message ---
--- Begin Message ---
Can any one point me to where I could get the client for MSSQL for AIX 5.1,
IBM machine?  (I need to compile PHP with mssql enabled)
*** Using PHP 4.3.4
TIA

RS


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

--- End Message ---
--- Begin Message ---
It's all in the documentation http://php.net/mssql

- Frank

> Can any one point me to where I could get the client for MSSQL for AIX
5.1,
> IBM machine?  (I need to compile PHP with mssql enabled)
> *** Using PHP 4.3.4
> TIA
> 
> RS
> 
> 
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity
to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
that
> any dissemination, distribution or copying of this e-mail is prohibited.
If
> you have received this e-mail in error, please notify the sender by
replying
> to this message and delete this e-mail immediately.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Hi thanks for replying.  Serves me well to write in haste, and not
explaining what I needed :)

I got to the freeTds point and had further questions, which I found the
answers for, but I inquired poorly.

Thank you.

-----Original Message-----
From: Frank M. Kromann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:19 PM
To: Rafi Sheikh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Need MSSQL client


It's all in the documentation http://php.net/mssql

- Frank

> Can any one point me to where I could get the client for MSSQL for AIX
5.1,
> IBM machine?  (I need to compile PHP with mssql enabled)
> *** Using PHP 4.3.4
> TIA
> 
> RS
> 
> 
> This e-mail, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity
to
> which it is addressed. If the reader of this e-mail is not the intended
> recipient or his or her authorized agent, the reader is hereby notified
that
> any dissemination, distribution or copying of this e-mail is prohibited.
If
> you have received this e-mail in error, please notify the sender by
replying
> to this message and delete this e-mail immediately.
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 




This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

--- End Message ---
--- Begin Message ---
is it posible to use SOAP in 4.3.7, or is it a php5 only thing?

--- End Message ---
--- Begin Message ---
Darren Horrocks wrote:

is it posible to use SOAP in 4.3.7, or is it a php5 only thing?

Yes it is possible.

--- End Message ---
--- Begin Message ---
Darren Horrocks wrote:

is it posible to use SOAP in 4.3.7, or is it a php5 only thing?

Yes, of course it is. PHP5 just has SOAP functionality built-in. I would suggest using PEAR::SOAP.


http://pear.php.net/package/SOAP

--
paperCrane <Justin Patrin>

--- End Message ---
--- Begin Message ---
Could anyone help me to correct user online code:
I am stuck in this point...


CREATE TABLE useronline (
  timestamp int(15) NOT NULL default '0',
  ip varchar(40) NOT NULL default '',
  file varchar(100) NOT NULL default '',
  PRIMARY KEY  (timestamp),
  KEY ip (ip),
  KEY file (file)
) TYPE=MyISAM;

    

<?php
$host    = "localhost";
$db_user = "socheat";
$db_pass = "socheat";
$db_name = "ppdirectory";
$timeoutseconds=300;
//get the time
$timestamp = time();
$timeout = $timestamp-$timeoutseconds;

//connect to database
mysql_connect($host, $db_user, $db_pass);

//insert the values
mysql_db_query("$db_name", "INSERT INTO useronline
VALUES('$timestamp','$REMOTE_ADDR','$PHP_SELF')");
print("INSERT INTO useronline
VALUES('$timestamp','$REMOTE_ADDR','$PHP_SELF')");


//delete values when they leave
mysql_db_query($db_name, "DELETE FROM useronline WHERE timestamp<$timeout");


//grab the results
$result = mysql_db_query($db_name, "SELECT DISTINCT ip FROM useronline WHERE
file='$PHP_SELF'");


//number of rows = the number of people online
$user = mysql_num_rows($result);


//spit out the results
mysql_close();
if($user == 1) {
print("$user user online\n");
} else {
print("$user users online\n");
}
?> 

--- End Message ---

Reply via email to