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.
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
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 -
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
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
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
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)
{
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
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
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.
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
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
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:
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
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
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:
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
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
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
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
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
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
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
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
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
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
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...
--
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
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
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
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
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
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:
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
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.
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
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,
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
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,
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
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/
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
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,
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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;
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;
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
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)
...
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
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.
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:
65 matches
Mail list logo