Search found 9 matches

by mallu
Thu Aug 28, 2003 9:22 am
Forum: PHP - Code
Topic: file info
Replies: 4
Views: 436

When I do ls - l it gives give me lgranito as the owner of the file rather than the root. The $startscript variable is the path to this file. I was expecting the variable $fileowner to output lgranito. Could u please let me know what I am doing wrong here...

thanks

Mallu
by mallu
Wed Aug 27, 2003 2:51 pm
Forum: PHP - Code
Topic: file info
Replies: 4
Views: 436

$fileowner is alwys giving me root

Thanks for your help

mallu

Code: Select all

$startscript = $froot.$fdir.$ffile;
$fileowneruid=fileowner($startscript);
$fileownerarray=posix_getpwuid($fileownerid);
$fileowner=$fileownerarrayї'name'];
by mallu
Wed Aug 27, 2003 10:27 am
Forum: PHP - Code
Topic: onmouseover
Replies: 6
Views: 531

Thanks volka... it works now...

mallu
by mallu
Wed Aug 27, 2003 10:08 am
Forum: PHP - Code
Topic: onmouseover
Replies: 6
Views: 531

When I bring the mouse over the image nothing happens...

Biju
by mallu
Wed Aug 27, 2003 9:51 am
Forum: PHP - Code
Topic: onmouseover
Replies: 6
Views: 531

onmouseover

Hi there: I have been trying to use onmouseover since yesterday and its driving me nuts. Any help on this will be much appreciated... Thanks Biju <SCRIPT language="JavaScript"> function movepic(img_name,img_src) &#123; document&#1111;img_name].src=img_src; &#125; </SCRIPT> <? p...
by mallu
Tue Aug 26, 2003 1:29 pm
Forum: PHP - Code
Topic: file info
Replies: 4
Views: 436

file info

Hi there:

How do i get the last modified date and the owner of a selected file..?

Thanks
mallu
by mallu
Tue Aug 26, 2003 1:26 pm
Forum: PHP - Code
Topic: clickable directory listing in HTML
Replies: 4
Views: 928

Hi there: Finally I figured out a way to do it... Thanks Mark.. Here is the code print ("<table width=100% border=0 cellspacing=0 cellpadding=25>"); print (" <tr>"); print (" <td><table border=0 cellspacing=0 cellpadding=0 > \n"); $test = explode('/',$_GET[expand]); dir...
by mallu
Thu Aug 21, 2003 11:44 am
Forum: PHP - Code
Topic: clickable directory listing in HTML
Replies: 4
Views: 928

Thanks Mark.... but I needed a funtion that is recursive - like the diplay in windows file explorer - where it shows all the directorys from the root - when a directory is clicked it expands and shows the contents of that directory as well as the contents of the parent directory too - maintaing the ...
by mallu
Thu Aug 21, 2003 10:32 am
Forum: PHP - Code
Topic: clickable directory listing in HTML
Replies: 4
Views: 928

clickable directory listing in HTML

Hi there: Here is the code for listing the directory - but would like to expand each directory only when clicked Any help on this will be much aprreciated Thanks Biju <? function directory_tree($address){ $exts = array("vbs", "js"); $dir = opendir($address); if(!$dir){ return 0; ...