RE: [PHP] Red Hat 9, Apache 2, and PHP

2003-07-04 Thread Diana
Hi,
that sounds really impressive. I'm using Redhat 9 with
the stuff from their Edition, that means Apache 2 and
php together. Never had any issues (so far.keep my
fingers crossed). The server is not under heavy load,
but it is indeed a "production server". I know it is
not recommended, but for this use (mysql & apache &
php on that server in a company intranet, used for
keeping a picture library & administration issues) is
it necessary to change it? Please advise. To my
defence I have to say that the data on the server is
backed up regularly, though not the OS itself, since
if something ever happens it is less hassle to do a
complete new install & get the database back on. Any
hints?
Thanks 
Diana

 --- Rasmus Lerdorf <[EMAIL PROTECTED]> schrieb: >
Apache2 has a number of different modes it can work
> in.  These modes are
> called MPM's.  The default MPM is called Worker
> which is a multithreaded
> model.  PHP, mod_perl, mod_python, and any other
> similar technology which
> links directly into the httpd processes will need to
> be perfectly
> threadsafe and reentrant to work effectively with a
> threaded Apache2 mpm.
> This is doable for the core of PHP, but there are
> literally hundreds of
> 3rd party libraries that can be linked into PHP and
> nobody whether or not
> these libraries are threadsafe.  And figuring out if
> a specific library is
> threadsafe or not is non-trivial and it can very
> from one platform to
> another.  And just to make it even harder, this
> stuff will appear to work
> fine until you put it under load or hit very
> specific race conditions
> which makes it nearly impossible to debug.
> 
> So, since we can't tell you for sure that a threaded
> Apache2 mpm + PHP
> will work we do not suggest you use it for a
> production server.  And since
> we can't know for sure, none of the main PHP
> developers use this
> combination for our own servers which compounds the
> problem because it is
> not receiving anywhere near the amount of realworld
> testing required to
> work out all the little issues above and beyond this
> threading unknown.
> 
> There is an Apache2 mpm, called "prefork", which
> isn't threaded and
> basically makes Apache2 look like Apache1.  But hey,
> we have a very good
> server already that looks like Apache1.
> 
> In the end I don't see Apache2+PHP ever becoming a
> production platform
> with the current architecture.  The only way I see
> it ever working is to
> pull PHP out of Apache and use a fastcgi approach. 
> Or, with time, perhaps
> we will learn how to make sure a library is
> perfectly threadsafe and safe
> to use in a multithreaded Apache2.
> 
> For now, I really see no reason not to simply use
> Apache1 if you want a
> robust, fast and stable web server.
> 
> -Rasmus
> 

=
WHEN ALL ELSE FAILS, HUG YOUR SNOOPY

Those who bring sunshine to the lives of others cannot keep it from themselves.
J.M. Barrie (1860-1937)


__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Re: [PHP] Re: mail() function & exchange

2003-06-11 Thread Diana
Hi, 
just today I stumbled into the same problem. It is
true, I got this answer from an expert:

"Unfortunately this will not work.  SMTP relaying is
disabled on all the
Exchange connector servers and a standard Exchange
mailbox server does 
not
support SMTP.  The only way that you can send SMTP
email from within 
our company is to use the Internal MailSweeper.  And
to allow this we need 
the IP
Address of the box that will be sending the messages
so that we can 
include
it in the authenticated list.  We have to have things
set up this way 
for
Security reasons.

One other thing I should have mentioned.  Outlook uses
mapi to send on 
the
Exchange servers.  So we can use the mapisend command
but I do not know 
if
your application would support this.  I think that
this may also need a
valid Outlook profile to work."


I don`t understand that either, because I am trying to
use my Linux server (inside my companys network) to
deliver mails to the exchange server via sendmail. 
If anyone knows more about this topic, let me
know.sorry that this obviously does not belong to
a php list, but I deleted the original email & could
not find the email address of the author of this topic
:(


 --- Manuel Lemos <[EMAIL PROTECTED]> schrieb: > Hello,
> 
> On 06/10/2003 04:44 PM, Matthias Wulkow wrote:
> > a friend of mine is trying to set up an automated
> mailing function.
> > The platform is Windows & he's using the last PHP
> release at this
> > time.
> > He asks me how to do it with Exchange, because it
> doesn't speak SMTP
> > or not correctly? What is the matter? Is that
> true? But that's not
> > really the question... could somebody point me to
> some documents where
> > I could find out, what has to be done to make it
> work?
> 
> I do not see what he means by not speaking SMTP
> correctly. Anyway, if it 
> receives e-mail that you get, it also can relay
> messages that you send. 
> I think in the worst case you need to authenticate.
> 
> In that case you may want to try this class for
> composing and sending 
> messages. It comes with a sub class for sending
> messages via SMTP that 
> supports authentication.
> 
> http://www.phpclasses.org/mimemessage
> 
> You also need this class for the actual message
> delivery:
> 
> http://www.phpclasses.org/smtpclass
> 
> -- 
> 
> Regards,
> Manuel Lemos
> 
> Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  

=
WHEN ALL ELSE FAILS, HUG YOUR SNOOPY

Those who bring sunshine to the lives of others cannot keep it from themselves.
J.M. Barrie (1860-1937)


__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



Re: [PHP] Re: mail() function & exchange

2003-06-12 Thread Diana
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of "locked" in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchange servers
don`t use SMTP (meaning the whole protocol is NOT
used, so your classes won`t help me), I`m not able to
send mails at all. Only like he offered me to put an
extra box in the network which will relay the mails
from my linux server. 
Does anyone know about the way exchange servers work,
mapi and mapisend? The only thing I found was how to
program that in VB (and being able to talk to Exchange
servers), but it seems like this is not possible for
my penguin :) (VB on Linux??? sounds stupid)
I found in old archives of this mailinglist that some
people asked this question before (how to implement a
mail function for exchange servers in php) but no one
knew it. One hint was to use ldap. anyone any idea
about this? ANY help is appreciated, I will follow the
threads started about ldap but right now it does not
look like it has a lot to do with the mail stuff. 

Another hint might be the COM interface (I saw VB code
they used this) but php offers only very few things on
this and as I have no idea of microsofts concepts that
doesn`t help :(

Please email me for suggestions!!! Wold be great to
implement something new in php ;). If anyone knows
documents about how outlook & exchange work I would
like to see them! Thanks :)
Diana 



 --- Manuel Lemos <[EMAIL PROTECTED]> schrieb: > Hello,
> 
> On 06/11/2003 05:38 PM, Diana wrote:
> > Hi, 
> > just today I stumbled into the same problem. It is
> > true, I got this answer from an expert:
> 
> > "Unfortunately this will not work.  SMTP relaying
> is
> > disabled on all the
> > Exchange connector servers and a standard Exchange
> > mailbox server does 
> > not
> > support SMTP.  The only way that you can send SMTP
> > email from within 
> > our company is to use the Internal MailSweeper. 
> And
> > to allow this we need 
> > the IP
> > Address of the box that will be sending the
> messages
> > so that we can 
> > include
> > it in the authenticated list.  We have to have
> things
> > set up this way 
> > for
> > Security reasons.
> > 
> > One other thing I should have mentioned.  Outlook
> uses
> > mapi to send on 
> > the
> > Exchange servers.  So we can use the mapisend
> command
> > but I do not know 
> > if
> > your application would support this.  I think that
> > this may also need a
> > valid Outlook profile to work."
> > 
> > 
> > I don`t understand that either, because I am
> trying to
> > use my Linux server (inside my companys network)
> to
> > deliver mails to the exchange server via sendmail.
> 
> > If anyone knows more about this topic, let me
> > know.sorry that this obviously does not belong
> to
> > a php list, but I deleted the original email &
> could
> > not find the email address of the author of this
> topic
> > :(
> 
> I wonder about his expertise. Authentication was
> meant for security reasons.
> 
> Anyway, you do no not need to relay in the company
> SMTP server unless 
> outside access is blocked in some firewall.
> 
> If you are using Linux, you just need to use the
> mail() function because 
> it just uses sendmail by default.
> 
> If you still have problems, just use the classes
> that I mentioned 
> enabling direct delivery mode in the SMTP sending
> attributes. That does 
> the same as sendmail but at least if it fails you
> can enable debugging 
> to see what the SMTP protocol dialog reveals.
> 
> 
> 
> >  --- Manuel Lemos <[EMAIL PROTECTED]> schrieb: >
> Hello,
> > 
> >>On 06/10/2003 04:44 PM, Matthias Wulkow wrote:
> >>
> >>>a friend of mine is trying to set up an automated
> >>
> >>mailing function.
> >>
> >>>The platform is Windows & he's using the last PHP
> >>
> >>release at this
> >>
> >>>time.
> >>>He asks me how to do it with Exchange, because it
> >>
> >>doesn't speak SMTP
> >>
> >>>or not correctly? What is the matter? Is that
> >>
> >>true? But that's not
> >>
> >>>really the question... could somebody point me to
> >>
> >>some documents where
> >>
> >>>I could find out, what has to be done to make it
> >>
> >>work?
> >>
> >>I do not see what he means by not speaking 

Re: [PHP] Re: mail() function & exchange

2003-06-12 Thread Diana
Hi,
my company set their server up not to talk SMTP
(disabled all --> that guy told me), and my tries to
connect or talk to any of their Exchange servers
failed :( so he must be true. Got onto their NT
servers though ;)
All the company uses Outlook & Exchange, & they use
mapi to talk to each other. If a manager can`t be in
the network, he`s connected via VPN & uses Outlook as
well. They`ve got a trust relationship between their
NT servers & the Exchange ones, & lots of domains
joined. 
As I said, I don`t have a clue of Exchange so correct
me if something sounds strange. 
To your suggestions: of course that would be easy for
me to tell them to set up a new box for me. They`ll do
that. But who likes the easy way ;)?
No, just my curiosity, maybe someone knows how the
protocol or whatever these M$ servers use is working &
I could try to implement that. Would make my project
more portable inside the company (They plan to use it
on other sites as well), so they wouldn`t have
problems with setting up separate Internal
Mailsweepers everytime :).

Can you tellme more about :
> You'd be fine using SMTP on a connector server. It
> will relay the
> mail to the appropriate mailbox server 
is that working even if SMTP is not enabled? The guy
told me that SMTP is not enabled by default on
Exchange servers and they didn`t change that! (that`s
the reason for me to ask how that system works in the
wholehow does outlook send the mail to the
exchange server? Could it be that all the users just
access something like a directory on the exchange
server when starting their outlook (not a local
program! & not working when the exchange server
crashed ;)). Maybe that`s the LDAP part? 
Anyone enlighten me please..

by the way, a lot of people ask these questions
see here

http://www.phpbuilder.com/mail/php3-list/199908/0344.php

http://www.linuxsa.org.au/mailing-list/2000-07/954.html

http://www.faqts.com/knowledge_base/view.phtml/aid/13043/fid/21


> 
> I can't comment on how your company's Exchange
> servers are
> configured, but they absolutely *can* talk SMTP. We
> are using a
> web-based application that sends email notifications
> through our
> internal Exchange servers.
> 
> Now, they can be set up with SMTP turned off, or so
> that only certain
> other hosts can relay through them (send mail), and
> that might be
> what he's talking about when he says the
> "authenticated list". I
> believe it's simply a list of hosts that are allowed
> to relay through
> the Exchange SMTP server.
> 
> You'd be fine using SMTP on a connector server. It
> will relay the
> mail to the appropriate mailbox server (assuming
> they've separate the
> functions). 
> 
> Out of curiosity, why not give them the IP address
> and let them add
> the host to the authenticated sender list, as he
> offered? Or did I
> miss a part of the converation (very possible).
> 
> 
> > 


__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

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



[PHP] mail from

2007-10-25 Thread Diana
in my php.ini, I have this set
sendmail_from = [EMAIL PROTECTED]

yet when I do this command :("[EMAIL PROTECTED]","TEST 
MAIL","TESTING MAIL");
I get this message Warning: mail() [function.mail]: "sendmail_from" not set 
in php.ini or custom "From:" header missing in 
C:\Inetpub\wwwroot\intranet\test.php on line 4
-- 
Diana Castillo
Tsanalytics S.A.
Tel: 34 913 595 436
Fax: 34 913 595 439
Mov: 34 609 954 536
[EMAIL PROTECTED]
www.tsanalytics.com 

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



[PHP] cant send mail

2007-10-25 Thread Diana
Using windows XP, when I try to send mail using 4 parameters, I get this :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to
relay for [EMAIL PROTECTED] in C:\Inetpub\wwwroot\intranet\test.php
on line 9



-- 
Diana Castillo
Tsanalytics S.A.
Tel: 34 913 595 436
Fax: 34 913 595 439
Mov: 34 609 954 536
[EMAIL PROTECTED]
www.tsanalytics.com 

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



[PHP] SMTP unable to relay

2007-10-25 Thread Diana
I have tried settiing my php.ini to
SMTP = localhost
as well as using the SMTP of my regular mail, and I keep on getting this.
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to 
relay for [EMAIL PROTECTED] in C:\Inetpub\wwwroot\intranet\test.php 
on line 11

-- 
Diana Castillo
Tsanalytics S.A.
Tel: 34 913 595 436
Fax: 34 913 595 439
Mov: 34 609 954 536
[EMAIL PROTECTED]
www.tsanalytics.com 

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



[PHP] how to restart php

2007-10-25 Thread Diana
How can I restart php so it takes changes in my php.ini without having to 
reboot my machine?
I have windows XP

-- 
Diana Castillo
Tsanalytics S.A.
Tel: 34 913 595 436
Fax: 34 913 595 439
Mov: 34 609 954 536
[EMAIL PROTECTED]
www.tsanalytics.com 

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



[PHP] SMTP

2007-10-25 Thread Diana

I dont know what I did but now I get this message Failed to connect to 
mailserver at "localhost" port 25, verify your "SMTP"

-- 
Diana Castillo
Tsanalytics S.A.
Tel: 34 913 595 436
Fax: 34 913 595 439
Mov: 34 609 954 536
[EMAIL PROTECTED]
www.tsanalytics.com 

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



[PHP] cant send mail

2007-10-26 Thread Diana

The problem is I am the mail server administrator also.  This is a small
company of 4 .


-- 
Diana Castillo
Tsanalytics S.A.
Tel: 34 913 595 436
Fax: 34 913 595 439
Mov: 34 609 954 536
[EMAIL PROTECTED]
www.tsanalytics.com 

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



[PHP] help with ming library

2007-08-10 Thread Diana

How do I install the ming library on windows??
I copied the php_ming.dll that I had on another computer and enabled this 
line in php.ini extension=php_ming.dll
but I still get that error Call to undefined function Ming_setScale() 


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



[PHP] run query

2002-12-10 Thread Diana Castillo
After I run a query lik this,
$db->query($sql);

what is the quickest way to find out how many records result? Without having
to loop through them all?

Thank you ,
Diana



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




[PHP] number of records

2002-12-10 Thread Diana Castillo

After I run a query lik this,
$db->query($sql);

what is the quickest way to find out how many records result? Without having
to loop through them all?

Thank you ,
Diana




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




[PHP] date part

2002-12-19 Thread Diana Castillo
How can I get a string containing the month part of a date the user types
in?
e.g. if they type in "06/07/200" I want to get "06"

thanks,
diana



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




[PHP] validate date

2002-12-19 Thread Diana Castillo
If a user inputs a date into a form, what function can I use to validate
that he put in a valid date?
I want to use checkdate but that needs the date split up into day, month
year.
Anyone have an easy way of doing this?
Thanks,
Diana




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




[PHP] inserting date

2003-01-22 Thread Diana Castillo

When I insert a date into Mysql it has to be in year/month/day format or
else it wont go in right.
how do I convert my date variable which is in month /day /year format into
year/month/day format?

--
Productos de salud:
http://www.nvtechnologies.com/hgh



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




[PHP] post xml

2003-02-27 Thread Diana Castillo
I am sending an xml request as part of the url using urlencode to encode my
xml.  It doesnt work like that so the server that is receiving it doesnt
seem to like the data in the query string.
However, if I send it from a form using the method post then it works fine.
Is there a way to send it by method post but without having to use a form?
Thank you




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



[PHP] http_post

2003-02-28 Thread Diana Castillo
Hi , I am trying the following code but get no response from the server, can
someone tell me what I am doing wrong? thank you.
 "obese bob", "age" => "20")
//  );

$urlencoded = "";
while (list($key,$value) = each($vars))
$urlencoded.= urlencode($key) . "=" . urlencode($value) . "&";
$urlencoded = substr($urlencoded,0,-1);
$content_length = strlen($urlencoded);
$headers = "POST $url HTTP/1.1
Accept:  text/plain, text/html, text/xml, image/gif, image/jpeg,
image/png, image/bmp
Accept-Charset: UTF-8
Accept-Language: en
Content-Length: $content_length
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
Host:  $server
User-Agent: Panasonic-GAD67/1.0 UP.Browser/5.0.3.5 (GUI)
Connection: Keep-Alive

";
$fp = fsockopen($server, $port, $errno, $errstr);
if (!$fp) {
return false;
}
fputs($fp, $headers);
fputs($fp, $urlencoded);

$ret = "";
while (!feof($fp))
$ret.= fgets($fp, 1024);
fclose($fp);
return $ret;
}

$request="ESP1";

http_post("195.57.250.36",80,"/barceloDS/interface/xml/",array("xml"
=>$request));
?>



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



[PHP] http_post

2003-02-28 Thread Diana Castillo
I also tried the following code and get no response, can anyone tell me what
I did wrong?
set_port("8080");
#
#Set the filename of the URI you wish topost to. see also
set_action()
#ie.
#
# set_action(string ACTION)
#Returns true on success.
#$a->set_action("http://www.somehost.org:8080/incoming.php3";);
# set_enctype(string ENCTYPE)
#"application/x-www-form-urlencoded" or "multipart/form-data"
#ie.
#
# set_element(string NAME, string VALUE)
#Returns true on success.
#$a->set_element("username","John Doe");
#
#Set or update a number of name/value pairs to be posted
#ie.
#  "password" => "dead-ringer",
#
# set_timeout(integer TIMEOUT)
#when posting. minimum value of 1 second.
#ie.
#
#Show the current internal state of an instance, for debugging.
#ie.
#
# send(boolean DISPLAY)
#can be echoed by setting DISPLAY to a true value.
#on failure.
#$a->send(1);


class http_post
{
   function http_post(){
   $this->_method="post";
   $this->_server="127.0.0.1";
   $this->_file="\\";
   $this->_port="80";
   $this->_enctype="application/x-www-form-urlencoded";
   $this->_element=array();
   $this->_timeout=20;
   }

   function set_server($newServer=""){
   if(strlen($newServer)<1)$newServer=$HTTP_HOST;
   $this->_server=$newServer;
   return 1;
   }

   function set_port($newPort="80"){
   $newPort=intval($newPort);
   if($newPort < 0 || $newPort > 65535)$newPort=80;
   $this->_port=$newPort;
   return 1;
   }

   function set_file($newFile="\\"){
   $this->_file=$newFile;
   return 1;
   }

   function set_action($newAction=""){
   $pat="^((http://){1}([^:/]{0,}){1}(:([0-9]{1,})){0,1}){0,1}(.*)";

   if(eregi($pat,$newAction,$sub)){
   if(strlen($sub[3])>0)$this->_server=$sub[3];
   if(strlen($sub[5])>0)$this->_port=$sub[5];
   $this->_file=$sub[6];
   return 1;
   }
   return 0;
   }

   function set_enctype($newEnctype="application/x-www-form-urlencoded"){
   if($newEnctype != "application/x-www-form-urlencoded" &&
   $newEnctype != "multipart/form-data"){
   $newEnctype="application/x-www-form-urlencoded";
   }
   $this->_enctype=$newEnctype;
   return 1;
   }

   function set_element($key="",$val=""){
   if(is_array($key)){
   $len=sizeof($key);
   reset($key);
   for($i=0;$i<$len;$i++){
   $cur=each($key);
   $k=$cur["key"];
   $v=$cur["value"];
   $this->_element[$k]=$v;
   }
   }
   else{
   if(strlen($key)>0)$this->_element[$key]=$val;
   }
   return 1;
   }

   function set_timeout($newTimeout=20){
   $newTimeout=intval($newTimeout);
   if($newTimeout<1)$newTimeout=1;
   $this->_timeout=$newTimeout;
   return 1;
   }

   function show_post(){
   $str="";
   $str.="Action:".$this->_action."";
   $str.="Server:".$this->_server."";
   $str.="Port:".$this->_port."";
   $str.="File:".$this->_file."";
   $str.="Enctype:".$this->_enctype."";

   echo $str;

   $len=sizeof($this->_element);
   reset($this->_element);
   for($i=0;$i<$len;$i++){
   $cur=each($this->_element);
   $key=$cur["key"];
   $val=$cur["value"];
   echo"Field:$key = $val\n";
   }
   return 1;
   }

   function send($display=0){
   // open socket to server
   $errno=$errstr=$retstr="";
   $sk = fsockopen($this->_server,
   $this->_port,
   &$errno,
   &$errstr,
   $this->_timeout
   );
   if(!$sk){
   return 0;
   }
   else{
   $boundary="".md5(uniqid(rand()))."";
   $message=$this->_get_message($boundary);
   $str="";
   $str.=strtoupper($this->_method)." ";
   $str.=$this->_file." HTTP/1.0 \r\n";
   $str.="Referer: \r\n";
   $str.="User-Agent: php-HTTP_POST/1.0 \r\n";
   $str.="Host: ".$this->_server."\r\n";

   $str.="Content-type: ".$this->_enctype;
   if($this->_enctype=="multipart/form-data"){
   $str.="; boundary=".$boundary;
   }
   $str.=" \r\n";

   $str.="Content-length: ".strlen($message)."\r\n\r\n";
   $str.=$message;

   fputs($sk,$str);

   while(!feof($sk)){
   $resp=fgets($sk,80);
   $retstr.=$resp;
   if($display)echo $resp;
   }

   fclose($sk);
   return $retstr;
   }
   }

   function _get_message($boundary=""){
   $retstr="";

   $len=sizeof($this->_element);
   reset($this->_element);

   $switch=($this->_enctype=="multipart/form-data")?0:1;

   for($i=0;$i<$len;$i++){
   $cur=each($this->_element);
   $key=$cur["key"];
   $val=$cur["va

[PHP] posting from php

2003-02-28 Thread Diana Castillo
I found an excellent article and explanation
http://zend.com/zend/spotlight/mimocsumissions.php



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



[PHP] strip http headers

2003-02-28 Thread Diana Castillo
is there any predefined procedure to strip http headers from a response?



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



[PHP] XML Question

2003-03-03 Thread Diana Castillo

what does "harvest" mean? what would the function "harvest" do?



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



[PHP] array question

2003-03-10 Thread Diana Castillo
If I sort an array, and now the keys are not in numerical order, how can I
get the key of the first element?
If I do array_shift I get the first element but I want that key.
Thanks,
Diana



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



[PHP] active x like

2003-03-10 Thread Diana Castillo
I am using php to send an xml request, but the people on the side that
receives the xml says they can only receive from activex generated xml (with
code similar to below)

Does anyone know how to generate the xml from php so it comes out exactly
like it does from this active x object?

var s;

var url = "http://www.tourico-demo.com/xmlserver.asp";;

var xmlHttp = new ActiveXObject ("Microsoft.XMLHTTP");

s = "OP_GET_CUSTOMERS";

s += "" + lastName + "";

s += "" + firstName + "";

xmlHttp.open("POST", url, false);

xmlHttp.send(s);

var xmlDoc = xmlHttp.responseXML;

var root = xmlDoc.documentElement

if (root)

node = root.selectSingleNode("./opCode");

if (node) {

...

}




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



[PHP] arrray

2003-03-10 Thread Diana Castillo
Is the only way to keep an array alive between one class and another to
store it as a session array?



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



[PHP] pop top off a multi dimensional array

2003-03-11 Thread Diana Castillo
If I have a multi dimension array like this:
Array ( [provider] => Array ( [0] => 3 [1] => 2 [2] => 4 [3] => 1 )
[priority] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )
how do I take off the top elements so I will only have three providers and
three priorities left?
If I do array_shift, it takes off all of the providers.




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



[PHP] Re: pop top off a multi dimensional array

2003-03-11 Thread Diana Castillo
I found the answer:
$w = array_shift ($_SESSION["providerarray"]["provider"]);
 $w = array_shift ($_SESSION["providerarray"]["priority"]);


"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I have a multi dimension array like this:
> Array ( [provider] => Array ( [0] => 3 [1] => 2 [2] => 4 [3] => 1 )
> [priority] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )
> how do I take off the top elements so I will only have three providers and
> three priorities left?
> If I do array_shift, it takes off all of the providers.
>
>
>



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



[PHP] date

2003-03-14 Thread Diana Castillo
If I have a date in this format :19-MAR-03 how do I get the next date (the
date plus 1)?



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



[PHP] capturing reloads

2003-07-30 Thread Diana Castillo
anyone know how to catch if someone has reloaded a page?



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



[PHP] attach

2003-08-04 Thread Diana Castillo
Hi,
Can you tell me how to attach files when using the php mail function?
Thanks,
Diaan



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



[PHP] installing cUrl

2003-03-25 Thread Diana Castillo
Hi, I am running windows XP and I am looking for a way to install Curl, cant
seem to find a version that I can easily install just by clicking on
Setup.exe , does anyone know how to install it on XP?



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



[PHP] curl

2003-03-25 Thread Diana Castillo
How can I tell if I have successfully installed curl on my windows XP
machine?
What is the syntax for sending a test curl command?
I tried this and got a syntax error:
curl http://www.netscape.com/;




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



[PHP] getimagesize

2003-03-26 Thread Diana Castillo
anyway to not get an error when doing getimagesize if you get this response?
HTTP request failed! HTTP/1.1 404 Not Found



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



[PHP] version

2003-03-27 Thread Diana Castillo
How can I tell which version of php I have? I didnt see it with phpinfo()



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



Re: [PHP] getimagesize

2003-03-27 Thread Diana Castillo
no that doesnt work, anything else?
"Dan Rossi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> @getimagesize ?
>
> -Original Message-
> From: Diana Castillo [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 27, 2003 5:04 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] getimagesize
>
>
> anyway to not get an error when doing getimagesize if you get this
response?
> HTTP request failed! HTTP/1.1 404 Not Found
>
>
>
> --
> 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] errors

2003-03-27 Thread Diana Castillo
How can I skip an error?  For instance in ASP it would be "on error" and
then you would skip the next error.
I want to be able to skip when I get the 404 File not found error in a
specific part when I am using getimagesize.
Thanks,
Diana



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



[PHP] parsing

2003-03-28 Thread Diana Castillo
Hi, when I am parsing an XML document, it doesnt parse paragraphs that have
line feeds correctly.  For instance, if the tag is
line 1
line2
line3

it loses everything before line 3 .  seems to take the line feeds as a new
node or something.
does anyone have any tips to get it to ignore the line feeds?



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



[PHP] line feeds

2003-03-28 Thread Diana Castillo
How can I remove all line feeds from a document?



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



[PHP] month

2003-04-01 Thread Diana Castillo
how do you get just the month (in numeric format ) of a specific date. (not
today)
same for day and year.  The date is in -dd-mm format to start with.
thanks.



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



[PHP] @getimagesize

2003-04-03 Thread Diana Castillo
even though I use a @getimagesize , I still get the following Warning when the image 
is not on the server.  I need to somehow not have the warning come out when there is 
no image there.

Warning: getimagesize(http://www.hotelresb2b.com/planos/PLHAHC019330.GIF) 
[function.getimagesize]: failed to create stream: HTTP request failed! HTTP/1.1 404 
Not Found at c:\inetpub\wwwroot\web\site\ReservationManager.php line 190.

I am using PHP Version 4.3.1
Thank you , Diana 


Re: [PHP] @getimagesize

2003-04-03 Thread Diana Castillo
according to the documentation on  php.net , This function will not work on
remote files; the file to be examined must be accessible via the server's
filesystem.

so it wont work for http

"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Check if file exists with file_exists().
>
>
> Niklas
>
>
> -Original Message-
> From: Diana Castillo [mailto:[EMAIL PROTECTED]
> Sent: 3. huhtikuuta 2003 11:42
> To: [EMAIL PROTECTED]
> Subject: [PHP] @getimagesize
>
>
> even though I use a @getimagesize , I still get the following Warning
> when the image is not on the server.  I need to somehow not have the
> warning come out when there is no image there.
>
> Warning:
> getimagesize(http://www.hotelresb2b.com/planos/PLHAHC019330.GIF)
> [function.getimagesize]: failed to create stream: HTTP request failed!
> HTTP/1.1 404 Not Found at
> c:\inetpub\wwwroot\web\site\ReservationManager.php line 190.
>
> I am using PHP Version 4.3.1
> Thank you , Diana
>
> ###
> This message has been scanned by F-Secure Anti-Virus for Internet Mail.
> For more information, connect to http://www.F-Secure.com/



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



[PHP] on-line

2003-06-03 Thread Diana Castillo
en línea da errores el funcionamiento de esta pagina , pruébalo también en
netscape.
http://res.interhotel.com/reservas/diana/site/admin/ProviderPriority.php
gracias,
diana



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



[PHP] @getimagesize

2003-06-03 Thread Diana Castillo
I use @getimagesize to resize pictures that I get from a url which comes
from a database which is always changing.  The problem is that sometimes the
url does not contain the picture is is supposed to , and then I get the
following error - I can't seem to get rid of this error, does anyone know
how to capture the error so it doesnt come out in a message like this?
getimagesize(http://www.hotelresb2b.com/images/hoteles/P1KYHC014833.JPG)
[function.getimagesize]: failed to create stream: HTTP request failed!
HTTP/1.1 404 Not Found at ReservationManager.php line 299.




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



[PHP] sql question

2003-06-04 Thread Diana Castillo
If I have a date in unix format in a numeric field in my table (Mysql) and I
want to compare it to a date which is in unixformat also, will the query
work like this?

"SELECT from tarifs where unix_from_date<=".$dateinunixformat




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



Re: [PHP] @getimagesize

2003-06-04 Thread Diana Castillo
THANKS FOR all your help, I found out it was a custom error handling program
that we had that was putting out that error.

"John Coggeshall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Are you using PHP 4.3.2? Try upgrading :)
>
> John
>
> On Tue, 2003-06-03 at 05:23, Diana Castillo wrote:
> > I use @getimagesize to resize pictures that I get from a url which comes
> > from a database which is always changing.  The problem is that sometimes
the
> > url does not contain the picture is is supposed to , and then I get the
> > following error - I can't seem to get rid of this error, does anyone
know
> > how to capture the error so it doesnt come out in a message like this?
> > getimagesize(http://www.hotelresb2b.com/images/hoteles/P1KYHC014833.JPG)
> > [function.getimagesize]: failed to create stream: HTTP request failed!
> > HTTP/1.1 404 Not Found at ReservationManager.php line 299.
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> --
> -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
> John Coggeshall
> john at coggeshall dot org http://www.coggeshall.org/
> -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-



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



[PHP] unix time stamp to readable date

2003-06-05 Thread Diana Castillo
I know this is a stupid question but I am confused,
how do I convert a unix timestamp to a readable date with php?



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



[PHP] cache

2003-06-11 Thread Diana Castillo
what code can I put at the begining of a php page so that the result from
the cache is never shown ?



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



[PHP] array

2003-06-12 Thread Diana Castillo
If I write a code like this,
$room_type=array();
$room_type[0][0]=4;
echo "value in array is ".$room_type[0][0];
yet I dont get any results out, what did i do wrong?



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



Re: [PHP] array

2003-06-12 Thread Diana Castillo
you ´re right, I had used the same variable name as something else in
between ! thanks.
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Diana Castillo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 5:58 PM
Subject: Re: [PHP] array


> Nothing as far as I can tell.  It works fine for me.
>
> Diana Castillo wrote:
>
> >If I write a code like this,
> >$room_type=array();
> >$room_type[0][0]=4;
> >echo "value in array is ".$room_type[0][0];
> >yet I dont get any results out, what did i do wrong?
> >
> >
> >
> >
> >
>
> --
> 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.
>
>



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



[PHP] XML

2003-06-13 Thread Diana Castillo
does anyone know if there are any advantages/disadvantages as far as
performance to using one of the following methods for gettting xml
responses?
1) get
2)normal post with php
3)curl



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



[PHP] speed on XML files

2003-06-16 Thread Diana Castillo
I have problems receiving large xml files, they take too long, does anyone
have a solution?
thank you,
Diana



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



[PHP] Re: speed on XML files

2003-06-16 Thread Diana Castillo
I send an xml request to a remote server and get back the xml response.

"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Receiving from where ?
>
> Cheers,
> Catalin
>
>
> "Diana Castillo" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have problems receiving large xml files, they take too long, does
anyone
> > have a solution?
> > thank you,
> > Diana
> >
> >
>
>



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



[PHP] fopen on foto

2003-06-16 Thread Diana Castillo
Hi, when I do an fopen on this file I get an error, however the jpg is
there, why do I get this error?
http://www.touricoholidays.com/pictures/miami south beach/ritz plaza -
front.jpg

this is the error I get: failed to open stream: HTTP request failed!
HTTP/1.1 400 Bad Request at
c:\inetpub\wwwroot\web\site\ReservationManager.php line 314



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



[PHP] sorting an array

2003-06-17 Thread Diana Castillo
Hi , I am trying to sort this:
array[numrooms] => Array ( [3] => 2 [2] => 5 [1] => 1 )
I want to get a result like this:
2=>5
3=>2
1=>1
( I want the keys to stay attached to the results)

I used this to sort it :
 array_multisort ($request_array['numrooms'], SORT_NUMERIC, SORT_DESC);

but instead I get this:
 [numrooms] => Array ( [0] => 5 [1] => 2 [2] => 1 )

any suggestionis?



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



[PHP] go through array

2003-06-17 Thread Diana Castillo
I have this array:
Array ( [2] => 6 [1] => 2 [3] => 2 )
how do I go through it and get the key and the value in this order?





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



Re: [PHP] go through array

2003-06-18 Thread Diana Castillo
thanks, now if I want to take off the first element how can I do it and also
get the key back as well ? If I do an array shift that resets the keys and I
dont want to do that.


"David Nicholson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,


This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 17:43,
lines prefixed by '>' were originally written by you.

> I have this array:
> Array ( [2] => 6 [1] => 2 [3] => 2 )
> how do I go through it and get the key and the value in this order?

Use the foreach construct, it is documented at:
http://uk2.php.net/foreach

David.

--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/

  Professional Web Development by David Nicholson
http://www.djnicholson.com/

QuizSender.com - How well do your friends actually know you?
 http://www.quizsender.com/
(developed entirely in PHP)



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



[PHP] array_shift

2003-06-18 Thread Diana Castillo
how can I do an array shift without reseting the keys?
how can I get the key of the first element removed with an array _shift?
thanks.



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



[PHP] Re: array_shift

2003-06-18 Thread Diana Castillo
never mind I found the answer, use key(arrayname) to get the key and
next(arrayname) to move to next element without reseting the keys.

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> how can I do an array shift without reseting the keys?
> how can I get the key of the first element removed with an array _shift?
> thanks.
>
>



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



[PHP] export data to text file

2002-09-28 Thread Diana Castillo

Hi, I want to export some fields on a regular basis from a table to a text
file, preferable to the users local computer. I tried writing to a file with
fopen but I get "permission denied" when I try to open it for writing.
What is the best solution?
Thanks,
Diana

--
See my web page:
http://www.netrox.net/%7Ecastillo/



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




Re: [PHP] export data to text file

2002-09-28 Thread Diana Castillo

okay, how can I write a file in csv format either to the browser or to the
server? If I use the Mysqladmin page I get all the fields, I just want some
of them.
Diana

--
See my web page:
http://www.netrox.net/%7Ecastillo/
"Todd Pasley" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> If what you mean is... you want to be able to write to a file on the
> browsers computer, then please let us know if you find a way.
>
> To my knowledge, there is not any intended way to do this... you wouldn't
> want any old website to be able to manipulate your hard drive would you?
>
> It might be possible if you write an applet, otherwise, pretty much the
only
> thing you should be able to write to the hard drive is a cookie.
>
> HTH
>
> Todd.
>
> > -Original Message-
> > From: Diana Castillo [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, 29 September 2002 12:03 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] export data to text file
> >
>  8<---
>



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




[PHP] session variables

2003-08-29 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart
my application, the session variable which I set comes back suddenly, but
only when I call a certain class .

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



[PHP] session variables

2003-09-01 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart
my application, the session variable which I set comes back suddenly, but
only when I call a certain class .
As far as I know the session variables should disappear when I close the
browser.  Why would they suddenly come back?
thank you

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



[PHP] session.cookie_domain

2003-09-01 Thread Diana Castillo

I am using
ini_set("session.cookie_domain",".interhotel.com");
so that session variables wont get lost between a domain called
www.interhotel.com
and res.interhotel.com but they still get lost !
does this function work perfectly, or am I doign something wrong?



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



[PHP] convert "\" to "/"

2003-10-08 Thread Diana Castillo
I am receiving some data in which the sender has mistakenly sent urls with
"\" instead of "/" to separate directories. e.g.
http://www.anysite.com\page.htm

I need to convert this string to
http://www.anysite.com/page.htm but str replace ("\","/",$var) doesnt work.
any ideas as to how to convert it.

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



[PHP] pad numbers

2003-10-10 Thread Diana Castillo
is there a function to convert a number that has less than two digits into a
number with a leading zero?
for instance, to convert a "5" to "05" but to leave a "11" as "11"
thanks,
Diana

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



[PHP] date for mysql

2003-10-17 Thread Diana Castillo
how can I format the current date and time so that I can insert it into a
mysql table with an insert query?

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



[PHP] similar_text

2003-10-21 Thread Diana Castillo
does any one have an example of a function to search a database for similar
names and display them if the user inputs a name that is not found?

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



[PHP] convert string to number

2003-11-17 Thread Diana Castillo
what is the easiest way to convert a string like this "1,300.99" to a
number?

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



[PHP] time out for mysql_connect

2003-11-21 Thread Diana Castillo
Is there anyway to set a time out on this command:
mysql_connect($host, $UN, $PW);

so that if it can´t connect after a certain amount of time, it returns an
error and the program continues?

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



[PHP] _ENV

2004-01-09 Thread Diana Castillo
Can someone tell me the name of the environmental variable that tells you
the path that you are in?

--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] limit mysql connections

2004-01-09 Thread Diana Castillo
Is there any way to limit the connections so that this error never happens?
Warning: mysql_connect(): Too many connections at
/home/local/global/php/libraries/dblayer_mysql.php line 14.

--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] date fiedl

2004-01-19 Thread Diana Castillo
Does anyone know if there is any speed advantage to saving a date as a unix
timestamp or a numeric field instead of a date field? (in Mysql)
thanks,

--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] unsupported operand types

2004-01-19 Thread Diana Castillo
why do I get this error?
Fatal error: Unsupported operand types in c:\program files\apache
group\apache\htdocs\web\usr\local\global\php\providers\interfaces\TouricoTes
tInterface.php on line 827
the code is as follows:
$price=0;
foreach ($price_data as $price) {
$room_price=$price->getAttribute("value");
$price=$price+$room_price;
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] session variables

2004-01-22 Thread Diana Castillo
If you store session variables , but the user has session cookies disabled,
is there any way to recuperate those session variables?


--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] passing session ID

2004-01-22 Thread Diana Castillo
If I want to store a session id in a database, how would I do it , like
this?
$session_id=SID ;  ?
and then if I want to retrieve this session id and get all of the info back
that goes with this session id, I would say
session_start()
and then what?
thanks

--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] replacing first occurence

2002-04-24 Thread Diana Castillo

What function can I use to replace just the first occurence of a "," in a
string?
Thank you



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




[PHP] Mail server

2002-05-05 Thread Diana Castillo

Does anyone know of a free mail server to install on a  linux server that
works better than fmail?



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




[PHP] mail function

2002-05-05 Thread Diana Castillo

Hi, if I use the mail function, as in :
mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
The mail comes from "Webserver"  How can I change the from ?





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




[PHP] Upload picture files

2002-05-10 Thread Diana Castillo

What utility or function can I use to upload pictures from the users
computer in a form ?



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




[PHP] can't upload files

2002-05-15 Thread Diana Castillo


I am using this script: to upload a picture file and I get the error below:
"Unable to create 'hgh6.gif': Permission denied in
/home/vhtdocs/archipro/do_upload.php on line 13
Couldn't copy the file!"  - What am I doing wrong



File to Upload:





upload file:


Warning: Unable to create 'hgh6.gif': Permission denied in
/home/vhtdocs/archipro/do_upload.php on line 13
Couldn't copy the file!



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




[PHP] Tellwhich browser

2002-05-15 Thread Diana Castillo

What is the code to tell whether the user is on IE or Netscape?



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




[PHP] passing array of variables in a query string

2002-03-01 Thread Diana Castillo

I was wondering if someone could help me
with this:
 what I need to know is how to pick up an array of variables from
 a query string such as:
 http://www.archipro.com/test.php?state=AB&state=BC
 If I use $state, I get only the last one.




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




[PHP] Non printable page

2002-03-01 Thread Diana Castillo

Is there any way tomake a page that cannot be printed??



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




[PHP] need curl

2004-09-14 Thread Diana Castillo
I need the latest version of curl , or at least version 7.10.5 , but the 
last version of php I have has libcurl 7.10.2, how can I upgrade CURL 
without upgrading php ? (Version 5.0 of php doesnt work)


-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] Re: need curl

2004-09-14 Thread Diana Castillo
I have windows 2000.  And the reason I need that version of  CURL to work is 
I need to use this:
curl_setopt($curl_interface, CURLOPT_ENCODING, "gzip");

"Manuel Lemos" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hello,
>
> On 09/14/2004 11:46 AM, Diana Castillo wrote:
>> I need the latest version of curl , or at least version 7.10.5 , but the 
>> last version of php I have has libcurl 7.10.2, how can I upgrade CURL 
>> without upgrading php ? (Version 5.0 of php doesnt work)
>
> Depending on your system, it may be possible to upgrade Curl without 
> upgrading PHP itself.
>
> OTOH, if you tell what you would like to do with Curl, it may be possible 
> to suggest an alternative solution that does not require upgrading curl.
>
> -- 
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html 

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



[PHP] replace accents

2004-09-14 Thread Diana Castillo
Anyone know of any function to replace letters with accents with just the 
regular letter, for instance replace á with a,
ç with c, ñ with n ?


-- 
Diana Castillo

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



[PHP] mailing to hotmail

2004-09-24 Thread Diana Castillo
for some reasons my mails I send to hotmail are never arriving,  (using 
mail($email,$subject_line,$msg,$headers);)
anyone ever heard of this?


-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] alphabetic comparison

2004-09-30 Thread Diana Castillo
Is there any way you can use the numerical comparisons < or > to see if one 
word comes first alphabetically to another ?
what can I use to see if
"oranges" comes after or before "apples" alphabetically for instance.

-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] MySQL+PHP

2010-07-21 Thread Diana Wu
Dear all,


I'm a newbie, need your help.
Now I am building a databasea using MySQL and PHP, I want to put two tables
in one searching, the two are in one database.

$query = "SELECT SQL_CALC_FOUND_ROWS * FROM table1 WHERE ".implode(" AND
", $data);
$number = "SELECT FOUND_ROWS()";
How can I change this if I want to put table2 in it.

Thank you.


Best wishes,

diana
2010-7-21


[PHP] FOPEN

2005-02-17 Thread Diana Castillo
   How can I read the contents of a web page that uses basic authentication? 
I want to use fopen() but dont know how to do this and also send the 
username and password

-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] sentence case

2005-02-23 Thread Diana Castillo
with php,
HOW CAN I CONVERT SENTENCES LIKE THIS . TO BE UPPER AND LOWER CASE
to become like this :
How can I convert sentences like this. To be upper and lower case.


-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] what does this mean?

2005-02-25 Thread Diana Castillo

on which page of php.net can I find out what this code does?
$a  = $b? $a :"dian";
-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] getting text with strange encodng

2005-03-17 Thread Diana Castillo
Does anyone know what kind of string encoding this is :
®®
mA®
and how can I decode this?

-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



Re: [PHP] getting text with strange encodng

2005-03-18 Thread Diana Castillo
no, its not html entity, it doesnt have a semicolon, its exactly as I wrote 
it.
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Diana Castillo wrote:
>> Does anyone know what kind of string encoding this is :
>> ®®
>> mA®
>> and how can I decode this?
>
> That looks almost like an HTML entity:
>
> ®
>
> Assuming that's what it is, and you just left off the semicolon, you can 
> decode it with this:
>
> html_entity_decode()
>
> Hope that helps.
>
> Chris
>
> -- 
> Chris Shiflett
> Brain Bulb, The PHP Consultancy
> http://brainbulb.com/ 

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



[PHP] Re: getting text with strange encodng

2005-03-18 Thread Diana Castillo
from a text description provided via an xml
"Jim Plush" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Where did the string come from?
>
>
>
> Jim
> PHP WebBlog =
> http://www.litfuel.net/plush/
>
>
> Diana Castillo wrote:
>> Does anyone know what kind of string encoding this is :
>> ®®
>> mA®
>> and how can I decode this?
>> 

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



[PHP] check for alphanumeric characters

2005-04-29 Thread Diana Castillo
what kind of a function can I use that will tell me whether a variable is 
alphanumeric (that is has only characters A-Z or 1-9 )?


-- 
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] Ñ

2004-05-07 Thread Diana Castillo
we are recieving  Ñ as Ñ
¿what type of code is that?
Is there a function in php to convert it?

--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] remove soap header

2004-05-05 Thread Diana Castillo
Any ideas how to remove the soap header from the xml response?

--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] count number of occurences of character in a string

2004-06-08 Thread Diana Castillo
what function can I use to count the number of occurences of a certain
character in a string?

--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



[PHP] <![CDATA[HOTEL AC MALAGA PALACIO]]>

2004-06-09 Thread Diana Castillo

anyone know why my parser is not reading just the internal part of this tag?
Is the cdata in the correct format?
<![CDATA[HOTEL AC MALAGA
PALACIO]]>

--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

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



  1   2   >