@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24



Comments:

<0> what links would that be?
<1> Is there anyway to post XML information to a PHP form without having to actually upload the actual document to the server? I know how to have PHP pull the data from MySQL and write it in an XML format, but I don't know how to post XML information back to PHP to put into MySQL. Is this possible?
<2> you could always base64 encode it if you can't post it as clear form data
<2> but what problem are you facing exactly ?
<2> you mean you want to post the form data as XML ?
<1> I want a client application to post xml to a php document
<2> and where is the XML from ?
<1> a c# program running on an end users pc?
<1> Is there simply a way to send $_POST information to a PHP document on the server?
<1> Since PHP seems to be my only interactive way of access the remote MySQL server
<3> rdw might know
<3> he's t3h .net guy
<2> well, i don't know if there is a .NET cURL library
<2> but that'd be neat
<4> Crucial make the XML headers and post the data with your c# app
<0> hehe, beats me. I don't do any web stuff with .NET



<2> either that or hack the
<2> hmm
<2> what is it again
<4> straight via socks on port 80
<1> In the end my total problem is this...
<2> could do that too yeah
<4> you got a c# app that you want to talk to an XML server on a php backend
<4> ?
<1> I'm writing a client application that end users will use on their own pc's, but I want their information to be upload to the webserver so everyone as access to it
<1> exactly
<4> ok then you need to use socks
<1> socks/
<1> ?
<4> to piort the XML though a sockect
<2> sockets
<3> there's got to be an easier way
<4> telenet to this address port 9876
<4> affinity.owuk.net
<2> I tought of the .NET webservices namespace
<4> then type LOGIN:demo:demo
<1> ok
<4> im doing exactly what you want except not with XML it would bea easy to change my server for XML tho
<1> is this a remote webserver though? cause the biggest problem is my webspace is hosted.. so i'm sorta limited with what i can do
<2> there it is
<2> System.Web.HttpRequest
<2> you could use that to forge a POST
<1> yeah.. I use that to pull the XML from the PHP pages
<2> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttprequestcl***topic.asp
<1> I can't figure out how to post information with it though.. I can only figure out how to request pages
<4> http://pastebin.com/533071
<4> its a php script
<4> there is my source
<2> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttprequestmemberstopic.asp read through that
<2> especially RequestType
<5> hi
<5> what exactly does $_FILES['userfile']['tmp_name'] do?
<5> php.net says: The temporary filename of the file in which the uploaded file was stored on the server.
<5> which doesnt make sense
<2> krzkrzkrz: this is a array index
<2> the file is uploaded to that value
<5> ok
<2> on *n?x webservers it is usually something like /tmp/sjhfa8335****tard
<4> the file in in a /tmp folder with a tmp name you have to ask php to move it
<2> you then need to move it to where you intended it to be
<5> is there any way to change the default value?
<4> the $_FILES object lets you access the creentials
<2> either with copy() or move_uploaded_file()
<5> ah
<2> krzkrzkrz: why would you want to do that ? rename() it
<6> thats a cool icon PapaBear :)
<4> no cause say 1000 people all uploaded image.jpg
<4> at the same time
<4> that woild be a bit messy no ?
<5> well mine currently uploads to c:/programmi/Wamp/wamp/tmp\php39.tmp
<5> would be nice if i could specify where the file needs to be uploaded to
<5> is this done with: move_uploaded_file
<4> move_uploaded_file() <<==-- thats what that does
<5> ok
<4> php handles the file and gives you access to it
<5> thanks



<1> lol.. so much of this is over my head Neo
<7> wew
<4> sorry cruicial
<1> that's alright... I'm trying to piece it out
<4> i have the same kind of thing for my side bar for my affinity php product you see
<1> I didn't realize there was a link given in the telnet session... I just opened it.. this is amazing
<1> How does this use sockets though? I mean.. how does the telnet session access the server using php?
<4> hehe
<4> thats Affinity all written in php
<4> the socks server is there to run the sidebar (written in .net)
<1> and the socks server is nothing but a webserver?
<4> well its php running from shell
<4> php server.php
<1> See the problem I have is I think I'm limited to port 80, and I don't have a shell account on the server
<4> right
<5> this kind of declaration is valid: $p***ed = $true; ?
<4> yes
<4> but should really be $p***ed=true;
<4> unless $true = true;
<2> and I wouldn't call a variable $true
<4> if $true = "not at all" then $p***ed will = "no at all"
<5> so not $p***ed = 'true';
<4> no
<4> $p***ed=true (false/0/1)
<4> cause 'true' would be a string and would not be true
<4> if($p***ed===true){///
<4> a variable can have 5 states empty/true/false/string/int
<4> false!=empty and true!='true'
<4> so Crucial what you think of Affinity
<4> :D
<1> It's amazing.. but WAY out of my league
<1> I'm beginning to think this project may be a little out of my realm of programming
<4> hehe its 1500 a4 pages of PHP and 400 pages of JS
<4> ;)
<5> in_array() will also check nested arrays?
<4> krzkrzkrz no
<4> you need to search your array
<5> ok
<4> array_search()
<4> no that wont work actually
<4> you will need to recur down the array tree
<1> lol.. did you just send a message through it?
<4> yes
<4> and again
<4> have a look
<4> krzkrzkrz nested = multidimensional
<8> I have a cms site that works ok with one db and when I change the vars.php to a new db the backend doesn't work it shows blank, I need some one to trouble shoot this for me. /msg bobmutch if you are up to it.
<2> bobmutch: is this your own PHP code ?
<8> yep
<8> some of it
<8> :D
<8> and yes I own the code
<8> :D
<9> not if you own it, if it's your own
<10> do you have all the database tables, and possibly the data too, replicated in the second db?
<8> yes
<11> bobmutch, you still hung on that one?
<8> and I replicated the 2nd db also
<8> I copied the work ing one into the 2nd one that doesn't work
<8> same thing
<8> Ophiocus yep
<8> http://www.seocompany.ca/pg/
<8> it works fine with this db
<11> double check stupidity pitfalls; make sure all users on both databases have same grants snd stuff
<8> yep did that
<9> bobmutch hah, remember me ? :)
<8> even used the same users
<8> yep
<8> how you doing bro
<9> still hanging in...
<8> sweet
<8> you pick up nitch work
<8> and on your way to making it big or what
<9> having all this exams and all, can't decide whether to learn at math or at webdeveloping :)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#mirc
#AllNiteCafe
plummy, chatzone
programe de flood
#chatzone
anti kiloger
#chatzone
nigel mansell Group-B
#chatzone
bcb countdown timer



Home  |  disclaimer  |  contact  |  submit quotes