Search found 24 matches

by danselstudios
Wed Sep 13, 2006 10:44 pm
Forum: PHP - Code
Topic: ?width?With this form I upload image to dir & put data t
Replies: 3
Views: 327

yeah I sure do have GD...version 24 to be exact... thanks for that gd_info() function...neeto. Warning: imagesx(): supplied argument is not a valid Image resource in c:..\cpanel\ns_gallery_config.php on line 81 $image_width = imagesx($_FILES['img_file']); <---this is the supplied argument...whats wr...
by danselstudios
Wed Sep 13, 2006 10:18 pm
Forum: PHP - Code
Topic: ?width?With this form I upload image to dir & put data t
Replies: 3
Views: 327

?width?With this form I upload image to dir & put data t

So i'm uploading images and inserting image name and image location to MySQL database... I looking for ways to read the image's WIDTH and inserting that number into another field on the database how do i do this? currently i'm using $_FILES['image'] to read its name and the form uses the POST method...
by danselstudios
Sun Sep 03, 2006 5:49 pm
Forum: PHP - Code
Topic: PHP Default Errors- How do I avoid showing these errors?
Replies: 8
Views: 839

I can't anything on @ or => at php.net...I go there for everything else.
by danselstudios
Sun Sep 03, 2006 4:32 pm
Forum: PHP - Code
Topic: PHP Default Errors- How do I avoid showing these errors?
Replies: 8
Views: 839

jayshields or anyone,,, may you tell me a good website where i can find a glossary for stuff like the @ or . or -> or =>

or perhaps the name of the class or category where these things belong-thanks
by danselstudios
Sun Sep 03, 2006 4:21 pm
Forum: PHP - Code
Topic: PHP Default Errors- How do I avoid showing these errors?
Replies: 8
Views: 839

Well the default php error messages are just plain too long and UGLY.
So I'd like to handle the error messages myself so i may customize them to fit my website style.

I'll try set_error_handler() and @ before function calls.

thanks
by danselstudios
Sun Sep 03, 2006 2:34 pm
Forum: PHP - Code
Topic: PHP Default Errors- How do I avoid showing these errors?
Replies: 8
Views: 839

PHP Default Errors- How do I avoid showing these errors?

Hey PHP Devs, This is one of the most recent errors I've come across: Warning: copy(images/6.jpg) [function.copy]: failed to create stream: Permission denied in c:\websites\nickyscott120\nickyscott.com\cpanel\cpanel.php on line 19 An earlier error was about not being able to connect to my MySQL data...
by danselstudios
Tue Jun 13, 2006 11:08 am
Forum: PHP - Code
Topic: MYSQL_ASSOC vs. MYSQL_NUM? i keep receiving an error
Replies: 4
Views: 578

Alright, i found the freaking error...the form's action was to a php file that doesn't exist instead of self.

thanks everyone!!!
by danselstudios
Mon Jun 12, 2006 7:00 pm
Forum: PHP - Code
Topic: MYSQL_ASSOC vs. MYSQL_NUM? i keep receiving an error
Replies: 4
Views: 578

you know i learned about mysql_fetch_assoc and mysql_fetch_num...I suppose this is faster, or at least it reduces the number of lines of code you use to execute the command.

anyway, i don't understand why it doesn't work either way.
by danselstudios
Mon Jun 12, 2006 6:03 pm
Forum: PHP - Code
Topic: MYSQL_ASSOC vs. MYSQL_NUM? i keep receiving an error
Replies: 4
Views: 578

MYSQL_ASSOC vs. MYSQL_NUM? i keep receiving an error

CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: I get this error when i use "MYSQL_ASSOC" when i use "MYSQL_NUM" i get my results that are expected. heres the specific code i'm using: if( $db ){ $u...
by danselstudios
Fri Jun 09, 2006 12:07 pm
Forum: PHP - Code
Topic: what does it mean?? beta or patch?
Replies: 3
Views: 464

thanks man that makes a lot of sense.

i would assume beta versions are still just for testing purposes and stable versions are for live production.

thanks i really appreciate the quick response.
by danselstudios
Fri Jun 09, 2006 11:56 am
Forum: PHP - Code
Topic: what does it mean?? beta or patch?
Replies: 3
Views: 464

what does it mean?? beta or patch?

hey guys, i'm confused everything i'm gonna download software.

i just finished downloading phpdev.

i noticed there was a patch version, phpdev version, and a phpdev beta version.

what is the difference between beta and regular download????
by danselstudios
Thu Jun 08, 2006 5:40 pm
Forum: PHP - Code
Topic: DDL deep linking to swf with PHP...HOW SO???
Replies: 4
Views: 1063

what can PHP do?

is there a way PHP can read anchors and pass them on to flash????
by danselstudios
Thu Jun 08, 2006 3:06 am
Forum: PHP - Code
Topic: DDL deep linking to swf with PHP...HOW SO???
Replies: 4
Views: 1063

another thing:

everytime you change sections on this website....the scrollbar colors are set according to color scheme of the SWF.

that uses javascript....but somehow i believe it communicates to the PHP script first then javascript.


HOW SO????
by danselstudios
Thu Jun 08, 2006 2:43 am
Forum: PHP - Code
Topic: DDL deep linking to swf with PHP...HOW SO???
Replies: 4
Views: 1063

DDL deep linking to swf with PHP...HOW SO???

the question: how do you control an SWF movie by passing this query to PHP? understand,,,the swf movie is already been played (lets say sitting on frame 8) and you can see the contents of whatever frame 8 holds, then on the address bar you see http://xmlm3.com/#frame8, and of course, the actual addr...
by danselstudios
Wed Jun 07, 2006 3:25 pm
Forum: PHP - Code
Topic: success OR DIE is there an alternate solution to dying?
Replies: 16
Views: 5203

Let's say I do it this way: if( empty($errors) ){ $link = mysql_connect( '$host', '$user', '$pass' ); if( !$link ){ error('Could not connect to host'); return; } $db = mysql_select_db( '$dbname' ); if( !$db ){ error('Could not connect to database.'); return; } $username = trim($_POST['username']); $...