Hi, guys!
I need information about the .gd2 file header. Any ideas where can I find it? I need to generate the correct header for some files (I need to generate the whole files actually, but that's not what I need help with), that's why I need to know what's in there.
Search found 35 matches
- Mon Oct 26, 2009 7:12 pm
- Forum: General Discussion
- Topic: The GD2 file header
- Replies: 0
- Views: 252
- Sat Aug 01, 2009 11:08 pm
- Forum: Coding Critique
- Topic: MySQL using OO PHP
- Replies: 18
- Views: 9867
Re: MySQL using OO PHP
The normal thing is the MySQL class to extend the Database class or even better - implement some DB interface.
Then in your project you use variables of that interface and can always add other implementations of the interface and change which implementation your project uses.
Then in your project you use variables of that interface and can always add other implementations of the interface and change which implementation your project uses.
- Thu Jun 04, 2009 4:59 pm
- Forum: General Discussion
- Topic: Username Changing [poll]
- Replies: 15
- Views: 2362
Re: Username Changing [poll]
Depends. Are you creating the application for yourself or for other people (something like phpbb for example). In first case: NO! It's not a problem to allow it but I really dislike it since lately everyone is changing their name every week. In the second case: It's better to make it optional. Maybe...
- Sat May 16, 2009 6:16 am
- Forum: General Discussion
- Topic: Convert MP3 to MIDI
- Replies: 7
- Views: 917
Re: Convert MP3 to MIDI
Hmm... I'm not much of a Linux fan, but I'll have a look. Thanks.
- Fri May 15, 2009 4:58 pm
- Forum: General Discussion
- Topic: Convert MP3 to MIDI
- Replies: 7
- Views: 917
Re: Convert MP3 to MIDI
Thanks for the help guys. I know what MP3 and MIDI are. By saying that I know it's possible I meant - there are converters. But as we know, they aren't very good. So I was just hoping that there is a good one. And that's why I asked you. I had an idea for a software, but I needed the music to be sto...
- Fri May 15, 2009 4:25 am
- Forum: General Discussion
- Topic: Convert MP3 to MIDI
- Replies: 7
- Views: 917
Convert MP3 to MIDI
Is this possible? I mean, I know it's possible but is there a good convertor? Can you tell me one that you've tried and seemed good?
- Sat May 02, 2009 6:37 pm
- Forum: General Discussion
- Topic: What editor do you use? 2008
- Replies: 285
- Views: 404417
Re: What editor do you use? 2008
For everything simple - UltraEdit.
For serious (big) projects - ZendStudio.
For serious (big) projects - ZendStudio.
- Wed Apr 22, 2009 4:23 pm
- Forum: General Discussion
- Topic: Windows 7 (Poll)
- Replies: 25
- Views: 3571
Re: Windows 7 (Poll)
I like both Windows 7 and Vista. Vista is way better than XP and I think 7 will be even more!
- Tue Apr 21, 2009 2:34 pm
- Forum: PHP - Code
- Topic: PHP parse error using mysql functions in and if statement :S
- Replies: 4
- Views: 586
Re: PHP parse error using mysql functions in and if statement :S
This is PHP, not python :) If you have more than one statement, you must put them in { } if ($sql) { mysql_select_db($db_name,mysql_connect("$db_host", "$db_user", "$db_password")); mysql_query($sql,mysql_connect("$db_host", "$db_user", &qu...
- Tue Apr 21, 2009 7:40 am
- Forum: PHP - Theory and Design
- Topic: Starting out with OOP - arrays of objects?
- Replies: 11
- Views: 1267
Re: Starting out with OOP - arrays of objects?
You can create a class ArticleCollection and store the Articles in it. And then you can have a method in that class that returns an ArticleCollection object with the articles that have photos. You'll still have to use the foreach in that method though. 
- Tue Apr 21, 2009 4:44 am
- Forum: Coding Critique
- Topic: A Shorthand Notation for SQL for Lazy ppl
- Replies: 24
- Views: 14252
Re: A Shorthand Notation for SQL for Lazy ppl
To be honest I hate javascript! I leave everything JS/CSS/HTML-related to someone else. I'm interested in programming and these things have nothing to do with it. So I avoid doing anything connected to them. (Not that I don't understand them...just don't like them...). But I'll take a look at jquery...
- Mon Apr 20, 2009 8:47 am
- Forum: PHP - Theory and Design
- Topic: API
- Replies: 2
- Views: 798
- Mon Apr 20, 2009 5:48 am
- Forum: PHP - Code
- Topic: inherited property behaviour
- Replies: 4
- Views: 308
Re: inherited property behaviour
$this->MyProperty = 1; // why is this allowed? what does this cause to the instance? It's allowed becouse in php you don't need to define a property before you use it. If you use a property that does not exist, php creates it for you. So when you do this: $this->MyProperty = 1; php creates a propert...
- Mon Apr 20, 2009 5:35 am
- Forum: Coding Critique
- Topic: A Shorthand Notation for SQL for Lazy ppl
- Replies: 24
- Views: 14252
Re: A Shorthand Notation for SQL for Lazy ppl
No I've not worked with jquery.
Others might like it that way. Maybe more people prefer it with arrows. It should be simpler and easyer to use, so...it's good
Just not for me 
Others might like it that way. Maybe more people prefer it with arrows. It should be simpler and easyer to use, so...it's good
- Sun Apr 19, 2009 7:01 pm
- Forum: PHP - Code
- Topic: PHP file size in KB
- Replies: 13
- Views: 2151
Re: PHP file size in KB
Try this:
Code: Select all
<?php
if ($size = filesize('images/' . $line['idname'] . '.jpg'))
{
echo round(($size / 1024), 2).' KB';
}
?>