Search found 86 matches
- Wed Jan 14, 2009 6:55 am
- Forum: PHP - Code
- Topic: Directory Tree
- Replies: 8
- Views: 958
Re: Directory Tree
again changed to, I am getting the output as a, if (is_dir($currentfile)) { if ($file != '.' && $file != '..') { $last_dir .= "<img src='images/folder.gif' alt='' align='middle' width='16' height='16' border='0'> <a href=\"javascript:...
- Wed Jan 14, 2009 6:46 am
- Forum: PHP - Code
- Topic: Directory Tree
- Replies: 8
- Views: 958
Re: Directory Tree
i have a folder 'a' which has folder 'aa' aa folder has 'aaa'. if i use echo, i am getting the output as,
a
aa
aaa
the above is correct.
If i store in array and return it i am getting the output,
Array ( [0] => a
)
a
aa
aaa
the above is correct.
If i store in array and return it i am getting the output,
Array ( [0] => a
)
- Wed Jan 14, 2009 6:21 am
- Forum: PHP - Code
- Topic: Directory Tree
- Replies: 8
- Views: 958
Re: Directory Tree
changed the code, I am not getting all the contents. <?php function ls_recursive2($dir) { if (is_dir($dir)) { $files = scandir($dir); foreach ($files as $file) { $currentfile = $dir . "/" . $file; $last_dir = ""; ...
- Wed Jan 14, 2009 3:59 am
- Forum: PHP - Code
- Topic: Directory Tree
- Replies: 8
- Views: 958
Re: Directory Tree
yes, i commented echo and uncommented $d[] and also uncommented the return $d. print_r(ls_recursive2("../")); is not printing all the contents.
- Wed Jan 14, 2009 3:22 am
- Forum: PHP - Code
- Topic: Directory Tree
- Replies: 8
- Views: 958
Directory Tree
The below function works fine when i echo. I needed the function to return the contents as i am using template to echo the contents. When i tried to store the contents in an array $d (as i have done in the below code and commented) all the contents are not listed. Please have a look at the code and ...
- Thu Jan 08, 2009 7:07 am
- Forum: PHP - Code
- Topic: directory tree
- Replies: 1
- Views: 179
directory tree
Hi,
I am looking for a script where directory tree is listed with delete link (folder and files). If there is any script allready in web please give me the link of it.
Thanks
I am looking for a script where directory tree is listed with delete link (folder and files). If there is any script allready in web please give me the link of it.
Thanks
- Tue Nov 25, 2008 5:01 pm
- Forum: PHP - Code
- Topic: Network Programming
- Replies: 1
- Views: 123
Network Programming
Hi, I have to make a web based ftp application for an intranet site. I searched for tutorials, not able to find in any tutorial where uploading folders is given. Since its an intranet application, would like to know, if i know static ip address of the system will i be able to access that systems fil...
- Sun Oct 26, 2008 5:28 am
- Forum: PHP - Code
- Topic: Crawler
- Replies: 3
- Views: 111
Re: Crawler
This forum is dead!
- Sat Oct 25, 2008 9:38 pm
- Forum: PHP - Code
- Topic: Crawler
- Replies: 3
- Views: 111
Crawler
Hi, I am trying to index a website. I am struck. Can someone help me out getting this right? $ulr = 'http://localhost/my_search/'; $first_page_links = Links($ulr); foreach($first_page_links as $first_page_link) { $all_links[] = Links($first_page_link) return $all_lin...
- Tue Oct 07, 2008 8:36 pm
- Forum: PHP - Code
- Topic: crawler
- Replies: 0
- Views: 117
crawler
Hi, I am looking for a script which can index the site by taking the links ("<a href>" tag) and show the results without keeping it in the database - On every update, i have to index it to keep it updated. I already have a script which indexes and keeps the link and their respective pagena...
- Mon Jul 14, 2008 7:39 pm
- Forum: PHP - Code
- Topic: Displaying chart
- Replies: 0
- Views: 90
Displaying chart
Hi, I want to generate an organization chart for a college. The order of hierarchy are, Principal Name HOD (Head of the Departments) OR Divisions. Depends on the number of departments Sections (Section Heads) Lecturers/other staffs. //some staffs belong to whole departments like sweepers. They are s...
- Sun Jul 13, 2008 1:13 pm
- Forum: PHP - Code
- Topic: using implode function
- Replies: 1
- Views: 234
using implode function
Hello, I have 2 tables tbl1:- id, stud_name, class_id tbl2:-class_id, class_name I have to display results in the below format, class_name student1, student2,.... The code i wrote is, $q = mysql_query("SELECT * FROM tbl1, tbl2 WHERE tbl1.class_id=tbl2.class_id"); while($r = mysql_fetch_a...
- Fri Jul 11, 2008 10:36 pm
- Forum: Installation and Configuration
- Topic: Name instead of IP address INTRANET
- Replies: 1
- Views: 748
Name instead of IP address INTRANET
Hi,
I have set up a Intranet site using WAMP server. Currently i have to type the ip address to get the site. I want to give a name instead.
Thanks
I have set up a Intranet site using WAMP server. Currently i have to type the ip address to get the site. I want to give a name instead.
Thanks
Re: Query
I am not sure what result you want. For example a staff who is a group director will have the following values, staff staff_id = 1 staff_fname = 'GD_FNAME' staff_lname = 'FD_LNAME' staff_desig_id = 1 staff_org_id = 1 staff_org staff_org_id = 1 section_id = null division_id = null group_id = 1 I wan...
Query
Hello, I have the following tables and their fields in them staff :- staff_id, staff_fname, staff_lname, staff_desig_id, staff_org_id group:- group_id, group_name division:- division_id, division_name section:- section_id, section_name staff_org:- staff_org_id, section_id, division_id, group_id In t...