php-windows Digest 26 Jun 2003 13:22:48 -0000 Issue 1796
Topics (messages 20570 through 20577):
Re: COMPLETE! newby
20570 by: Warren Vail
Re: Listing an Objects Properties
20571 by: Philippe Saladin
Re: PHP Standalone Engine?
20572 by: Alexandru COSTIN
file creation problem at production server
20573 by: narayanak
20574 by: Cristian MARIN
Re: Why is PHP not recommended with Apache 2.0?
20575 by: Stephen
COM extension causing Apache to crash under W2000
20576 by: Francesco Marsan
is_dir: runs bad under IIS/Win2K
20577 by: morris71.libero.it
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 ---
check http://us4.php.net/register_globals. there is a good explanation
there.
Warren Vail
[EMAIL PROTECTED]
-----Original Message-----
From: JAY REIDY [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 5:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] COMPLETE! newby
I just installed PHP and Apache on everyone's favorite OS, Windows XP. Both
more or less work as advertised, and I'm using them for development at home.
When I use this form:
<form action="foo.php" method="post">
Name: <input type="text" name="username"><br>
Email: <input type="text" name="email"><br>
<input type="submit" name="submit" value="Submit me!">
</form>
to call this PHP script:
<?php
print $_POST['username'];
print $_REQUEST['username'];
import_request_variables('p', 'p_');
print $p_username;
print $HTTP_POST_VARS['username'];
print $username;
?>
I get this error:
Notice: Undefined variable: username in C:\Program Files\Apache
Group\Apache2\htdocs\myserver\foo.php on line 18
which happens to be the "print $username" command.
Obviously, the HTML form isn't passing the values to the script.
Does ANYone have a clue? I have an idea there's a switch or something I
don't have right in my Apache config file but any help would be appreciated.
Peace,
j
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
"Ron Herhuth" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
>Is there anyway to view an objects properties? I think I recall seeing
>something about being able to do so but I can't find it.
http://fr2.php.net/manual/en/function.get-object-vars.php
--- End Message ---
--- Begin Message ---
Hello,
You can also take a look at http://www.indigostar.com/microweb.htm
It's a very small webserver that fully supports PHP and we've
succesfully used it to release 7000 CDs with an encoded site (ioncube) for a
large company.
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
"Galen P. Zink" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I work for a small networking company. We're working on a piece of
> software that will be run server-side with PHP and MySQL. It allows the
> user to develop an online store and handles all the complex shopping
> cart stuff with ease. It is a port of an originally client-side
> application. We would like to be able to hand out demo discs that do
> not require the internet to try it out - having a standalone try-out
> version is a big source of customers.
>
> Is there any kind of standalone PHP/MySQL engine that could be
> reasonably installed from a CD and run on most Windows machines? If
> there was some method to compile the PHP into a binary or otherwise
> protect it, it would be really good because our company would not be
> too excited about handing out the near-complete source to our product
> on all the demo discs. It would be nice if there was support for
> non-Windows OSes, but Windows is by far the majority in market share
> and the other OSes could easily just pop into an HTML document that
> directs them to our online version.
>
> Thanks,
>
> Galen P. Zink
>
--- End Message ---
--- Begin Message ---
hi all,
I received the following error message when i want to create a .csv file in
the web server, in my local server the file is created without any problem
and its working nice the same is not working at production server, why this
happens and suggest the solution
Warning: fopen(Applicant.csv): failed to open stream: Permission denied in
/home/xyz/pttx/boffice/individual.php on line 93
Regards
Narayana
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Your server httpd is running as a different user then the user who is owning
the files from the /home/xyz/pttx/boffice/. Please check the user as which
the apache is running (ps aux|grep httpd) and the user who own the files
Another reason could be that the apache user has no rights to write in the
directory /home/xyz/pttx/boffice/.
You should do
chown apacheuser.apacheuser /home/xyz/pttx/boffice/
chmod 777 /home/xyz/pttx/boffice/
--
-------------------------------------------------
Cristian MARIN - Developer
InterAKT Online (www.interakt.ro)
Tel: +4021 312.53.12
Tel/Fax: +4021 312.51.91
[EMAIL PROTECTED]
"Narayanak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> hi all,
> I received the following error message when i want to create a .csv file
in
> the web server, in my local server the file is created without any problem
> and its working nice the same is not working at production server, why
this
> happens and suggest the solution
> Warning: fopen(Applicant.csv): failed to open stream: Permission denied in
> /home/xyz/pttx/boffice/individual.php on line 93
>
> Regards
> Narayana
>
> [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
PHP is not yet designed to work with Apache 2. This means its stability is
not guarenteed and so it is not suitable for public website use. However,
Apache 2 and PHP should be working together in the not to distant future,
but when exactly is unknown. Some users report it working fine, others can
not get it to install. It is up to you to risk it if you wish.
Stephen
----- Original Message -----
From: "Jeff Waldock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:11 PM
Subject: [PHP-WIN] Why is PHP not recommended with Apache 2.0?
> Can anyone explain why the message:
>
> "Do not use Apache 2.0 and PHP in a production environment neither on
> Unix nor on Windows. "
>
> appears prominently on the following PHP documentation page - for the
> installation of PHP with Apache 2?
> (http://uk.php.net/manual/en/install.apache2.php)
>
> I can find no explanation, and our web administrator is refusing to
> install PHP on our University's main web server as a result.
>
> Many thanks
> Jeff Waldock
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I have been able to access COM objects from PHP under W2000 without too much
problems. Recently I set up a new W2000 server and the COM extension of PHP
is not working. The first 6-10 calls I do to COM (to read Excel cells) work
fine, but them subsequent ones provoke Apache crashing. Can someone help out
on this?
Tanks
Francesco
--- End Message ---
--- Begin Message ---
Hi all!
I have a little (or not?) problem with PHP filesystem functions with a
IIS/Win2000 installation!
I'm trying to execute a simple << is_dir("c:/tmp") >> but the function
return 0: in practice for PHP c:/tmp doesn't exist. The same, obviously,
with "c:\temp", "/tmp", "\tmp", "c:\\temp" and so on...
The real strange behaviour regards the "session_save_path" directory: in my
PHP.INI I've always set this parameter to "/tmp" (under Linux and the same
under PHP/Apache/Windows, PHP/IIS/WinXP) and ALL runs well (without
specifiying the unit X:\). Under Win2K, PHP seems to "consider" this
parameter, in fact all SESSION FILES are written under C:\TMP. But when I
try to check if this path exists (under Win2000), as so:
<< is_dir(session_save_path()) >>
... uhmm... the function fails!
Any idea? Can anyone help me?
Many thanks.
Francesco
--- End Message ---