|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 15 Dec 2005 22:50:45 -0000 Issue 3852
php-general-digest-help
lists.php.net
Date: Thu Dec 15 2005 - 16:50:45 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 15 Dec 2005 22:50:45 -0000 Issue 3852
Topics (messages 227461 through 227505):
Re: array to object conversion
227461 by: Jochem Maas
Re: PHPEclipse vs TruStudio
227462 by: Lester Caine
Re: MIME E-mail message
227463 by: Richard Heyes
227465 by: Oli Howson
Post-Vars doubled / corrupted
227464 by: Sabine
227500 by: Aaron Koning
XmlReader & DOC_TYPE
227466 by: Jared Williams
Re: looking for php programmers in mumbai / bombay
227467 by: Jim Moseby
4 Digit ID with Leading Zeros
227468 by: Rahul S. Johari
227469 by: Robin Vickery
227470 by: Jim Moseby
227471 by: David Grant
227472 by: Rahul S. Johari
227473 by: Jim Moseby
227474 by: Rahul S. Johari
227475 by: John Hinton
227476 by: Jim Moseby
227477 by: Anas Mughal
227478 by: Rahul S. Johari
227479 by: Rahul S. Johari
227480 by: Rahul S. Johari
227484 by: Jim Moseby
227486 by: Rahul S. Johari
227488 by: tg-php.gryffyndevelopment.com
227490 by: Rahul S. Johari
Configure/Compile PHP 5.1.1 to work with NuSOAP
227481 by: Scott Fletcher
227485 by: Jochem Maas
Re: [PHP-DEV] why is '01' == '1.'?
227482 by: M. Sokolewicz
Re: i18n maybe?
227483 by: Jochem Maas
Configure - How to disable the XMLLIB support?
227487 by: Scott Fletcher
227497 by: Scott Fletcher
Re: What software do you use for writing PHP?
227489 by: Jonathan Duncan
227491 by: Chris Boget
227492 by: Richard Davey
227496 by: Jonathan Duncan
227503 by: Richard Davey
Help with the copy command...
227493 by: Tim Meader
Re: asianwhiteskin beauty product
227494 by: Michelle Konzack
227495 by: Dan McCullough
encrypt and dcrypt
227498 by: ganu
227499 by: Ray Hauge
227501 by: Chris Shiflett
227504 by: Aaron Koning
Is it possible to use header() to POST form data?
227502 by: pw
227505 by: Philip Hallstrom
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
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)
{
$x = new $class;
foreach ($arr as $k => $v) {$x->$k = $v;}
return $x;
}
$t = castFromArray('Test', array("test1" => 123,
"test2" => 345,
"test3" => "abc"));
var_dump($t);
> I have been using the new PDO system and have experimented with
> fetching rows with PDO::FETCH_CLASS
> I would quite like to do the same with a plain array.
> Any comments appreciated.
>
> Cyril
>
attached mail follows:
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 other non-PHP development work over to Eclipse as
well so I only need the one IDE, and I can toggle between Windows and
Linux development machines without having to remember which one I am on ;)
There is still room for improvement, and I still drop into PhpEdit just
for a quick 'raw' edit when I have a file that is not in an existing
project, but I've linked up my own local CVS and run local and
sourceforge hosted projects side by side.
Just need to work out how to actually BUILD PHP through the Eclipse
framework now :)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
Treasurer - Firebird Foundation Inc.
attached mail follows:
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 basically getting the
> messages as fast as they can download!
I would imagine it would be significantly faster, and you must be doing
some processing to extract the email body.
>> Also there's a PEAR Net_POP3 library if you insist on using sockets
>> which handles lots of menial tasks for you.
>
> But where's the fun in that?
The fun is going to the pub earlier because you haven't got as much code
to write, nor as many gotchas to resolve since someone (me) has written
the code for you.
--
Richard Heyes
attached mail follows:
> 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 message, which is what I wanted
to do!
> The fun is going to the pub earlier because you haven't got as much
> code to write, nor as many gotchas to resolve since someone (me) has
> written the code for you.
If this was a commercial venture and I was doing it as a job, I'd
concur. As it is, I'm writing code 'cos I enjoy it, so getting to
finish it quicker isn't really an issue, whereas knowing you've done
something yourself is an issue, for me at least.
attached mail follows:
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.
PHP-Version is 4.3.11
Does anybody else have an idea?
Thank you in advance
Sabine
A simple testcase:
<?php
echo "Post:";
var_dump($_POST);
?>
<html>
<body >
<form id="formular" action="<?=$_SERVER['PHP_SELF'] ?>"
method="post">
<ul id="colors">
<li><input class="buttons" name="colors[]" id="id1"
type="checkbox" value="1" title="chose color" /><label
for="id1">red</label></li>
<li><input class="buttons" name="colors[]" id="id2"
type="checkbox" value="2" title="chose color" /><label
for="id2">blue</label></li>
<li><input class="buttons" name="colors[]" id="id3"
type="checkbox" value="3" title="chose color" /><label
for="id3">green</label></li>
<li><input class="buttons" name="colors[]" id="id4"
type="checkbox" value="4" title="chose color" /><label
for="id4">yellow</label></li>
</ul>
<fieldset class="nolegend">
<input type="submit" value="change colors"
name="aendern" />
<input type="submit" value="save colors" name="speichern" />
</fieldset>
</form>
</body>
</html>
Output for $_POST, if you just click on "change colors":
Post: array(1) { ["aendern"]=> string(34) "change colorsaendern=change
colors" }
Output, if you check only "red" and click "change colors":
Post: array(2) { ["colors"]=> array(1) { [0]=> string(1) "1" }
["aendern"]=> string(13) "change colors" }
output for 2 colors checked:
Post: array(2) { ["colors"]=> array(3) { [0]=> string(1) "1" [1]=>
string(1) "2" [2]=> string(1) "2" } ["aendern"]=> string(13) "change
colors" }
attached mail follows:
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>
<body>
<form action="" method="post">
<input type="hidden" name="testvar" value="pleasedontcorrupt" />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
Aaron
On 12/15/05, Sabine <phpdev
sric.de> wrote:
>
> 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.
> PHP-Version is 4.3.11
> Does anybody else have an idea?
>
> Thank you in advance
> Sabine
>
>
> A simple testcase:
>
> <?php
> echo "Post:";
> var_dump($_POST);
> ?>
> <html>
> <body >
> <form id="formular" action="<?=$_SERVER['PHP_SELF'] ?>"
> method="post">
>
> <ul id="colors">
> <li><input class="buttons" name="colors[]" id="id1"
> type="checkbox" value="1" title="chose color" /><label
> for="id1">red</label></li>
> <li><input class="buttons" name="colors[]" id="id2"
> type="checkbox" value="2" title="chose color" /><label
> for="id2">blue</label></li>
>
> <li><input class="buttons" name="colors[]" id="id3"
> type="checkbox" value="3" title="chose color" /><label
> for="id3">green</label></li>
> <li><input class="buttons" name="colors[]" id="id4"
> type="checkbox" value="4" title="chose color" /><label
> for="id4">yellow</label></li>
> </ul>
>
> <fieldset class="nolegend">
> <input type="submit" value="change colors"
> name="aendern" />
> <input type="submit" value="save colors" name="speichern"
> />
> </fieldset>
> </form>
> </body>
> </html>
>
> Output for $_POST, if you just click on "change colors":
> Post: array(1) { ["aendern"]=> string(34) "change colorsaendern=change
> colors" }
>
>
> Output, if you check only "red" and click "change colors":
> Post: array(2) { ["colors"]=> array(1) { [0]=> string(1) "1" }
> ["aendern"]=> string(13) "change colors" }
>
> output for 2 colors checked:
> Post: array(2) { ["colors"]=> array(3) { [0]=> string(1) "1" [1]=>
> string(1) "2" [2]=> string(1) "2" } ["aendern"]=> string(13) "change
> colors" }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Template</title>
</head>
<body>
<h1>Test</h1>
</body>
</html>
Jared
attached mail follows:
>
>
> 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
attached mail follows:
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 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
(b) It will also be the filename for the CSV file.
So basically it has to match the record adding in the mySQL table and the
filename for the CSV.
I¹m trying to figure out how to do this but am not sure.
Any help appreciated.
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
On 12/15/05, Rahul S. Johari <rjohari
nycap.rr.com> 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 (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
> (b) It will also be the filename for the CSV file.
>
> So basically it has to match the record adding in the mySQL table and the
> filename for the CSV.
Salve,
(a) It won't make a blind bit of difference to MySQL whether you have
leading zeros or not. It gets stored the same way.
(b) If you want to *display* the ID with 4 digits or generate a
filename in that format, use sprintf('%04d', $ID);
-robin
attached mail follows:
>
> 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:
$row=mysql_fetch_array($result);
$four_digit_id=str_pad($row['id'], 4, "0", STR_PAD_LEFT);
JM
attached mail follows:
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 be what you're after.
Cheers,
David
--
David Grant
http://www.grant.org.uk/
attached mail follows:
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 that new ID as the filename.
The only issue that I still have is... The file name will be "0001.csv",
while in the mySQL table, the ID for that record who's csv file has been
generated, will be "1".
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.
Thanks.
On 12/15/05 10:10 AM, "Jim Moseby" <JMoseby
nrbindustries.com> wrote:
>>
>> 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:
>
> $row=mysql_fetch_array($result);
> $four_digit_id=str_pad($row['id'], 4, "0", STR_PAD_LEFT);
>
> JM
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
>
> 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 with an
auto-increment field, but that's my best guess.
JM
attached mail follows:
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" <JMoseby
nrbindustries.com> wrote:
>>
>> 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 with an
> auto-increment field, but that's my best guess.
>
> JM
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
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" <JMoseby
nrbindustries.com> wrote:
>
>
>
Zerofill in mysql will do it. But, many mysql 'clients' don't 'display'
the zeros. As best that I remember, phpMyAdmin does show the zeros, so
be careful as what you 'see' might not really be what you 'get'. Seems
like there are issues with the viewing of this in Excel as well..
Friggin programs that think they are smarter that people!!!!
Anyway, that'll do the mysql side of it for you.
John Hinton
attached mail follows:
>
> 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
they are deleted. So, you will need to take that into consideration when
(if) you reach the 9,999th record.
JM
attached mail follows:
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 Moseby <JMoseby
nrbindustries.com> wrote:
>
> >
> > 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
> they are deleted. So, you will need to take that into consideration when
> (if) you reach the 9,999th record.
>
> JM
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Anas Mughal
attached mail follows:
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" <david
grant.org.uk> wrote:
> 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 be what you're after.
>
> Cheers,
>
> David
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
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" <JMoseby
nrbindustries.com> wrote:
>>
>> 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
> they are deleted. So, you will need to take that into consideration when
> (if) you reach the 9,999th record.
>
> JM
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
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" <webmaster
ew3d.com> 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 solution. I'll get back.
>>
>> Thanks a ton!
>>
>> On 12/15/05 10:24 AM, "Jim Moseby" <JMoseby
nrbindustries.com> wrote:
>>
>>
>>
> Zerofill in mysql will do it. But, many mysql 'clients' don't 'display'
> the zeros. As best that I remember, phpMyAdmin does show the zeros, so
> be careful as what you 'see' might not really be what you 'get'. Seems
> like there are issues with the viewing of this in Excel as well..
> Friggin programs that think they are smarter that people!!!!
>
> Anyway, that'll do the mysql side of it for you.
>
> John Hinton
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
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 increment as new
records are added, so it would be possible that you have only one record
in the table, but not be able to add another because of the 4 digit
restriction. If this is the case, you will only be able to have 10,000
ADDs, not 10,000 records. Just something to be aware of.
JM
attached mail follows:
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 10,000th
mark.
Thanks a bunch.
On 12/15/05 12:38 PM, "Jim Moseby" <jmoseby
nrbindustries.com> wrote:
> Yes, but as I understand it, MySQL will continue to increment as new
> records are added, so it would be possible that you have only one record
> in the table, but not be able to add another because of the 4 digit
> restriction. If this is the case, you will only be able to have 10,000
> ADDs, not 10,000 records. Just something to be aware of.
>
> JM
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
If it's really a temporary table, then you can probably reset the auto increment counter periodically so you'll never hit 9999.
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 use PHP to pad the numbers for display purposes too.
Just some random thoughts.
-TG
= = = Original message = = =
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 10,000th
mark.
Thanks a bunch.
On 12/15/05 12:38 PM, "Jim Moseby" <jmoseby
nrbindustries.com> wrote:
> Yes, but as I understand it, MySQL will continue to increment as new
> records are added, so it would be possible that you have only one record
> in the table, but not be able to add another because of the 4 digit
> restriction. If this is the case, you will only be able to have 10,000
> ADDs, not 10,000 records. Just something to be aware of.
>
> JM
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
attached mail follows:
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, "tg-php
gryffyndevelopment.com"
<tg-php
gryffyndevelopment.com> wrote:
> If it's really a temporary table, then you can probably reset the auto
> increment counter periodically so you'll never hit 9999.
>
> 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 use PHP to pad the numbers for display purposes too.
>
> Just some random thoughts.
>
> -TG
>
> = = = Original message = = =
>
> 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 10,000th
> mark.
>
> Thanks a bunch.
>
>
>
> On 12/15/05 12:38 PM, "Jim Moseby" <jmoseby
nrbindustries.com> wrote:
>
>> Yes, but as I understand it, MySQL will continue to increment as new
>> records are added, so it would be possible that you have only one record
>> in the table, but not be able to add another because of the 4 digit
>> restriction. If this is the case, you will only be able to have 10,000
>> ADDs, not 10,000 records. Just something to be aware of.
>>
>> JM
>
> Rahul S. Johari
> Coordinator, Internet & Administration
> Informed Marketing Services Inc.
> 251 River Street
> Troy, NY 12180
>
> Tel: (518) 266-0909 x154
> Fax: (518) 266-0909
> Email: rahul
informed-sources.com
> http://www.informed-sources.com
>
>
> ___________________________________________________________
> Sent by ePrompter, the premier email notification software.
> Free download at http://www.ePrompter.com.
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180
Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
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...
attached mail follows:
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 package?
NuSOAP != SOAP
given you have php5.1 to work with I suggest skipping NuSOAP and
using the new bundled SOAP extension instead.
>
> Thanks...
>
attached mail follows:
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 back to the same input), and as such you can't state a lot
of various things posted in this thread.
But this is all OT, and really should be moved off the list, or at least
to the generals list.
- tul
colder.ch wrote:
> No, this rule of logic can't be applied : 2 == true and true == 10, but
> 2 != 10
>
> It all depends on the types of the compared values.
>
>
> Hans Melis wrote:
>
>
>>a == b and a == c implies by the rules of logic that b == c
>>
>>
attached mail follows:
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 to totally
'fix' any relevant strings (artist names) that are extracted
from the 'import file' before inserting anything into the DB...
I don't have a real answer going on here but I certainly feel the
problem .... and I know that you might have a situation currently
were the strings you are trying to transform/'fix' are not
fixable because they are completely borked (for instance trying
to stick certain UTF8 chars into a ISO8859_1 charset field can 'break'
the string)
Richard Lynch wrote:
> UPDATE:
>
> What's actually in the database is:
>
> 3â¢16
this looks borked; should it not be:
3˜¢ˆˆ¢16
....
>>
>>Would '·' output by a browser turn into 'âÂ�¢' ???
thaqt seems unlikely but I'm not going to say no.
>>
>>If so, what can I do about it?
start from the beginning again ;-)
>>
>>--
>>Like Music?
>>http://l-i-e.com/artists.htm
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
attached mail follows:
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...
attached mail follows:
Never mind that... I looked in the configure code and found this
"--disable-libxml" option... Not the "--disable-xml" option...
""Scott Fletcher"" <scott
abcoa.com> wrote in message
news:2F.0E.23096.4E1B1A34
pb1.pair.com...
> 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...
attached mail follows:
On Tue, 6 Dec 2005, Eric Gorr wrote:
> Quoting Torgny Bjers <torgny
xorcode.com>:
>
>> I recommend Zend Studio if you can afford it since it has a GUI for both
>> Windows and Linux
>
> <FlameBate>And 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
it would not run because it did not have the move recent Java JRE which is
not available for Mac OSX (or was not at the time). I still do not have
it running. Although it installed without a hitch.
I would be interested in what people use to program PHP on Mac.
I currently use TextWrangler and I have tried TextMate, but I am not
completely sold on either of them. I use vim quite a bit also.
Jonathan
attached mail follows:
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_content&task=view&id=161&Itemid=57
thnx,
Chris
----- Original Message -----
From: "Jonathan Duncan" <jonathan
nacnud.com>
To: "Eric Gorr" <mailist
ericgorr.net>
Cc: <php-general
lists.php.net>
Sent: Thursday, December 15, 2005 12:31 PM
Subject: Re: [PHP] What software do you use for writing PHP?
>
> On Tue, 6 Dec 2005, Eric Gorr wrote:
>
>> Quoting Torgny Bjers <torgny
xorcode.com>:
>>
>>> I recommend Zend Studio if you can afford it since it has a GUI for both
>>> Windows and Linux
>>
>> <FlameBate>And 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
> it would not run because it did not have the move recent Java JRE which is
> not available for Mac OSX (or was not at the time). I still do not have
> it running. Although it installed without a hitch.
>
> I would be interested in what people use to program PHP on Mac.
>
> I currently use TextWrangler and I have tried TextMate, but I am not
> completely sold on either of them. I use vim quite a bit also.
>
> Jonathan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
On 15 Dec 2005, at 18:31, Jonathan Duncan wrote:
>> <FlameBate>And 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 it would not run because it did not have the move recent
> Java JRE which is not available for Mac OSX (or was not at the
> time). I still do not have it running. Although it installed
> without a hitch.
It was available at the time in a beta format from the Apple web site
(a 2 second Google found it for me), and is now available in full
release format. I downloaded it prior to installing Zend 5 on my Mac
and it works fine. The full update came in via Apple Software Update
last week, and it still works fine.
There is no reason why Mac owners could not run ZS5 from the day of
release. I know that I did.
Cheers,
Rich
--
http://www.corephp.co.uk
PHP Development Services
attached mail follows:
On Thu, 15 Dec 2005, Richard Davey wrote:
> On 15 Dec 2005, at 18:31, Jonathan Duncan wrote:
>
>>> <FlameBate>And 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
>> it would not run because it did not have the move recent Java JRE which is
>> not available for Mac OSX (or was not at the time). I still do not have it
>> running. Although it installed without a hitch.
>
> It was available at the time in a beta format from the Apple web site (a 2
> second Google found it for me), and is now available in full release format.
> I downloaded it prior to installing Zend 5 on my Mac and it works fine. The
> full update came in via Apple Software Update last week, and it still works
> fine.
>
> There is no reason why Mac owners could not run ZS5 from the day of release.
> I know that I did.
>
> Cheers,
> Rich
>
One more reason to upgrade to Tiger. I am still on MacOSX 10.3.9 =(
Jonathan
attached mail follows:
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
attached mail follows:
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, if I try to feed it two variables as
the arguments, it craps out somewhere along the line. Here are the two
different sets of calls I'm making:
These two work perfectly:
copy("/usr/local/apache/htdocs/ipreg2/crons/regservice_rep/snapshot.baseline",
"/usr/local/apache/htdocs/ipreg2/crons/regservice_rep/snapshot.baseline.bak")
;
copy("/usr/local/apache/htdocs/ipreg2/crons/regservice_rep/lastrun.timestamp",
"/usr/local/apache/htdocs/ipreg2/crons/regservice_rep/lastrun.timestamp.bak");
These two fail:
$l_stLastRun =
"/usr/local/apache/htdocs/ipreg2/crons/regservice_rep/lastrun.timestamp";
$l_stSnapshotBase =
"/usr/local/apache/htdocs/ipreg2/crons/regservice_rep/snapshot.baseline";
copy($l_stSnapshotBase, $l_stSnapshotBase.".bak");
copy($l_stLastRun, $l_stLastRun.".bak");
Can anyone offer any insight on what the problem might be with this? The
"unlink" function seems to accept the variable inputs with absolutely no
problem, so I can't understand the discrepancy between the two.
Thanks in advance.
Tim
attached mail follows:
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 LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
attached mail follows:
Is this some sort of new Zend product? :)
On 12/15/05, Michelle Konzack <linux4michelle
freenet.de> 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/
> Michelle Konzack Apt. 917 ICQ #328449886
> 50, rue de Soultz MSM LinuxMichi
> 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
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.)...
attached mail follows:
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 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.)...
>
attached mail follows:
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 could decrypt your data. In
other words, it can't be as simple as md5().
You might find the code samples at the bottom of this page helpful:
http://phpsecurity.org/code
They primarily cover using mcrypt. There's also an article by Robert
Peake that's pretty good:
http://www.phpmag.net/itr/online_artikel/psecom,id,667,nodeid,114.html
Hope that helps.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
attached mail follows:
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 <shiflett
php.net> wrote:
>
> 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 could decrypt your data. In
> other words, it can't be as simple as md5().
>
> You might find the code samples at the bottom of this page helpful:
>
> http://phpsecurity.org/code
>
> They primarily cover using mcrypt. There's also an article by Robert
> Peake that's pretty good:
>
> http://www.phpmag.net/itr/online_artikel/psecom,id,667,nodeid,114.html
>
> Hope that helps.
>
> Chris
>
> --
> Chris Shiflett
> Brain Bulb, The PHP Consultancy
> http://brainbulb.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
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
attached mail follows:
> 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.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]