Re: Re[2]: [PHP] Re: need help with uploading images

2002-07-30 Thread Deadsam
wow I like it :) thanks alot Tom you've been a big help and showed me something I never knew before also at the time Thanks to all who help me with this , it's very much appreciated Deadsam Tom Rogers [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi,

[PHP] Re: need help with uploading images

2002-07-29 Thread Richard Lynch
I'm trying to get an uploader to work, where you check to make sure it's a jpeg file that's being uploaded, and no other files allowed. the server is unix linux using php4.1 http://php.net/getimagesize -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound

[PHP] Re: need help with uploading images

2002-07-29 Thread Deadsam
maybe it would be easier to show you the part of code I'm using, echo $HTTP_POST_FILES['uploadFile']['size'] . ::. $HTTP_POST_FILES['uploadFile']['name']['type'] . ::; echo $HTTP_POST_FILES['uploadFile']['name'] . ::. $HTTP_POST_FILES['uploadFile']['tmp_name']; br */ ? ?php /** first check that

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Tom Rogers
Hi, Tuesday, July 30, 2002, 3:52:23 AM, you wrote: D maybe it would be easier to show you the part of code I'm using, D } D /** Check for the type of the image : only allow jpeg's */ D if($_FILES['uploadFile']['name']['type']!=image/jpeg){ D echo You can only upload jpg images.; D

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Deadsam
This looks good but I just have one question about it if you don't mind, what if someone was uploading a gif or a PNG file? can it be made to only detect jpgs? Thanks in advance Deadsam Try it this way, it will check if it is a jpeg and it has a horizontal and vertical size so you can be

[PHP] Re: need help with unusual php/mysql/array manipulation script

2002-07-27 Thread spam
On Sat, 27 Jul 2002 01:08:12 -0400, [EMAIL PROTECTED] (Chris Earle) wrote: Ahhh, good old UO. I remember GMing my taming, crazy what they've done to the game since I've quit (120 skill, insane!). I'm not completely sure of a few things about your question and I think that I could help

[PHP] Re: need help with unusual php/mysql/array manipulation script

2002-07-26 Thread Chris Earle
Ahhh, good old UO. I remember GMing my taming, crazy what they've done to the game since I've quit (120 skill, insane!). I'm not completely sure of a few things about your question and I think that I could help if you supply the answers to my questions. Does one tamer's taming of an animal

[PHP] Re: need help exec command

2002-07-21 Thread Richard Lynch
Hi Gurus, I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux. I want to execute a perl script throgh a PHP, which will take backup of the database after submit button on the PHP is clicked. I am using exec command, but as PHP runs as "nobody" user, it does not have access to Postgres

[PHP] Re: Need help accessing the values of an array in a form ...

2002-05-22 Thread John Kelly
John Kelly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have a form using the post method that outputs a dynamic number of fields each time with the same name but different values - this is required. For example ... filename[] filename[] filename[]

[PHP] Re: Need help accessing the values of an array in a form ...

2002-05-22 Thread John Kelly
John Kelly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... John Kelly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have a form using the post method that outputs a dynamic number of fields each time with the same name

[PHP] Re: Need help with Arrays

2002-05-15 Thread Michael Virnstein
1. your while loop should have {} brackets i can't see where it starts and where it ends. so does PHP. leaving brackets away tells PHP that only the next line is part of the while loop. i don't know if your file has only the three lines ($cust_name, $cust_area, $cust_code) or if

[PHP] Re: Need help with File Upload

2002-04-25 Thread Craig
have you included the MAX_FILE_SIZE hidden field? If yes try increasng the value to above the image size Walter Enzenhofer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi there, i´m sorry to post that stupid message, but i really need help in finding the

[PHP] Re: need help sorting an array...tricky

2002-04-24 Thread Chaviano
this worked for me.. might be useful to someone... // sort the array.. $current = 0; // we begin at the top $totals = forum_count_values($r); while ( $current sizeof($r)) { $c = $r[$current][FORUM_POST_FIELD_ID]; // count the number of posts that are replies to current.

[PHP] Re: Need help with a PHP script

2002-03-03 Thread Jim Winstead
Php [EMAIL PROTECTED] wrote: function Authorize() { global $HTTP_POST_VARS; $username = $HTTP_POST_VARS['username']; $password = $HTTP_POST_VARS['password']; echo T.$username.$password; } (insert the line above.) jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Need help with a stupid problem!

2001-11-29 Thread Julio Nobrega Trabalhando
Worry not, easier typing: $search .= ba = '$b'; If above doesn't satify the needs, maybe you are mysql_escape_string(); it? -- Julio Nobrega No matter where you go, this. De Necker Henri [EMAIL PROTECTED] wrote in message

RE: [PHP] Re: Need help with a stupid problem!

2001-11-29 Thread De Necker Henri
My output is still the same! It looks like this : ba = \'DA\' :) -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 13:54 To: [EMAIL PROTECTED] Subject: [PHP] Re: Need help with a stupid problem! Worry not, easier typing: $search

[PHP] Re: Need help with reading values from a form

2001-11-16 Thread _lallous
name the checkbox as: input type='checkbox' value='?=$field['id']?' name='selectedplayers' where ID is used to identify this current field! then read in the posted page as: ? while (list(, $selected) = each($selectedplayers)) { // $selected holds the ID of the field that was previously

Re: [PHP] Re: Need help on putting variable into form

2001-08-28 Thread Hugh Danaher
: [PHP] Re: Need help on putting variable into form No problem. With the space in there, it considered Company as something separate... -Andy Hugh Danaher [EMAIL PROTECTED] wrote in message 000801c12f74$62b93020$3907f4d8@win95">news:000801c12f74$62b93020$3907f4d8@win95... Andy, T

Re: [PHP] Re: Need help on putting variable into form

2001-08-28 Thread Christopher William Wesley
On Tue, 28 Aug 2001, Hugh Danaher wrote: I think at one time I tried using double quotes but didn't get good results. If you have time to answer, why the backslash and what the hell is foo? Using the backslash escapes the double quote ... tells php to not use the double quote (as it does to

[PHP] Re: Need help on putting variable into form

2001-08-28 Thread Hugh Danaher
Wow, I'll try it! I don't think someone will put extra info into the cell, but you never know. Thanks, Hugh - Original Message - From: James Holloway [EMAIL PROTECTED] To: Hugh Danaher [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 7:11 AM Subject: Re: Need help on putting variable

[PHP] Re: Need help on putting variable into form

2001-08-27 Thread Andy Ladouceur
Well,think about it like this: If you did replace $comp name with ABC Company, this is what you'd get: input type=text size=30 name=comp_name value=ABC Company Not quite right, eh? This will solve your problem: print input type=text size=30 name=comp_name value=\$comp_name\; =) -Andy Hugh

Re: [PHP] Re: Need help on putting variable into form

2001-08-27 Thread Hugh Danaher
Andy, Thank you. It Works! Hugh - Original Message - From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 27, 2001 8:35 PM Subject: [PHP] Re: Need help on putting variable into form Well,think about it like this: If you did replace $comp name with ABC

Re: [PHP] Re: Need help on putting variable into form

2001-08-27 Thread Andy Ladouceur
-- From: Andy Ladouceur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 27, 2001 8:35 PM Subject: [PHP] Re: Need help on putting variable into form Well,think about it like this: If you did replace $comp name with ABC Company, this is what you'd get: input type=text size

[PHP] Re: Need help to create HTML table with 2 columns.

2001-08-26 Thread Alex Sofronie
Try this: printf(TABLE); while($row=...fetch()) { printf(TRTD%s/TDTD%s/TD/TR,$string_variable1, $string_variable2); } - Original Message - From: John Bass [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 23, 2001 6:29 PM Subject: Re: [PHP] Need help to create HTML

[PHP] Re: Need help to create HTML table with 2 columns.

2001-08-23 Thread Hugh Bothwell
John Bass [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, I am trying to generate a table with two columns. Each column should print 2 fields named image_link and web_url. Have spent over week looking documentations and trying different coding but

Re: [PHP] Re: need help w/ variables

2001-07-23 Thread Van Tate Jr.
Ah! But never forget...the code in some books have bugs too. Van At 12:47 AM 7/23/01, you wrote: it was my error reporting along i copied that script dtraight from the text book so i knew it wasnt the variables themselves -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: need help w/ variables

2001-07-23 Thread ReDucTor
that error is because the php error checking had been changed from the default...but still some do have problems... :D - Original Message - From: Van Tate Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 5:01 PM Subject: Re: [PHP] Re: need help w/ variables Ah

[PHP] Re: need help w/ variables

2001-07-22 Thread Virgil Claritt
it was my error reporting along i copied that script dtraight from the text book so i knew it wasnt the variables themselves -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Re: need help w/ variables

2001-07-22 Thread ReDucTor
yep, thought so :D - Original Message - From: Virgil Claritt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 3:47 PM Subject: [PHP] Re: need help w/ variables it was my error reporting along i copied that script dtraight from the text book so i knew it wasnt

[PHP] RE: Need help with Database and variables

2001-05-08 Thread Tim Ward
$result = mysql_query($db, SELECT count(*) AS song_count FROM table_name); if ($array = mysql_fetch_array($result)) $song_count = $array(song_count); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message:

<    1   2