Jump to content

amites

Members
  • Posts

    248
  • Joined

  • Last visited

    Never

Everything posted by amites

  1. not certain that "streaming" is the right word, I am trying to use a flash player that is designed to access mp3 files through a common directory, given that these files are restricted I want to verify access before playing... guess I'll keep tinkering
  2. Lookup Paypal IPN - user independent verification and/or Paypal PDT - user based submission with independent verification
  3. would be easiest to do with a custom css file, otherwise your looking at a couple lines of preg_replace to match the existing table definitions and replace them with what you want to use
  4. might I recommend a javascript forum? http://www.google.com/search?q=javascript+forum&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official
  5. think your missing adding A-Z in the brackets gave me a match, I see the case insensitive setting though this still is what was needed for it to work for me with your example, might want to try asking in the Regex section
  6. has anyone here done this? I have setup a program to validate that a user has access to a given mp3 file, from there they have the options of downloading it or listening to it through a flash player. The download part works well using: <?php header("Cache-Control: public, must-revalidate"); header("Pragma: hack"); // WTF? oh well, it works... header("Content-Type: " . $mm_type); header("Content-Length: " .(string)(filesize($file_path)) ); header('Content-Disposition: attachment; filename="'.$file_name.'"'); header("Content-Transfer-Encoding: binary\n"); readfile($file_path); ?> however I have had one hell of a time getting it to load into a mp3 player, I figure it has something to do with the "Content-Transfer-Encoding" though I'm honestly in a bit over my head at this point. any thoughts / advice / help / examples / etc... thank you
  7. it's setup through config files, it has an excellently documented user guide and introductory screencasts on the site, give it a shot, the footprint on this framework is rather small and designed for customizability
  8. I do a print_r($_POST); and get settings back for the text input and other standard form fields, file fields don't show anything, tried this on a couple different computers and multiple browsers.
  9. Hello, I'm having trouble getting a form to submit multiple files, they are named differently and I'm rather certain I'm missing an obvious setting or something. Been looking at it so long I'm not seeing it. any help is greatly appreciated <form action="http://localhost/Heritage Web Design/Erik Ohanessian/draft/admin/media/upload.html" method="post" enctype="multipart/form-data"> <div><span>Recording Name:</span> <input name="name" type="text" value="" /></div><br /> <div><span>Streaming MP3 File:</span> <input name="mp3" type="file" /></div> <div><span>Public sample?</span> <input name="sample" type="checkbox" value="1" ></div><br /> <div><span>High Quality (Downloadable) MP3 File:</span> <input name="mp3_hq" type="file" /></div><br /> <div><span>Workshop Document:</span> <input name="document" type="file" /></div><br /> <div><span>Recording active and available?</span> <select name="status"> <option value="1" selected="selected">Yes</option> <option value="0" >No</option> </select> <div align="center"><input name="Submit" type="submit" value="Submit"></div> </form>
  10. thank you, I managed to solve it had a lingering duplicate field with the same name well below this one that was not set to an array, and thus overwriting what I had took me a couple fresh looks
  11. what framework is this in? might get a better response looking to a framework specfic forum / section in the mean time debug in steps, verify the data is in the right place at each function, if you can echo the SQL query that is being generated you'd be in good shape
  12. looks like you could use an array $x = array( 'f' => "/([a-z])\^([\d]+)/", 'r' => pow('\$1','\$2'), 'f2' => "/([\d]+)([x])/", etc... foreach ($x as $val => $var) { echo $val . ' = ' . $var . "\n<br>\n"; }
  13. get yourself a copy of Firefox get the addons Firebug and Tamper Data, verify that the information you are sending to your script is what you think it is, and track down where your bug is coming from, from the sounds of it you are either running into trouble with processing an array or the Javascript
  14. Hello, I'm running into a strange one, I have a form item that looks like: <input type="text" name="property_taxes_monthly_expenses[]" id="property_taxes_monthly_expenses" class="expense expenses money form_fields" tabindex="1" value="" style="width: 120px;"/> generated by: <td> $ <input type="text" style="width: 120px;" value="<?php if(isset($_POST['property_taxes_monthly_expenses[]'])) echo $_POST['property_taxes_monthly_expenses[]']; ?>" tabindex="1" class="expense expenses money form_fields" id="property_taxes_monthly_expenses<?php if($num > 0) echo $num;?>" name="property_taxes_monthly_expenses[]"/></td> the bug: the value placed into this form field is not being accepted, I've gone so far as to submit the value manually through a firefox extension, nada this form has over 100 fields and this is 1 of 2 that don't hold their value when I print_r($_POST) this is being built inside the code igniter framework though I have checked the $_POST var before anything is initiated and it comes back blank every time, if I rename the vars it works some of the time, setup the same way as 16 other array vars and I'm stumped any ideas?
  15. Hello, This one is stumping my blain, hoping I can draw upon some help here, I am building an application that will allow users to preview an mp3 file in a flash player, question is, can this be done without using header(location: URL) I'd like to hide the mp3's outside of the public_html folder, don't have to but I would like to any ideas? I'm building this using the Code Igniter framework if that makes a difference to anyone's thought process
  16. Hello, I am attempting to build a function to add multiple arrays to a class var, I am attemting to do this from within an extension of that same class, the following is Code Igniter code with comments, it sets $this->_form_data properly trick is that it is loaded into a seperate object class MultiValid extends CI_Form_validation { function multi_rules($group = '') { // Loads the array $this->CI->config->load('form_validation', TRUE); $rules = $this->CI->config->item('form_validation'); $set = false; if (is_array($group)) { foreach ($group as $grp) { if ($grp != '' && isset($rules[$grp])) { $this->set_rules($rules[$grp]); $set = true; } } } return $set; } } This code is loaded as $this->multidataa which fills $this->multidata->_form_data with values what I'd like to set is $this->form_validation->_form_data as it is a native library to CI and referenced regularly through other classes any ideas?
  17. This one is difficult to search for due to the odd characters, how can I set this up? not having it is messing with quite a bit of the Code Igniter code I've been playing with recently
  18. you could do it with AJAX working on any part without changing the page is all about AJAX
  19. I'm not looking to keep " from being in the match, I want to keep from matching something inside "" so http://www.someurl.com will match <a href="http://www.someurl.com"> will not make sense?
  20. or just generate a static site map and set it to run the script each time you change something as they say KISS
  21. Hello, I'm working on a script to auto parse URL's in text, I have the URL match working, unfortunately it is parsing existing links and image links as well, anyone have some advice? preg_match('/\\bhttps?:\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]/i', $content) I tried adding (!=") and it simply ignores the last character of the match, what I want it to do id ignore matches inside quotation marks " any ideas are greatly appreciated
  22. this is probably going to be your best bet http://us3.php.net/manual/en/book.simplexml.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.