| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> is there a way to just post to a form and not follow it? so I don't have the js to deal with <0> tried inculde('urlstring') and file('urlstring') <0> but they didn't work because it's post data <1> not follow it? <0> well send the post data and not care about what's returned <1> if you don't want to use js then that's upto how you code your form script. <0> CaT[tm] I don't quite follow you <1> smacks: well if you don't javascript to submit the data for you you'll need to code the script the <form> tag uses so that it redisplays the current page as is after accepting the data. <2> Smacks: When you say "java popup", do you mean "javascript popup"? <0> TML yes <2> Smacks: And you're saying that you think curl is hanging because of a javascript popup? <1> the script now works under php5.1.4 <0> TML I'm saying it goes to a page that wants a click on a js popup <2> Smacks: You need to figure out what a normal browser does as the result of clicking on that popup, and then write your PHP/curl to skip the intermediate page and do that thing directly instead. <0> ok
<3> when I point my browser to localhost/index.php, it wants to open the .php file rather than displaying it in my browser, any idea why? <2> Tu13es: <3> is that Apache's problem? <2> My first suggestion would be not to use localhost <3> what should I use? <2> Give your host a name, make sure it can be resolved using something like /etc/hosts, and use that <2> !tell Tu13es about lm <2> !tell Tu13es about at <2> Tu13es: Then, make sure those two entries (sent by php-bot) are in your apache configuration <2> Or something close to them <3> hmm <3> ok, I'll see what I can dig up <3> why should I not use localhost? <2> Tu13es: If you still have a problem, then check apache error log and see if it gives any messages <3> aye aye <3> just curious why to not use localhost? not that I disagree, just wondering why.. <0> TML any idea where I might read more about what you're talking about? I looking at live headers and can't see anything I could do differently <4> I'm having trouble with something... I want one error.php page, which looks up the error and displays itself accordingly... so 404 redirects to error.php which handles that message... is this possible? <5> Sages: Yes <5> Sages: That's an Apache feature, so you're better off asking on #apache <4> hmm, I think my server runs IIS. <5> Ah, then ask the IIS guys <5> Because it's the web servers responsiblity to redirect errors to whichever page you like <5> And then your page can handle the error <4> I see. Thanks. <5> Anytime <3> hrm <3> Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf: <3> Cannot load /usr/local/php5/libphp5.so into server: Library not loaded: /usr/local/apache2/lib/libaprutil-1.0.dylib\n Referenced from: /usr/local/php5/libphp5.so\n Reason: image not found <3> where can I get the missing lib? <5> Windows/Linux? <3> OS X <5> hehe <5> You need to compile PHP with the apache2 configuration directive <5> The lib is generated at the end of the compilation process <2> Smacks: When you click the javascript button, your browser does something. <3> hmm <3> how do I do that? <2> Smacks: You need to figure out what that thing is, and do it in curl. <2> Tu13es: Are you compiling on OS X? <3> yes <2> Tu13es: And you read php.net/install.macosx ? <3> I believe so <3> can I just start from scratch? <0> TML any suggestions on how to figure that 'thing' out? <2> Smacks: I usually use the mozilla extension "livehttpheaders" <0> yeah I'm using that <3> also, the OS X directions on PHP.net are for PHP4, if that makes a difference <5> Tu13es: Shouldn't matter that much <3> k <2> Smacks: Then you should have everything you need <5> Tu13es: Just ensure you give valid, current paths for the configure options <6> Do I absolutely have to compile php with --with-mysqli ? or mysqli is only for the new functionality of mysql ? <5> --with-mysql should suffice <0> suppose I could just fork off 100 threads and let them timeout <3> hmm <3> while compiling php5, I get this <3> ./configure: line 1: /apu-config: No such file or directory <3> configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2) <3> Apache 1.3, wtf? <7> WTF?
<8> http://www.andrewcharron.com/area52/ Can someone help me with this error? Im not sure why it would give me an error like that <9> blech i wanted to make a cake for tomorrow but that won't happen with my eye being closed <10> won't happen with your eyes open either <10> =) <9> ugh im in no mood for your jokes <11> blah <11> me neither <11> drunk...... <10> PMS <10> PMS == piera_ Mena streak <10> mean <9> whatever <12> In this search script http://pastebin.com/744088, where is says // Build SQL Query what format do i enter my field names in, My Field names are "Equipment No.", "Drive No.", "Origin", "Row", "Column", "Description" <13> Hello ppl. I am currently p***ing a PHP/MYSQL dynamically created form to a php page that needs to be able to read a 2 dimentional array. I am little expirence with arrays and I think I have the array created correctly but now I don't know how to access it and create the display table and sql query I need to when the user confirms the order <12> Would someone be kind enough to edit htat section of the script and pastebin it back to me <12> *that <13> is anyone able to help me with 2 dimentional arrays? <12> MariusX, wish i could ;) <14> where is the code? <12> errr, my problem <12> or MariusX <14> MariusX: <12> errr, ok <13> ok. I will paste it up in a sec. <15> i'd recommend doing print_r($_POST) to see what you're uploading <13> I have taken the post information and grouped the 4 items for each product into a 2 dimentional array. <12> is there someone that can help with my problem <5> vipersniper: Just ask <15> vipersniper: do you know any SQL? <12> Xyphoid, nope <15> you'll need to learn some for this. <13> here is the code I use to make the form http://pastebin.com/744105 <14> vipersniper: Im not sure if there is anything wrong with "Equipment No." but I would use no spaces in my names at all <12> errr, good advice and i willchange the name <13> and here is the page I am posting to. http://pastebin.com/744114 <12> errr, but how do i enter the fields in this section, where is says // Build SQL Query could you give me an example using my fields "please" <14> MariusX: maybe its my bad eyes, but I dont see a 2 dimensional array anywhere in that code <3> hmm <13> on the second page? I am creating an array with each record in it being an array with the name,price,unit,quantity <3> so I did what this guy does here: http://www.macosxhints.com/article.php?story=20051214031718251 <13> I will post thr print_r of the array I have <13> http://pastebin.com/744118 <3> but I get this when I start Apache: Cannot load /usr/local/php5/libphp5.so into server: Library not loaded: /usr/local/apache2/lib/libaprutil-1.0.dylib\n Referenced from: /usr/local/php5/libphp5.so\n Reason: image not found <3> do I need to recompile PHP? <13> I also want to know if I can give the fields names for easyer access. <15> marius: yeah, name a field arrayname[fieldname] in the form <15> and you'll get $_POST['arrayname'] containing fieldname=>value <12> KillerX, http://pastebin.com/744088, how do i enter my field names in that script <15> viper: you need to learn the syntax of the SQL INSERT statement <13> I am not creating the array in the form page though. how do I do it on the second page. could you edit the pastbin to show me how to do it? <12> Xyphoid, its a $query = "select * statement <15> Heh, good point. so you need the syntax of the SELECT statement <12> ;) <12> thats ok <12> Xyphoid, most of the syntax is there i just need to know where that fields go ;) <13> Xyphoid: could you edit this so that it ***igns a name for the fields so I can see how to do it? http://pastebin.com/744114 <12> thanks later <15> you ***ign the name to the fields when generating the form in the first place. not when saving the fields. <16> goodnight <13> I have ***igned names to the fields on the form. I want to be able to build a table on the second page made from the array. so for each array in the main array I will have the names (FishName,FishPrice,FishUnit,FishOrdered,FishID) <13> so I can do something like forech ($fish) <td>$Fishname</td><td>$FishPrice</td> etc <15> so you'd do something like foreach($mainarray as $array) { foreach( $array as $fieldname=>$value) { // do something with $fieldname and $value } } <15> to do a header row, i'd do $headernames = array_keys($mainarray[0]); <15> so you get the keys of the first row and use that <13> is that how you access and an array in an array? <13> oh ok. that sounds useful <13> Thank you. I will give that a try <17> in mysql , i am trying to create a field (amount) <17> like 100.52 <17> up to 2 decimal <17> so in mysql , shall i use int or decimal ? <15> eric: is this for storing money? <17> yup <15> personally I'd work in ints, decimal is fine in the DB but you don't want to be working in floats in PHP.
Return to
#php or Go to some related
logs:
#math english word for apartment #lgp utmp not updating gentoo ubuntu start sshd
php tertiary operator dd: reading `/dev/hdd': Input/output error ubuntu madwifi Syntax error: ( unexpected deny messenger fwbuilder #mysql
|
|