Generating A List Of Files On Another Server
I have been messing about with the folder / file functions on the php.net website but they all seem to be for local folders.
All I am trying to do is generate a list of files on another servers folder - so my variable to generate a list from would be "www.tnauk.org.uk/bbs/daily" but the script would be running on nimmox.com. Is it possible?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Generating A List Of Dates
Using PHP 4.4.4, I want to generate an array that contains strings representing days from Jan. 1, 2005 to whatever the current day is. So the array would contain the first values ��-01-01', ��-01-02', ��-01-03' and end with the values ��-01-27', ��-01-28' In case you're interested, I will then take this array and populate a MySQL table.
Generating A Dynamic List
I am tying to write a statement that will compare the values of 2 columns, and display the result in a temp table. ex. Table A has the following columns: "Minimum" and "Maximum." The temp table will hold the reult of the difference between the 2 columns of table A. Scope: I am trying to crate a drop down with the resulting data as it is incremented. If Min = 2 and Max = 7, the TEMP tab;e should get the results of 2,3,4,5,6,7. I want to have this result displayed in a drop-down list.
Need Help In Generating PDF Files
I have a problem in Converting HTML data into PDF I an able to push Image file in PDF HTML Data comes from MySql database , I want to add it in PDF File with Images So can anybody send me PHP Class or code so i can able to convert HTML data into PDF.
Generating Multiple Files Using Templates.
I'm trying to develop a doorway page maker script, what I've done is that I've setup the script to parse a keyword.txt file into specific SE optimized templates, I have done this initial part with the script below Code:
List Certain Files In A Dir
I am working on a news script were my members can post what they are currently working on. I have a dir were all of there images are going to be uploaded, and I need to know if the following is possable to do. $username = the members name selected from the database $projname = the projects name selected from the database What I want to do is select only images with the filename containing the info. The filenames are like this: TheBlackshinobi_3dmountain_1.jpg TheBlackshinobi_3dmountain_2.jpg TheBlackshinobi_3dmountain_3.jpg
List Dir And Files In Sub Dir
I am trying to make a script that list all of the files in a directory and then if the file in the directory is a sub Directory it will list the files in the subdirectory. If anybody would have a clue how to do this or where to start, please tell. Also in the end i want it to check file dates and delete them if they are older then 3 days, but i dont have a clue where to start on this.
Php Foreach Dir List Files In Dir
I've got some code to loop through a directory and it's sub directories and bring back a list of files and folders. What im wanting to do is have this in a state where i can put all info into a database so i can quickly index and then see what files are in what folders. It's all my security camera triggerd avi files. The following code will loop through an give me an array of files and folders Code:
Get A List Of Files On A Website
I need to get a list of all files in a particular virtual directory on a web site, such as - http://www.myServer.com/FileStore I tried using the directory functions, but this doesn't work. if($dirHandle = opendir("http://www.myServer.com/FileStore/")) { while(false !== ($file = readdir($dirHandle))) { print($file."<br>"); } } closedir($handle); } Is there a way to do this?
How Does One Get A List Of All Files In A Folder?
need a list of all files (i have like 5k or so) in a folder, I need to add there names to a table I am doing this so i can compare two tables table 1. comments added to uploaded pics -finished pictures- table 2. no comments added yet to uploaded pics (so they can be commented on GET IT?) -unfinished pictures- All the pictures are in a single folder for the time being i'm going to be making a form based on the pictures that are on table 2 so that they can have comments and titles and file name added to table 1 (to be done still) but i need to know all the file names for the folder in question, i guess i could do it via cmd line ls or something like that, i'll get back to you.
List Php Files In Directory.
I am creating a plugins folder that I will use to store php files. I also store other folders within that "plugins" folder. The problem I have is getting the script to read only the the .php files and skip subfolders. Plugins[main folder] ->plugin1.php ->plugin2.php ->screenshot[folder] ->downloads[folder] How to keep the script from checking the folders (screenshots, downloads..) This part of my script filters the main folder and parent but not subfolders if ($file!= "." && $file!= "..") { How do i get that code to not check subfolders.
Dropdown List Of Files In Folder
I am preparing a form that includes a drop-down list consisting of the names of files in a certain folder on the server. I only need to trap the file name (jpg), not the path and I'm not trying to upload the files or anything - simply allow the user to select one of a number of different image files (they're actually location maps).
How Do I Edit A List Of Files Associated With A Product ?
-I wrote a script that you use it to add products in the database. -Each product is associated with files. -In the Form to add the product you have to enter the product name in a textfield and below there are $no_of_add_file filefields. $no_of_add_file is an integer that determines the Maximum number of filefields that you want to associate/add for each product. So it succesfully adds the product and the files in a database and the filesystem. The problem I am trying to solve is how am I going to edit those files in the product. If you know what I mean... and you have done something like that or you know a url or script that does that, pls let me know. What I need mostly, is not the PHP code but the logic and what are the possible ways of doing something like that. In the database i have two tables that this script needs: One is the products and the other the files. Products : product_id, product_name Files : file_id, file_name, product_id
Get A List Of File Names From The Server
im working on a flash interface that needs to call a script that reads a directory on the server and returns the names of the files that are there. what would the php command look like that would get the file names?
List Files In Directory Excluding Directories
I have the following code which I require to get the list of files in a given directory. However in that given directory I have other directories as well. I thought the second if condition was taking care of excluding the directories, but its not. I get a bunch of directories listed along with the files. PHP Code:
List Of Files Fetched Via Include() Or Require()
I want to be able to, at the end of an executed file, summarize what files it included and required (via include() and require()). I have a very dynamic script that depending on the situation handles several different files and scripts. To aid in developing, listing them would be helpful, to troubleshooting problems. Iss there a way to list all the files that have been included along the way?
Create PHP Pages From List Of Files In Directory
this is probably easy for a php pro... but I cant figure it out.. I have a directory of mp3 files named like this. Chevy_Car_Commercial.mp3 There are about 150 files. I am trying to find a script that will make php pages based on the file names. chevy_car_commercial.php And also dump that variable title Chevy Car Commercial into the <title> of the web page... I have made dynamic pages before... but that was using a form..
Ereg, Read The Dir And Print List Of Files.
I have a dir of html files that link to websites, i would like to read the dir and print a list of those files as a link. Which the script i have does. I would like to take this one step further and replace the ".html" extension with ".com" so it winds up being:
List Files In Directory For Apache Alias
I want to list the files in a given <dir> with a given file extension ... opendir() or scandir() would seem to be my solution. BUT! those files are outside the root dir of the site ... accessed via an apache alias. so opendir() and similar functions do not seem to work as I cannot feed it a relative path. is there a way to do this? my page: <http://myintranet/prodinfo/listdir.php> http location of dir to be listed: <http://myintranet/dailies/> /dailies/ is an alias pointing elsewhere on the server. indexing has been turned on for this alias in apache, so loading the above URL shows the dir contents by default. so for example ... this works because /images is in the root of the web dir: $myDir = "../images/"; $scanFiles = scandir($myDir); print_r($scanFiles); this does not work as dailies is an alias and not a dir in the web root: $myDir = "../dailies/"; $scanFiles = scandir($myDir); print_r($scanFiles); one option I see is to grab the html of that apache auto-generated index page and parse the content to grab the links out of it. but this seems rather roundabout, and with all the great php file tools, I'm hoping there's a much simpler way. does anyone have any ideas, or is there some addtl info I can provide to make my question clearer?
Files Move From Server To Server
I moving to a new server. Is there a way that I can do this without downloading all my files and uploading them? Is there a script that can do this?
PDF Files On The Server
I create pdf files on my unix server using php and a very useful utility from http://ros.co.nz/pdf/. Due to many IE problems I have found the best way is to save them to disk rather than streaming them and then redirect the user using javascript. The problem is that the file is then on the server. I can write a cron to delete the files every so often but the files contain sensitive information so I would not want them to be accessed by just anyone. My main site is password protected through php and mysql. I have thought of using .htaccess files but then the user is asked for a username and password even though they are logged in to my system. Is there anyway of securing these files?
Uploading Files To Sql Server
I'm trying to upload files (into an image field) and then download them, but my files are reduced to 4096 bytes after the downloading. I've tried to execute the query "set textsize=60000" before each select, but this seems to have no effect. I read the files and execute the queries from php 4.2.4.
Transporting Php Files To A Mac-server?
Run into some problems when transporting my php filez to a mac server (it is unix based, right???). Somehow, some of my variables (1 out of 3) would not show up. I needed 3 vars to make a mysql-query. I fixed it by using $_REQUEST['var'] for just one variable, but for the other variables i did not use it and it works.
Deleting Files From A Server
As part of a project I want to allow users to save files to a server or delete files from a server. I have the uploader working fine, but i have no idea how i would delete the file from the server.
Uploading Files To A Web-server
So here's the deal; I'm hosting several people on a virtual server running Linux (White Box Enterprise), each of which has an internet presence. (Apache webserver.) They're also web novices. I want to develop a method by which they can upload photos to a folder on the server from their client computer, without having to use FTP, creating the folder if necessary. This would be accessed from the client-side from a signed applet. How could this be done, short of granting univeral write access in the folder? Is there a way (for instance) that a user can access their remote account with the rights of their local user? I.E., as if they'd logged in via FTP? This should run as quietly as possible, not requiring HTML forms and the like. I'm new to Apache programming, so I'd appreciate any links to possibilities for doing this, or any projects that've already done it.
Copying Files From One Server To Another
I am trying to set up a link excahnge program using php and I need to know how to copy a file from one server to another. See when people change the banner they have displayed they can enter the location of their banner, such as http://them.com/banner.gif and then i need to copy it over to my server and into there dir, such as www.me.com/them/banner.gif. Does anyone know how i can do this. I have tried many things but nothing has workd so far.
Server Generated PDF Files?
Heres what I need to happen now, I know how to do most of it, except the generated PDF form. - The server puts that information into a PDF file with a background of my chosing and emails it to a specified adress. (Its already set up to send the email) My issue is I dont know how to have the server generate the PHP form. How does it work? How do I position the text over the PDF automatically? I'm already donating $10 to the site, thanks to the help I received from UTAlan, Lytheum, and Waldir. Ill make it a total of $20 after this.
Selecting Files From Server With Php
I made a little app that opens a html file into fckeditor then after edit saves the html file. I would like to add a drop down list or whatever is best, so i can select from files on the server to edit. How would I accomplish this task.. in the simplest form since I am a newbie..
Saving Pdf Files To The Server
I am trying to save pdf documents to the server. I would prefer that it is not shown to the user. What I am trying to achieve is to create a pdf, save it to the server, and then email it as an attachment Is this possible, and if so How is it done?
Including Files In Remote Server
I have a perl script to grap headlines from slashdot and such for me, and I use corn to have it run hourly and put the headlines in a file on the linux server. Now problem is that my site is sitting on a Windows 2000 Apache Server. So I can't seem to use include() to get the file into my page. Any suggestions or alternatives?
Delete Files On Server Using Browser
I have several php files in a folder. I would like to have the possibility of deleting these files using my browser, rather than having to log onto the server and do that. Reason? I am dealing with a slightly slippery client, in case he changes the password after i have put the entire site on it, i would like to be able to delete my files, in case i get stiffed on the payment. Would appreciate any pseudo code/code on getting this done, if possible.
Nobody User When Upload Files On Web Server
This time I've got a terrible big problem about the interaction between a PHP application and the web server filesystem. The PHP application has got many funtionalities, such as uploading small image or text documents, creating directories, and so on. Once I log on the web server filesystem, I notice that all the files have been uploaded correctly, but their ownership is of "nodody" user, "nobody" group and 754 permission. I would like such files should have the same owner of the web files on the server, i.e. "pippo".
Moving Files On A Linux Server
I need to find a way of moving files on my linux server using PHP. Because of security the folders I am moving files to require you to be logged in as the super user.
Problem Using PHP For Server Files Redirect
We are trying to set up a PHP page to handle server requests for individual web pages that we are moving to a new server. The part that complicates this procedure is that the files will not be mirrored on the new server. Instead many will be residing in new directories and subdirectories than they were in on the old server. What we wanted to do was when someone requested a specific page from our old server, it would recognize the non-existent page and send it to the redirect.php page that we created. That part works fine. Unfortunately, PHP is unable to see what page originally was requested. I thought it would see one page back, but it doesn't. Is there any way to get the redirect.php to identify what the called for page was so it can redirect it forward to the place the file resides in on new server properly? I know this would be simple if this was from a form but it's not.
Saving Uploading Files On The Server
i am about to start writing a script that uploads files to my server. the code for the form i want to use is: <form enctype="multipart/form-data" action="savefile.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form> using the action script (savefile.php), how do i them save the file in a folder on the server?
500 Server Error Loading Php Files W/iis
I'm sure this question has been asked many times, but I couldn't find a thread that related to my setup, so I have to ask. I have a Windows XP pro machine setup w/IIS 5.1. I've got html, perl, and asp pages setup and working fine. But for some reason, I keep getting a file not found/500 server error when I try to load a simple php file. I tested the file in the command prompt and it outputted the results as expected, so I know it's not a php problem. I'm using the dll file that I copied into the windows/system folder to load the scripts and setup a application configuration and filter setting, and stopped/started IIS. Same error.
Script That Can Run Executable Files On A Server
I am looking for a script that can run Executable files on a server, I have leased a dedicated server but the company doesn't allow remote desktop access to it, so I can't run them, we have uploaded server files to a dedicated server but can't run them, they are exe files.
Required Files Confused Between Applications On Same Server
I'm running PHP 5.2.0 on my Windows XP laptop, running under IIS. I have files named 'config.php' in two different web applications on this machine, which are included throughout each via 'require' in one and 'require_once' in the other. When I attempt to use the two applications simultaneously, the file which was 'require_once'-ed is also being accessed from the other application, even though the two applications are isolated from each other in IIS, and are in completely different directories on the computer.
Uploading Mp3 Files To Folder On Server Via Php Form..
Im trying to design a webpage form in php that allows uploading of three mp3 files to a folder on my server. The webpage should convert the name of each mp3 file uploaded to 1.mp3 , 2.mp3 and 3.mp3 and whenever a new song is uploaded it should replace whatevers in the folder on the server, im totally stuck as where to begin.
Download Files From Remote Server To Local Webserver
I am trying to create a php page whereby people can download files from a remote server to their own server (to update their webdirectory with updated files/images etc). So for example one php page (e.g. update.php) should be able to download files from a remote server to a specific directory on their local webserver. Is this possible?
User Uploading Files To Load Balanced Server Cluster
This really is a file permissions problem ... although I'm not sure how to solve it. Any assistance would be greatly appreciated. I have a series of load balanced servers. Each of the servers is arranged exactly the same and handles file uploads from users as follows: 1) User submits file to www1 server 2) www1 server saves file with permissions showing user "www" is the owner, dir owner is the group for the file ("sg" in this case). 3) cron script on www1 scp's the file to www2 server. All of this works great up until the following happens ... 4) User resubmits the file to www2 server 5) www2 attempts to update file located on www2 server with new version, but cannot modify file (attempting to overwrite a file owned by sg/sg with a file to be owned by www/sg). 6) User continues to see old image, new image is not replicated
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:
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.
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?
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.
|