php-windows Digest 18 Mar 2004 14:55:56 -0000 Issue 2171

Topics (messages 23176 through 23182):

An old dog, with a new trick..
        23176 by: Felipe Eduardo Ortiz López

Domain name
        23177 by: Sudeep Sarath
        23178 by: DvDmanDT

Expression evaluation - how is it done?
        23179 by: Svensson, B.A.T. (HKG)
        23180 by: DvDmanDT
        23181 by: Svensson, B.A.T. (HKG)

Re: copying MS SQL tables
        23182 by: Gerardo Rojas

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 ---
Bueno, héme aquí, un perro viejo tratando de aprender nuevos trucos.
Comienzo a desarrollar en PHP, con la idea de conectar bases de datos MySQL
y Firebird a las aplicaciones. żMe podrían orientar de por dónde comenzar,
libros, sitios, algo así? Les estaré muy agradecido, y disculpen si comienzo
a hacer preguntas tontas...

Well, I'm here, an old dog trying to learn new tricks. I'm starting to
develop in PHP, having the idea to connect MySQL and Firebord databases to
the aplications. Can anyone lend me a hand to have a good starting, bokks,
sites, something else? I'll be very grateful, and very sorry if I'm starting
with the silly questions...

_________________________________________
Felipe Eduardo Ortiz López,
Consultor.
Tiammat Software.
Yahoo! Messenger: tiammatsoftware
MSN Messenger: [EMAIL PROTECTED]
http://www.prodigyweb.net.mx/tiammat/default.html

--- End Message ---
--- Begin Message ---
Hello,
How to create domain name using PHP. For example once we create an account in 
intranets.com, we get a url as accountName.intranets.com. How this can be done in PHP 
in linux environment.
 
Thanks
John

Yahoo! India Promos:  Win a trip for 2 to Britain. Click here.

--- End Message ---
--- Begin Message ---
Personally, I'd suggest getting mod_l33t, and just modify the config file..
But you'll need a domain name setup which allows for this in that case..
Well, you'll need that anyway so.. Try to find mod_l33t.. Google for like
mod_l33t-1.0.tar.gz...

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Sudeep sarath" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hello,
> How to create domain name using PHP. For example once we create an account
in intranets.com, we get a url as accountName.intranets.com. How this can be
done in PHP in linux environment.
>
> Thanks
> John
>
> Yahoo! India Promos:  Win a trip for 2 to Britain. Click here.

--- End Message ---
--- Begin Message ---
Does PHP uses the same expression evaluation as in C/C++?

This questions also consider expression with function
that returns booleans, typical:


        if (false && my_bool_function())


Will my_bool_function() be evaluated or not in this case?

--- End Message ---
--- Begin Message ---
It's done the lazy way.. If the whole expression can't return true, it's not
nessecary to evaluate the right side of the && operator.. In other words,
my_bool_function will never be called...

See the manual for more..

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"B.A.T. Svensson" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Does PHP uses the same expression evaluation as in C/C++?
>
> This questions also consider expression with function
> that returns booleans, typical:
>
>
> if (false && my_bool_function())
>
>
> Will my_bool_function() be evaluated or not in this case?

--- End Message ---
--- Begin Message ---
I asking because i read through the section about expression, but it
was just wining about that $a == 5 if $a = $b and $b = 5, and other
trivial matters. So if you could point me to the manual section you
are referring to, I would appreciate it.

Anyhow, I take your answer that PHP is doing a left-to-right-hand
evaluation of the expression, and stops when it not needed to
evaluate it further. i.e. in the same way as in C/C++.

Thanks for the answer, that all I need to know (for now:).


        //Anders


On Thu, 2004-03-18 at 13:12, DvDmanDT wrote:
> It's done the lazy way.. If the whole expression can't return true, it's not
> nessecary to evaluate the right side of the && operator.. In other words,
> my_bool_function will never be called...
> 
> See the manual for more..
> 
> -- 
> // DvDmanDT
> MSN: dvdmandt$hotmail.com
> Mail: dvdmandt$telia.com
> "B.A.T. Svensson" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> > Does PHP uses the same expression evaluation as in C/C++?
> >
> > This questions also consider expression with function
> > that returns booleans, typical:
> >
> >
> > if (false && my_bool_function())
> >
> >
> > Will my_bool_function() be evaluated or not in this case?

--- End Message ---
--- Begin Message ---
OK, i'm able to copy over data using bcp, how do I take this file and create a table 
into another remote db server.  It fails on the name (of the table) because it doesn't 
exist yet.

bcp $tablename in $sourcefile $myargs

--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 2:12 PM
To: Gerardo Rojas
Subject: RE: [PHP-WIN] copying MS SQL tables


In the command shell, just type "bcp"and it will output the paramters.

Typical you should run it like this for import (from memory):

bcp <db>..<table> in <input file> -a1000 -b1024 -c -S<servername>
<-P<passwd> -U<user> | -T>  -t\t -r\t
"

like:

bcp mydb..testtable in testdata.txt -a1000 -b1024 -c -S127.0.0.1 -R -r\t
-t\t

a: batch size
b: packet size
c: charchater data (needed if data is a text file)
S: sername
P: passwd
U: user name
T: trusted
t: filed delimiter (\t == tab, char(9))
r: row delimiter (it can be buggy with \n)

The order of the parma does not matter.

To dump data use key word "out" in stead of "in".

-----Original Message-----
From: Gerardo Rojas
To: Svensson, B.A.T. (HKG)
Sent: 17-3-2004 21:00
Subject: RE: [PHP-WIN] copying MS SQL tables

Svensson,

can you provide a quick example of using bcp.  When I run my script i
know what the table will be.  Don't know what parameters are need and in
what order.  It complains about the direction.


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:58 PM
To: 'Frank M. Kromann '
Cc: ''[EMAIL PROTECTED]' '
Subject: RE: [PHP-WIN] copying MS SQL tables


> use the Data Transformation Service (import/export)
[...]
> another. Thats the fastest way to do this.

How many rows is it in the tables you copy?

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

--- End Message ---

Reply via email to