Jump to content

scliburn

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

scliburn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks peeps and thanks for the code example DW.
  2. Does php have any built in functions to perform an explode or string replace based on upper case characters: Example: AfghanistanTransnationalIssues I want to parse into Afghanistan Transnational Issues, without having to write some regex script. Anyone know if this exists, and if yes, what is the function name? I don't think it does, as I've been over the php site pretty good over the past 8 years or so.
  3. decided to go with getimagesize and if returns false, image doesn't exist.
  4. i've been able trust it. having 1.5 million entries in a table helps the rand() ideals.  ;)
  5. ans#1 actually opinion. Just unset it. It's sitting in memory otherwise. I aggregate data all day long, and resources are extremely valuable to me. If it's not hurting anything leave alone. If you have resource intensive scripts, unset it. I didn't realize it took any real processing time to unset a scalar.
  6. hmmm. here are a few more hacks that i can think of: #1 creating a new column for alternate company names. The secondary company name field, could have delimited values that you would have to parse prior to displaying.. its a hack but would work. #2 or create a separate table for company names and unique id's that are linked to the address table records. This would essentially give you the ability to add multiple company names for each known address. so you would have to query all company names from the company name table, and pull the associated address from the address table. In turn, you can now perform lookups on the company table for each of the names. You could also keep the company name in the address table and refer to it as the primary? Just throwing random ideas at ya.
  7. $output['0'] = "<tag>the good stuff</tag>" but $output['1'] = "the good stuff" output is now an array.
  8. yes, I am aware of the quote. it's posted for all to see. Thank you. Yes you are correct, i stated initially [quote]url wrappers is not available[/quote]. My mistake. url wrappers is [b]open[/b] but not available for this [quote]version independent[/quote] function file_exists(). [quote] Tip: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix M for a listing of which wrappers support stat() family of functionality. [/quote] However the post is titled: [quote]checking if a [b]file exists[/b] via http using 4.3.9 [/quote] wildteen88 can you think of an alternative? thank you for response.
  9. thanks wildteen88, i did not read his post thoroughly regarding the exact error. could he not during the loop add more time to the execution of the script? set_time_limit (30); Not that i would recommend this action if the script is not written proficiently.
  10. I would double check that the password is in md5 format. Maybe on the side, copy out the password, and then take what you know to be the password before it's md5 mangled and then md5 it and see if they match. That would be the only thing i can think would be your recourse. hope it all works out.
  11. url wrappers is open, however file_exists (to my understanding) won't be able to use this until php5. did you have a suggestion?
  12. it could be that the global variables ini setting is off. You would need to call to the [code]$_POST['variables'][/code] variables instead.
  13. are you storing the password in mysql as md5? This could be why you are receiving the error. You really should only create a SESSION variable once the DB record is matched. (my preference. good luck)
  14. um, try LIMIT 2 calling to the initial offset may give you a hassle. KISS - [b]K[/b]eep [b]I[/b]t [b]S[/b]imple and [b]S[/b]tupid. ;D
  15. [code] $pattern = preg_match('/('. $search .')/', $stringtolookin, $resultingarrayofmatches); you can then use the resulting array ($resultingarrayofmatches) of matches in anyway you would like. [/code]
×
×
  • 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.