Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
It's spam unless they have opted in to receive your advertisements.
-
In FF3 the box is below the ad, but the text is above.
-
People adamantly stating that notepad is good for anything because they think they are cool since they are making the work more difficult for themselves.
-
The connection should have a separate try block.
-
You could also use the modified preorder tree traversal algorithm. Here are some resources which should help you: http://www.sitepoint.com/article/hierarchical-data-database http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
-
Actually, I made an error in my above post, it is supposed to be Zend_Db, but I cannot edit it. I disagree. Have you ever looked at Zend_Database and it's children? What do you suggest then? Where can I find a good example of a mysql class? Well, Zend_Db_Adapter_Pdo_MySql, but that is a part of Zend Framework and I don't know if you would like something like that.
-
That's because you don't tell it to. PHP does not care what headers you send, it just sends them. PHP is not the thing redirecting, nor is it the web server. It's the browser. The Location header just tells the browser to go somewhere, but the browser can choose to not do so.
-
I fail to comprehend why people want to watch other people type code. Why not just read a tutorial or book?
-
I disagree. Have you ever looked at Zend_Database and it's children?
-
Skipping automatically over access denied files in copying mass files
Daniel0 replied to dsaba's topic in Miscellaneous
Why didn't you just say that instead of saying "it didn't help me" four times within two sentences? You can still use the function though, make a script and run it from the command line. PHP is not just for websites. There is more than one way to do things. -
See: http://gtk.php.net/manual/en/gtk.gtkarrow.constructor.php You need to pass two arguments. I.e. new GtkArrow($something, $something_else).
-
Could you post some sample data?
-
This was the first result on a Google search for "free php encoder": http://www.byterun.com/free-php-encoder.php
-
Skipping automatically over access denied files in copying mass files
Daniel0 replied to dsaba's topic in Miscellaneous
Then you did it wrong. But seeing as you're too lazy to read the manual, to state how what I wrote didn't help you, provide any code, here is a function that will copy a folder. I didn't test it. <?php function move_folder($folder, $new_location) { $content = scandir($folder); if(!is_dir($new_location)) { mkdir($new_location); } foreach($content as $item) { $old = $folder . DIRECTORY_SEPARATOR . $item; if($item == '.' || $item == '..' || !is_readable($old)) continue; if(is_dir($old)) { move_folder($old, $new_location . DIRECTORY_SEPARATOR . $item); } else { copy($old, $new_location . DIRECTORY_SEPARATOR . $item); } } } ?> -
Skipping automatically over access denied files in copying mass files
Daniel0 replied to dsaba's topic in Miscellaneous
is_readable() -
class database{ function connect($db){ mysql_connect($db['host'], $db['username'], $db['password']); } } Now pass $db to that method.
-
You need to access it like $this->get_what. A good idea would be to read the OOP chapter in the manual to get a basic understanding of OOP in PHP.
-
[SOLVED] C++ Programming Question
Daniel0 replied to Ninjakreborn's topic in Other Programming Languages
When you return the rest of the code block will be discarded, so you need to move the system() call or cin.get() up before return. No, I mean using Start > Run > cmd -
[SOLVED] C++ Programming Question
Daniel0 replied to Ninjakreborn's topic in Other Programming Languages
Just run the program from the console. It's supposed to close immediately since it's supposed to return to the console. -
Something like these: http://www.phpfreaks.com/forums/index.php/topic,171689.0.html http://www.phpfreaks.com/forums/index.php/topic,176049.0.html
-
About quirks mode: http://en.wikipedia.org/wiki/Quirks_mode What do you mean with "the script throws errors"? What script?
-
The problem lies in that you are treating numbers and strings. You shouldn't. Numbers are numbers - strings are strings.
-
[SOLVED] call to undefined function, gotta be an easy fix
Daniel0 replied to php_ninja's topic in PHP Coding Help
formInfo::display_form_text() does not return a value so assigning it's return value to a variable is of no use. -
I'd put a reference in a database to the files and search the database. There you can add a lot more searchable content such as a description for instance.