Search Results

Showing results 1 to 40 of 1000
Search took 0.08 seconds.
Search: Posts Made By: ShawnCplus
Forum: Computer Science 1 Day Ago
Replies: 9
Views: 151
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
http://php.net/imagick
Forum: PHP 15 Days Ago
Replies: 1
Views: 134
Posted By ShawnCplus
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
Posted By ShawnCplus
PHP has built-in ImageMagick functions, why are you using an external program?
Forum: JavaScript / DHTML / AJAX 15 Days Ago
Replies: 1
Views: 332
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
Show us your code otherwise we're just guessing
Forum: PHP 16 Days Ago
Replies: 3
Views: 195
Posted By ShawnCplus
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
Posted By ShawnCplus
<?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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
Get.......... an............. UPS............., hardware................ should.......... stop.............. the............... issue................ long............ before....................
Forum: PHP 18 Days Ago
Replies: 7
Views: 213
Posted By ShawnCplus
You can't, use a database. It's that simple.
Forum: PHP 19 Days Ago
Replies: 2
Views: 186
Posted By ShawnCplus
$mysqli->close();
Forum: PHP 19 Days Ago
Replies: 4
Views: 178
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
http://php.net/urldecode
Forum: C++ 24 Days Ago
Replies: 6
Solved: php to c++?
Views: 203
Posted By ShawnCplus
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
Solved: php to c++?
Views: 203
Posted By ShawnCplus
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
Solved: php to c++?
Views: 203
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
Try not to spoon-feed him homework help considering he hasn't posted any attempts.
Forum: PHP 24 Days Ago
Replies: 14
Solved: php5 on linux
Views: 284
Posted By ShawnCplus
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
Solved: php5 on linux
Views: 284
Posted By ShawnCplus
oh, hahaha, did you also do sudo apt-get install php5-cli?
Forum: PHP 24 Days Ago
Replies: 14
Solved: php5 on linux
Views: 284
Posted By ShawnCplus
type php -v on the command line and paste the output here.
Forum: PHP 24 Days Ago
Replies: 14
Solved: php5 on linux
Views: 284
Posted By ShawnCplus
type ls /usr/local/bin and if php isn't in that list then reinstall it.
Forum: PHP 24 Days Ago
Replies: 14
Solved: php5 on linux
Views: 284
Posted By ShawnCplus
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
Solved: php5 on linux
Views: 284
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Solved: XML Issues
Views: 192
Posted By ShawnCplus
http://php.net/simplexml
Forum: PHP 25 Days Ago
Replies: 4
Views: 332
Posted By ShawnCplus
You have an extra , right before the WHERE
Forum: PHP 25 Days Ago
Replies: 5
Views: 255
Posted By ShawnCplus
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
Posted By ShawnCplus
Holy crap no. Just no. A thousand times no.
Forum: JavaScript / DHTML / AJAX 25 Days Ago
Replies: 2
Views: 420
Posted By ShawnCplus
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.
Showing results 1 to 40 of 1000

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC