RE: [PHP] server to server post

2002-08-02 Thread skeller
> I am new to php, can anybody pls help me out with my query? > How to do a server to server post in php, without client > knowing about it. There's a function called Post2Host. Look in the archives of this newsletter or in Google Groups and you'll find the code for it. -- PHP General

RE: [PHP] Trouble with \

2002-07-24 Thread skeller
> If the "\" are showing up in form posted data just do this: > > $newtext = stripslashes($oldtext); That's what I'm doing now before they're written to the file. > The slashes are put before any single or double quote by a > nifty little php feature called "magic quotes". By escaping > quotes i

RE: [PHP] Trouble with \

2002-07-24 Thread skeller
> It's extremely important as to where you put the function within your > script. Understood, and as I said before, I'm fairly new to PHP, so I'm bound to make the boneheaded mistakes. But I did try and solve it myself before begging for help :) Basically, the user enteres some text into a form,

RE: [PHP] Trouble with \

2002-07-24 Thread skeller
> Try this function: > http://www.php.net/manual/en/function.stripslashes.php Oddly enough, as I told John, I did that as well and it doesn't work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble with \

2002-07-24 Thread skeller
Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share. Turns out the \'s that I was having problems getting rid of were written there from a form post that was used to collect the data. I still haven't found a way to remove them after reading them from the file, but I did mana

[PHP] Removing \ From a String?

2002-07-24 Thread skeller
I'm trying to remove all \'s from a string before printing it, but strtr still treats it as an escape character. How do I remove them? Anyone? -- The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Web: www.hea

RE: [PHP] why my php can not get values from Form?

2002-07-18 Thread skeller
> I have just installed apache+php4, but my php can not get > values from form? > what's wrong? Before you can use the variables, you have to make the accessible to PHP. Try putting this at the top of your welcome.php file: -- The Health TV Channel, Inc. (a non - profit organization) 38

RE: [PHP] Multi-Part PostToHost?

2002-07-16 Thread skeller
Just out of curiosity, before I get elbows-deep in this, has anyone does this already, before I start rewriting the wheel? Using PHP to POST a file and a few variables to another server's catcher script that is. > > fputs($fp, "Content-Type: multipart/form-data; boundary=AaB03x\n"); > > fputs($fp