Jump to content

lampstax

Members
  • Posts

    60
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lampstax's Achievements

Member

Member (2/5)

0

Reputation

  1. According to this tool here ( http://www.bx.com.au/tools/ultimate-php-error-reporting-wizard ) .. the only way I could get to 4983 .. is E_ALL & ~E_NOTICE & ~E_COMPILE_WARNING & ~E_USER_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED BUT error log is still showing notices .. is there any other level it could be ?
  2. When I use ini_get to check my error_reporting level, I get a weird value ( 4983 ) that I can't find anywhere by googling. Also not on the list of possible levels here ( http://itech.hubpages.com/hub/php-error_reporting ) .. does anyone know how to determine what exactly this level is? Thanks!
  3. Thanks for everyone's suggestion, I have been slammed at work so it took me a while to get back to this project. From playing with the demo, Margento is my front runner. It has built in user group functionality so I think i can build off that much faster than customizing OSCommerce or Hika. Will play around with that more and let you know if I run into any issues. Cheers!
  4. Hey guys, I'm looking for a shopping cart ( preferably open source and PHP ) that supports a few uncommon features. I spent most of yesterday digging through the various php carts ( os commerce, zen cart, ect ) and didn't find much useful things. As far as I can tell, all these things will need to be customized so my best bet would be to find a cart that support modules .. almost like a Drupal or Wordpress of ecommerce. BUT hopefully I'm wrong and there is something out there already that supports: Advanced user roles controls / customization. One of the user role ( lets call them creators ) should be able to create a shopping cart list, save the cart and generate a code. Another user role ( lets call them purchasers ) should be able to input the cart code, and automatically have all items in that saved cart added to their own cart to proceed with checkout. A royalty program If a creator generated a cart code that lots of people use to purchase, we need to track this information to give them a royalty at the end of the month. Thanks for your help.
  5. It is the URL of the page that I'm on. Agreed its not the best URL format but its what the application and I am working with. Its to link directly to a specific part of a page, however, I need to be able to detect what part that is. Any suggestions ?
  6. Hey guys, I'm dealing a url that is similar to hxxp://domain/directory/?#{$id}. What I'm trying to do is extract $id from that. Its not available as a $_GET variable and $_SERVER['REQUEST_URI'] comes up as "/directory/?". Does anyone know how I could retrieve $id ? Thanks
  7. Hey btherl. Thanks for writing all that out! I will give it a try tomorrow and see if I get lucky.
  8. Hey guys, I'm running WAMP on Windows 7 and trying to pass a command to mogrify. I tried passthru(), system(), exec() but none worked. A sample command is convert -format jpeg -extract 2048x1536+0+0 +repage -thumbnail 100x75 C:/wamp/www/alpha.offernation.org/uploads/properties/property_original_1277852331.jpg C:/wamp/www/alpha.offernation.org/uploads/properties/property_original_1277852331_100x75.jpg I know the command itself works because if I run it directly from the DOS prompt it works. When I run with a simple command like 'dir': $last_line = passthru('dir', $retval); I get the correct output .. but when I replace 'dir' with the command above .. i get this: $last_line = 4 and $retval = NULL I think it could be a permission issue with windows 7, but I'm not sure how to troubleshoot. Google is not being very helpful either. Can anyone point me in the right direction? Thanks
  9. Hi guys, Posted this in the #help IRC but getting no reply, so reposting it here. I'm having a weird issue with CURL .. hopefuly someone can help. Basically the app calls a few external url to retrieve xml and add to the db. Some API are slower than other so we should technically be using curl_multi, but for now, still just using normal curl. However, while retrieving the XML, curl seems to block all other HTTP connections to the site. By blocking the request, I mean other requests to the site ( completely unrelated portion of the site ) just get a 'loading' message until the curl finishes, then the other requested page loads. We have two domains on the same physical machines ( live env and dev env ). I've verified multiple times that CURL is not actually blocking request to the entire server. When CURL is executed on dev, live still loads, and vice versa. Google doesn't show anyone running into anything similar to this. So this might be a pretty obscure issue. But it seems like this would be a big issue if it was a problem with CURL so this might be a shot in the dark. Does anyone know if there is a curl_setopt option missing or something that causing this behavior ?
  10. Looks like Mchl beat me to it.
  11. Not 100% sure this is why you're getting 0 result, but try replacing the ORDER BY 'reads' DESC with ORDER BY `reads` DESC. I think the way you are quoting 'reads' makes mysql process that as a value, and not a table column.
  12. Hi guys, I'm running into a pretty obscure problems. Once in a while, our website would go down for a few seconds and come back up. Server load would spike 20 or 30 times normal for a few seconds ( causing blank pages and 404s ) and settle back down. We have already checked slow logs and optimized the queries so I'm pretty confident that its not a single bad query killing the db. We also noticed that during most of these spikes, mysql would hit max connection so my suspicion is that because of the way its coded, each hit to a certain part of our site creates multiple mysql connection, I need a way to map apache processes ( preferably with referring url ) to the number of mysql connections opened for each process and also see how long the connections are kept by the process. Maybe the connections need to be manually closed or something like that. SHOW FULL PROCESSLIST isnt doing enough for us. Does anyone know of any monitoring program that could give us a map view of the website hit to mysql connection or more debugging data for this type of problem? Thanks ahead of time.
  13. Tried it too ways: DELIMITER | CREATE TRIGGER set_default_options AFTER INSERT ON authors FOR EACH ROW BEGIN SELECT SLEEP(2); PREPARE stmt_name FROM "UPDATE authors SET issued = '9' WHERE authorID = ?"; SET @test_parm = "2"; EXECUTE stmt_name USING @test_parm; END; | DELIMITER ; and even this didnt work DELIMITER | CREATE TRIGGER set_default_options AFTER INSERT ON authors FOR EACH ROW BEGIN SELECT SLEEP(2); PREPARE stmt_name FROM "UPDATE authors SET issued = '9' WHERE authorID = '2'"; EXECUTE stmt_name; END; | DELIMITER ;
  14. Actually if I can get this trigger to work, it would solve my problems too, but I'm have some syntax issues DELIMITER | CREATE TRIGGER wpmu_new_blog_set_default_options AFTER INSERT ON wp_blogs FOR EACH ROW BEGIN SELECT SLEEP(2); SET @var := CONCAT('wp_', NEW.blog_id ,'_options'); UPDATE @var SET option_value = '0' WHERE option_name = 'option_x'; END; | DELIMITER ; I feel like I'm sooo close, but its not working. I"m not too familiar with triggers. I bet its something small that I'm not seeing. The MySQL error that I see is : ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@var SET option_value = '0' WHERE option_name = 'option_x';
  15. You have an extra = there. It should be <?php $select = "SELECT * FROM jobs WHERE assigned_to like '%u%'"; ?>
×
×
  • 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.