Jump to content

requinix

Administrators
  • Posts

    15,286
  • Joined

  • Last visited

  • Days Won

    435

Everything posted by requinix

  1. The second argument to array_push is the item you want to push. It is not an array of items you want to append. So that's a problem, though a bit separate from what you're looking at now. How about the return value?
  2. This is the error. Access denied for user 'avjopazg_com'@'localhost' to database 'avjopazg_com' Do you know what that means?
  3. When you say helper "functions", do you mean actual functions or do you mean classes and class methods? How about a sample of what we're talking about?
  4. You've received an error. What have you tried to do about it? Do you understand what the error means?
  5. What is the second argument to array_push supposed to be? What is the return value?
  6. requinix

    Zdenko

    There is no "$data" being used in "if (curl_exec($curl))". Take another look. Are you trying to edit someone's WP plugin? Have you checked for a more recent version of it?
  7. Do what?
  8. First thing you need to do is stop using XMLHttpRequest and switch to fetch.
  9. That code sure looks unreadable in that shape, don't you think? Try replying with your code again, but use the Code <> button this time.
  10. What code have you written so far, what did it do, and what did you expect it to do?
  11. The preg* functions require delimiters around the regex. $resultOutput2 = preg_match_all('/gpononu.*\n.*?$/', $resultOutput1); Flags like /g (which doesn't exist in PHP because that's what preg_match_all does) and /m (which you'll want here) would be added after them.
  12. Don't write CSV lines yourself. Use fputcsv.
  13. Also, the warning is during compilation, which makes it a E_COMPILE_WARNING and not a regular runtime E_WARNING.
  14. error_reporting() won't help you if there is an error detected while parsing the file that the code is in. In this case, since there is no other file where you could put the function call, set the error reporting you want with a CLI option. You know what's even better though? Fixing the problem the warning is telling you about.
  15. Does it have to be in your results? It would be really easy to just write a tiny bit of code that uses 0 if there aren't any ratings of a particular star count.
  16. Those two lines assume that something exists in $cellt when it, apparently, does not. Hard to tell why or what's going on from just this code... Is everything behaving the way you expect it to, besides the notices?
  17. If they're separate from each other then why are you altering the line-height? And is this visible somewhere we can see for ourselves?
  18. Not sure what markup you have, but the simplest solution seems to be putting the two lines into their own elements and positioning those as you want.
  19. How about a screenshot/image of what "close in" means?
  20. Huh, it's actually doing the thing I thought it wasn't... Only thing left I can think of would be skipping E_DEPRECATED messages. set_error_handler("error_handler", E_ALL & ~E_DEPRECATED);
  21. Given how dumb Smarty wants to be about this, suppressing the error looks like the only option. And since they're already doing that, I suspect you have a custom error handler? What's the code for that?
  22. I'll give this one more try: 1. I've already mentioned that include() will return a boolean. Specifically, true if it was able to include the file and false if it was not. 2. You are using <?= tags instead of regular <?php. Remind yourself of what the special <?= form does. Do you know what happens when you combine those two together?
  23. Post a sample of one of the times you did an include() that did not have this "1" problem.
  24. Look closer at what you have here <?=include '../subscribe/sub_countdown.php'?> and compare it to the other times you've done something similar.
×
×
  • 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.