php-windows Digest 1 Aug 2002 22:12:09 -0000 Issue 1269
Topics (messages 15057 through 15077):
Java and PHP
15057 by: Opere, James
DaDaBIK 2.1b beta released
15058 by: Eugenio Tacchini
use of COM object
15059 by: Christophe PIN
Re: Problem in passing parameters
15060 by: cprc
15064 by: Rich Gray
php cookie question
15061 by: Charles
15062 by: Charles
15063 by: Charles
15065 by: Charles
15066 by: Charles
php/javascript
15067 by: Kit Kerbel
15068 by: George Nicolae
Re: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup & Texas PHP Users
15069 by: Jay Blanchard
can't load php_mcrypt.dll
15070 by: Stanislav Stratiev
[php-objects] RE: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup & Texas PHP Users
15071 by: Martin Clifford
why do i have this error???
15072 by: Adolfo Meneses
15073 by: Dash McElroy
File uploading yet again
15074 by: Lorne T
sorry, its only a test, please ignore it
15075 by: Adolfo Meneses
PHP equivalent of ASP Response.Redirect
15076 by: Kyle
15077 by: Luis Ferro
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 ------ End Message ---
I have installed Jdk 1.1.8, PHP version 4.2.2. I tried configuring Java to work with PHP but I still get an error below when trying to run a scrip.
Fatal error: Unable to create Java Virtual Machine in c:\phpdev\www\java.php on line 2
The script is a sample script to test if php is working on well with java.
Does anyone have any idea as to why I can't run the script below?
<?php
$system = new java("java.lang.System");
print "Java version=".$system->getProperty("java.version")." <br>\n";
print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
print "OS=".$system->getProperty("os.name")." ".
$system->getProperty("os.version")." on ".
$system->getProperty("os.arch")." <br>\n";
$formatter = new Java("java.text.SimpleDateFormat","EEEE,
MMMM dd, yyyy 'at' h:mm:ss a zzzz");
print $formatter->format(new Java("java.util.Date"))."\n";
?>
I'm working on a windows XP.
J.Opere
--- Begin Message ---Hi all, I just want to announce that DaDaBIK 2.1b beta has been released (www.dadabik.org), a lot of new features and bug fixes have been added. DaDaBIK is a free PHP application that allows to easily create a highly customizable Web form interface for a MySQL database in order to search, insert, update and delete records; all you need do is specify a few configuration parameters. Eugenio--- End Message ---
--- Begin Message ---
Hello,
I have to use a COM object with following properties:
...
Property StationsX(lIndex As Long) As Long
Property StationsY(lIndex As Long) As Long
...
I didn't manage to initialize these properties.
I create a new COM object with:
$obj = new COM("********");
If I try
$obj->StationX(0)=$val;
I get an error message ( StationX(0) is then known as a function. So, I
can't put a value in it)
So, I want to use com_propput but it doesn't work.
Can any one help me, giving me the good syntax for com_propput, or giving me
advices...
I'm using PHP 4.2.2
Thank u very much
--- End Message ---
--- Begin Message ---Hi Lung - you have precisely the same setup as myself = php 4.2.2 Apache and Win2000. BUT I can't manage to get the browser to work properly -same problem as you had. I would appreciate it if you would send my your httpd.conf file and any other file you think will solve my problem as I have spent far too many hours in the dark over this one!! Thanks in advance. Chris "Lung" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have built a form for inputting username & password and called login.php > to handle. However, I fail to pass the variables to index.php like: > http://localhost/php/login.php?username=test&password=test. When I check the > variables in login.php, it said these variables are unset. Please adivse how > to solve it! I am using IIS & PHP 4.2.1 in Window 2000. > Thanks! > > Lung > > >--- End Message ---
--- Begin Message ---v4.2.x has register globals set to Off by default. Is that the case for your PHP configuration? If yes you can either switch them to On in your php.ini file (security implications however...) else you have to reference these variables via the super globals... so taking Lung's example ... <? // Just the ones we want ... $username = $_GET['username']; $password = $_GET['password']; // or all vars.... extract($_GET); ?> HTH Rich -----Original Message----- From: cprc [mailto:[EMAIL PROTECTED]] Sent: 01 August 2002 15:30 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Problem in passing parameters Hi Lung - you have precisely the same setup as myself = php 4.2.2 Apache and Win2000. BUT I can't manage to get the browser to work properly -same problem as you had. I would appreciate it if you would send my your httpd.conf file and any other file you think will solve my problem as I have spent far too many hours in the dark over this one!! Thanks in advance. Chris "Lung" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have built a form for inputting username & password and called login.php > to handle. However, I fail to pass the variables to index.php like: > http://localhost/php/login.php?username=test&password=test. When I check the > variables in login.php, it said these variables are unset. Please adivse how > to solve it! I am using IIS & PHP 4.2.1 in Window 2000. > Thanks! > > Lung > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---I want to ask user to login, and use cookie to save their userid and password what should i do?--- End Message ---
--- Begin Message ---I want to ask user to login, and use cookie to save their userid and password what should i do?--- End Message ---
--- Begin Message ---I want to ask user to login, and use cookie to save their userid and password what should i do?--- End Message ---
--- Begin Message ---I want to ask user to login, and use cookie to save their userid and password what should i do?--- End Message ---
--- Begin Message ---I want to ask user to login, and use cookie to save their userid and password what should i do?--- End Message ---
--- Begin Message ---Here's the deal: I have a page that has a "print" button on it that opens a new window that shows a "print-friendly" version of the page. The new window is opened via some javascript. I'm having problems with passing two variables to that page for querying purposes. Can anyone help? Thanks in advance, Kit _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com--- End Message ---
--- Begin Message ---Send some code or more details. -- Best regards, George Nicolae IT Manager ___________________ PaginiWeb.com - Professional Web Design www.PaginiWeb.com "Kit Kerbel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here's the deal: > > I have a page that has a "print" button on it that opens a new window that > shows a "print-friendly" version of the page. The new window is opened via > some javascript. I'm having problems with passing two variables to that > page for querying purposes. Can anyone help? > > Thanks in advance, > Kit > > > > _________________________________________________________________ > Join the world's largest e-mail service with MSN Hotmail. > http://www.hotmail.com >--- End Message ---
--- Begin Message ---Well, the predictions have come true. In San Antonio only four folks signed up for the meetup, and the event was cancelled with no way to get in touch with the other local developers to make a go of it. Out of the 147 cities listed only 15 had enough people for meetup.com to do their thing. A noble idea, but ... I want to encourage developers to farm PHP developer groups in their own communities. Some may find that their community already has a users group (a list is available at http://www.phpusergroups.org) although some of these groups are not really groups at all, just people looking to form groups. If you live in the San Antonio area I would be glad to be the chief-wrangler-whats-in-charge for just such a group. Please contact me directly. I am also working on a Texas PHP Developer Conference at the beautiful T Bar M Resort & Conference Center in New Braunfels, Texas sometime between January and April of 2003. I have begun contacting potential speakers and hope to have people who wish to present papers at the conference as well as do some other fun activities such as a high or low ropes course, golf, tennis, etc. All suggestions and admonitions are welcome. Everyone in Texas is invited to contact me so that I can dispurse further information. Also, my contact at T Bar M says, "The more, the cheaper ... " as discounts for larger groups are available. Heck, even if you don't live in Texas but would be interested in attending drop me a line and I'll keep you up to date. Thanks! Jay It�s as bad as you think, and they are out to get you. *************************************** * * * Texas PHP Developers Meeting * * Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Interested? Contact; * * [EMAIL PROTECTED] * * * ***************************************--- End Message ---
--- Begin Message ---
Hi,
I am running apache 2 with php-4.2.1-Win32 on Win XP. When i'm try to use
php_mcrypt.dll after restart apache says 'Unable to load dynamic library
'path' - The specified procedure could not be found. I uncomment the
extension=php_mcrypt.dll and find some dll in the net that pretending to be
for windows.
10x, this is my first mailing list use :)
Stanislav Stratiev
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---
--- Begin Message ---I'm definately interested, even though I'll most likely be in MN at the time. I've never even MET another PHP developer, so I don't know what to expect, but I'd sure love to be updated :o) Martin >>> [EMAIL PROTECTED] 08/01/02 03:21PM >>> Well, the predictions have come true. In San Antonio only four folks signed up for the meetup, and the event was cancelled with no way to get in touch with the other local developers to make a go of it. Out of the 147 cities listed only 15 had enough people for meetup.com to do their thing. A noble idea, but ... I want to encourage developers to farm PHP developer groups in their own communities. Some may find that their community already has a users group (a list is available at http://www.phpusergroups.org) although some of these groups are not really groups at all, just people looking to form groups. If you live in the San Antonio area I would be glad to be the chief-wrangler-whats-in-charge for just such a group. Please contact me directly. I am also working on a Texas PHP Developer Conference at the beautiful T Bar M Resort & Conference Center in New Braunfels, Texas sometime between January and April of 2003. I have begun contacting potential speakers and hope to have people who wish to present papers at the conference as well as do some other fun activities such as a high or low ropes course, golf, tennis, etc. All suggestions and admonitions are welcome. Everyone in Texas is invited to contact me so that I can dispurse further information. Also, my contact at T Bar M says, "The more, the cheaper ... " as discounts for larger groups are available. Heck, even if you don't live in Texas but would be interested in attending drop me a line and I'll keep you up to date. Thanks! Jay It's as bad as you think, and they are out to get you. *************************************** * * * Texas PHP Developers Meeting * * Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Interested? Contact; * * [EMAIL PROTECTED] * * * *************************************** Look here for Free PHP Classes of objects: http://phpclasses.UpperDesign.com/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/--- End Message ---
--- Begin Message ---
Hello, Im trying to learn how to develop aplications with php, I took this from a
tutorial, but I get an error message. The situation is very simple. Please somebody
help me out.
Thanks.
Adolfo
this is the error message:
Warning: Cannot add header information - headers already sent by (output started at
c:\apache\htdocs\adul\conex.php:2) in c:\apache\htdocs\adul\inserta.php on line 20
the files involved are these:
altas.php
<html>
<head>
<title>Altas de Afiliados</title>
</head>
<body>
<H1>Ingrese los valores correspondientes.</H1>
<FORM ACTION="inserta.php">
<TABLE>
<TR>
<TD>Nro. Afiliado:</TD>
<TD><INPUT TYPE="text" NAME="nro_afil" SIZE="20" MAXLENGTH="30"></TD>
</TR>
<TR>
<TD>Apellido:</TD>
<TD><INPUT TYPE="text" NAME="apellido" SIZE="20" MAXLENGTH="30"></TD>
</TR>
<TR>
<TD>Nombres:</TD>
<TD><INPUT TYPE="text" NAME="nombres" SIZE="20" MAXLENGTH="30"></TD>
</TR>
<TR>
<TD>Tipo doc.:</TD>
<TD><INPUT TYPE="text" NAME="tipo_doc" SIZE="20" MAXLENGTH="30"></TD>
</TR>
<TR>
<TD>Nro. doc.:</TD>
<TD><INPUT TYPE="text" NAME="nro_doc" SIZE="20" MAXLENGTH="30"></TD>
</TR>
<TR>
<TD>Legajo:</TD>
<TD><INPUT TYPE="text" NAME="legajo" SIZE="20" MAXLENGTH="30"></TD>
</TR>
</TABLE>
<INPUT TYPE="submit" NAME="accion" VALUE="Grabar">
</FORM>
<?
/* verificar si existe, si no ingresar a la base de datos, si existe mostrar mensaje
de error.*/
?>
<hr>
</body>
</html>
inserta.php
<?php
include("conex.php");
$link=Conectarse();
mysql_query("insert into lista2 (
nro_afil,
apellido,
nombres,
tipo_doc,
nro_doc,
legajo
) values (
'$nro_afil',
'$apellido',
'$nombres',
'$tipo_doc',
'$nro_doc',
'$legajo'
)",$link);
header("Location: altas.php");
?>
Conex.php
<!--conectando lista2 en php-->
<?php
function Conectarse()
{
if(!($link=mysql_connect("localhost","root")))
{
echo "Error conectando a la base de datos.";
exit();
}
if(!mysql_select_db("lista2",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
?>
--- End Message ---
--- Begin Message ---The header() command is very sensitive. No data (including a stray space) can be sent to the browser before a header() command is called. If you take out the include(conex.php); line (or just take out the data that it echoes to the browser) you'll be in fine shape. -Dash -----Original Message----- From: Adolfo Meneses [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] why do i have this error??? Hello, Im trying to learn how to develop aplications with php, I took this from a tutorial, but I get an error message. The situation is very simple. Please somebody help me out. Thanks. Adolfo this is the error message: Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\adul\conex.php:2) in c:\apache\htdocs\adul\inserta.php on line 20 the files involved are these: altas.php <html> <head> <title>Altas de Afiliados</title> </head> <body> <H1>Ingrese los valores correspondientes.</H1> <FORM ACTION="inserta.php"> <TABLE> <TR> <TD>Nro. Afiliado:</TD> <TD><INPUT TYPE="text" NAME="nro_afil" SIZE="20" MAXLENGTH="30"></TD> </TR> <TR> <TD>Apellido:</TD> <TD><INPUT TYPE="text" NAME="apellido" SIZE="20" MAXLENGTH="30"></TD> </TR> <TR> <TD>Nombres:</TD> <TD><INPUT TYPE="text" NAME="nombres" SIZE="20" MAXLENGTH="30"></TD> </TR> <TR> <TD>Tipo doc.:</TD> <TD><INPUT TYPE="text" NAME="tipo_doc" SIZE="20" MAXLENGTH="30"></TD> </TR> <TR> <TD>Nro. doc.:</TD> <TD><INPUT TYPE="text" NAME="nro_doc" SIZE="20" MAXLENGTH="30"></TD> </TR> <TR> <TD>Legajo:</TD> <TD><INPUT TYPE="text" NAME="legajo" SIZE="20" MAXLENGTH="30"></TD> </TR> </TABLE> <INPUT TYPE="submit" NAME="accion" VALUE="Grabar"> </FORM> <? /* verificar si existe, si no ingresar a la base de datos, si existe mostrar mensaje de error.*/ ?> <hr> </body> </html> inserta.php <?php include("conex.php"); $link=Conectarse(); mysql_query("insert into lista2 ( nro_afil, apellido, nombres, tipo_doc, nro_doc, legajo ) values ( '$nro_afil', '$apellido', '$nombres', '$tipo_doc', '$nro_doc', '$legajo' )",$link); header("Location: altas.php"); ?> Conex.php <!--conectando lista2 en php--> <?php function Conectarse() { if(!($link=mysql_connect("localhost","root"))) { echo "Error conectando a la base de datos."; exit(); } if(!mysql_select_db("lista2",$link)) { echo "Error seleccionando la base de datos."; exit(); } return $link; } ?>--- End Message ---
--- Begin Message ---I still am in need of help with uploading a file using IIS and PHP 4.2.2. The problem seems to be that the variables holding the temp name and size never get correctly set from the file input control. I have the copy function working, but it can not find the temp file because php never reports a temp file name. What am I missing?--- End Message ---
--- Begin Message ---Im having troubles with my email address (or IP number). Its considered spam. so, i have changed some settings and im checking it.--- End Message ---
--- Begin Message ---
Does anyone know if there is a php equivalent of Response.Redirect? I have
been looking through the PHP manual to no avail because I don't really know
where to look. Any help is appreciated.
Kyle Overholser
--- End Message ---
--- Begin Message ---It is the header() function... as with response.redirect... carefull must be made with both sessions and the output buffer content... Cheers... LF Kyle wrote: >Does anyone know if there is a php equivalent of Response.Redirect? I have >been looking through the PHP manual to no avail because I don't really know >where to look. Any help is appreciated. > > > Kyle Overholser > > > > >--- End Message ---
