[PHP] Re: Formating datevariables...

2002-07-23 Thread Ragnar
Thanx for the help.. I ended up with this solution ;) $dag = substr ( $row['endret_dato'], 7, 2 ); $mnd = substr ( $row['endret_dato'], 4, 2 ); $aar = substr ( $row['endret_dato'], 0, 4 ); date ("dmY", mktime(0,0,0,$mnd,$dag,$aar) ) -R "Ragnar

Re: [PHP] Re: Formating datevariables...

2002-07-24 Thread Ragnar
going to do a bunch of string > manipulation, mktime, and date calls in PHP when you can just use > DATE_FORMAT() in your query and get exactly what you want without any > additional work by PHP? > > Take a little time and Read Chapter 6 of the MySQL manual. It will save > you a

[PHP] timestamp triggered only on update?

2002-07-25 Thread Ragnar
Maybe the wrong forum, but im giving it a try. Im used to for instance 2 columns in each table indicating when it was created and when it was last updated: Changed_date Registered_date In mysql it seems it is only possible to define a column as a timestamp, and this will trigger both on insert

[PHP] Re: timestamp triggered only on update?

2002-07-25 Thread Ragnar
hehe.. ofcourse i ment: ...this will trigger both on insert and update. "Ragnar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Maybe the wrong forum, but im giving it a try. > > Im used to for instance 2 columns in

[PHP] Displaying images with php?

2002-06-05 Thread Ragnar
What is the best way to display images in the browser with php? If i for instance have the pictures in ..\pictures\ ?? -Ragnar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying images with php?

2002-06-05 Thread Ragnar
ok ;) Thanx again!! .Ragnar "Nick Wilson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Ragnar declared > > What is the best way to dis

[PHP] How can i resize images after upload?

2002-06-06 Thread Ragnar
Is there a way in php to change the size of a posted/uploaded image regardless of the imagetype? -R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Formating datevariables...

2002-07-22 Thread Ragnar
I have a column in a mysql table with a timestamp. The value of this column is for instance: 20020722185242 How do i change the format on this to "DDMM" (22072002) in php? Thanx -R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why cant i refer to $userfile and $userfile_name?

2002-05-22 Thread Ragnar
Hi, im a newbie to php and are trying to make a small upload script. So i have read about the variables $userfile and $userfile_name. When i try to run the script i get the following error: Notice: Undefined variable: userfile Notice: Undefined variable: userfile_name Some of the code:

[PHP] Upload wont work

2002-05-23 Thread Ragnar
Hi and thanx for previous help!!! Still a newbie ;) I have tried to make the example from php manual working and have the following code: upload.html: Send this file: demo_up.php: This always ends up displaying "File not uploadet" + Filename. The file doesnt seem to upload at all. I

[PHP] Re: Upload wont work

2002-05-23 Thread Ragnar
It seems that i have passed the original problem.. now i get this errormessage: Warning: Unable to create 'C:\Inetpub\wwwroot\demos': Permission denied in c:\inetpub\wwwroot\demo_up.php on line 7 This is where i try to copy the uploaded file to the demo directory. So i try to enable write access

Re: [PHP] Re: Upload wont work

2002-05-23 Thread Ragnar
ite > permissions to that folder. > > ---John Holmes... > > > > -Original Message- > > From: Ragnar [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 23, 2002 6:51 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Re: Upload wont work > > >

[PHP] Re: Upload wont work

2002-05-24 Thread Ragnar
lol... the problem was in this line: move_uploaded_file($_FILES['userfile']['tmp_name'],"c:\\inetpub\\wwwroot\\up load\\".$_FILES['userfile']['name']); I used single backslash.. and thats no good i think ;) "Ragnar" <[EMAIL PROTEC

[PHP] PhP, mysql and pictures

2002-05-27 Thread Ragnar
Is it possible to display images in a browser that are stored as a blob column in a mysql table? Or is it better to store images in a direcotory and display them "from" there? -Ragnar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP-NIX] File upload

2004-04-22 Thread Ragnar
Hi guys/girls, I am having some major pain here with a php script handling file uploads. It's part of an CMS and the file in question takes a PDF, makes a thumbnail of it and then moves it to it's proper location on the server. All this works fine with smaller files < ~ 2 MB. I am having a file

[PHP] Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-23 Thread Ragnar
mum > file size you are tring to upload. > > happy coding... > > Vk. > > > Ragnar wrote: > > > Hi guys/girls, > > > > I am having some major pain here with a php script handling file > uploads. > > It's part of an CMS and the file in qu

[PHP] How do I POST data with headers & make the browser follow?

2005-10-06 Thread Ragnar
Hi guys/girls, I have to apologize if this issue has been discussed in detail before but I couldn't find anything obvious so far. What I need/want to do is to : 1. Take POST data from a form (no problem) 2. Do whatever i need to on the target page (no problem) 3. Pass some other data on to a 3r

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-06 Thread Ragnar
che Nachricht --- > Von: Brent Baisley <[EMAIL PROTECTED]> > An: Ragnar <[EMAIL PROTECTED]> > Kopie: php-general@lists.php.net > Betreff: Re: [PHP] How do I POST data with headers & make the browser > follow? > Datum: Thu, 6 Oct 2005 08:57:02 -0400 > > If the

[PHP] Re: How do I POST data with headers & make the browser follow?

2005-10-06 Thread Ragnar
Message-ID: <[EMAIL PROTECTED]> To: php-general@lists.php.net Date: Thu, 06 Oct 2005 15:04:41 +0200 From: Petr Smith <[EMAIL PROTECTED]> Subject: Re: How do I POST data with headers & make the browser follow? > I have to apologize if this issue has been discussed in detail before but I > couldn't

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-07 Thread Ragnar
x27;t to deal with an issue like this as payment information would go straight to the payment gateway (handled there, processed there, stored there) but in this case there was an inbetween step, which I didn't know how to solve. Thanks for the input. > --- Ursprüngliche Nachricht --- > Von

Re: [PHP] How do I POST data with headers & make the browser follow?

2005-10-08 Thread Ragnar
Hi Mark, basically what I am working on is integrating a step inbetween the checkout and the payment gateway processing. The cardholder information is checked for enrolment in the first step, if the cardholder is enrolled he will need to authenticate himself by password (this is where the 2nd pa