[PHP] http_post_files not returning file type

2001-05-01 Thread Tomasz Abramowicz

this is taken straight from phpinfo(), as you can see
its all there except for type. I was wondering why
wouldnt my RH7.0, Apache 1.3.12 w/ PHP4.0.4pl1
know what the file type was...

HTTP_POST_FILES["userfile1"] 

Array
(
[name] => palazzina1.jpg
[type] => 
[tmp_name] => /tmp/phpewzSBs
[size] => 10272
)

tnx,
t.


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HELP !!!!

2001-05-01 Thread Tomasz Abramowicz

(www.phpwizard.net)

> Try phpMyAdmin
>
> Chris
>
> Hassan Arteaga wrote:
>
> > Hi all !!!
> >
> > I need URL to download some visual tool to create Databases, tables,
> > etc..for mySQL
> >
> > Thanks 
> >
> > --
> > M. Sc. Hassan Arteaga Rodríguez
> > Microsoft Certified System Engineer
> > Network Admin, WEB Programmer
> > FUNDYCS, Ltd
> > [EMAIL PROTECTED]
> >
> > --
> > 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 administrators, e-mail: [EMAIL PROTECTED]
>
> --
> Chris Fry
> Quillsoft Pty Ltd
> Specialists in Secure Internet Services and E-Commerce Solutions
> 10 Gray Street
> Kogarah
> NSW  2217
> Australia
>
> Phone: +61 2 9553 1691
> Fax: +61 2 9553 1692
> Mobile: 0419 414 323
> eMail: [EMAIL PROTECTED]
> http://www.quillsoft.com.au
>
> You can download our Public CA Certificate from:-
> https://ca.secureanywhere.com/htdocs/cacert.crt
>
> **
>
> This information contains confidential information intended only for
> the use of the authorised recipient.  If you are not an authorised
> recipient of this e-mail, please contact Quillsoft Pty Ltd by return
> e-mail.
> In this case, you should not read, print, re-transmit, store or act
> in reliance on this e-mail or any attachments, and should destroy all
> copies of them.
> This e-mail and any attachments may also contain copyright material
> belonging to Quillsoft Pty Ltd.
> The views expressed in this e-mail or attachments are the views of
> the author and not the views of Quillsoft Pty Ltd.
> You should only deal with the material contained in this e-mail if
> you are authorised to do so.
>
> This notice should not be removed.
>
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] date list

2001-05-01 Thread Tomasz Abramowicz

ahem
$daysinmonth = date('t');

- Original Message -
From: "Chris Fry" <[EMAIL PROTECTED]>
To: "Jon Rosenberg" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 3:06 AM
Subject: Re: [PHP] date list


> Jon,
>
> Just had to do almost exactly this - here's one solution. The tricky bit
was
> getting the number of days in the month - you have to look at next month!
>
> This generates a list for 12 months starting with the current month and
outputs
> display stuff as well. In our scenario this is passed to a script which
grabs
> records from a database and produces a report for the month selected and
the
> previous month so the range of values is always for 2 months. Ours goes
> backwards - you'll need to adjust it to run forwards.
>
>   
>   $strThisMonth = date('m');
>$strThisYear = date('Y');
>// convert to integer
>$strThisMonth++;
>$strNextMonth = $strThisMonth;
>$strPrevYear = $strThisYear;
>for($i=0;$i<=12;$i++) {
> $strThisMonth--;
> if($strNextMonth == 0) {
>  $strNextMonth = 12;
> }
> if($strNextMonth == 13) {
>  $strNextMonth = 1;
> }
> // How many days in this month
> $lastday = mktime (0,0,0,$strNextMonth,0,$strThisYear);
> $last = strftime ("%d", $lastday);
> $strThisMonthTS = mktime (0,0,0,$strNextMonth,0,$strThisYear);
> $strThisMonthName = strftime ("%B", $strThisMonthTS);
> $strNextMonth--;
> if($strThisMonth == 0) {
>  $strThisMonth = 12;
>  $strThisYear--;
> }
> $strPrevMonth = $strThisMonth -1;
> if($strPrevMonth == 0) {
>  $strPrevMonth = 12;
>  $strPrevYear--;
> }
> $strPrevMonthTS = mktime (0,0,0,$strThisMonth,0,$strPrevYear);
> $strPrevMonthName = strftime ("%B", $strPrevMonthTS);
> if($strPrevMonth < 10) {
>  $strPrevMonth = "0".$strPrevMonth;
> }
> if($strThisMonth < 10) {
>  $strThisMonth = "0".$strThisMonth;
> }
> ?>
>  ?>">
> }
>   ?>
>   
>
>
> Jon Rosenberg wrote:
>
> > I need to make a select list for a web page in the following format:
> >
> > 01/01/01-01/07/01
> > 01/08/01-01/14/01
> > 01/15/01-01/21/01
> > etc
> > etc
> > till the end of 2002 and further in the future eventually
> >
> > I'd like to make PHP generate this for me so I don't have to handcode it
for
> > each year in the future.  I've looked at the date/time functions and I'm
a
> > bit confused.  Any help would be appreciated.  Thanks!
> >
> > Jon
> >
> > --
> > 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 administrators, e-mail: [EMAIL PROTECTED]
>
> --
> Chris Fry
> Quillsoft Pty Ltd
> Specialists in Secure Internet Services and E-Commerce Solutions
> 10 Gray Street
> Kogarah
> NSW  2217
> Australia
>
> Phone: +61 2 9553 1691
> Fax: +61 2 9553 1692
> Mobile: 0419 414 323
> eMail: [EMAIL PROTECTED]
> http://www.quillsoft.com.au
>
> You can download our Public CA Certificate from:-
> https://ca.secureanywhere.com/htdocs/cacert.crt
>
> **
>
> This information contains confidential information intended only for
> the use of the authorised recipient.  If you are not an authorised
> recipient of this e-mail, please contact Quillsoft Pty Ltd by return
> e-mail.
> In this case, you should not read, print, re-transmit, store or act
> in reliance on this e-mail or any attachments, and should destroy all
> copies of them.
> This e-mail and any attachments may also contain copyright material
> belonging to Quillsoft Pty Ltd.
> The views expressed in this e-mail or attachments are the views of
> the author and not the views of Quillsoft Pty Ltd.
> You should only deal with the material contained in this e-mail if
> you are authorised to do so.
>
> This notice should not be removed.
>
>
>
> --
> 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 administrators, e-mail: [EMAIL PROTECTED]
>


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Managing Multiple Conditions in a MySQL Query

2001-05-01 Thread Tomasz Abramowicz

Recent Signatures\n";
$query = "SELECT FirstName,LastName,CityState FROM phPetition WHERE
Public='yes' AND Verified='yes' ORDER BY ID DESC LIMIT 0,5";
$result =  mysql_query( $query )
or die("never expect your query to work: $query");

while ( $row = mysql_fetch_array( $result ) ) {

echo "" . stripslashes($row["FirstName"]) . " " .
stripslashes($row["LastName"]) . " from " . stripslashes($row["CityState"]);

}



-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Problems with Netscape

2001-07-02 Thread Tomasz Abramowicz

> > I have a login form (look below) It works just perfict in IE but in
> > Netscape it gives me this error Not Found The requested URL 
> > /build3.0/user/ was not found on this server.
> 
> 
>^ try an "echo" here.
> 

dont think so.




-- 
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 administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] book help

2001-09-05 Thread Tomasz Abramowicz

http://www.php.net/books.php
hihi
t.
- Original Message - 
From: "Nikola Veber" <[EMAIL PROTECTED]>
To: "php forum" <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 19:36
Subject: [PHP] book help


> I am a begginer in php and I have bought the Sterling 
> Huges' "php developer's cookbook" since it was the only 
> book I could find. Is it a good choise ? 
> 
> 
> 
> -- 
> 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 administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
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 administrators, e-mail: [EMAIL PROTECTED]




[PHP] end this thread? Re: [PHP] Re: Pirate PHP books online?

2007-07-19 Thread tomasz abramowicz
> 
> It's like defining good and evil -- at some point in the conversation
> someone is going to use the words God or satan.
> 

that's rather narrow minded.

t.

ps. sorry, i just thought i would spam some as well...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Detailed Report

2005-10-27 Thread tomasz abramowicz

if your db is built correctly you could use
UNION or JOIN(S) to build the correct query.
otherwise look into DISTINCT(ROW) and/or creating
temporary tables.
formatting the info later is, as adrian illustrated,
up to you.

t.

ps. all the above depends on your mysql server version and
configuration.

Danny wrote:

Thanks for your help Adrian, but the problem is that I need to show row[0]
once (Customers text are repeated), and below the details of the records
 Your solution shows:
 Customers | John | A36 | New York
Customers | Jason | B45 | Los Angeles
(...)
And I need
Customers
John | A36 | New York
Jason | B45 | Los Angeles
 (...)
   (...)


 On 10/27/05, Adrian Bruce <[EMAIL PROTECTED]> wrote:



load each row of the resultset into an array $row using
mysql_fetch_array(), each field in the result set row will be held in
the corresponding array element.

while ($row = mysql_fetch_array($resultset, MYSQL_NUM)){
echo"$row[0] | $row[1] | $row[2]";
}

Hope this helps,
Ade

Danny wrote:



Hi All,
I´ve got a connection, to a MySQL db, and get the following
ResultSet(Category | Name | Code | City)
Customers | John | A36 | New York
Customers | Jason | B45 | Los Angeles
Customers | Max | A36 | Paris
Providers | John | A36 | London
Providers | Mark | B67 | Madrid
And I need the report in the following format:
Customers
John - A36 - New York
Jason - B45 - Los Angeles
Max - A36 - Paris
Providers
John - A36 - London
Mark - B67 - Madrid
Any one can help? I´m a bit stalled
thx
regards.
--





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
dpc



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IE6 not returning POST data from a textarea

2005-12-12 Thread tomasz abramowicz

Al wrote:
Anyone know to get IE6 to return POST data from a textarea when the text 
is pasted in?


Works fine for Mozilla, etc.

print_r($_POST) shows several  and  values just fine.

Thanks


post your code.
ie6 not returning post values from textarea fields works fine for me.
ie6 not returning post value is not php.

try sending to a file which has  as its first line.
check in the last table if you find your missing var.

bye.
t.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread tomasz abramowicz

start here: http://www.php.net/readdir

check out as well: 'string functions' for finding 'amrs'
and loops to make recursive search...

t.

Nicholas Couloute wrote:
I want a script where it will count all the amrs in a folder and it's 
sub folders like this setup:

amrs >
50 cent > amrs
nitty > amrs
bob > amrs
How would I do this?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php