php-windows Digest 8 Oct 2001 13:36:25 -0000 Issue 794

Topics (messages 9737 through 9746):

Re: path
        9737 by: CJD

Re: uploading files
        9738 by: CJD

Re: problem with exec()
        9739 by: CJD
        9740 by: Christian Dechery
        9741 by: Shane Caraveo
        9742 by: Christian Dechery

How can I get the NTFS fileowner?
        9743 by: Steven Greenberg

session timeout
        9744 by: Stanley
        9745 by: Michel Laine

Objects and case
        9746 by: Ouster

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 ---
You can use basename() to get the file part, dirname() to get the directory
part, or pathinfo() to get all of it in an array.


"Alexandre Busquets Trioal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
> There are any function there returns de completly path of same file.
>
> Thanks
>


--- End Message ---
--- Begin Message ---
This is usually because PHP does not have write/create permission on the
server's web directory. Ask you host to alter it for you.


"Alexandre Busquets Trioal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Iītring to do an upload images files script for my remote site. I have
> tried this into my local machine and run well, i know that run correctly
> because my local site(my machine) i donīt need user/pass to access. But
> my site need autentification pass/user, I put my script into my remote
> site and I have this error.
>
> Warning: Unable to create '/home/sites/site40/web/lignea/img/maria.jpg':
> Permission denied in /home/sites/site40/web/lignea1/imatge.php on line 24
> failed to copy ...
>
> the script is:
>
> <?php
>
> define("GIF", "1");
> define("JPG", "2");
> define("PNG", "3");
> define("SWF", "4");
>
> $size = GetImageSize($fitxer);
>
> $fitxer_name="maria";
>
> $fitxer2=dirname($fitxer)."/".$fitxer_name;
>
> print ($fitxer2."<br>");
>
> $fitxer2=strtolower(str_replace(" ","",$fitxer2));
>
> move_uploaded_file($fitxer,$fitxer2);
>
> $fitxer3=$DOCUMENT_ROOT."/lignea/img/".$fitxer_name;
>
> print $fitxer3;
>
> if (!copy($fitxer2, $fitxer3.'.jpg')) {
>      print ("failed to copy $file...<br>\n");
> }
>
> unlink($fitxer2);
> ?>
>
> Thanks.
>


--- End Message ---
--- Begin Message ---
Depending on the command you are trying to run, you might have to put
"command /c xxxx" as calls like copy, del, dir etc are internal to
command.com and need to be poped into a new shell to run.

"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm running PHP on a Win98 machine with apache 1.3.12 and PHP 4.0.6, and I
> can't seem to get exec(), system() or whatever working...
>
> somehow the shell execution of the passed command is interrupted and the
> output is cut... so the result is wrong.... is this a Windows prob???
>
> _____________________________
> . Christian Dechery
> . . Gaita-L Owner / Web Developer
> . . http://www.webstyle.com.br
> . . http://www.tanamesa.com.br
>


--- End Message ---
--- Begin Message ---
the command is mysqldump with trillions of parameters to backup a db into a 
file... something in the ways of:

$cmd="mysqldump -h $host --user=$user --password=\"$pass\" --opt 
$database > $backup_file";

I'm gettting error return 2... which (according to 'man errno') means 
EACCESS or 'Permission denied'. How can something be denied in Win98 since 
it doesn't handle permissions, users and stuff?

At 13:20 8/10/2001 +1300, CJD wrote:
>Depending on the command you are trying to run, you might have to put
>"command /c xxxx" as calls like copy, del, dir etc are internal to
>command.com and need to be poped into a new shell to run.
>
>"Christian Dechery" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'm running PHP on a Win98 machine with apache 1.3.12 and PHP 4.0.6, and I
> > can't seem to get exec(), system() or whatever working...
> >
> > somehow the shell execution of the passed command is interrupted and the
> > output is cut... so the result is wrong.... is this a Windows prob???
> >
> > _____________________________
> > . Christian Dechery
> > . . Gaita-L Owner / Web Developer
> > . . http://www.webstyle.com.br
> > . . http://www.tanamesa.com.br
> >
>
>
>
>--
>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]


_____________________________
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br

--- End Message ---
--- Begin Message ---


> 
> $cmd="mysqldump -h $host --user=$user --password=\"$pass\" --opt
> $database > $backup_file";
> 
> I'm gettting error return 2... which (according to 'man errno') means
> EACCESS or 'Permission denied'. How can something be denied in Win98 since
> it doesn't handle permissions, users and stuff?

Don't confuse unix with windows.  error 2 == ERROR_FILE_NOT_FOUND
Likely, mysqldump is not in the system path.

Shane
--- End Message ---
--- Begin Message ---
At 17:44 7/10/2001 -0700, Shane Caraveo wrote:


> >
> > $cmd="mysqldump -h $host --user=$user --password=\"$pass\" --opt
> > $database > $backup_file";
> >
> > I'm gettting error return 2... which (according to 'man errno') means
> > EACCESS or 'Permission denied'. How can something be denied in Win98 since
> > it doesn't handle permissions, users and stuff?
>
>Don't confuse unix with windows.  error 2 == ERROR_FILE_NOT_FOUND
>Likely, mysqldump is not in the system path.

thanks... where did you get this info (error 2 == ...) ??

right... it isn't in the path... but I used chdir() to get to where 
mysqldump is, and $backup_file has a full path in it...

_____________________________
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http://www.webstyle.com.br
. . http://www.tanamesa.com.br

--- End Message ---
--- Begin Message ---
Hi everyone...

I just wrote my first PHP app (a simple directory searching page for an FTP
server) - it works great, but I'd like to display the uploader's name next
to each file. Unfortunately, it seems that the fileowner() function always
returns zero on Windows (?), and even if that worked I couldn't resolve it
to a username because it appears that posix_getpwuid() and the rest of the
Posix extensions are not available for Windows(?). I know how to get the
NTFS fileowner in 'C' - if there's no other solution, I guess I could write
my own PHP extension - not exactly sure how difficult that is, though - any
ideas on any of this?

TIA..
- Steve



--- End Message ---
--- Begin Message ---
Hi all,

can anyone tell me how can config "session timeout"
i know the default time is 180min, how can i make it shortly?

pls advise. thx a lot!

Stanley


--- End Message ---
--- Begin Message ---
Stanley wrote:

> Hi all,
>
> can anyone tell me how can config "session timeout"
> i know the default time is 180min, how can i make it shortly?
>
> pls advise. thx a lot!
>
> Stanley

Did you look in PHP.INI ?
I'm sure you'll find it in there.

--

Michel Laine


--- End Message ---
--- Begin Message ---
I've created an object named "ProfiloPC", and stored its definition in an
included file.
When I serialize this object I can see its name is "profilopc".
I need to use this object in a session, but I receive an error message where
PHP says that I've tried to use a method of the class"profilopc".
Of course I include the file with the definition of the class in each page,
as the manual state, but objects name are case sensitive?

I'm using NT4, IIS4, PHP 4.0.5

Thanks.


--- End Message ---

Reply via email to