php-windows Digest 3 Oct 2001 22:51:54 -0000 Issue 787
Topics (messages 9661 through 9678):
Don't open any PHP file under Win98
9661 by: Augusto Cesar Castoldi
9663 by: Phil Driscoll
9664 by: Augusto Cesar Castoldi
Re: Trouble with Xitami+PHP+Win
9662 by: Lluís de Yzaguirre
Re: PHP Application runnig in windows
9665 by: Ross Fleming
Copying a web page to the server.
9666 by: Ross Fleming
mysql news group
9667 by: Stanley Cheung
9668 by: Robin Bolton
mcrypt()
9669 by: Ouster
More COM questions...
9670 by: Bob Kaehms
Problemas usuando OCI8
9671 by: Jacfeth Moreno B.
9672 by: Asendorf, John
9673 by: Asendorf, John
9677 by: Jacfeth Moreno B.
LDAP versus DB
9674 by: Paul Meagher
Internal Server Error --> should be a parser error!!
9675 by: Augusto Cesar Castoldi
Receiving Microsoft Internet extension errors from script
9676 by: Thomas
*.ini
9678 by: John Taylor-Johnston
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...
I just instaled the PHP on my Windows 98 but it's not
working.
The Apache server can read html and xml files for
example. But when I try a PHP file, the broser stay
working but don't show nothing.
I just copy a PHP build for many librarys (like GD and
DOMXML and mySQL).
Any idea?
thanks,
Augusto
_______________________________________________________________________________________________
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil
e grátis!
http://br.geocities.yahoo.com/
--- End Message ---
--- Begin Message ---
On Wednesday 03 October 2001 12:48 pm, Augusto Cesar Castoldi wrote:
> Hi...
>
> I just instaled the PHP on my Windows 98 but it's not
> working.
>
> The Apache server can read html and xml files for
> example. But when I try a PHP file, the broser stay
> working but don't show nothing.
Does 'view source' show your php code?
Have you edited httpd.conf?
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
No, nothing. But thanks, I just solve the problem.
The proglem is that I cinfigured apache do run php as
a CGI binary, I changed to work as a module, copy a
php4s...dll for system diretory and now it's working.
see you,
August
--- Phil Driscoll <[EMAIL PROTECTED]>
escreveu: > On Wednesday 03 October 2001 12:48 pm,
Augusto Cesar
> Castoldi wrote:
> > Hi...
> >
> > I just instaled the PHP on my Windows 98 but it's
> not
> > working.
> >
> > The Apache server can read html and xml files for
> > example. But when I try a PHP file, the broser
> stay
> > working but don't show nothing.
>
> Does 'view source' show your php code?
>
> Have you edited httpd.conf?
>
> Cheers
> --
> Phil Driscoll
_______________________________________________________________________________________________
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil
e grátis!
http://br.geocities.yahoo.com/
--- End Message ---
--- Begin Message ---
J6 wrote:
> "Lluís De Yzaguirre" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I installed php in d:\php using the installer (it asked about the server,
> and
> > I choosed Xitami).
> > The installer modified the xitami CFG file adding to it the FILTER:
> >
> > .php=D:\PHP\php.exe
> >
> > The system is WIN 98 SE (4.10.2222A).
> >
>
> Is that reflected in your "defaults.cfg" file as well? I understand that
> this is read before the "xitami.cfg" file. So if it has the wrong path
> there....
>
> James.
Yes, in both:
# Created at installation time
#
! Loading defaults.cfg file...
[Server]
priority=1
defaults=xitami.cfg # Local config file
[Security]
filename=defaults.aut
[Filter]
.php=D:\PHP\php.exe
--- End Message ---
--- Begin Message ---
I think he's looking for a way to execute a program on the browsers machine,
exec() runs one a program on the server machine, not the local one.
So far as I know, what you want to do is impossible, and in all honesty, I
really hope that's the case. Web pages that start programs running on a
users PC is just a recipe for disaster...
Ross
-----Original Message-----
From: GF [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2001 02:59
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: PHP Application runnig in windows
http://www.php.net/manual/en/ref.exec.php
Gaylen Fraley
PHP KISGB (Guestbook) http://www.gaylenandmargie.com/publicscripts/
"Sethereth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can I run a client acplication through php website after his confirmation?
> Please help. If yes which function does it?
>
> Thx for help
>
> Arek Marczyk
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi, I'm trying to make a copy of a webpage, specified by the user (say,
through a form) to the server itself. So far I've done this:
*******************************
$LocalFile="written.html";
$fp = @fopen($file,"r");
if ($fp)
{
$out=fopen ($LocalFile,"w");
while (!feof($fp))
{
$temp=fread($fp,4096);
fputs($out, $temp);
}
print"Page written to written.html\n";
}
else
{
print"This page does not exist\n";
}
fclose($fp);
fclose($out);
*******************************
This works, but takes a wee bit of time to do it and I was wondering if
anyone know whether there is simply a command that does it?
Ta
Ross
--- End Message ---
--- Begin Message ---
Hi all,
can anyone tell me where has mysql news group?
thx!
Stanley
--- End Message ---
--- Begin Message ---
Try the official MySQL website:
http://www.mysql.com/documentation/lists.html
(These are mailing lists, not newsgroups)
> -----Original Message-----
> From: Stanley Cheung [mailto:[EMAIL PROTECTED]]
> Sent: October 3, 2001 10:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] mysql news group
>
>
> Hi all,
>
> can anyone tell me where has mysql news group?
>
> thx!
>
> Stanley
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Does Mcrypt exist for Windows?
--- End Message ---
--- Begin Message ---
I've been playing with COM and PHP for quite a while now. I have some
fairly basic scripts working, but can't seem to take advantage of MS Word
for more than the most basic open/write/save operations. I've been using
the VB help and record macro capabilities of word to attempt to get some
things working in PHP.
I'm using W98, apache 1.3.12, and PHP as a DSO. Word is Word 2000 (9.0).
Here is a simple example of a script that tries to generate some text, and then
do a search and replace to edit a field.
<?php
$word=new COM("Word.Application.9") or die("Cannot start MS Word");
print "Loaded word version ($word->Version)\n";
$word->visible = 1 ;
$word->Documents->Add();
$word->Selection->Typetext("This is a test");
$word->Selection->Typetext("123");
$word->Selection->Find->ClearFormatting;
$word->Selection->Find->Text = "test"; ##<-##
$word->Selection->Find->Forward = False;
$word->Selection->Find->Wrap = wdFindContinue;
$word->Selection->Collapse->Direction=wdCollapseEnd;
$word->Selection->Find->Replacement->Text="rest";
$word->Selection->Find->Execute;
?>
I've created this by first recording a macro, and then trying to convert.
After commenting out various lines, it seems to hang on ##<-##
It prints out the first two typetext lines, and then a third "test" at the
end of the document, in highlighted form (it does not just highlight the
first instance of "test".
3 Questions:
1) Is this revision of OS/MSword/Apache/PHP stable?
2) Does the above syntax look correct, or have I missed something?
3) Is it possible to pass variables to Word macros via PHP and
drive the entire application from the other side?
Note that I haven't seemed to have any problems with Excel.
Thanks
--Bob
--- End Message ---
--- Begin Message ---
Hola todos.
Instale el php 4.0.6 sin ningún problema, pero necesito configurar php
para acceder un motor Oracle 8.1.7. Configure la directiva extesion_dir
pero al cargar el script me registra el error:
Imposible cargar la librería dinámica “c:\php\extensions\php_oci8.dll”.
No se encontró el proceso especificado.
Les agradezco enormemente consejos para solucionar este problema.
Muchas gracias por adelantado:
Jack
--- End Message ---
--- Begin Message ---
To translate:
Hello everyone.
I installed php 4.0.6 without any problems, but I need to configure php to
work with Oracle 8.1.7. I configured the extesion_dir but I get this error:
Cannot load the dynamic link library "c:\php\extensions\php_oci8.dll." It
was not specified in the process (?).
Thank you, thank you, thank you for helping me solve this, yada yada yada...
>
>
> Hola todos.
>
> Instale el php 4.0.6 sin ningún problema, pero necesito configurar php
> para acceder un motor Oracle 8.1.7. Configure la directiva
> extesion_dir
> pero al cargar el script me registra el error:
>
> Imposible cargar la librería dinámica
> "c:\php\extensions\php_oci8.dll".
> No se encontró el proceso especificado.
>
> Les agradezco enormemente consejos para solucionar este problema.
> Muchas gracias por adelantado:
>
> Jack
>
--- End Message ---
--- Begin Message ---
Double check that the extension exists where it is supposed to exist.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Jacfeth Moreno B. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 4:19 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Problemas usuando OCI8
>
>
> Hola todos.
>
> Instale el php 4.0.6 sin ningún problema, pero necesito configurar php
> para acceder un motor Oracle 8.1.7. Configure la directiva
> extesion_dir
> pero al cargar el script me registra el error:
>
> Imposible cargar la librería dinámica
> "c:\php\extensions\php_oci8.dll".
> No se encontró el proceso especificado.
>
> Les agradezco enormemente consejos para solucionar este problema.
> Muchas gracias por adelantado:
>
> Jack
>
--- End Message ---
--- Begin Message ---
Hello Jhon:
Yes, the extension exist, but the problem is there...
Thank you.
Tips?
-----Mensaje original-----
De: Asendorf, John [mailto:[EMAIL PROTECTED]]
Enviado el: Miércoles, 03 de Octubre de 2001 03:31 p.m.
Para: Jacfeth Moreno B.; [EMAIL PROTECTED]
Asunto: RE: [PHP-WIN] Problemas usuando OCI8
Double check that the extension exists where it is supposed to exist.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Jacfeth Moreno B. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 4:19 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Problemas usuando OCI8
>
>
> Hola todos.
>
> Instale el php 4.0.6 sin ningún problema, pero necesito configurar php
> para acceder un motor Oracle 8.1.7. Configure la directiva
> extesion_dir
> pero al cargar el script me registra el error:
>
> Imposible cargar la librería dinámica
> "c:\php\extensions\php_oci8.dll".
> No se encontró el proceso especificado.
>
> Les agradezco enormemente consejos para solucionar este problema.
> Muchas gracias por adelantado:
>
> Jack
>
--- End Message ---
--- Begin Message ---
I was wondering if someone could tell me what the advantages are of storing
contact info in an LDAP repository are over storing it in, say, a MySQL
repository.
I am thinking it is mostly a speed and scalability issue - if I have a
million people in an LDAP repository and need to find someone in it the
search time will be alot faster using LDAP than MySQL. Is this correct?
Is there any other reason to use LDAP over MySQL that I am missing out on
here?
Regards,
Paul Meagher
--- End Message ---
--- Begin Message ---
Hi...
why my php (on Win2000) always do a error when there
is a "parser error"?
Somethings I take to much time to discover where I
wrote wrong because the error don't say in which line
is the error...
thanks,
Augusto
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your
request.
Please contact the server administrator,
[EMAIL PROTECTED] and inform them of the time the error
occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in
the server error log.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at 127.0.0.1 Port 80
_______________________________________________________________________________________________
Yahoo! GeoCities
Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil
e grátis!
http://br.geocities.yahoo.com/
--- End Message ---
--- Begin Message ---
I'm having a problem with my php script when it tries to display db query's
that are more involved (joining and what not). For the basic queries php
doesn't have a problem but when I start trying to join tables and what not
it returns an error to the browser saying:
An Internal Error occurred in the Microsoft Internet extensions.
I was orignally running php as a module and was getting this error message
on a lot less complicated queries. I switched to cgi mode and it has greatly
improved.
I'm running
Apache (latest stable ver for win32)
Php (latest stable ver for win32)
MySQL (latest stable ver for win32)
Windows 2000 Pro
all of the above are fresh installs; no upgrades
The apache access log shows this:
XXX.XX.XX.XXX - - [03/Oct/2001:16:09:32 -0700] "GET
/hlstats.php?mode=players&game=cstrike&sort=skill&sortorder=asc HTTP/1.1"
200 44749
and the error log doesn't have any entries.
also, I've noticed that the machine that the servers are running on never
gets any errors.
--- End Message ---
--- Begin Message ---
How can I access php.ini - or any *.ini - using PHP?
[Session]
session.save_path= E:\CD\PHP\sessiondata
In Pascal, I would do something like this, for example:
readstring('[Session]', Mystring);
where Mystring becomes = "E:\CD\PHP\sessiondata"
writestring('[Session]', Mystring);
John
----------------------------------------------------------------------------------------------------------
Sean Malloy wrote:
> You could just use the session_save_path([string path]); function in your
> code?
>
> "Jtjohnston" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am running PHP in a weird configuration - :) - on a CD Rom! Therefore:
> >
> > 1) - Each time I run my CD ROM server, I need my setup executable to
> > reconfigure a copy of php.ini and copy it to the windows directory and
> > reconfigure.
> >
> > [Session]
> > session.save_path= E:\CD\PHP\sessiondata ; argument passed
> > to save_handler
> >
> > My questions are:
> >
> > 1) How can I configure an *.ini file with ease using PHP?
> > 2) Specifically, how can I reconfiigure "session.save_path" to the PHP
> > variable $temp
> >
> > E:\CD\PHP\sessiondata needs to be read and write, which is not possible
> > on a CD Rom.
> >
> > An email post & reply would be most helpful.
> >
> > John
> >
--
John Taylor-Johnston
Langues Modernes
poste 289
--- End Message ---