-
Posts
1,033 -
Joined
-
Last visited
-
Days Won
17
Everything posted by gw1500se
-
$v is the value coinciding with the key, $k. echo "<td>" . $v . "</td>";
-
curl issue " SSL certificate problem: certificate has expired"
gw1500se replied to priyank199's topic in PHP Coding Help
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? -
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.
-
There is a PHP library for that called TCPPDF.
-
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
-
What type interface device are you using?
-
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.
-
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?
-
Sounds to me like you need to backup and rewrite the original data schema. From where is the data coming?
-
Without criteria there can be no test.
-
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?
-
You want to process the output? Why not do that in PHP as well?
-
From command line: <path to php.exe> -f "<path to script.php>" -- -arg1 -arg2 -arg3
-
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.
-
Connection between HTML table and MySql database
gw1500se replied to Setzi138's topic in PHP Coding Help
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 ']'. -
Connection between HTML table and MySql database
gw1500se replied to Setzi138's topic in PHP Coding Help
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. -
$result=$stmt->fetchAll(); echo "<pre>"; print_r($result); echo "</pre>";
-
How to transfer data from a variable to an another variable?
gw1500se replied to Fardin's topic in PHP Coding Help
This is a guess without more detail but try: $this->new_name2 = clone $crop->new_name; -
How to transfer data from a variable to an another variable?
gw1500se replied to Fardin's topic in PHP Coding Help
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? -
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);
-
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.
-
Include them between the () of the function definition. Example: function myfunction($arg1,$arg2) { . . . }
-
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>".
-
sending email with info from mysql database inserted
gw1500se replied to Gunnyk's topic in PHP Coding Help
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?