File Links In List
what i want to do is store files in a non web accessable folder and thn in a page show links to those files in a list.
what i was wanting to know is could i use a script so when i upload more files to that folder they automatically add into the list? basically show a folder contents in a list in a page.
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
List Contents Of A Folder, Make List Of Links
Does anyone know how I can write a script that: - reads in all the files in a particular directory - displays the file names in a html list and makes a link of them: <ul> <li><a href="filelocation1">filename 1</li> <li><a href="filelocation2">filename 1</li> <li><a href="filelocation3">filename 1</li> </ul> etc.? So basically it creates a list of links with the contents in that directory, so you can download them from there.
View Replies !
View Related
List Subjects That Are Links
I want to list the subjects names which link to the whole bulletin, but am having trouble. while ($numofsubs = mysql_fetch_array($result)) { echo ('<td align=left><a href="viewspecificbull.php?id=' . $numofsubs['Subject'] . '">[/url]</td></br>'); }
View Replies !
View Related
List Of Links From A Block Of Text?
I have a function that parses through a block of text for any kind of link (http://, ftp://, and mailto.. I've tried google as much as I can, and even hotscripts.com, but I can't find what I'm looking for. Basically what I want to do is parse the block of text for any http:// or ftp:// links, and when it finds them, to put them in an array. Then, I will call the array and have a nicely formatted "link dump" area. I'm stuck though because I haven't the faintest idea how to begin on this.
View Replies !
View Related
Function That Return A List Of Categories In Links
I have a class that has two functions. the first will return a list of categories in links and also attempt to put the category ids from the mysql_fetch_array() function into a new array to store all the ids. The second function attempts to create a new array which contains the total amount of users assigned to a category based on the array of ids that were previously stored. Basically in the users table the is a field called cat_id which is the id of the category they are assigned to. So i need to count how many users with the same cat id exist for all categories. Anyway here is my PHP. The returning of category links are fine, but the attempt at storing the ids is not. I suppose im trying to create a multi-dimensional array?? Code:
View Replies !
View Related
PhpMyAdmin - Obtain A List Of Links Of The Names Of The Databases
I have the following code for index.php and i am asked to edit line 7 to allow access to an array of databases (instead of just one)...Does anyone know how to solve this? <?php require_once('lib/DataAccess.php'); require_once('lib/ProductModel.php'); require_once('lib/ProductView.php'); require_once('lib/ProductController.php'); $dao=& new DataAccess ('localhost','root',཈qwaszx','products'); switch ( $_GET['view'] ) { case "product": $controller=& new ProductItemController($dao,$_GET); break; default: $controller=& new ProductTableController($dao,$_GET); break; } $view=$controller->getView(); //echo ("<pre>" ); //echo ("</pre>" ); echo ($view->display()); ?> Moreover, i should be able to obtain a list of links of the names of the databases from which i can choose and view the contents of...
View Replies !
View Related
Alphabetizing A List Of Links - Click A Link And It's Not Alphabetized Anymore??
I am editing a site, I didn't make it, and I have a list of links created from a mysql db. I am sending the info from mysql in asc order, but this only works the first time the page comes up. If you click on a link in the list, it appears to revert back to being ordered by the date entered and stays that way through subsequent clicks. A point in the right direction on how to make my list stay alphabetized would be very good.
View Replies !
View Related
Links From Txt File
I have this code: <? $links = file("mylinks.txt"); $antal = sizeof($links); for($vis=0; $vis<$antal; $vis++) { echo"<a href='" . $links[$vis] . "'>" . $links[$vis] . "</a><br>"; } ?> It works fine, but: When I view the source, there's a linebreak (as in the txt file) after each $links[$vis] And I don't like it! How can I prevent the linebreak?
View Replies !
View Related
10 Links Out Of Txt File
not sure how to go about this did a search. have done other random image codes before. i have a list of say 100-150 links. what i want to do is randomly select 10 of the links from the txt file and display them.
View Replies !
View Related
File() And Dynamic Links.
I'm having a problem opening a web page where i have to generate the url. $url= 'http://www.example.org/webservices/application.cfm?BEDROOMS=' . $bedrooms .'&HOWMANYPEOPLE=' . $howmanypeople . '&KINDOFBUILDING=' . $kindOfBuilding . '&STATE=' . $state . '&qtyToCalculate=' . $qtyToCalculate; $data = implode("", file($url)); This works fine, if i echo the url, and copy paste the link into a browser. The link works. And if I paste the link that echo spits out in ("", file("")); It also works just fine. A quick overview is, this website generates an xml file when variables are passed to it via the url. I'm trying to then pull that xml file down, and parse it to display data. Also, this website is a "Web service" So i don't have access to the actual cold fusion code.
View Replies !
View Related
Validating Links To Text File
I use the following script to validate my links. It works GREAT on pages that only have a few links like http://www.malawi.net. But it does not work on pages like http://echo.jpl.nasa.gov/links.html Instead of returning the results to a page, how can I have this script run in the background and write the results to a text file that can be opened up later? And how can I keep the script from timing out after 30 seconds or even 10 minutes. I want it to be able to handle 1,000+ links. PHP Code:
View Replies !
View Related
Xml File To Generate The Links Of The Thumbnails
I have a client that uses ACDSEE 7.0 for this images of his art well he has folders of images he just wants to upload w/ ftp and have that whole folder be displayed in thumbnail on his site. well each folder has an xml file with the filenames of each image and some description about each image. Can I use that xml file to generate the links of the thumbnails and display the description as well on the website. I would tell him to upload the folder and i could make a php application generate thumbnails of the folder but he wants the description of each image to be displayed as well so this is why i need the xml file to be displayed as content on the site.
View Replies !
View Related
Remove File Extensions Before Creating Links
i have some working code here that creats a list of links in the noted directory, but i would like it to remove file extenions. they are all word docs. also is there a way to force it to open in the browser? all computers will be running latest IE6 and maybe IE 7 in the future. Code:
View Replies !
View Related
Deleting A File From Server Through A File List
I've been having trouble with this for a while. Ages ago I made an upload script that lets you upload to files/upload/ and then once you upload it, a piece of PHP will show the files in that folder. In the admin section of my page i'm trying to find a way to delete the files off the server without having to dig into the FTP and do it manually. Are you able to do that with PHP? Code:
View Replies !
View Related
MD5 Encrypt A List Of Password From A File
Does anyone have a php script that would allow me to encrypt the contents of a txt file? I have an excel file which has a list of usernames and generated passwords. What I would like to do is copy out the plaintext passwords to a txt file and then do a conversion to encrypt the passwords using MD5 encryption as they will then be imported into a MySQL database. Is that possible? I can do them one at a time using a small php script but I've approx 100+ to do.
View Replies !
View Related
Member Area With Dynamic File List
I have an Apache 1.3.31 with PHP 4.4.1 available and want to create some kind of "member area" with a per-user or per-group listing of files that can be downloaded. How would I do this? At present I just protect the individual files using .htaccess and .htpasswd files and give out direct URLs to the files together with username/password. What I'd like is some login functionality where people can log in using their username/password and then find a list of files they can download together with additional information individually tailored for that user.
View Replies !
View Related
Remove File Extensions From A Directory List
I'm running a small script which lists files in a directory by last modified and with under scores in file names replaced with spaces. I'd also like to remove the file extension, but cant figure out how. I found this code. $ext = substr($value, -4); ....though i'm unsure how to implement it PHP Code:
View Replies !
View Related
Flat File List Style Menu
I'm trying to build a Menu Building out of flatfiling with a section to add new areas to it. The idea behind it is to have a header for each section (as the top order list item) then each one below is a link of that category. I already figured I'm buillding it with limits (20 items Max per heading) and that to do it I will simply have each Heading/links in it be a new row in the document. example row Tips tips.php Tips on Php, file tips File Tips tips/files.php, etc etc With the first item of each row being the Heading and each other being the ones under it My question is What delimiters should I use to seperate in the row (I need to separate each item by 1 delimiter and then in each row separate the href, alt, name) Secondly for rewrtiign it should I simply write it so each time it rewrites the whole file or should I try and do string replacing and do modify sorta deal.
View Replies !
View Related
Write To Text File - Keep A List Of Keywords
function Save_Data($word) { $fp = fopen("search_strings.txt", "w"); fwrite($fp, $word); fclose($fp); } I'm trying to keep a list of keywords. Everytime i open the file to check it, it only has 1 word in it. it keeps overwriting the previous word. How do i kee a proper list of words?
View Replies !
View Related
Directory List, Identify Folder Different Than File
I need to make the folder from my dir lister point to a link different of my files ? I'm working with windows NT server... and php 4.3.2 Here is my code : <?php $file = $_GET['file']; if(isset($_POST['text'])) { if(get_magic_quotes_gpc()) { $_POST['text'] = stripslashes($_POST['text']); } $handle = fopen($file, 'w') or die("Unable to open file for writing"); fwrite($handle, $_POST['text']); fclose($handle); } $text = ""; if(is_readable($file)) { $text = file_get_contents($file); } ?> And later on the page in the html part : <textarea class="zz" name="text" id="text" cols=170 rows=10 wrap="off"><?php echo $text; ?></textarea></td></tr> and to add anothe challenge I need it to open in another frame wich is the verticaly siding this one.
View Replies !
View Related
Pull Down Menu Generating A List Off Another File
Is there a way I can make a pull down menu generating a list off another file of all the destination case coming from the file locations.php? locations.php switch ($destination){ case "Las Vegas": echo "Bring an extra $500"; break; case "Amsterdam": echo "Bring an open mind"; break; case "Egypt": echo "Bring 15 bottles of SPF 50 Sunscreen"; break; case "Tokyo": echo "Bring lots of money";...........
View Replies !
View Related
Get List Of Messages From One Table, Message List Indicator From
I have two tables. One has a list of messages left by users using fields named mbxno for the mailbox and msgno for the message number. I have another table that has mailbox settings for each user that contains a field named "messagelist" to indicate if they want to be included on the message list or not. What I'm trying to create is a list of the most-recent messages with a lookup on the users table to indicate whether a message in the list should be included in the message list based on the user's mailbox settings. SELECT messages.msgno, messages.mbxno, users.messagelist FROM messages, users WHERE (users.messagelist = Ƈ') ORDER BY msgno DESC LIMIT 100 What I'm getting, though is a list that looks like this: mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 1114 msgno: 0412141623 msglist: 1 I think what's happening is that I'm using the wrong type of join and more rows are being created than necessary. If I add "DISTINCT" to the query, I get a list of the most-recent messages as I expect, but the "messsagelist" value is sometimes wrong (again, probably because the data is getting jumbled). For example, the messagelist value for the second row (2214) should be 0, not 1. mbxno: 1114 msgno: 0412141623 msglist: 1 mbxno: 2214 msgno: 0412141622 msglist: 1 mbxno: 2189 msgno: 0412141408 msglist: 1 mbxno: 0000 msgno: 0412141213 msglist: 1 mbxno: 0003 msgno: 0412141213 msglist: 1 mbxno: 2265 msgno: 0412132029 msglist: 1 mbxno: 0000 msgno: 0412131950 msglist: 1 How should I be doing this? If nothing else, what kind of join will work with a long list compared to a value from a short list?
View Replies !
View Related
Mailing List Manager, Send To List
I'm looking for a mailing list script (php) that has a function to let users to reach out to all recipient on the list by simple send the email to a specific maillist- address. Mailman has this functionn but as a just got a webserver account I can't use mailman nor install it.
View Replies !
View Related
Dynamically Populate Drop-down List And Dynamically Include Html File
We have a drop down list on a PHP page, with several product names, and when people click one item, we will refresh the same page with the product name as parameter, and in turn we want to include a HTML file into the content area of the same page. I know it is recommended to put everything into database, but we want the web site to be very "portable", so the drop-downlist and the content should both in text files. Let's say the drop-down list will be poplulated from the product.txt file, and there will be a file for each corresponding item in the drop-down list. From the user point of view, if he wants to add a new product, he will just need to open the product.txt file, and add a new line with the product name, "Laptop", then add a new text file named "laptop" in the same folder which contains the HTML fragment to be included in the content area. What is the easiest way to do this?
View Replies !
View Related
Active Persistent Links And Active Links Both 0
I just installed Apache/MySQL/PHP I'm trying to test if the connection to MySQL is there I know the database works on its own, I checked that when I run phpinfo() I get mysql listed, I'm just wondering if when it says "Active Persistent Links" and "Active Links" both 0 (zero) under "enabled" column, is that fine, meaning configured properly?
View Replies !
View Related
List Dir / List Files
Is there a fast way to read files/directory recursively? Instead of inspecting each file(s)/dir(s), is there a way to know that its a file or a directory from its hidden attribut both for windows or unix filesystem?
View Replies !
View Related
List To Populate Another List
i have a form with 3 dropdown list. the first is for a canditate, 2nd is for party, 3rd is for state and 4th is for the local areas in the state. I want if the user selects a state, the dropdown list for the local area to be populated automatically. But since they are on the same form i am not sure how.here is my code <td><select name="state" tabindex="3"> <?php #this is to get listing for roles in a drop dowm menu #the sql query $sql1 = "SELECT distinct(state_name) FROM state order by state_name "; #execute query $rs1 = mysql_query($sql1, $myConn) or die ("could not execute query $sql"); if ($rs1){ while ($row1 = mysql_fetch_array ($rs1)){ echo("<option>" . $row1['state_name'] . "</option>"); } } ......................
View Replies !
View Related
Links
I want to use jpg.pictures from another website. Before I want to check if the file exist I tried (file_exist("http://www.xx.yy/path/file.jpg")) but that is not allowed Also tried linkinfo("http://www.xx.yy/path/file.jpg") but, however some files do not exist all the results are True (-1) Thate could be correct because the path exists, the file doesn't.
View Replies !
View Related
Sym Links
i have been creating sym links, for my little project and im now having problems accessing them? You don't have permission to access /test/phpdb/mp3 on this server. Apache/2.2.4 (Unix) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.1 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at clark.ee. Port 80 user nobody has permission to all directories in htdocs, the symlinks are stored ion /opt/lampp/htdocs/mp3
View Replies !
View Related
Links In PHP
is there any particular way links have to be served to php in order not to cause an error for instance echo "<a href="index.html">Some text here</a>"; will not work
View Replies !
View Related
Getting Nav Links From A Db
I hope not, but I'm beginning to think that I'm going overboard with my desire to put the kitchen sink into a database. so I need some opinions. Since I've become so enthused about drawing content from a database and displaying it via php, my latest brainstorm is to put navigation items into their own table and have them dynamically displayed when each page loads. My reasons are that if a client needs to change or add a link to the nav list - which has happened more times than I'd like to remember. I don't have to sweat blood changing or adding the link to each page on the web site by hand or semi-automated means. I'd just make the alteration once in the nav table. This approach, to me, is way cool. But is this taking the whole php/database experience a little too far?
View Replies !
View Related
Links In Php?
On a script I have I ask the page to link to: <a href='?cal_start=$prev'> Now I also want it to have the GET property_id in the href as well: How can I achieve this?
View Replies !
View Related
PHP Links
I've just changed from using an iframe to a table, because I want the content to expand appropriately. So I was wondering if I can use PHP on the navigation so they load into the table.
View Replies !
View Related
Nav Links
I want a main display page (index.php) to display all of my relevant data. This way, I can change one document and have it reflected across the entire site. What I did was, create my index.php with an include() for my navigation links. In my main index.php page I have a section where I used an include() for the content. So the index page would look like this: Code:
View Replies !
View Related
Id Links
I am trying to create a user specific id link using some sort of gateway page (i.e. out.php, gateway.php, yada yada). something like this: www.mysite.com/out.php?siteid=123?userid=456 anyone have any resources or code so I can get through this? for the site id I need ti to read the url it is redirecting to from my database.
View Replies !
View Related
Dynamic Links???
I’ve looked at several tutorials and searched the archives of this site. I found a few pointers, but I feel entirely daft and can’t seem to quite get it. The “ultimate” goal is to display members profiles, and not have to hard code all the bl**dy records, as I’ve done so far. (Current version http://www.internetbonsaiclub.org/c...y/profiles.html) So, now I have the records in one table in my database. The profiles.php3 page takes all the records in that table, and displays the names in alphabetical order. So far, so good. Now, I have viewprofile.php3, which should display only one record at a time, based on which name the visitor clicked on.
View Replies !
View Related
Function Links
I have seen on some sites (evilwalrus.com for one) where they not only highlight the PHP code in the scripts they display but they also link any native PHP functions from within the code to there explanations like in the example below and I was wanting to if anyone knew how I might accomplish something like this. Code:
View Replies !
View Related
PHPSESSID And Links
My host compiled the feature into the php build that auto appends the PHPSESSID to links when sessions are on. Now, a lot of my links have the PHPSESSID value inserted in the middle of the link, after the '?'. For example: http://www.utorials.com/browse.php?...2c6d5f72e7f81=0 should be http://www.utorials.com/browse.php?cid=9&sid=0 the =0 is after the id for some strange reason. The problem is very consitant in that it appears on the same links in the same way each time. Some links are fine. Any ideas?
View Replies !
View Related
|