Search found 24 matches
- Sun Apr 15, 2007 10:06 am
- Forum: PHP - Code
- Topic: Multipart MIME and PHP. Help needed.
- Replies: 4
- Views: 710
I've figured out why it is not regarding the boundries. It's because I'm just doing an echo and therefore am not receiving the data... Correct? What I would like to know then is can I change the order around? Instead of $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $_SESSION['url'] ); curl_setop...
- Wed Mar 14, 2007 5:05 am
- Forum: PHP - Code
- Topic: Dynamically creating URLS based on user input !
- Replies: 10
- Views: 757
You are probably going to have to open that directory by assigning it a permission of 666 or even 777. Either way, having writable directories on your server is insanely dangerous if your are not careful of what is going to be written to it. Please correct me if I'm wrong, but I don't think that he...
- Tue Mar 13, 2007 1:34 pm
- Forum: PHP - Code
- Topic: Multipart MIME and PHP. Help needed.
- Replies: 4
- Views: 710
Thanks for the reply. Unfortunately, I don't have access to the boundry since I'm one the receiving end. A third party sends me the multipart message with some tet and a binary string (zip file). Every time the message is sent, the boundry changes. I've tried something along the lines of: $ch = curl...
- Tue Mar 13, 2007 12:17 pm
- Forum: PHP - Code
- Topic: Dynamically creating URLS based on user input !
- Replies: 10
- Views: 757
- Tue Mar 13, 2007 11:38 am
- Forum: PHP - Code
- Topic: Multipart MIME and PHP. Help needed.
- Replies: 4
- Views: 710
update
Here is an update after much fiddling and googling (for a newbie all seems dificult at first... ;) ) I have managed to get the file to download. I figured out that I had to change the header. After changing the header, I then did curl_exec( $ch ); and the file started to download. What I haven't yet...
- Tue Mar 13, 2007 10:51 am
- Forum: PHP - Code
- Topic: Multipart MIME and PHP. Help needed.
- Replies: 4
- Views: 710
Multipart MIME and PHP. Help needed.
Hi all. I'm trying to make a script as requested by a service provider of ours. A brief explanation follows as stated by the provider: In case of a successful registration, the server returns to the client The generated key file as multipart MIME-message, in which there will be at least one text and...
- Thu Feb 22, 2007 6:35 am
- Forum: PHP - Code
- Topic: form post and http response code
- Replies: 4
- Views: 660
Found something better here using curl.
- Thu Feb 22, 2007 6:13 am
- Forum: PHP - Code
- Topic: form post and http response code
- Replies: 4
- Views: 660
- Thu Feb 22, 2007 5:32 am
- Forum: PHP - Code
- Topic: form post and http response code
- Replies: 4
- Views: 660
Thanks for the quick reply Rovas. Unfortunately, it will not help. I think my question came out wrong. I don't need to handle the download, since that part is handled by the emote server (remote url). If all is correct, they send the file to download. All I need is a pointer on how to do the followi...
- Wed Feb 21, 2007 5:21 pm
- Forum: PHP - Code
- Topic: form post and http response code
- Replies: 4
- Views: 660
form post and http response code
Hi all, Beeing a newbie php programmer, I need some help here. The scenario I have a form to gather some user input which is then sent to a remote url via post method. The remote url then returns a http response code indicating either error or all is ok and a file to donwload. I have no access to th...
- Mon Aug 21, 2006 2:42 am
- Forum: PHP - Code
- Topic: Problem with redirecting to page in array
- Replies: 8
- Views: 595
No it's not. The sesion var $_SESSION['i'] is just a pointer to the current element of the array created above and points to foto1.html... foto2.html... I'm looking into creating a full URL from the info Daedalus pointed me to. I will also try griffinmt's sugestion. It could also be a problem with t...
- Sun Aug 20, 2006 4:38 pm
- Forum: PHP - Code
- Topic: Problem with redirecting to page in array
- Replies: 8
- Views: 595
- Sun Aug 20, 2006 4:23 pm
- Forum: PHP - Code
- Topic: Problem with redirecting to page in array
- Replies: 8
- Views: 595
PLease forgive my ignorance feyd, but your link pointed to a page with the following message Sorry, but the function langauge.types.string is not in the online manual.... and various possible options. I don't know which would solve my problem. However, from what I understood from your post... my pro...
- Sun Aug 20, 2006 3:26 pm
- Forum: PHP - Code
- Topic: Problem with redirecting to page in array
- Replies: 8
- Views: 595
Problem with redirecting to page in array
I need to cycle through pages, pose some questions, evaluate the answers and iterate to the next page in the array. The problem is how can I redirect to the next page in my array. I tried inlcude(); all seems OK but then I end up in an endless loop. With header(); I get an error since I have to poin...
- Sun Aug 20, 2006 2:55 pm
- Forum: PHP - Code
- Topic: How to redirect Page
- Replies: 11
- Views: 963
Thanks for the quick reply... i have a similar problem and was trying to achieve this with inlcude(file.php); I will try using header instead. I have just one problem... From what I read in the other posts, I have to supply the full URL, but the page that I want to redirect to is in an array. In oth...