Search found 96 matches
- Thu Aug 01, 2013 9:41 pm
- Forum: PHP - Code
- Topic: Getting all headers w/php
- Replies: 2
- Views: 812
Getting all headers w/php
Hi when i use livehttpheaders i get the following // PART 1 http://www.thesite.com/the_page.html GET /the_page.html HTTP/1.1 Host: http://www.thesite.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Firefox/17.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 ...
- Sun Jul 21, 2013 3:46 pm
- Forum: PHP - Code
- Topic: loop though text file
- Replies: 4
- Views: 1592
Re: loop though text file
thanks. works perfectly
- Sun Jul 21, 2013 12:38 pm
- Forum: PHP - Code
- Topic: loop though text file
- Replies: 4
- Views: 1592
loop though text file
hi i have a text file with 100 lines of data i have the code to grab the text i am looking for in each line. how do i read the text file, grab the text on each line, [process text - i have this code], then go to the next line in the text file, and just go down line by line until i get to the last li...
- Tue May 28, 2013 5:27 pm
- Forum: PHP - Code
- Topic: query structure question
- Replies: 2
- Views: 956
query structure question
i am not sure how to phrase this i want to pull all records from the DB where i end up with the most recent record posted for a particular case. for example, the table to be queried is 'notes' 'notes' has 50,000 records, representing 1000 records. let's then say that is an average of 50 notes per ca...
- Tue Apr 02, 2013 7:18 pm
- Forum: PHP - Code
- Topic: Code does not execute after header
- Replies: 1
- Views: 2489
Code does not execute after header
OK, so i figured out how to upload to the server, and then, using 'header' to save the file to the location of the users choice, with the code below: header("Content-type: application/pdf"); header("Content-Disposition:attachment; filename=" . $file_name); header("Content-Le...
- Mon Apr 01, 2013 12:57 pm
- Forum: PHP - Code
- Topic: save file to computer on local network
- Replies: 10
- Views: 11230
Re: save file to computer on local network
thanks for the reply
the better question is, how to save a file to a local server - i.e. one on a local network (as compared to remote server, eg mysite.com hosted by somebody.com), using a PHP script
TIA
the better question is, how to save a file to a local server - i.e. one on a local network (as compared to remote server, eg mysite.com hosted by somebody.com), using a PHP script
TIA
- Wed Mar 27, 2013 6:23 pm
- Forum: PHP - Code
- Topic: save file to computer on local network
- Replies: 10
- Views: 11230
Re: save file to computer on local network
sorry it took so long to reply ok, just as an example, yes, i am on a windows machine, and every PC on the network is to. when i go to the address bar to get a local file, this is what the link looks like [url] C:\Users\pc1\Desktop\folder1\folder2\folder3\folder4\progam.exe [/url] but the computer i...
- Fri Mar 15, 2013 8:12 pm
- Forum: PHP - Code
- Topic: save file to computer on local network
- Replies: 10
- Views: 11230
Re: save file to computer on local network
thanks for the reply. the computer i need to save the files to is part of the network. it is on the network so technically the folder where the file is to be stored is not on my machine, it is on another PC in an adjoining office, and it has its own unique name. eg: \\[Computer_name of PC on the net...
- Fri Mar 15, 2013 2:31 pm
- Forum: PHP - Code
- Topic: save file to computer on local network
- Replies: 10
- Views: 11230
Re: save file to computer on local network
right, that is the point ... move_uploaded_file($_FILES["file"]["tmp_name"], "[location]" . $file_name); \\\\Computer_name\\Users\\Public\\" was supposed to be where the file is supposed to be saved to, the folder location, with (in this example) the file name as '...
- Fri Mar 15, 2013 2:21 pm
- Forum: PHP - Code
- Topic: use php to display Save As dialog and direct to right folder
- Replies: 3
- Views: 896
Re: use php to display Save As dialog and direct to right fo
hi requinix
thanks for the reply
with this code
i get this error
thanks for the reply
with this code
Code: Select all
<? header("Content-Disposition: attachment; filename=\"filename.ext\""); ?>
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at ...
- Fri Mar 15, 2013 1:52 pm
- Forum: PHP - Code
- Topic: use php to display Save As dialog and direct to right folder
- Replies: 3
- Views: 896
use php to display Save As dialog and direct to right folder
i am trying to save a step. when files come in we need to upload to the remote host, and then save to a PC on the local network. As it is, this involves 2 distinct steps. What i was hoping for is once the user has located the file, they, upon submit will 1) store that file to the remote server (uplo...
- Fri Mar 15, 2013 1:36 pm
- Forum: PHP - Code
- Topic: save file to computer on local network
- Replies: 10
- Views: 11230
Re: save file to computer on local network
move_uploaded_file($_FILES["file"]["tmp_name"], "\\\\Computer_name\\Users\\Public\\" . $file_name); i tried this and what it did was upload the file to the same folder as the upload.php page and named it: \\Computer_name\Users\Public\123.jpg so it didnt even try to mov...
- Thu Mar 14, 2013 6:40 pm
- Forum: PHP - Code
- Topic: save file to computer on local network
- Replies: 10
- Views: 11230
save file to computer on local network
using the basic html code to locate a file, the user then submits and uploads the file via php $ts = date('mdyh_m_s'); $file_id = mysql_real_escape_string($_POST['file_id']); $orig_name = $_FILES["file"]["name"]; $filen = explode(".", $_FILES["file"]["nam...
- Wed Aug 01, 2012 9:37 am
- Forum: PHP - Code
- Topic: looping through and parsing text
- Replies: 1
- Views: 333
looping through and parsing text
hi after pulling some text, each time there is only one occurrence of: $clause1 = "<th class=title>Data</th></tr></thead><tr><td> </td></tr>"; //(i am adding the variable) and $clause2 = "</div><div id=page_select class=center></div>"; in between the two statements noted...
- Mon Jul 16, 2012 1:08 am
- Forum: PHP - Code
- Topic: string getting cut off
- Replies: 2
- Views: 267
Re: string getting cut off
perfect .... thanks!