Forum: PHP 22 Hours Ago |
| Replies: 1 Views: 54 Your } for your changePassword function is a {. Also, you don't need to specify public for all of those variables, scope defaults to public. |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 1 Views: 99 Inside the function basicAjaxSwitch you are defining a variable basicAjaxSwitch so it's being overwritten. Just use a different variable name inside the function. |
Forum: PHP 12 Days Ago |
| Replies: 5 Views: 139 exec only returns the response code, use shell_exec, that'll get all of the output so if imagemagick is producing errors you'll be able to see them. |
Forum: PHP 12 Days Ago |
| Replies: 5 Views: 139 |
Forum: PHP 12 Days Ago |
| Replies: 1 Views: 126 Yes, "newnewnew" explains exactly what your problem is. And not using code tags helps us out even more. What exactly is your question? |
Forum: PHP 12 Days Ago |
| Replies: 5 Views: 139 PHP has built-in ImageMagick functions, why are you using an external program? |
Forum: JavaScript / DHTML / AJAX 12 Days Ago |
| Replies: 1 Views: 279 A) Use code tags
B) This is a PHP problem not Javascript
C)
<?xml version="1.0" encoding="UTF-8"?> // <---- this is your problem because of the <?
If you're in PHP you have to echo the <?xml... |
Forum: PHP 13 Days Ago |
| Replies: 2 Views: 150 What do you mean by calling the table? Also, why're you using PDO for the connection then just completely ignoring it and using mysql_query anyway? http://php.net/pdo |
Forum: JavaScript / DHTML / AJAX 13 Days Ago |
| Replies: 2 Views: 248 Show us your code otherwise we're just guessing |
Forum: PHP 13 Days Ago |
| Replies: 3 Views: 180 As a short explanation strings are arrays of characters so if you want to get the 3rd letter in a string just do $string[2] (counting begines at 0) |
Forum: PHP 13 Days Ago |
| Replies: 3 Views: 180 <?php
if ($handle = opendir('poems/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file[0] == 'A') {
echo "$file\n <br />";
... |
Forum: PHP 15 Days Ago |
| Replies: 6 Views: 182 If you see absolutely nothing then you may be getting an error. On the line before $source = ... put ini_set('display_errors', 'On'); error_reporting(E_ALL); If you're getting an error that will show... |
Forum: PHP 15 Days Ago |
| Replies: 6 Views: 182 If the file is on the same server as the script then use the absolute path. If it's a remote file use the URL. |
Forum: PHP 15 Days Ago |
| Replies: 6 Views: 182 You're not giving a full path, you're giving a web path. In the first example it is making a web request to fetch the file, in the second example it is directly accessing the filesystem. Make sure... |
Forum: PHP 15 Days Ago |
| Replies: 7 Views: 205 If you want to save simulations for future use just use a damn database. Don't try to go against the grain when working with PHP. There are plenty of tools as your disposal for working with stuff... |
Forum: PHP 15 Days Ago |
| Replies: 4 Views: 205 Get.......... an............. UPS............., hardware................ should.......... stop.............. the............... issue................ long............ before.................... |
Forum: PHP 15 Days Ago |
| Replies: 7 Views: 205 You can't, use a database. It's that simple. |
Forum: PHP 16 Days Ago |
| Replies: 2 Views: 182 |
Forum: PHP 16 Days Ago |
| Replies: 4 Views: 172 As for this, if you're just using it as a learning experience then it should be just that. It's not a very good learning experience if you just follow someone else's tutorial. The point of recreating... |
Forum: PHP 16 Days Ago |
| Replies: 4 Views: 172 If you're trying to get the value of $id in that string then you have to concatenate because you're using single quotes.
echo '<a href="profile.php?id=' . $id . '">Enzo's Profile</a>'; |
Forum: PHP 20 Days Ago |
| Replies: 1 Views: 251 |
Forum: C++ 20 Days Ago |
| Replies: 6 Views: 197 Based on what you needed it would make sense for the C++ app to listen (be the server) and PHP to send the data to the server (client) |
Forum: C++ 20 Days Ago |
| Replies: 6 Views: 197 http://php.net/sockets
For C++ you might want to look around for forums, there's bound to be a link to a good one. If not, just google C++ sockets there is a veritable shit-ton |
Forum: C++ 21 Days Ago |
| Replies: 6 Views: 197 There are a couple of ways to do it that pretty easy. If you're using the socket approach you can just have PHP open a client socket and send data to the C++ app. The other way is just to have C++... |
Forum: C++ 21 Days Ago |
| Replies: 2 Views: 129 Wow, it's your second post and you still haven't read the rules. Bravo to you sir, that takes skill. |
Forum: JavaScript / DHTML / AJAX 21 Days Ago |
| Replies: 2 Views: 319 You can do something like this
<form action="delete.php or whatever" onsubmit="return confirm('Are you sure?');">
That will pop open a box that says "Are you sure?" with yes and no buttons, if... |
Forum: C++ 21 Days Ago |
| Replies: 2 Views: 152 Try not to spoon-feed him homework help considering he hasn't posted any attempts. |
Forum: PHP 21 Days Ago |
| Replies: 14 Views: 277 Now do the same thing, type php -v and paste the output here. If it says something like
PHP 5.2.6 (cli) (built: sometime)
Copyright (c) 1997-2009 The PHP Group
Zend Engine blah blah
Then you have... |
Forum: PHP 21 Days Ago |
| Replies: 14 Views: 277 oh, hahaha, did you also do sudo apt-get install php5-cli? |
Forum: PHP 21 Days Ago |
| Replies: 14 Views: 277 type php -v on the command line and paste the output here. |
Forum: PHP 21 Days Ago |
| Replies: 14 Views: 277 type ls /usr/local/bin and if php isn't in that list then reinstall it. |
Forum: PHP 21 Days Ago |
| Replies: 14 Views: 277 It's #!/usr/bin/env php and if that doesn't work then you didn't install php correctly. If you're using ubuntu or any debian distro it is just sudo apt-get install php5. |
Forum: PHP 21 Days Ago |
| Replies: 14 Views: 277 This will find the php interpreter for you and use it, don't directly link to it.
#!/usr/bin/env php |
Forum: PHP 21 Days Ago |
| Replies: 7 Views: 313 That won't actually get you the value of the hiddenName element though. You would have to do document.getElementById('submittedName').value. But since you're not really setting the value anyway you... |
Forum: PHP 21 Days Ago |
| Replies: 2 Views: 186 |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 309 You have an extra , right before the WHERE |
Forum: PHP 21 Days Ago |
| Replies: 5 Views: 249 If you get no errors and no exception is through but it's still a white page that means the query returned no results. Execute the query directly in MySQL or phpmyadmin or whatever you're using to... |
Forum: PHP 22 Days Ago |
| Replies: 7 Views: 313 Holy crap no. Just no. A thousand times no. |
Forum: JavaScript / DHTML / AJAX 22 Days Ago |
| Replies: 2 Views: 393 You can't. Simple as that :) Even if you did disable it with javascript all the user would have to do is disable javascript and hit printscreen. |
Forum: JavaScript / DHTML / AJAX 23 Days Ago |
| Replies: 2 Views: 284 It's the same for pretty much every browser.
document.getElementById('someidhere'); |