[PHP] Uploading files

2001-03-06 Thread Daniel Lynn

I seem to be having a lot of trouble uploading a file using the post
method.

I've read through a good amount of code and tutorials and can't seem to
find anything wrong with my code. We're running this in the latest PHP 3
version on two different servers (one NT and the other OpenBSD). Now, it
works if we are using the page from the actual NT server, but not from
any other computers on he LAN. We haven't been able to get it to work at
all on the OpenBSD server, though we can't test it drectly from that
computer.

ok, here is the code I'm using for the form to upload the file:






\n");
print("\n");

?>

Send this file: 



and I open the file, but get an error because there is nothing in the
file -- code below:

$file1 = @fopen($userfile,"r");
if (!$file1) {
   print("I'm sorry, but we cannot open the file that you have
uploaded.");
}

We also checked the permissions multiple times and the server's error
log, but nothing... so, if anyone sees anythign wrong, please let me
know. . thanks

-Daniel Lynn



-- 
PHP General 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]




[PHP] system() function

2001-03-12 Thread Daniel Lynn

I'm having an interesting problem. I'm running on an NT machine. I'm
using the function:

system("F:/full/path/program");

I've tried it using all kinds of forms of forward and back slashing,
doesn't seem to matter... oddly enough, if I copy the text out from
between the quote and paste it into a command window it runs fine. I
also tried using the exec command, but no luck. The intiger return
variable is -1, which I assume to mean it failed...

I'm completely lost now so if anyone has any ideas, input, or longshots,
I'd be happy to hear them. Thanks

-Daniel


-- 
PHP General 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]




[PHP] that whole system() thing again

2001-03-14 Thread Daniel Lynn

ok, figured my problem out.. apparently system() and exec() and all tha
can't be called from php if it is runnig as an apache mod.. anyone know
a way around this?

-Daniel


-- 
PHP General 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]




Re: [PHP] that whole system() thing again

2001-03-14 Thread Daniel Lynn

Well, no, I'm not sure... I, personally, am a graphic designer that used to
program and somehow got suckered into programming again.. however, the person
in charge of teh server came to this conclusion for us and wether he is righ
or wrong, we have to face the fact that the exact same code to make the system
call used to work and now doesn't. There is no error or warning, and it
happened right around when we sopped running php as a cgi script and started
running it as an apache mod... ::shrug:: so, what he says makes some degree of
sense anyway.

-Daniel

Jack Dempsey wrote:

> Daniel Lynn wrote:
> >
> > ok, figured my problem out.. apparently system() and exec() and all tha
> > can't be called from php if it is runnig as an apache mod.. anyone know
> > a way around this?
> >
> > -Daniel
> >
> > --
> > PHP General 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]
>
> umm, you sure bout that? i could be sleep typing, but that seems totally
> off...
> http://www.php.net/manual/en/function.system.php
>
> jack


-- 
PHP General 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]