Re: [PHP] php file upload permission query

2005-12-15 Thread Angelo Zanetti
thanks, but Im sure there is something that is messing up the file permissions that I can change before the upload, instead of trying to cure the problem by setting the chmod of the file after its uplaoded Hristo Yankov wrote: Use chmod() on the uploaded file.

Re: [PHP] php file upload permission query

2005-12-15 Thread Hristo Yankov
Use chmod() on the uploaded file. === Hristo Yankov, Developer at Portellus, Inc. ICQ - 191445567 Yahoo! - yankov_hristo __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: [PHP] php file upload permission query

2005-12-15 Thread Hristo Yankov
The remote PHP machine maybe forces the files to change their permission when uploaded. This would be security measure. And I think that if this is the case, you won't be able to change the permissions. === Hristo Yankov, Developer at Portellus, Inc. ICQ -

Re: [PHP] looking for php programmers in mumbai / bombay

2005-12-15 Thread Hristo Yankov
I am from Alaska, can I apply? :D === Hristo Yankov, Developer at Portellus, Inc. ICQ - 191445567 Yahoo! - yankov_hristo __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: [PHP] MIME E-mail message

2005-12-15 Thread Richard Heyes
Oli Howson wrote: I'm working on a private webmail (and other) system, and am struggling a little with MIME mails. I've got a script to save all the attachments, but the thing I can't figure out is how I decide which part is the main email message itself (and hence which to display). Oh and

Re: [PHP] MIME E-mail message

2005-12-15 Thread Oli Howson
Than what? The imap extension is faster and has parsing functionality built in. True, but the parsing is to be done at a completely different time, and then imap extension can't be that much faster, when you consider that my method is doing very little processing, and basically getting the

Re: [PHP] array to object conversion

2005-12-15 Thread Jochem Maas
Cyril wrote: Is there any way of converting an array to an object of a type/class other than stdClass? write a function? - bare in mind this is just an idea - it would need more work to make it usuable (and the code is completely untested): class Test {} function castFromArray($class, $arr) {

Re: [PHP] PHPEclipse vs TruStudio

2005-12-15 Thread Lester Caine
Chris Lott wrote: Which of these are better Eclipse plugins for PHP Development? Or, which advantages do each provide? Can't speak about TruStudio - I never did get it to work, but that was a while ago. I'm running PHPEclipse on Eclipse3.1 and it is working fine form me. I've moved a lot of

Re: [PHP] MIME E-mail message

2005-12-15 Thread Richard Heyes
Oli Howson wrote: Than what? The imap extension is faster and has parsing functionality built in. True, but the parsing is to be done at a completely different time, and then imap extension can't be that much faster, when you consider that my method is doing very little processing, and

[PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Sabine
Hello to all, I distributed my app to a new server and suddenly had values saved twice in the db and so on. I tracked it down and found out, that the problem is the content of $_POST. Vars are doubled, Strings corrupted. Absolutely absurd. I have no idea where to search for the reasons.

Re: [PHP] MIME E-mail message

2005-12-15 Thread Oli Howson
I would imagine it would be significantly faster, and you must be doing some processing to extract the email body. I'll run some tests (when I can be bothered!) and post the results ;) Not sure exactly how accurate they'll be though, cos the IMAP routines won't let you retrieve just the whole

[PHP] XmlReader DOC_TYPE

2005-12-15 Thread Jared Williams
Hi, Im using XmlReader to pass through XML which has a doctype, now the problem is I cannot see how to retrieve the publicId and/or systemId of the doctype declaration, is this possible or a limitation of libxml? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

RE: [PHP] looking for php programmers in mumbai / bombay

2005-12-15 Thread Jim Moseby
not quite PC, but why do you need to be in mumbai or bombay, is the client located there? Because he probably wants to pay bombay wages where the median income for a programmer is ~$7500.00 USD annually. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, I want to assign a 4 Digit ID with leading zeros to each record added using a form I have created. The PHP scripts does two things: (a) It adds the data to a mySQL table (b) it generates a CSV file with the data The 4 Digit ID (beginning from 0001) will be used in two places: (a) It will

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Robin Vickery
On 12/15/05, Rahul S. Johari [EMAIL PROTECTED] wrote: Ave, I want to assign a 4 Digit ID with leading zeros to each record added using a form I have created. The PHP scripts does two things: (a) It adds the data to a mySQL table (b) it generates a CSV file with the data The 4 Digit ID

RE: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Jim Moseby
I¹m trying to figure out how to do this but am not sure. Any help appreciated. I'm not sure of what you are asking, but I'll assume that because you posted the to the PHP list, that you are asking how to take a MySQL autoincrement number and add leading zeros to it. Try this:

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread David Grant
Rahul, Rahul S. Johari wrote: The 4 Digit ID (beginning from 0001) will be used in two places: (a) It will be the ID for the record in the mySQL table, instead of the usual ID that we create in mySQL. It will be a Primary Key, Not Null, Auto_Increment Adding ZEROFILL to that definition might

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, I think this will work for me. Here's what I'm gonna do... When the form is submitted: First, add the records to the mySQL table. An ID will be automatically generated. Then, call the ID from the mySQL table, using your code, add the leading Zeros to it, and generate the CSV file with

RE: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Jim Moseby
What I would have preferred to have is make both the ID in mySQL table and the filename have the leading zeros. But I'm not sure if that's possible. Then, take the suggestion of another respondent to this topic, and have a look at MySQL's ZEROFILL option. I'm not sure if you can use it

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, I'm looking into the ZEROFILL option now. Didn't know about it before but it looks promising and probably is my solution. I'll get back. Thanks a ton! On 12/15/05 10:24 AM, Jim Moseby [EMAIL PROTECTED] wrote: What I would have preferred to have is make both the ID in mySQL table and

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread John Hinton
Rahul S. Johari wrote: Ave, I'm looking into the ZEROFILL option now. Didn't know about it before but it looks promising and probably is my solution. I'll get back. Thanks a ton! On 12/15/05 10:24 AM, Jim Moseby [EMAIL PROTECTED] wrote: Zerofill in mysql will do it. But, many mysql

RE: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Jim Moseby
I'm looking into the ZEROFILL option now. Didn't know about it before but it looks promising and probably is my solution. I'll get back. Obviously, with a 4 digit id, you will only be able to store 10,000 records. If I recall correctly, MySQL auto-increment fields will not reuse id's when

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Anas Mughal
The suggestions made are all great. However, I have a problem understanding the requirement of having the Id in the database matchup with the filename. (You could always append the when binding the database Id with the filename.) Please elaborate on your requirements. Thanks. On 12/15/05, Jim

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, That Worked!! That was the perfect solution. Everything is working just the way I wanted it to work now. I'm using ZEROFILL in my mySQL table and pulling the ID to generate the filename. Thanks a TON! On 12/15/05 10:17 AM, David Grant [EMAIL PROTECTED] wrote: Rahul, Rahul S. Johari

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, Primarily the application is for recycling some data. Things will be added by a client, shortly processed thereafter in-house, and removed. We won't be reaching the 10,000 records for this application. Thanks. On 12/15/05 11:00 AM, Jim Moseby [EMAIL PROTECTED] wrote: I'm looking into

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, Yes phpMyAdmin does but I'm sure many other don't. I'll keep this in mind. Thanks. On 12/15/05 11:01 AM, John Hinton [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: Ave, I'm looking into the ZEROFILL option now. Didn't know about it before but it looks promising and probably is my

[PHP] Configure/Compile PHP 5.1.1 to work with NuSOAP

2005-12-15 Thread Scott Fletcher
I'm working on installing Apache 2.2.0 and PHP 5.1.1 and I'm going to use NuSOAP for the first time. Since I never used SOAP before, so on the php.net soap documentation, it mentioned that I would need to use the --enable-soap option but does NuSOAP use this PHP's soap package? Thanks... --

[PHP] Re: [PHP-DEV] why is '01' == '1.'?

2005-12-15 Thread M. Sokolewicz
actually, you're right in that (colder.ch) since what happens here is a conversion. This applies to all these 'logic cases' posted. When something is converted to something else, as part of a process, you can't state that the process returns unique results (meaning the result always points

Re: [PHP] i18n maybe?

2005-12-15 Thread Jochem Maas
hi Richard, what charset is your DB set to use? what charset are your output pages set to? what charset is used for the file which contains the data you want to import? what [exactly] do you see for the band name in the import file for the '3-16' band? whatever is happening now I think you need

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Jim Moseby
Rahul S. Johari wrote: Ave, Primarily the application is for recycling some data. Things will be added by a client, shortly processed thereafter in-house, and removed. We won't be reaching the 10,000 records for this application. Thanks. Yes, but as I understand it, MySQL will continue to

Re: [PHP] Configure/Compile PHP 5.1.1 to work with NuSOAP

2005-12-15 Thread Jochem Maas
Scott Fletcher wrote: I'm working on installing Apache 2.2.0 and PHP 5.1.1 and I'm going to use NuSOAP for the first time. Since I never used SOAP before, so on the php.net soap documentation, it mentioned that I would need to use the --enable-soap option but does NuSOAP use this PHP's soap

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, Now that is an interesting perception. I didn't think about that. Well I can always change it to five or six. Let me re-assess this with the concerned person in the department and see what the scenario is like. I'll have to check the fluency of incoming data and expectancy of reaching the

[PHP] Configure - How to disable the XMLLIB support?

2005-12-15 Thread Scott Fletcher
I still haven't got PHP configured without running into errors. It kept asking for xml2-config, something XMLLIB related. So I used the --disable-xml option but that doesn't work. Any idea? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread tg-php
If it's really a temporary table, then you can probably reset the auto increment counter periodically so you'll never hit . If it doesn't have to be 4 digits, that you just want it padded out with zeros, you can have the numbers in the databse be 1, 2, 3, 4 (regular, no padding) and just

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Jonathan Duncan
On Tue, 6 Dec 2005, Eric Gorr wrote: Quoting Torgny Bjers [EMAIL PROTECTED]: I recommend Zend Studio if you can afford it since it has a GUI for both Windows and Linux FlameBateAnd for those interested in using a real computer/FlameBate, it's GUI also runs under MacOSX.

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, I did actually think about a periodic reset, as I do something like that for one other application, different issue. Thanks. On 12/15/05 1:24 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If it's really a temporary table, then you can probably reset the auto increment counter

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Chris Boget
Visual Slick Edit works on a Mac. As I've said before (and will undoubtedly say again), it is by far the best IDE I've used to date. Features: http://www.slickedit.com/content/view/353/217 System requirements: http://www.slickedit.com/index.php?option=com_contenttask=viewid=161Itemid=57 thnx,

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Richard Davey
On 15 Dec 2005, at 18:31, Jonathan Duncan wrote: FlameBateAnd for those interested in using a real computer/ FlameBate, it's GUI also runs under MacOSX. http://zend.com/store/products/zend-studio/requirements.php Actually, it does not. I installed it on my Mac, hoping to try it out and

[PHP] Help with the copy command...

2005-12-15 Thread Tim Meader
Okay, this seems like a ridiculously easy question which shouldn't even need asking, but I'm having trouble getting the builtin copy command to work properly. It seems to work fine as long as I feed it a full constant string path for each argument (ie - in the form /the/path/to/the/file). However,

Re: [PHP] asianwhiteskin beauty product

2005-12-15 Thread Michelle Konzack
Am 2005-12-13 10:09:41, schrieb Raz: Can I have some breast enlarger please? :-) Me too... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM

Re: [PHP] asianwhiteskin beauty product

2005-12-15 Thread Dan McCullough
Is this some sort of new Zend product? :) On 12/15/05, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2005-12-13 10:09:41, schrieb Raz: Can I have some breast enlarger please? :-) Me too... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Jonathan Duncan
On Thu, 15 Dec 2005, Richard Davey wrote: On 15 Dec 2005, at 18:31, Jonathan Duncan wrote: FlameBateAnd for those interested in using a real computer/FlameBate, it's GUI also runs under MacOSX. http://zend.com/store/products/zend-studio/requirements.php Actually, it does not. I

[PHP] Re: Configure - How to disable the XMLLIB support?

2005-12-15 Thread Scott Fletcher
Never mind that... I looked in the configure code and found this --disable-libxml option... Not the --disable-xml option... Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I still haven't got PHP configured without running into errors. It kept asking for xml2-config,

[PHP] encrypt and dcrypt

2005-12-15 Thread ganu
Hi , I want a function like md5() by which I can encrypt a code and again when I need from db i can dcrypt also. but in md5() this func. is not there. I can not go in reverse way. I want to use it both the ways. Help me , 10x. (Thnx.)... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] encrypt and dcrypt

2005-12-15 Thread Ray Hauge
I think base64 would work for you. http://us3.php.net/manual/en/function.base64-encode.php http://us3.php.net/manual/en/function.base64-decode.php Ray ganu wrote: Hi , I want a function like md5() by which I can encrypt a code and again when I need from db i can dcrypt also. but in

Re: [PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Aaron Koning
I wasn't aware you could use = instead of echo (? =$_SERVER['PHP_SELF'] ?). Try making an even simpler HTML/PHP example and see if the problem exists there. Then you can incrementally build your HTML/PHP back up to the point where it is breaking. Example: ?php print_r($_POST); ? html head /head

Re: [PHP] encrypt and dcrypt

2005-12-15 Thread Chris Shiflett
ganu wrote: I want a function like md5() by which I can encrypt a code and again when I need from db i can dcrypt also. but in md5() this func. is not there. I can not go in reverse way. If a simple PHP function could encrypt and decrypt data with no arguments other than the string, anyone

[PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread pw
Hello, Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? Thanks, Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Richard Davey
On 15 Dec 2005, at 20:09, Jonathan Duncan wrote: One more reason to upgrade to Tiger. I am still on MacOSX 10.3.9 =( Bummer :-\ Tiger was a nice upgrade imho, but a quite costly one too. Cheers, Rich -- http://www.corephp.co.uk PHP Development Services -- PHP General Mailing List

Re: [PHP] encrypt and dcrypt

2005-12-15 Thread Aaron Koning
Ganu, Are you simply looking to use the md5 string for authentication? If so you don't need to retrieve the decrypted version, simply encrypt what the user submits and compare the two md5 strings. Aaron On 12/15/05, Chris Shiflett [EMAIL PROTECTED] wrote: ganu wrote: I want a function like

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread Philip Hallstrom
Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? No, but a quick search for HTTP POST PHP example will get you the code you need. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread pw
Philip Hallstrom wrote: Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? No, but a quick search for HTTP POST PHP example will get you the code you need. Thanks, I googled and, as you said, there was code

Re: [PHP] encrypt and dcrypt

2005-12-15 Thread Anas Mughal
I use TriCrypt to encrypt simple strings. It supports two directional. http://www.fiacre.net/phpcode.php (Code available at http://www.fiacre.net/download/TriCrypt.txt) Sample: Original String=World Encrypted String=Nx9yJu I haven't gotten around at figuring out how do I make the code produce

[PHP] Re: Is it possible to use header() to POST form data?

2005-12-15 Thread Gustavo Narea
Hello. pw wrote: Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? I guess you cannot use the header() function in that way. Take a look at the header() documentation http://php.net/header. What do you need to

Re: [PHP] Questions from a ColdFusion Developer

2005-12-15 Thread Christopher Jordan
Robert Cummings [EMAIL PROTECTED] wrote:On Wed, 2005-12-14 at 21:34, Christopher Jordan wrote: Rob, Thanks for responding. :) I have more questions. I hope that's okay. :) *lol* No problem :) Thanks! :) You said: Share nothing refers to the PHP philosophy of not tying any data

[PHP] Klorofil Platform 0.1.1 released with Linux Support

2005-12-15 Thread Reza Iqbal
Dear all, Klorofil Platform 0.1.1 has been released. In this version, Klorofil added a GUI framework named gambArt for Linux. In prior version, Klorofil provided gambArt for Windows only. So, Klorofil Platform 0.1.1 allows developers to build cross-platform windowed applications to run right on

Re: [PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Aaron Koning
Hi Sabine, Its been my experience that you need square brackets after the input checkbox name for PHP to see an array. This page discusses that: http://www.evolt.org/article/Storing_form_array_data_to_MySQL_using_PHP/18/60222/ Change your code to the following and give it a try. ul id=colors

Re: [PHP] Help with the copy command...

2005-12-15 Thread Hristo Yankov
The two examples you give are not the same? I see different files. Please, doublecheck. --- Tim Meader [EMAIL PROTECTED] wrote: Okay, this seems like a ridiculously easy question which shouldn't even need asking, but I'm having trouble getting the builtin copy command to work properly. It

[PHP] Random Images with no duplicates?

2005-12-15 Thread Mike Rondeau
Hi, I'm still very green with PHP, but am working to fix that. I've searched high and low for an answer to this question and so far no solution has presented itself. I have a script to populate my web page with random images: ?php #random images example #this is your file $file = images.txt;

[PHP] Random Images with no duplicates?

2005-12-15 Thread Mike
Hi, I'm still very green with PHP, but am working to fix that. I've searched high and low for an answer to this question and so far no solution has presented itself. I have a script to populate my web page with random images: ?php #random images example #this is your file $file = images.txt;

Re: [PHP] Random Images with no duplicates?

2005-12-15 Thread Aaron Koning
This should work, although if there are only 9 lines in the file, it will run infintely (or until the page times out)... so put a check in for that. $imagesNeeded = 10; $imageArr = array(); // Create array with $imagesNeeded number of elements. for($i=0;$i$imagesNeeded;$i++) { // choose image

[PHP] Binary Config file: Protect script(s): Powered-by logo: How to?

2005-12-15 Thread Michael Hulse
Hey all, A couple years ago, before I could write my own PHP, I used a semi-commercial gallery script... Long story short, this gallery script used a config.dat file with these contents: ?php exit(); ? 11001100 01101100 0100 10001100 1100 ... ... (Picture 1,667 lines of this) ...

Re: [PHP] Binary Config file: Protect script(s): Powered-by logo: How to?

2005-12-15 Thread Michael Hulse
On Dec 15, 2005, at 10:09 PM, Michael Hulse wrote: So, if you buy the gallery script, which I did (I think I spent like 20$), the Powered by Company Name disappears. I forgot to add: When you buy the script, the company will send you a new replacement config.dat file that magically removes

Re: [PHP] Is it possible to use header() to POST form data?

2005-12-15 Thread Curt Zirzow
On Thu, Dec 15, 2005 at 03:02:01PM -0800, pw wrote: Philip Hallstrom wrote: Does anyone know if it's possible to use the header() function to POST form data to a URL? If so what syntax needs to be used? No, but a quick search for HTTP POST PHP example will get you the code you need.

Re: [PHP] Random Images with no duplicates?

2005-12-15 Thread Curt Zirzow
On Thu, Dec 15, 2005 at 08:45:33PM -0800, Mike Rondeau wrote: Hi, I'm still very green with PHP, but am working to fix that. I've searched high and low for an answer to this question and so far no solution has presented itself. I have a script to populate my web page with random images: