Forum: Computer Science 1 Day Ago |
| Replies: 9 Views: 151 There's nothing in that one, but this seems to be missing some vowels, consonants and words in general.
Google is your friend, along with Wikipedia or essentially anything that exists that... |
Forum: PHP 4 Days Ago |
| Replies: 1 Views: 83 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 4 Days Ago |
| Replies: 1 Views: 152 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 15 Days Ago |
| Replies: 5 Views: 152 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 15 Days Ago |
| Replies: 5 Views: 152 |
Forum: PHP 15 Days Ago |
| Replies: 1 Views: 134 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 15 Days Ago |
| Replies: 5 Views: 152 PHP has built-in ImageMagick functions, why are you using an external program? |
Forum: JavaScript / DHTML / AJAX 15 Days Ago |
| Replies: 1 Views: 332 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 16 Days Ago |
| Replies: 2 Views: 160 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 16 Days Ago |
| Replies: 2 Views: 258 Show us your code otherwise we're just guessing |
Forum: PHP 16 Days Ago |
| Replies: 3 Views: 195 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 16 Days Ago |
| Replies: 3 Views: 195 <?php
if ($handle = opendir('poems/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file[0] == 'A') {
echo "$file\n <br />";
... |
Forum: PHP 18 Days Ago |
| Replies: 6 Views: 193 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 18 Days Ago |
| Replies: 6 Views: 193 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 18 Days Ago |
| Replies: 6 Views: 193 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 18 Days Ago |
| Replies: 7 Views: 213 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 18 Days Ago |
| Replies: 4 Views: 210 Get.......... an............. UPS............., hardware................ should.......... stop.............. the............... issue................ long............ before.................... |
Forum: PHP 18 Days Ago |
| Replies: 7 Views: 213 You can't, use a database. It's that simple. |
Forum: PHP 19 Days Ago |
| Replies: 2 Views: 186 |
Forum: PHP 19 Days Ago |
| Replies: 4 Views: 178 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 19 Days Ago |
| Replies: 4 Views: 178 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 23 Days Ago |
| Replies: 1 Views: 273 |
Forum: C++ 24 Days Ago |
| Replies: 6 Views: 203 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++ 24 Days Ago |
| Replies: 6 Views: 203 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++ 24 Days Ago |
| Replies: 6 Views: 203 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++ 24 Days Ago |
| Replies: 2 Views: 130 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 24 Days Ago |
| Replies: 2 Views: 324 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++ 24 Days Ago |
| Replies: 2 Views: 153 Try not to spoon-feed him homework help considering he hasn't posted any attempts. |
Forum: PHP 24 Days Ago |
| Replies: 14 Views: 284 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 24 Days Ago |
| Replies: 14 Views: 284 oh, hahaha, did you also do sudo apt-get install php5-cli? |
Forum: PHP 24 Days Ago |
| Replies: 14 Views: 284 type php -v on the command line and paste the output here. |
Forum: PHP 24 Days Ago |
| Replies: 14 Views: 284 type ls /usr/local/bin and if php isn't in that list then reinstall it. |
Forum: PHP 24 Days Ago |
| Replies: 14 Views: 284 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 24 Days Ago |
| Replies: 14 Views: 284 This will find the php interpreter for you and use it, don't directly link to it.
#!/usr/bin/env php |
Forum: PHP 24 Days Ago |
| Replies: 7 Views: 324 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 25 Days Ago |
| Replies: 2 Views: 192 |
Forum: PHP 25 Days Ago |
| Replies: 4 Views: 332 You have an extra , right before the WHERE |
Forum: PHP 25 Days Ago |
| Replies: 5 Views: 255 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 25 Days Ago |
| Replies: 7 Views: 324 Holy crap no. Just no. A thousand times no. |
Forum: JavaScript / DHTML / AJAX 25 Days Ago |
| Replies: 2 Views: 420 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. |