| |
| |
| |
|
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> thanks MarkR42 <1> bronson: i am sure that something like that was in php manual notes <2> psc-eric: No, AFunction is a function I just invented. You should be able to do just wpmu_delete_blog($id) <0> oh.. i see <0> sorry about that mark <0> so if ( $drop ) { wpmu_delete_blog( $id ); <0> } <2> Something like that, yes <0> thanki sir <3> Drakas, not for syntax highlighting. I'm trying to parse a template file containing double-quoted strings (not my format) and generate HTML. <3> I've been scanning thru the PHP manual but haven't found anything. <1> yeah <1> there was something, i just can't find it <1> it used preg_match <4> afternoon all.. <1> bye gymsmoke
<3> Drakas, thanks for looking! <4> i'm trying to solve a design/logic issue on a page <4> l8r, Drakas <1> bronson: i need that func. myself, gonna lok through more <1> oh.. <1> gymsmoke: you're not going..:D <1> my english <1> = crap <1> ;] <4> hehe <4> i have a page that has a few selection inputs at the top, with a form beneath <4> the top selections would basically compose a query based on the users selections <4> which would filter the data to the form below it <4> but when the page initially opens, it displays all of the possible data in the form <4> the url is here: http://dev.fitnesscenterequipment.com/packages.php <5> gymsmoke: can you post your php code somewhere? <4> Vasistha: i can... (it's a bit large, though) i can put it in pastebin <5> gymsmoke: go for it, it's much easier for us to help if we can see your code <5> gymsmoke: looking at your web page, though, I'm not sure what's what. Which are the "few selection inputs at the top"? What is the "form beneath"? I don't see "all of the possible data in the form" anywhere <4> Vasistha: http://pastebin.com/745803 <6> is it possible to put images in the die function or even redirect to an error page? <4> Vasistha: the "facility type, bldg size, and budget are the selections possible for filtering <4> Vasistha: the image, name, price, description, and the other buttons are in the form <4> Vasistha: although currently, the selection inputs are also in the same form, because, when the user selects "select", all of that data must be p***ed to the next page <5> gymsmoke: I have to say this form is very confusing. I can select facility model, bldg size, budget, etc., but what button do I press to submit those? Below, there are three buttons, but those seem to be related to what looks like an advertisement for a $44,000 commercial fitness equipment package. Is that related to the form? <4> Vasistha: if you're looking at the package information block, selecting "details" gives you a list of what is included in the package. <4> Vasistha: selecting "images" gives you all of the images of the items in the package <4> Vasistha: pressing "Select" takes you to the next page where you can add other components to the package <3> Drakas, http://ad.hominem.org/docs/code/quote.phps <3> er, http://ad.hominem.org/log/2005/05/quoted_strings.php <3> fwiw. <4> Vasistha: the 'filters' at the top would allow you to choose packages only for a specific facility model, building size, and / or budget <5> gymsmoke: what are the "facility model", "bldg size", "budget" inputs for? They don't seem to do anything. I can get details on this default "commercial fitness equipment package", but my form entries seem to be irrelevant. Is that the intention, or is that a problem? <4> Vasistha: that's the problem <1> bronson: thank you very much <3> np! <4> Vasistha: i'd like to initially list "all" of the packages, but then allow the user to filter the list by the selections on top, since this list will potentially have 40 or 50 packages within it <6> How can my make my die() redirect? <5> gymsmoke: I think you really need to redesign your form. The filtering criteria (facility model, bldg size, etc) needs to have its own submit button for that form, and that commercial fitness equipment package and its buttons need to be separate <4> Vasistha: i thought so, too, but the only drawback there is having the user go there to find an empty page with only the selection inputs on it... <7> http://www.cfhf.net/lyrics/images/degr***i198788.jpg <5> gymsmoke: I think a lot of your design is good, but there are some problems. Having the "commercial package" -- as well as perhaps two other sample, cookie-cutter type packages available below helps the user get situated <8> Is file_put_contents suppose to escape quotations, and how can I write to a file without doing so? (e.g. "hello" -> \"hello\") <5> gymsmoke: the "cookie-cutter" packages, though, should not have form submit buttons on them, they should only have a href hyperlinks to details on those cookie-cutter packages. From one of those detail pages, there should be a link to "customize this package" <9> Brokenpipe: you have magic_quotes on. <9> so your input is being automatically quoted on the ***umption it's going into a database <4> Vasistha: so far, i've only entered 1 in the database... i can enter more (they're a pita to put together since i don't have admin forms up yet), but i wanted to try and get the hurdle of how to filter them knocked before i get into the data entry part <6> Why does everyone tell me not to use PEAR? <5> gymsmoke: in addition, you can keep the custom form that you have on the entry page -- with the facility type, bldg size, etc -- let that be the only form available, and have the inputs bring the user to a custom form <8> Xyphoid: I suppose that's a good thing. What should I do when I *retrieve* the string to get rid of the escaping? <4> Vasistha: if the packages had href's instead of post vars, then i would just store everything in session vars to link up to the href... <9> broken: no, it's not really good. you can stripslashes() the string before writing it however. <4> Vasistha: i'm designing this thing in a bit of a vacuum, so i don't have any outside input to go on... <4> Vasistha: so i'm afraid the design is purely from a logic point-of-view <5> gymsmoke: like this: "commercial fitness equipment package" has a link to "commerical fitness equipment package DETAILS". On that page, probably static html, you can have a form that just has one button to "customize this package" -- that will submit the post values, which will be hidden form values <10> Has anyone sent out thousands of emails using php? <5> gymsmoke: what I'm proposing is to give the user basically two options from the start page: either look at the details of one of the cookie-cutter packages (and they can later customize) or start out by submitting a form that describes their space. Keep the two ideas separate. <5> gymsmoke: am I making any sense? Honestly, this all has very little to do with php code, we should probably go to #off-topic ! <10> I need to write some code to send out thousands of emails (newsletter) - anyone done this or have some advice? I plan to use php on my apache webserver <4> Vasistha: ok, i didn't know that channel existed, but if you're willing to spend a minute or two on this, I'd greatly appreciate it!
<5> ChrisC35: have you considered doing this with some type of mailing list, rather than using php code? <10> you mean a 3rd party? <10> Id rather do it myself from my own server, and handle any custom features I may need for my clients <11> http://drakas.sytes.net/mcd.html <12> I'm having a weird issue with the DOM objects. "Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Start tag expected, '<' not found in Entity, line: 1" http://pastebin.com/745852 http://pastebin.com/745855 http://pastebin.com/745856 <2> RogueJedi: Please put the XML document somewhere <12> I did, second pastebin link <12> Oh you mean the actual file? <2> Are you sure the XML document is well-formed? <12> Yes <9> you need to read the file yourself <2> Is it possible that it's trying to load the Schema from that URL, but it's not valid? <9> you're p***ing the stirng 'tvshows.xml' to the DOM parser. that method reads the string p***ed in, not a filename <2> The Schema location URL does have a space in it; that probably isn't legal <12> Xyphoid: ... wow, do I feel dumb. <2> Ok, Xyphoid has it sorted :) <12> MarkR42: No that'd produce another error, and the space is legal. <9> i did go through the process of checking the xml before I noticed that, heh <2> RogueJedi: Ok, I don't really understand how schemas are loaded; and anyway it shouldn't matter if you're not validating it; the DOM does not do so by default <12> I see what I did, I saw the ->load as a filename and something said be specific when I saw loadXML, doh. <12> I had ->load but it wasn't working right, I guess thats a XSL/T issue though <2> goodnight <12> Thanks Xyphoid, I'll be sure I have caffeine in my system next time I try to code :-P <9> i could use some myself. hurry up and go away, anesthetic. <13> Is there a way to return say two arrays from a function without combining/serializing them? <12> Multi-dimension array? <13> They already are multi-dimensional arrays, I didn't want it to get to compliciated >< <12> Only other thing I can think of is an object, but you just said you didn't want to get complicated :-P <12> It wouldnt be that complicated with a multiddimensional array, you've got an index for each thing and done, if the added dimension is _so_much_extra_ typing, you can always reference it <14> mugger, what about throwing them in the session var? sloppy but workable <12> lig: Translates back to a multidimensional array anyway... <12> only messier <14> true <10> Is it possible for me to provide mail-out services (by writing a mail script) for my clients, even if I don't host their site? Can I mail out from my webserver and make the email come from their domain? <15> ChrisC35: using phpMailer .. yes in all probability.. <10> Spam filters wont stop it? <16> oh no:( ive run into a little bit of a problem. i set up a test server on a windows box --> apache/mysql/php4. Problem is - for some reason when i load up localhost in the browser, it returns a blank page. anyone encounter this before? <17> ow. My paws hurt :/ <18> help! my insert_last_id is always 0... pls http://www.hashmysql.org/paste/viewentry.php?id=1920 <15> aneurysm: first thing I would do is increase memory_limit to 64 meg.... <10> aneurysm check the source of the page - also check to see if the service is running, and the error log <12> p_mash: I do hope your joking <15> oops forgot .. memoery_limit has no effect on windows <16> p_mash: memory_limit as a setting in apache? <12> aneurysm: Ignore him <16> ChrisC35: the source is blank:) looking for the error log <16> RogueJedi: :) <12> nucleux: #sql or #mysql <19> is possible to access an M$ access db on a remote (LAN) machine using php using odbc, any one know of a tutorial? http://uk2.php.net/manual/en/function.odbc-connect.php doesn't allow remote connections afaik <20> nv: Read the user comments <15> nv: NO!!.. u need to map a drive/ network share and use odbc locally... <16> this is terribly annoying. it won't even give me a file not found when i go to a non-existant file localhost/whatever.php <17> !+typuing english <17> dammit <17> !+typing english <21> ##PHP does not allow aolbonics (or leetspeak) such as "u for you, r for are, ic for i see -- etc" and typing like this will result in you being silenced; furthermore, inability to adapt may result in a ban. <16> hmmm apache shutdown and seemed to have corrected the error itself. wonder what happened - it didn't solve anything when i shut it down manually...o_O <19> p_mash, is that the normaly way? I run a linux server how would I pick up the access .mdb file? Do I need an application to do so? <15> nv: ummm not sure about Linux... the only way I've ever accessed an access db is with ODBC and on a network srive.. never tried the unix odbc... <8> Xyphoid: Sorry had to go afk. You had said that magic quotes *wasn't* good. Why not? <22> heya gurus, quick query. I can't remember that php safe mysql function for p***ing a query to the DB which works to prevent sql injection ... ? <15> BrokenPipe: magic quotes are going to be removed by php6 anyway.... <17> the6y already are. <8> How do I turn them off in php5? <15> BrokenPipe: in the php.ini file... or with .htaccess <8> p_mash: magic_quotes_gpc ? <15> BrokenPipe: yes... and magic_runtime as well (actually dont know wtf that does) .... <8> Another file_put_contents question: Why does it add ^M's ? <23> am I back? <24> ChrisC35: no
Return to
#php or Go to some related
logs:
#linux mondfischer #perl #perl miteymite libdus.so Ubuntu fixing sudoers usermod #gentoo #kernel kdrive segmentation fault
|
|