> >Is there a way to launch an .exe app using PHP. Example;
> > Have a user click a link to notepad and have it launch the
> > user's notepad.exe for them?
> RTFM: http://www.php.net/manual/en/function.exec.php
Except that is server side and what the person asking the question
wants to do is cl
> This can be done simply by HTML, just put this line in your code:
>
This can be a little dangerous if all he wants is a file name and not
have that file uploaded. Becasue that's what would happen auto-
matically if he uses the above. I know that, as a user, if I were filling
out a a form tha
> i have set up an array like this...
> $myCart = "myShopping Cart";
I don't think you are allowed to have spaces in variable
names. Try removing the above space and see if that
doesn't fix your problem.
Chris
> why can´t I run exec("dir"); ?
What you want is:
exec( "dir", $dirContents );
foreach( $dirEntry as $dirContents ) {
echo $dirEntry;
}
I believe that'll work and do what you want...
Chris
> Midnight Commander on Linux is one of the best editors our
> there. It ranks right up there with the VERY OLD Microsft
> Editor which I still use regularly! Anybody else remember "me"?
"me"? Multi-Edit?
If so, that editor rules! I just wish their Windows version didn't
suck. I still use
> Further the above, this is the exact error message I'm
> getting (I've been fooling around with the include path
> and so that's why it says something different here):
Warning: Failed opening
'/pathto/apache/apache/htdocs/virtual_host/folder1/index.php3' for
inclusion
(include_path='C:\path
> However, whenever I run a file that includes another file,
> regardless of where that file resides, I always get an error.
> As part of the error, it says that the only path for the include
> is '.' (dot). Am I doing something wrong? Do I need to set
> up the include directory somewhere else?
I've set up Apache and PHP (latest ver) on my Windows98
machine. I've set up a virtual host
(c:\path\to\apache\htdocs\virtual_host)
and I have all my include files here:
(c:\path\to\apache\htdocs\include_dir)
In my php.ini, which resides in my windows directory, I've
set the include path to b
> I use UltraEdit 8 for editing PHP and Perl.
I checked out UltraEdit. It does seem pretty cool.
It just doesn't have the features I need. :/
Chris
> RE: [PHP-WIN] PHP EditorI'm using Homesite + the Php
> extensions for about a year now
I'm using the same, but have been for the past 3 years. Every
day, I keep hoping and praying that I can find an editor that
has the features I need so I can delete this software with impunity.
> and,I had
> You should try Homesite 4.5 or Ultradev 4.0 with the PHP
> extension PHAkt
> (http://www.interakt.ro/phakt/)
Don't even bother with Homesite. There aren't enough
expletives (plus, this is a family list :p) to adequetly describe
how bad this software is. And don't take my word for it.
Go to A
> I am storing html fragments in mysql. The html has PHP in it. Here's
> the problem: The text that is pulled out isn't "executed" as it is
> returned. I can still see all the various php bits, in other words.
> Is there a command to allow PHP to execute all the php code in a
> string?
check out
> Is there an easy way to grab the page name or the referring page from
> another page? I have a logon script which checks if they are
> logged in and dumps them to a logon page if they aren't and I'd like to
> have a way for them to get back to where they came from (ie. they walked
> away fr
> Try looking at register_shutdown_function at
> http://www.php.net/manual/en/function.register-shutdown-function.php
>From the documentation:
"int register_shutdown_function (string func)
Registers the function named by func to be executed when script processing
is complete."
What qualifies a
> You need to use sprintf or printf to format the output. Here's the
> necessary code:
> $Percent = sprintf ("%0.2f", $Percent);
> If you use printf it will print the result, whereas sprintf
> (as used above) returns the string and lets you assign it to a variable
> instead.
> More info here:
15 matches
Mail list logo