php-windows Digest 19 Mar 2004 09:06:45 -0000 Issue 2172

Topics (messages 23183 through 23192):

Re: copying MS SQL tables
        23183 by: Svensson, B.A.T. (HKG)

Re: An old dog, with a new trick..
        23184 by: jon roig
        23186 by: Justin Patrin

Re: Domain name
        23185 by: jon roig

Re: Expression evaluation - how is it done?
        23187 by: Justin Patrin

OK, ahí voy...
        23188 by: Felipe Eduardo Ortiz López
        23189 by: user.domain.invalid
        23190 by: Svensson, B.A.T. (HKG)
        23192 by: Luis Moreira

php_pspell.dll Help!
        23191 by: Marcus Barici

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 ---
You need isql.exe to create a table on the remote machine if you 
want to do everything in a script, alternatively you can create
the table with php and mssql_query().

On Thu, 2004-03-18 at 15:55, Gerardo Rojas wrote:
> 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?

--- End Message ---
--- Begin Message ---
Hola...

One good thing to check out is ADODB, a database abstraction layer which
lets you query all kinds of different db servers in one, uniform way.

Check it out here:
http://php.weblogs.com/ADODB

        -- jon

-----Original Message-----
From: Felipe Eduardo Ortiz López [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 17, 2004 9:05 PM
To: lPHP and Databases; [EMAIL PROTECTED]; lPHP For Windows; lPHP
Para Todos
Subject: [PHP-WIN] An old dog, with a new trick..


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

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.611 / Virus Database: 391 - Release Date: 3/3/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.611 / Virus Database: 391 - Release Date: 3/3/2004
 

--- End Message ---
--- Begin Message --- If you're just starting out, this is a great time to learn PEAR DB as it can help you a lot in the future. In fact, PEAR is a great place to look for lots of code to do all sorts of things.

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

Felipe eduardo ortiz lópez wrote:
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


--
paperCrane <Justin Patrin>

--- End Message ---
--- Begin Message ---
The simple answer is something like "it depends on what you're trying to
do."

One solution might be to have php make a change to the apache virtual
hosts file and create the appropriate directories on the server.

One method that we use is for a single page being listed as
blahblah.thedomain.com. In that case, we have a custom 404 page which
does all the switching work for us. The page examines the URL that the
user was attempting to visit and swaps out the content based on that.

        -- jon

-------------------
jon roig
web developer
email: [EMAIL PROTECTED]
phone: 888.230.7557

-----Original Message-----
From: Sudeep Sarath [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 18, 2004 2:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Domain name


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.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.611 / Virus Database: 391 - Release Date: 3/3/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.611 / Virus Database: 391 - Release Date: 3/3/2004
 

--- End Message ---
--- Begin Message --- BTW, that's called Short Circuiting.

B.A.T. Svensson wrote:

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?


--
paperCrane <Justin Patrin>

--- End Message ---
--- Begin Message ---
Mi primera pregunta: ¿PHP tiene algún editor o IDE tipo las que tiene HTML?
Clarifico; por ejemplo puedo trabajar con FrontPage, o el editor de textos,
para generar los archivos HTML, ¿existe algo así para PHP?


My first question: Has PHP some editor or IDE kinda HTML has? I'll be clear:
for instance i can work with FrontPage, or text edito to generate the HTML
files, it does exist something similar for PHP?

_________________________________________
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 --- Felipe eduardo ortiz lópez wrote:
Mi primera pregunta: ¿PHP tiene algún editor o IDE tipo las que tiene HTML?
Clarifico; por ejemplo puedo trabajar con FrontPage, o el editor de textos,
para generar los archivos HTML, ¿existe algo así para PHP?


My first question: Has PHP some editor or IDE kinda HTML has? I'll be clear: for instance i can work with FrontPage, or text edito to generate the HTML files, it does exist something similar for PHP?

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

Ammm.. pues mira, si lo que nececitas es un editor hay varios, depende en que plataforma vayas a trabajar.
Linux: Vim, Emacs, nano, etc... (vim y emacs te marcan el codigo)


Windows: PHP Edit, Dreamweaver, etc... (Dream y Edit te marcan el codigo, phpedit tienen algunas funciones ya pre-realizadas nadamas especificas datos.)

y esas son las opciones, si quieres ralizar la web por completo en php en forma facil, como frontpage realiza los html, creo que te va a costar encontrar algo asi ;) nos vemos.
--- End Message ---
--- Begin Message ---
> My first question: Has PHP some editor or IDE kinda HTML has?
> I'll be clear: for instance i can work with FrontPage, or text
> edito to generate the HTML files, it does exist something
> similar for PHP?

Yeah, your fingers.

What you asking for is a auto generator of PHP code, and such
might exist, but I wouldn't know about it, however php is for
people who like to do their own programming of functionality.

--- End Message ---
--- Begin Message ---
PHP scripts are programs, that you can write using almost anyting, starting
with Notepad, providing you know what you are doing.
There is also TEXTPAD, that is a simple text editor, but that can show you
the line numbers, which can be very useful to debug (error in line xxx).
I don't know of editors that generate code automaticaly, but there are a few
that know the syntax for the functions, and that have a sort of "auto
complete", that is to say, if you write

fw

and wait a second, it will show you the functions that start by those
letters, and later on the syntax (parameters, etc).

You can start by using PHPEDIT (I believe it's free) or MACROMEDIA (there'sa
nice one for you) but this one is not freeware, it's expensiveware.

Luis


----- Original Message -----
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
To: "'lPHP For Windows '" <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 2004 6:31 PM
Subject: RE: [PHP-WIN] OK, ahí voy...


> > My first question: Has PHP some editor or IDE kinda HTML has?
> > I'll be clear: for instance i can work with FrontPage, or text
> > edito to generate the HTML files, it does exist something
> > similar for PHP?
>
> Yeah, your fingers.
>
> What you asking for is a auto generator of PHP code, and such
> might exist, but I wouldn't know about it, however php is for
> people who like to do their own programming of functionality.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hello, I have been fighting with this for three days now.  My system is set up with 
the following:

PHP v.4.3.4
c:\windows\system32\aspell-15.dll
c:\windows\system32\pspell-15.dll
c:\windows\system32\php_pspell.dll
(also in the c:\php4\)

aspell-en 3.50 (with dictionaries in
c:\aspell\dict

I am running Windows XP, and Apache v.1.3.

I have confirmed that Aspell is working correctly (by right clicking on a document and 
sending it to the speller.

When I attempt to use php_pspell I get the following error message:

"Warning: PSPELL couldn't open the dictionary. reason: No word lists can be found for 
the language "en". in c:\inetpub\wwwroot\smf\Sources\Subs-Post.php on line 703"

The code is as follows: (be warned I'm can't actually view it right now, so this is 
from memory)

"pspell_new ('en','','','','PSPELL_NORMAL','PSPELL_RUN_TOGETHER');

Is there a setting that I need to tell PHP where to find the dictionaries, or is there 
some hard coded directory that I need to install everything at (PHP, Aspell...)?

Any help would be most thankful!

--- End Message ---

Reply via email to