php-windows Digest 10 Oct 2001 21:12:03 -0000 Issue 798
Topics (messages 9775 through 9792):
Re: session open failed and header() don't redirect
9775 by: Michel Laine
9788 by: Mike Flynn
Guest Book version 2 released
9776 by: Gaylen Fraley
Exec() again
9777 by: Yaroukh
9781 by: Ross Fleming
9782 by: Yaroukh
9783 by: Yaroukh
9785 by: Ross Fleming
Re: InstallShield coulnd't find OCX control...
9778 by: Phil Driscoll
upload files problem
9779 by: Camelia Moldovan
Windows Registry
9780 by: ToAoM
Getting The Name Of A Form Within A Script
9784 by: epankoke.csdatasol.net
9786 by: Christian Sandfeld
php_mcrypt.dll
9787 by: Brian Gleason
freetype library
9789 by: mates
windows compile - tsrm.lib error
9790 by: Simon Benjamin
Help with Php4.06 installation
9791 by: Mihail Bota
Data from local PC MySQL (or MSAccess) to remote UNIX ISP MySQL
9792 by: Tome
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 ---
"Warning: Cannot add header information - headers already sent by (output
started at c:\program files\apache group\apache\htdocs\web1\1.php:2) in
c:\program files\apache group\apache\htdocs\web1\1.php on line 6"
Seems to me that you have some HTML output (probably in the .INC file) and then
try to send a HEADER.
The Header *must* be the first thing you output, othervise you get the "header
already sent" error.
As for the session problem - it might be the temporary storage folder in which
the session data is stored that is in error / wrong.
Check the spelling of the path and make sure that the folder really exist.
That's my .2 $ worth ;-)
--
Michel Laine
--------------------------------------------------------------------
Web User wrote:
> Hi,
> There are problems with session and header();
> Please give me some advice.
> Thank you!
> Mike
>
> System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations
> are default in php.ini)
> when the 1.php is running, the IE shows 2 errors as below:
>
> Warning: open(/tmp\sess_5176646ce5a800db9101970b80d507f6, O_RDWR) failed: m
> (2) in c:\program files\apache group\apache\htdocs\web1\1.php on line 2
>
> Warning: Cannot add header information - headers already sent by (output
> started at c:\program files\apache group\apache\htdocs\web1\1.php:2) in
> c:\program files\apache group\apache\htdocs\web1\1.php on line 6
>
> -------------------------------
> The scripts of 1.php: (1.php and 2.php are under the same base directory)
> <?
> session_start();
> require("html-head.inc");
> $name="user";
> session_register("name");
> header("Location: 2.php"); /* let the IE automatically turn to the 2.php */
> require("html-foot.inc");
> ?>
> -------------------------------
> The scripts of html-head.inc:
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <title>page title</title>
> </head>
> <body>
>
> -----
> The scripts of html-foot.inc:
> </body>
> </html>
--- End Message ---
--- Begin Message ---
At 09:21 AM 10/10/2001 +0200, Michel Laine wrote:
>"Warning: Cannot add header information - headers already sent by (output
>started at c:\program files\apache group\apache\htdocs\web1\1.php:2) in
>c:\program files\apache group\apache\htdocs\web1\1.php on line 6"
>
>Seems to me that you have some HTML output (probably in the .INC file) and then
>try to send a HEADER.
>The Header *must* be the first thing you output, othervise you get the "header
>already sent" error.
The existing HTML output is the first error message about the session problem :).
Clear the session problem and you won't get the "headers already sent" error.
The session problem, like you said, is either due to the folder set for session data
not existing, or having some problem with forward/back slashes being switched.
-Mike
--- End Message ---
--- Begin Message ---
For those interested, I have released version 2 of my KISGB (Keep It Simple
Guest Book).
Description: A guestbook program that does not require an rdbms. Fully
customizable, clean, and fast. Includes web-based password protected Admin
functionality, along with email notification, greeting, ip logging, ip
banning, bad word filter, over 100 smilies, allowable html tags in comments,
etc.
v2.0 update: Language support for Dutch, English, French, Polish,
Portuguese, Spanish, and Surinam; and Web Admin enhanced with color
selection wheel, and much more.
Price: Free (GPL) - Version: 2.0 - Platform(s): Windows, *nix
PHP KISGB v2.0 Guestbook http://www.gaylenandmargie.com/publicscripts
--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
--- End Message ---
--- Begin Message ---
Hi there
Is anybody able to run an external application from PHP? (under Win32) I
mean to run WinAmp for example? (or new explorer window)
Have a nice day
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Again, you can't do this. You can certainly make winamp execute on the
server PC. To what end you'd want to do this I don't know. What u seem to
want to do is force winamp to run on a users PC whenever they visit your
webpage. This may seem harmless, but this ability would be a nightmare.
Give this function to an unscrupulous person and they would force virii to
run on the users PC instead of winamp.
Again, you can't do this. PHP is entirely server side. All it can do is
produce html data to send to a browser. The php calls are never seen by the
user or the browser. Any sort of php function that could make the users pc
do something wouldn't be php. It'd be html, xml, jscript etc.
Sorry
Ross
-----Original Message-----
From: Yaroukh [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2001 12:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Exec() again
Hi there
Is anybody able to run an external application from PHP? (under Win32) I
mean to run WinAmp for example? (or new explorer window)
Have a nice day
[EMAIL PROTECTED]
--
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 ---
I haven't wrote I want to execute anything on user's PC. /:o) Where did you
read this?
--- End Message ---
--- Begin Message ---
This works:
Exec("mkdir myDirectory");
... this doesn't:
Exec("C:\\Program Files\\WinAmp\\winamp.exe");
--- End Message ---
--- Begin Message ---
Sorry mate, I assumed that's what you were doing, sorry!! There was a
message similar to this a while ago where someone wanted to exec something
on the users PC.
exec('c:\program files\winamp\winamp.exe > empty.file');
Should do the trick. I take it winamp was loading but the page would hang?
PHP waits for exec to finish first. Rerouting the output to a blank file
should do the trick. Hope it helps
Ross
-----Original Message-----
From: Yaroukh [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2001 15:55
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Exec() again
This works:
Exec("mkdir myDirectory");
... this doesn't:
Exec("C:\\Program Files\\WinAmp\\winamp.exe");
--
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 ---
On Tuesday 09 October 2001 6:46 pm, Jon Grover wrote:
> I'm sure a bunch of people here have seen this issue before; at the end of
> the InstallShield wizard, I get a message saying that IIS couldn't be
> configured because it failed to find an OCX control. I know that I can
> download the binaries and go through the install.txt, but it looks a little
> daunting... does anybody know how to fix the OCX issue? I'm running IIS 5
> on Win2K Server SP2.
You don't need to do all the 'get the binaries binary' stuff - as the warning
message box said, php is actually installed perfectly, you just need to
configure IIS as per the instructions in install.txt - it's a doddle - go for
it!
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
I use a form to upload an image on a server. The
problem is after I submit the information , I receive
an error message
Unable to create '/img//tmp/php7C2cMh': No such file
or directory in /var/www/domains/mydom.com/_/form.php
on line 127
I created img directory in order to keep images in
it. It has "write " permissions.
I use php-function copy($new_img,$path).
I think I use the wrong path .
If you have any ideeas , please help.
Thanks,
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--- End Message ---
--- Begin Message ---
We've been runninf PHP 4.06 on a windows NT 4 server. Soem time ago I
reapplied the security settings to the registry so that "guest/IIS"
users could not read the regirty (if you don't disable this setting
people can read your registry from a remote system).
But now PHP crashes with a "memory could not be read" error.
Which keys does PHP need access to to function properly, I will have to
change the settings for those obviously, but I don't want anything else
open.
Who can help me with this?
Jesse
MaxiMedia
--- End Message ---
--- Begin Message ---
When you set up a form in HTML whose action is a .php script (ie: <form name=blah
action="dosomething.php">), is there some way to get the name of the form within the
.php script?
Eric
_______________________________________________________
--- End Message ---
--- Begin Message ---
Not to my knowledge. However what you could do is ad a hidden field to your
form, parsing the name of your form to the script.
I.e.:
<FORM NAME="MyForm" ACTION="MyScript.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="form" VALUE="MyForm">
.
.
.
.
etc.
Then you would always have the name of your form in $form.
I know it's probably not what you're looking for, but it should work.
/Christian
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 10. oktober 2001 17:33
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Getting The Name Of A Form Within A Script
When you set up a form in HTML whose action is a .php script (ie: <form
name=blah action="dosomething.php">), is there some way to get the name of
the form within the .php script?
Eric
_______________________________________________________
--
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 anyone know where to find the php_mcrypt.dll or how to setup
libmcrypt for a apache installation on a windows machine. I have looked
all over the web and have not been able to find anything on it....
TIA
--- End Message ---
--- Begin Message ---
hi,
could anyone give me a hint how to get this dll? i've been having trouble
compiling the library myself, so i'd appreciate a ready to use dll.
thanks a lot.
--- End Message ---
--- Begin Message ---
Hi!
I following the build instructions:
( http://www.php.net/manual/en/install-windows.php#install.windows.build )
When loading php4ts workspace (.dsw) or project (.dsp)
PHP 4.0.5 or 4.0.6 compile i get error message:
'LINK : fatal error LNK1104: cannot open file "TSRM.lib"'
bye, Benjamin
--- End Message ---
--- Begin Message ---
Hello,
I am trying to install php4.06 on windows98 machine with PWS and I ran
into difficulties.
I installed the php using the binary php4.06 installer from the php
website, in the directory c:/PHP. I made all the necessary adjustments (I
think) as described in the online documentation. The whole php4.06 binary
package was extracted in the c:/PHP. I've copied the php.ini in the
windows directory and made the changes (suppose those are correct) and the
php4inst.dll in the /system directory. I've checked the permissions and
those are correct. I also ran php.exe -i and the executable appaers to
run.
Still, when I try to run a simple php scripts, the output is the CGI
Error:"The specified CGI application misbehaved by not returning a
complete
set of HTTP headers. The headers it did return are:"
the path I try to access through Netscape
is: http://ppp/scripts/database/test.php
I'd like to ask your help in installing and setting up correctly the PHP.
Thanks for your help.
Mihai
--- End Message ---
--- Begin Message ---
How to get the data from my local PC MySQL database (or MSAccess) to the
remote UNIX ISP MySQL database. There must be a simple method for this?
I am new to OpenSource and programming.
I have been an NT administrator, and made the jump to OpenSource. Some of
the simple things to do in SQLServer seem complicated using MySQL.
I set up phpAdmin 2.2.0 on my remote ISP's UNIX box: I am able to browse
the phpAdmin 2.2.0 Welcome page, and have protected the folder with
.htaccess.
I remotely created a table in the database which mimics the table I have on
my local Windows2000 PC. Locally, the table and data had originally been
created in MSAccess and was exported to my local MySQL database. That was a
menu-driven one step procedure.
Now, I am trying to figure out how to get the data from my local PC MySQL
database (or MSAccess) to the remote ISP MySQL database. There must be a
simple method for this. I am new to OpenSource, so I need step-by-step
instructions.
Should I give up?
--- End Message ---