Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. $v is the value coinciding with the key, $k. echo "<td>" . $v . "</td>";
  2. First please us the code icon (<>) on the top menu. A quick glance I see something I don't think you meant: if($st1 == $st2 or $st3){ This will always evaluate to true since $st3 will be true. I am guessing you really meant this: if($st1 == $st2 or $st1 == $st3){
  3. This is really an SSL problem not PHP. However, why do you say no certificate has expired? Did you look at the certificate in question? Is it a self signed certificate or a certificate issued by the target web site?
  4. Not sure how you are reading the data since you didn't post the script but I suspect it is coming back in byte format. If that is the case you need to convert it.
  5. There is a PHP library for that called TCPPDF.
  6. This is probably really a raspbian issue so you may want to try the raspberry forum. However, what do you get when you run this script? for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do ( syspath="${sysdevpath%/dev}" devname="$(udevadm info -q name -p $syspath)" [[ "$devname" == "bus/"* ]] && exit eval "$(udevadm info -q property --export -p $syspath)" [[ -z "$ID_SERIAL" ]] && exit echo "/dev/$devname - $ID_SERIAL" ) done
  7. What type interface device are you using?
  8. I've worked with Raspian quite a bit and using serial devices on it can be tricky. Kicken is exactly right. Also depending on the serial device you are using you may need to install specific drivers. This is especially true if you are using a one-wire device over USB.
  9. First your crontab is the long way around the barn. Use: */5 * * * * /usr/bin/php /var/www/settime.php Not sure why /bin/sh is involved base on what you've shown. What distro are you running? Since your didn't show the script how do you expect any help?
  10. Sounds to me like you need to backup and rewrite the original data schema. From where is the data coming?
  11. Without criteria there can be no test.
  12. Only you can tell what output is valid. You need to tell us what criteria you want to use. What happened to the json part you wanted?
  13. You want to process the output? Why not do that in PHP as well?
  14. From command line: <path to php.exe> -f "<path to script.php>" -- -arg1 -arg2 -arg3
  15. None of that data exists, at least in the posted HTML. Have you tried anything yet? I suggest you use DOMDocument and get the data into an array. Converting that to json for output is simple.
  16. Remember Barand's first post. You need to check that the form was submitted before using the variables. P.S. That first '=' is a typo. Barand meant to close the brackets using ']'.
  17. You are probably trying to use those variables on the first output of the page. They will not be filled in until the user does it and the page is submitted. Your HTML shows not form or submit action. See this article on how to create an interactive page.
  18. $result=$stmt->fetchAll(); echo "<pre>"; print_r($result); echo "</pre>";
  19. This is a guess without more detail but try: $this->new_name2 = clone $crop->new_name;
  20. Don't know unless you post more of your code. Without the function code how do we know what $this is supposed to be or how that object was initialized?
  21. What have you tried and what doesn't work as you expect? Are you using XML Parser? Do you have errors turned on? error_reporting(E_ALL);
  22. Is there a question in there somewhere or are you asking someone to program it for you. If the latter then you need to post it here.
  23. Include them between the () of the function definition. Example: function myfunction($arg1,$arg2) { . . . }
  24. You probably would make life easier for yourself if you use DOMDocument. However, it seems like you should just include a check for "<blockquote>" then ignore everything until you find "</blockquote>".
  25. What is your real question? How to send email or how to extract data from Mysql? Yes you can do either or both. What have you tried and what didn't work?
×
×
  • 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.