8,966 Posted Topics
Re: localFile should be a filename, not a folder. | |
Re: https://developers.google.com/kml/documentation/ If your friend is using GPS tracking, then getting a KML file should be easy. I've also seen GPS products on phones that automatically update a map on a website. Don't know the name though. | |
| |
![]() | Re: What line in the above code are you talking about? 116? What is the function parameter definition for StringChangeEx? ![]() |
![]() | |
Re: Can you explain a little more, perhaps showing some actual data you want to run this against? | |
Re: Perhaps the PHP version is different on your new host. You say you've been using this for a while. Functions get deprecated over time, so perhaps this is the issue here. | |
Re: > If you post code and then with your mouse, try to click on where you want to edit words or something, the cursor jumps It jumps to the line below on (inline) code. Too bad to say, but I got used to it. It really needs attention. I have … | |
Re: You'll need to connect to the server's IP address or hostname (not 127.0.0.1) and make sure the firewall isn't blocking. | |
Re: Try: $stmt->execute(); Think it doesn't like to bind an empty array. | |
Re: > I've been told that I should be using MySQL to practice the coding. For what reason? The basics for both servers are the same, they just have some "minor" differences in their syntax. | |
Re: Keep this in mind when using the w3schools site: http://w3fools.com/ | |
Re: You'll need to use some Javascript, unless [HTML5](http://www.htmlgoodies.com/html5/tutorials/whats-new-in-html5-forms-handling-numeric-inputs-using-the-number-and-range-input-types.html) is supported. | |
Re: You can try to `ftp_chdir` first to the server folder, and the try to get the file without the path. | |
Re: This may help: http://www.uipress.com/add-json-handler-support-in-iis-7/#.Ufe9tUDRZok | |
Re: You'll need to: echo content($mypage); because the new content is returned from the function. It doesn't output anything itself. If the includes are outputting, then there's no point in using the `$content` variable and returning it's value: function content($pagecontent) { include 'header.php'; echo $pagecontent; include 'footer.php'; } | |
Re: Welcome to DaniWeb. I suggest you read [our rules](http://www.daniweb.com/community/rules) emvts83. | |
Re: > Do I have to use Zend to connect to google? I searched google but can’t find a solution. http://code.google.com/p/google-api-php-client/ | |
Re: You'll have to add and subtract the fields separately, you cannot do that in the targetfields loop. | |
Re: According to your first link, that token is cryptographically signed, and then base64 encoded. Found some code [here](http://pear.php.net/pepr/pepr-proposal-show.php?id=688) which may help. | |
Re: Check first with [is_dir](http://php.net/manual/en/function.is-dir.php) | |
Re: If you're connected to VPN you should be using the company's gateway, and thus have it's outgoing IP. An IP block is something you can do with an .htaccess, but it can be easily spoofed. | |
Re: Password of what? Of a database user? You can use phpMyAdmin. Don't forget to flush priviliges or restart wamp. | |
Re: > Any thoughts as to why it would display this for any user Yes. Because it's flawed. `$result` is a string to which you assign `$myusername`, that will always evaluate to `true`. I think you want to compare them, for which you need to use `==`. The next problem you … | |
Re: Looks like a horizontal scroller. Just a bunch of div's moving left and right. | |
Re: Doesn't your webhost provide any documentation for this? Have you contacted them to ask whether or not it is supported at all? | |
![]() | |
![]() | ![]() |
Re: It would be much simpler if you use an additional table, instead of this, so you can have one row for each item. ![]() | |
Re: Start by writing down what you need. If you have that then it's easier to plan all the separate parts. ![]() | |
Re: A class definition requires curly brackets, so add one on line 56, and close it after line 69. Why are you putting the mysqli connect in a class, when you can use the mysqli as an object already? Perhaps [this](http://www.daniweb.com/web-development/php/code/434480/using-phpmysqli-with-error-checking) may help. | |
Re: I found [this thread](http://grokbase.com/t/php/php-general/117f62hcz8/is-null-and-is-string-reversed-when-using-in-switch-case-statements) on the topic, which makes sense. `switch` tries to validate `$value` and skips if it thinks it's `false`. Use `switch (true)` and both outputs are the same. | |
Re: From what I've read it should be possible to use OpenPGP, which can be read in the browser with a plugin. Haven't used it myself though. | |
I have the following code: const AGENT = 'User Agent'; SERVER = 'www.daniweb.com'; RESOURCE = 'api/access_token'; ID = ''; // my client id SECRET = ''; // my client secret CODE = ''; // my returned code, pasted from the browser REDIRECT_URI = ''; // my redirect uri ACCEPT: packed … | |
For all people having issues building the right regex: I just came across this nice little helper, which allows you to describe what you want using chained methods. https://github.com/jehna/VerbalExpressions | |
Re: Yes, the same tools also work on a remote website. Also check your server's error logs (in case of PHP errors). | |
Re: Assign the the value of `calc_bill` to `result` |
The End.