Jump to content

unknowncat

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by unknowncat

  1. Hi All, I think I must have transferred my script in the wrong mode, it now has three blank lines between every line of code! several thousands of lines long now, it's too big to do it manually. I use html-kit for my file editor, does anyone have a hint for how I could remove all this useless empty space? And prevent it from happening again? Thanks ahead of time.
  2. thanks thorpe. you're about right. i've been researching all day and am getting tired of looking. the other thing, that i forgot to mention in my post, is that all i have is the shared hosting account. so redmine isn't going to work for me either with the way things stand.
  3. I've chosen to release one of my projects as open source, but want to host the code and the collaboration etc on my own domain, in an environment similar to sourceforge. does anyone know a good free php system to run on my site?
  4. thanks joel. I know which script it is., just need to find out which lines are to blame and how to manage them into pieces or somehow set delays or ram clearing to minimize the impact on the server.
  5. anybody know a tool i can use to test a scripts cpu/ram useage? I have a script that's overwhelming the server, need to find out which part of the script is causing the problems. also, anybody know ways to tell a script to use less resources? thank you
  6. i'm on a windows machine, using xampp when i did a db import, all the table names went to lowercase (as topic title suggests) anybody know how to fix this? thanks ahead of time.
  7. I use the date() function a lot. Easy to work with the raw number. Make a db input of 15 int, then set the date/time with Linux Timestamp. Set something like $now = date(); then use $now in the sql insert. This way all db times are set at that standard, and whenever retrieving that data, you can manipulate or use that in whatever way you want. Really helps for finding the difference between two times, and can be presented however you want using something like date("F j, Y", $dateEarned);
  8. First let me say I'm no expert at this. But it's a matter of Parsing the data. Your cUrl is not your real question here. You'll be working with the DOM (document object model). I havn't tested it, but how about something like this: foreach($buffer->find('body') as $stores) { $item['storename'] = $article->find('div.storename', 0); $item['detail'] = $article->find('div.storedetail', 0); $stores[] = $item; } Their code at myprimemobile kindof not good cuz they're not putting data into appropriately named divs, they're using a bunch of tables in divs.. gonna have to hack the results, maybe use results from the snippet above to get the data separated for each store, then use a similar snippet to break down the html for each store table in the storedetail div results. Please be sure to share the final code when you get it nailed, I could apply that on a thing or two..
  9. If this is the model for urls you're wanting to use on your site (i see you used 'mysite.com' in your example) then you can have your server interpret all such urls into GET variables using .htaccess file and rewrite rules. Depending on what you want to name your get vars, here is an example: Options +FollowSymLinks RewriteEngine on RewriteRule our-company-(.*)-(.*)\.html our-company.html?letter=$1&number=$2
  10. Hello All, I'm 31, been writing php in some level of skill or another off and on for nearly ten years. Love it. Best when my projects or clients toss me some new feat to figure out. In the figuring out part I've passed through here many a times, but never really hung out. Tonight I had a revelation. It's time to give back to the community as best I can with answers when I can come up with them and hints when I can b.s. my way through them! Currently working about part time and living with the equivelant income. No, still havn't mastered massive passive income. Well, maybe a little. Oxymoron? a little massive passive... But anyways, I've got about a dozen sites of my own going, sell some scripts, and do code as well for just about anybody who asks me to. Gradually working my way into the use of frameworks, absolutely in love with curl and xml and recently started working on my own search engine. Nothing fancy, but for the purposes it does the trick. I'd say I try to spend about a fifth of my productive time in learning new stuff. And I'm here and plan on coming back often to answer whatever questions I can and tap some brains out there to raise me up a level or two. Other than php, I spend a lot of time camping, traveling the usa mostly, reading (just finished wizards first rule), writing rhymes, cuddling with the sweetness, drinking dank coffee, and sleeping in! If you read this far, I thank you!
  11. Hello, I've been spending too long searching for a good solution, i wonder if anyone on here might be able to help. I'm working on a few sites that need search functionality, and i already have a simple LIKE %$searchter% type query. But we need more advanced search abilities! like multiple keywords, results ordered by relevency, boolean searches, etc. We're querying the mysql database for the 'title' and 'description' fields.. Can anyone recommend a good php class or script to use? Thanks in advance!
×
×
  • 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.