Jump to content

requinix

Administrators
  • Posts

    15,066
  • Joined

  • Last visited

  • Days Won

    414

Everything posted by requinix

  1. Only for the next day or two. Until I remember to change my avatar - I'm overdue. [edit] Annnd changed.
  2. Upgrade the password for the user. Do a SELECT PASSWORD('123456')and make sure you get a long string starting with an asterisk. Assuming you do, SET PASSWORD FOR 'user'@'host' = PASSWORD('password')
  3. Yeah, there's a lot. 1. Near the top is probably a "Configure Command". What is it? 2. Is there a section named "filter"? If so, what does it include?
  4. What version of PHP are you running on the site (echo PHP_VERSION;)? What does phpinfo output?
  5. OP is advertising demonstrating their video about setting up sendmail on Windows.
  6. Why did you delete all the comments in the sendmail.ini!?
  7. It's because end() wants to modify internal information about an array, so it needs to be passed a variable and by reference. If the function returned an array by reference, that would work too. A combination of strrpos and substr will work for a one-liner too.
  8. ICANN/IANA also maintains a list of literally the top-level domains. Meaning it lists "uk" but not "co.uk". Doesn't include the IDN versions of the xn-- labels but that's not difficult to deal with in code. Keep in mind that "foo.bar" is a valid domain name - a user could put forward even the slightest bit of effort to circumvent any sort of general-purpose domain name verification you may put in place.
  9. Your serialize methods aren't doing anything with $regList, so that information will get lost during serialization. Drop the Serializable interface and its two methods and let PHP do what it normally would do. Serializable is only really if you want to change how serialization works.
  10. What is the code for RegistryClass::serialize and why aren't you using just serialize()? "__PHP_Incomplete_Class" means PHP couldn't load the class named. Which is SiteNavigation. Are you sure the autoloader is set up properly and gets installed before the call to unserialize()?
  11. I think it's fine: PDO is about databases and this is a database forum. In here or in Coding Help would probably be alright either way.
  12. Do you still have the PM I sent you from last time? I did the same thing again.
  13. Okay, so can you at least say the entire element's value is "YES"? //*[.="YES"]You should also consider actually learning XPath.
  14. Is it the only in the document whose value is "YES"? Then //p[.="YES"]Which is, conveniently, an XPath "address" to the node.
  15. Find the node using whatever you want, then call getNodePath(). Or are you trying to violate causality by using the path to the node to get to the node in the first place?
  16. What is the code you have for the that does not work?
  17. Do not post sensitive things like API keys to a public forum. I've removed it for you this one time as a courtesy so be more careful in the future. 1. I don't know what XML you're looking at, but the one I'm looking at doesn't have things like location/city or current_observation. 2. You must do some work with $city before you stick it in the URL. Do some simple validation and then use rawurlencode() when putting it in the URL. 3. You are using a loop for the current_observation. If there is more than one then your $output will be messed up because you keep overwriting it each time through the loop. 4. json_encode() does not output anything. You have to echo the return value yourself. 5. $output[0] is just the time. Or the first character in the error message. 6. Outputting $output[0] will (likely) not be valid JSON. Use json_encode(), output the return value, and don't output anything else. 7. That HTML string is not valid JSON. Figure out another way to show an error message.
  18. So what changed since yesterday? Because if it worked yesterday and not today then something did change.
  19. It'll be easier to help you with the code you have than to come up with something from scratch. What's your code so far, and exactly what kind of problem(s) are you having with it?
  20. Compare the two: $output['data']['502438129'] $output['data'].$testThey don't look similar, right? You'd expect them to look similar, right? If $test has the value '502438129' then simply replacing the string with the variable leads you to $output['data'][$test]
  21. Right. I was thinking more of the exact output. And while I'm at it, can you use var_dump() instead?
  22. Alright. So what is your question about error handling? What's not working? And can I assume you're aware of the syntax errors in your code? And a few other errors...
×
×
  • 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.