[PHP] PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
Hi everybody, Does anybody know if it's possible to specify a php file as the src attribute of an script element in a html page. For example: script language=JavaScript type=text/javascript src=d:/projects/horde/dimp/js/DimpCore.js.php?Horde=b9d9e640abf31e49eab7fad91a543bb5/script I've

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
it doesn't work, no alert message, so the file wasn't loaded. Any ideas? Thanks! On 3/17/06, Barry [EMAIL PROTECTED] wrote: Karl-Heinz Christian Zeck wrote: Hi everybody, Are you allowed to do this? I mean, is the php file parsed by the PHP engine first and a js code is generated

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
to do something like: ?PHP $string = I want a new pop-up message; $javascript = scriptalert( $string )/script; echo $javascript; ? Karl-Heinz Christian Zeck wrote: Thank you for your quick reply. I tried to modify the file. I removed all it's content and wrote only a single line

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
Thank you very much. That was the problem, I didn't noticed that I don't use the server path. On 3/17/06, Barry [EMAIL PROTECTED] wrote: Karl-Heinz Christian Zeck wrote: Thank you for your quick reply. I tried to modify the file. I removed all it's content and wrote only a single line

[PHP] Creating protected Excel files from PHP

2006-01-20 Thread Karl-Heinz Christian Zeck
Hi, I would like to know if any from you guys have a solution to my problem. I use PHP and a PEAR class (PEAR::Spreadsheet_Excel_Writer) to generate some reports as Excel files. My problem is that I want these files to be protected with a password (because these reports will be downloaded to the

[PHP] Restarting windows from php

2005-08-10 Thread Karl-Heinz Christian Zeck
Does anyone have any idea how to restart windows from a php script? I tried the following: exec('SHUTDOWN -r -t 01'); or exec('SHUTDOWN /r'); I received the following warning message: Warning: exec(): Unable to fork [SHUTDOWN -r -t 01]. I never used this kind of functions before.

Re: [PHP] Restarting windows from php

2005-08-10 Thread Karl-Heinz Christian Zeck
I don't want to restart windows locally, I want to restart it remotely. I need a php script that restarts the server. Is this possible or not? On 8/10/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Does anyone have any idea how to restart windows from a php script? I tried the following: