[PHP] upload image

2006-08-24 Thread Sonja
Hi, I have problems with uploading image, here is the code if(isset($_POST['txtTitle'])) { $albumId = $_POST['cboAlbum']; $imgTitle = $_POST['txtTitle']; $imgDesc = $_POST['mtxDesc']; $images= uploadImage('fleImage', GALLERY_IMG_DIR); if

RE: [PHP] upload image

2006-08-24 Thread Peter Lauri
Maybe this will help you: $name = mysql_escape_string($_POST['doc_filename'][$key]); $author = mysql_escape_string($_POST['doc_filename_author'][$key]); $filename = mysql_escape_string($value); $filetype = mysql_escape_string($_FILES['doc_attach']['type'][$key]); $filesize =

[PHP] How to deal with errors in forms

2006-08-24 Thread Merlin
Hi there, I do have a form where there is also a field with max 2000 characters the user can put in. Now before processing the data with php, I do a checkin the script for certain criterias if something lookes wrong I do redirect him to the original form with inserting the data he has

[PHP] Re: upload image

2006-08-24 Thread Mourad Boulahboub
Hi sonja, Sonja schrieb am 24.08.2006 09:38: Hi, I have problems with uploading image, here is the code if(isset($_POST['txtTitle'])) { $albumId = $_POST['cboAlbum']; $imgTitle = $_POST['txtTitle']; $imgDesc = $_POST['mtxDesc']; $images=

[PHP] Re: How to deal with errors in forms

2006-08-24 Thread Mourad Boulahboub
Hi Merlin, try with sessions. in this case you don't have to append something to the URL as parameters Merlin schrieb am 24.08.2006 11:40: Hi there, I do have a form where there is also a field with max 2000 characters the user can put in. Now before processing the data with php, I do a

[PHP] cURL and sending an POST with an @ as first char.

2006-08-24 Thread Mathijs
Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating formpost data'. This is becouse an @ at the start of a value

Re: [PHP] upload image

2006-08-24 Thread Sonja
Hi, It looks like: function uploadImage($inputName, $uploadDir) { $image = $_FILES[$inputName]; $imagePath = ''; $thumbnailPath = ''; // if a file is given if (trim($image['tmp_name']) != '') { $ext =

[PHP] Re: cURL and sending an POST with an @ as first char.

2006-08-24 Thread Mathijs
Mathijs wrote: Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating formpost data'. This is becouse an @ at the

[PHP] Copying IPTC data

2006-08-24 Thread Dotan Cohen
I have a bunch of pictures that I need to copy IPTC data from one field to another. I can read the first field (#118) with iptcparse, but I cannot get iptcembed to write to the second field (#025). The manual says This function is currently not documented; only the argument list is available. and

[PHP] Re: upload image

2006-08-24 Thread Mourad Boulahboub
Hi Sonja, Sonja schrieb am 24.08.2006 12:36: Hi, It looks like: $result= move_uploaded_file($image['tmp_name'], $uploadDir . $imagePath); is $uploadDir writeable to the webserver!? check this first. if it is if ($result) {

[PHP] Re: cURL and sending an POST with an @ as first char.

2006-08-24 Thread Jo�o C�ndido de Souza Neto
I think urlencode can solve this. Mathijs [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a

Re: [PHP] Re: Why small big?

2006-08-24 Thread Alex Turner
As I promised, here is the writeup with examples: http://nerds-central.blogspot.com/2006/08/choosing-file-format-for-small-web.html Cheers AJ tedd wrote: Alex: Excuse for top posting: You said: Clear as mud? Well actually, it's simperer than I thought. After your reply, I did some

[PHP] Re: cURL and sending an POST with an @ as first char.

2006-08-24 Thread M. Sokolewicz
Mathijs wrote: Mathijs wrote: Hello there, I Have a question about cURL and sending POST data. I have an array with values which are needed for an POST. There is one value which starts with an @. This gives me a error: ErrorNo.: 26, ErrorMsg: 'failed creating formpost data'. This is

[PHP] Re: Why small big?

2006-08-24 Thread tedd
Alex: Apologies again for top-posting. No problem with the sloppy language, it was more than good enough to get your idea across. Besides, I always hate being called for using a term incorrectly when I actually knew better. My claim that the quality-value term can be computed is not as

[PHP] [EMAIL PROTECTED]

2006-08-24 Thread Mourad Boulahboub
news.gmane.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Downloading of PgSQL data for use local (crappy subject line)

2006-08-24 Thread Michelle Konzack
Hello Richard, Am 2006-08-18 14:02:51, schrieb Richard Lynch: For LARGE datasets, CSV or tab-delimited transfers are probably going to be easiest to suck in to the DB. No, they are only one ore more rows (~1-20) from the timeline_table and the a row from the projects_table Another option is

[PHP] creating mailto: URL including 8-bit characters

2006-08-24 Thread Jim McIntyre
Hi, I'm trying to create a mailto: link in a page that will fill in the Subject and Bopy of a new email message with Spanish-language text. The text lives in strings in an array of localized text. Accented characters in the text are encoded as HTML entities. So, for example, the subject and

Re: [PHP] Session / cookie issues

2006-08-24 Thread Andrew Kreps
Could it be a 3rd party cookie problem? Does IE display the little eyeball privacy icon on the troubled user's browser status bar? I seem to remember having issues when Microsoft started supporting the cookie privacy stuff. On 8/23/06, Dave Goodchild [EMAIL PROTECTED] wrote: Hi all. I mailed

Re: [PHP] Session / cookie issues

2006-08-24 Thread Dave Goodchild
On 24/08/06, Andrew Kreps [EMAIL PROTECTED] wrote: Could it be a 3rd party cookie problem? Does IE display the little eyeball privacy icon on the troubled user's browser status bar? I seem to remember having issues when Microsoft started supporting the cookie privacy stuff. I will check

[PHP] ssl.

2006-08-24 Thread Jo�o C�ndido de Souza Neto
Hy everyone. Since we change our ssl key from 128kb to a 256kb i notice that something´s going wrong. In my e-commerce, part is secure and part isn´t. when i join into the secure part of the site, everithing works fine. But, when the sale is finishes and my script run header(Location:

Re: [PHP] ssl.

2006-08-24 Thread Tim Traver
João Cândido de Souza Neto wrote: Hy everyone. Since we change our ssl key from 128kb to a 256kb i notice that something´s going wrong. In my e-commerce, part is secure and part isn´t. when i join into the secure part of the site, everithing works fine. But, when the sale is finishes and

Re: [PHP] ssl.

2006-08-24 Thread Jo�o C�ndido de Souza Neto
Nothing was changed at the code, just the ssl key was changed. Why it was working fine with the old ssl key? Tim Traver [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] João Cândido de Souza Neto wrote: Hy everyone. Since we change our ssl key from 128kb to a 256kb i notice

[PHP] Re: ssl.

2006-08-24 Thread Alex Turner
It would appear that the root of the page has not gone back to http. Is it possible that this is a one of those cases when two things get changed at once by accident? I would suggest downloading the IE developer's tool bar (or the firefox equivalent) and then when you get to the page you

Re: [PHP] ssl.

2006-08-24 Thread Alex Turner
João, Surely the issue is to find why it is not working now. Why it did work in the past is only of interest if you want to stop the problem re-occurring in the future. Thus, the correct approach is to find why it is not working now, fix it and then see if you can work out what has change

Re: [PHP] ssl.

2006-08-24 Thread Alex Turner
João, Please try and find out why it is not working now. Once you have that worked out, it will be much easier to find out what has changed. There are a few subtle methods by which changing the key length might interact with PHP. However, in general, PHP is not involved with the