php-windows Digest 28 Aug 2003 22:17:02 -0000 Issue 1891
Topics (messages 21268 through 21272):
Re: End of Page characters
21268 by: sven
var static
21269 by: Alvaro Martinez
21270 by: Alvaro Martinez
MS SQL query problem
21271 by: Omar
help with building 2 dll's needed
21272 by: Grzegorz Godlewski
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
hi,
good luck in parsing .doc-files!
but if you try your page-break, save the file and view it in a hex-editor,
your page-break is in fact 'x0E'. and hexdec('0E') gives you 14.
hth SVEN
Gerardo Rojas wrote:
> Yes, holding down the ALT key and using the numeric keypad and typing
> 014, does force a page break in MS Word. My question now is how do I
> detect these values in PHP? I want to take an MS Word document and
> parse it with PHP, breaking up each page (in a multiple page MS Word
> document) into a file. These files will eventually turn into a HTML
> files? Any suggestions?
>
> --
> Gerardo S. Rojas
> mailto:[EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Sven Schnitzke [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 26, 2003 2:33 AM
> To: Gerardo Rojas
> Subject: AW: [PHP-WIN] End of Page characters
>
>
> Hi,
> To be precise: in MS Winword
> - \n (ASCII 010) is an unprintable character with no special meaning.
> - ASCII 011 makes up a forced newline within a paragraph
> - \r (ASCII 013) makes up a paragraph break
> - ASCII 014 makes up a page break
>
> Verify by entering these holding down ALT and entering all three
> digits
> of the ASCII code _using the numeric keypad_.
> Set extras->options->display (section unprintable characters)->all to
> show.
>
> Raw textfiles holding these special chars _should_ keep the meaning
> through conversion. Did it in the past versions anyway, but didn't
> use it
> for
> quite a while now.
>
> Would you mind letting me know if it still works?
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: Gerardo Rojas [SMTP:[EMAIL PROTECTED]
>> Gesendet am: Montag, 25. August 2003 17:53
>> An: [EMAIL PROTECTED]
>> Betreff: [PHP-WIN] End of Page characters
>>
>> Quick question: Is there any special characters that make up a Page
> Break in MS Word? I know that "\r\n" make a line break and carriage
> return. Is there anything for Page Break?
>>
>>
>> --
>> Gerardo S. Rojas
>> mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to db::getInstancia() another time, I obtain another new
object :-(
The code of the db class is the next (it is a Singleton Pattern, but it
doesnt work)
class db{
var $_miInstancia;
function db (){
// funcion que se conecta con la BBDD
static $miInstancia;
$this->_miInstancia=&$miInstancia;
$result = @mysql_pconnect("inforalv", "discoteca", "password");
if (!$result)
return false;
if ([EMAIL PROTECTED]("discoteca"))
return false;
}
&function getInstancia(){
if (!isset($this))
$_miInstancia=new db();
return $_miInstancia;
}
}
I think that the problem is that the var _miInstance is not static and I
dont know how to do it.
Could you please tell me if there is anything wrong?
Thanks.
Alvaro
--- End Message ---
--- Begin Message ---
Hi!
I want to obtain only one instance of one class. In other to do that, I call
to a static method, that creates the instance(if it doesnt exit) or returns
the reference of the instance.
The call to the static method is the next:
$conexiondb=db::getInstancia();
Well, but if I call to db::getInstancia() another time, I obtain another new
object :-(
The code of the db class is the next (it is a Singleton Pattern, but it
doesnt work)
class db{
var $_miInstancia;
function db (){
// funcion que se conecta con la BBDD
static $miInstancia;
$this->_miInstancia=&$miInstancia;
$result = @mysql_pconnect("inforalv", "discoteca", "password");
if (!$result)
return false;
if ([EMAIL PROTECTED]("discoteca"))
return false;
}
&function getInstancia(){
if (!isset($this))
$_miInstancia=new db();
return $_miInstancia;
}
}
I think that the problem is that the var _miInstance is not static and I
dont know how to do it.
Could you please tell me if there is anything wrong?
Thanks.
Alvaro
--- End Message ---
--- Begin Message ---
I have a sql query, something like
SELECT x FROM server1.table WHERE x IN (SELECT x FROM server2.table)
I get a warning when loading the page. This is the warning:
Warning: MS SQL message: Heterogeneous queries require the ANSI_NULLS and
ANSI_WARNINGS options to be set for the connection. This ensures consistent
query semantics. Enable these options and then reissue your query. (severity
16)
I don´t know what to do, where to look...
Thanks for any help.
--- End Message ---
--- Begin Message ---
Hello!
I need two compiled extensions for php 4.3.3:
- bcompiler (I think somebody has it already compiled)
- php-xerces (source is available at
http://ggodlewski.host.sk/download/php-xerces/php-xerces-0.6.tar.gz)
I tried to build them with mingw32 and cygwin - without effect :(
Unfortunately I don't have MSVC.
Could anybody send me this modules? Thanks in advance.
BR.
--
\ Grzegorz Godlewski /
/ Mail: [EMAIL PROTECTED] GG: 1600799 ICQ UIN: 118261503 \
--- End Message ---