php-general Digest 20 Sep 2009 09:10:03 -0000 Issue 6348
Topics (messages 298181 through 298194):
Re: ×©× × ××××!
298181 by: John Meyer
298186 by: Dotan Cohen
298192 by: Lester Caine
298194 by: Dotan Cohen
How To Apply Php.ini To Multiple Subdirectories?
298182 by: johny why
Ckeckbox list populated from database
298183 by: Haig Davis
298187 by: Paul M Foster
298188 by: saeed ahmed
Re[PHP] liable web based cron
298184 by: thuankkk
298185 by: thuankkk
Question: Correcting MySQL's ID colomn when removing an entry
298189 by: Parham Doustdar
298190 by: Lars Torben Wilson
298191 by: Ashley Sheridan
How to work with embedded mysql from php.
298193 by: Nishshanka Sirisena
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Unfortunately, it doesn't look like we have a Hebrew mailing list.
-----Original Message-----
From: LuKreme [mailto:[email protected]]
Sent: Saturday, September 19, 2009 2:51 PM
To: [email protected]
Subject: Re: [PHP] שנה טובה!
On Sep 19, 2009, at 10:09, Dotan Cohen <[email protected]> wrote:
> ניצן, תזהר לא לכלול את תפוצות הדואר
> כשאתה שולח דברים אלו. תודה.
>
> שנה טובה!
I think this is an English language list.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> I think this is an English language list.
>
The OP was just wishing everyone a happy new year. I then replied back
asking him not to CC the list with such matters, but in a flash of
brilliance CCed the list (bad, gmail, bad!) myself. I apologize.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--- End Message ---
--- Begin Message ---
Dotan Cohen wrote:
I think this is an English language list.
The OP was just wishing everyone a happy new year. I then replied back
asking him not to CC the list with such matters, but in a flash of
brilliance CCed the list (bad, gmail, bad!) myself. I apologize.
Actually all that was needed was an extra couple of lines in your reply
- in english ;)
Had it not been a case of 'happy new year', and someone was looking for
help getting directed to the right place, then the occasional message
here should not be frowned at. Being totally linguistically challenged (
even in English ;) ) I do understand the frustration when the best
support seems to be in another language. Especially when 'google'
directs you to those pages even with 'English' is selected!
And knowing that there is a large Jewish presence in PHP - I believe
'Rosh Hashanah' is the correct translation?
On a more serious note - but I'm not actually complaining this time -
can we please get back to a roadmap to get PHP6 out of the door! Even
only using ASCCI internally, the amount of contact details that are
filling my own address book that require Unicode makes me glad that at
least the linux desktop is unicode agnostic and can handle these
messages! So isn't it about time we had a version of PHP that does not
require 'jiggery pokery' to cope with any text?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--- End Message ---
--- Begin Message ---
> Actually all that was needed was an extra couple of lines in your reply - in
> english ;)
>
Had I meant to reply to the list, I most certainly would have added
that. It is not the first time that I have replied to the wrong
entities with Gmail. I must learn to double check the To lines, I
know. It's not that hard!
> Had it not been a case of 'happy new year', and someone was looking for help
> getting directed to the right place, then the occasional message here should
> not be frowned at. Being totally linguistically challenged ( even in English
> ;) ) I do understand the frustration when the best support seems to be in
> another language. Especially when 'google' directs you to those pages even
> with 'English' is selected!
>
Agreed 100%, in fact, I blame PHP and the Fedora list for improving my English!
> And knowing that there is a large Jewish presence in PHP - I believe 'Rosh
> Hashanah' is the correct translation?
>
"Rosh Hashanah" means "new year", "happy new year" would be "shana tova".
> On a more serious note - but I'm not actually complaining this time - can we
> please get back to a roadmap to get PHP6 out of the door! Even only using
> ASCCI internally, the amount of contact details that are filling my own
> address book that require Unicode makes me glad that at least the linux
> desktop is unicode agnostic and can handle these messages! So isn't it about
> time we had a version of PHP that does not require 'jiggery pokery' to cope
> with any text?
>
Unfortunately I am not one of those responsible for such matters, but
I do believe that Zeev and Andi have a good idea of the anticipation.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
--- End Message ---
--- Begin Message ---
i have tried various methods, and i'm just getting errors-- and confused.
the goal is to put some code into .htaccess in the app's root dir, so that
the php.ini located in that same root dir will affect all subdirs.
here are 3 articles describing methods to achieve this, but nothing seems to
work. i either get server errors, or the subdirs are simply not affected.
http://bit.ly/pyOaN
http://bit.ly/udgAT
http://bit.ly/J0TUM
i'm on 1and1 shared hosting. they tell me i have cgi php.
here's my info.php on the root dir:
http://s219617301.onlinehome.us/cmsms/info.php
this root dir contains the php.ini which i want to apply to all subdirs.
please help!
--- End Message ---
--- Begin Message ---
Hello List,
I'm relatively new to PHP although I do feel I've got a grasp of the
basics. I have used php to draw up numerous selection lists populated
from a mysql database and have had no trouble at all.
However when it comes to the same concept yet using HTML check boxes I
aM complety stumped. It seems easy but I've been staring at the same
problem for hours.
Any hints are greatly appreciated.
Thanks
Haig
Sent from my iPhone
--- End Message ---
--- Begin Message ---
On Sat, Sep 19, 2009 at 09:06:14PM -0700, Haig Davis wrote:
> Hello List,
>
> I'm relatively new to PHP although I do feel I've got a grasp of the
> basics. I have used php to draw up numerous selection lists populated
> from a mysql database and have had no trouble at all.
>
> However when it comes to the same concept yet using HTML check boxes I
> aM complety stumped. It seems easy but I've been staring at the same
> problem for hours.
>
> Any hints are greatly appreciated.
I don't know what type of field you're trying to use to populate the
checkbox, but it basically comes down to this:
<input type="checkbox" name="pizza" <?php if ($fieldval == 'something')
echo 'checked="checked"'; ?>/>
or
<input type="checkbox" name="pizza" <?php echo ($fieldval == 'something)
? 'check="checked"' : ''; ?>/>
You've got to decide what is "checked" and "unchecked" for your
checkbox, and then make that a condition which triggers a "checked" or
"unchecked" state for the box. If you like, you can also put a
value="something" attribute in the input tag as well.
When your user is finished inputting the form and you go to process the
results, you can check for the existence of the checkbox name in the
$_POST variable, or check that the $_POST variable contains the value
you set in the value="something" attribute.
Checkboxes and radio buttons are tricky in this way, because they don't
normally return values in the same way an <input type="text" ...> field
does.
Paul
--
Paul M. Foster
--- End Message ---
--- Begin Message ---
you can do that
here is the example,
<input name='fieldName' type ='checkbox' <?php if(condition=condition){ echo
'checked="checked"';} ?> >
--
Regards,
Saeed Ahmed
Rajshahi, Bangladesh
Blog: http://saeed05.wordpress.com
--
Follow Me Linkedin
<http://www.linkedin.com/in/sas05>Twitter<http://twitter.com/saeed05>
--- End Message ---
--- Begin Message ---
If you need http://www.setcronjob.com/ cron jobs , but your hosting company
doesn't allow you to access http://www.setcronjob.com CronJobs feature,
you can try this web based cron service: "http://www.setcronjob.com
SetCronJob .
===
With SetCronJob, you can create unlimited cron jobs every 5 minutes
depending on your account balance.
Price: only $0.00001 / cron job execution, or 100,000 cron executions / $1.
After registering an account, you'll get $0.01, or 1,000 FREE cron job
executions, enough to launch 3 free cron jobs daily in 1 year!
===
Register an account here: http://www.setcronjob.com/register.php
--
View this message in context:
http://www.nabble.com/Reliable-web-based-cron-tp25527681p25527681.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
If you need http://www.setcronjob.com/ cron jobs , but your hosting company
doesn't allow you to access http://www.setcronjob.com CronJobs feature,
you can try this web based cron service: http://www.setcronjob.com/
SetCronJob .
===
With SetCronJob, you can create unlimited cron jobs every 5 minutes
depending on your account balance.
Price: only $0.00001 / cron job execution, or 100,000 cron executions / $1.
After registering an account, you'll get $0.01, or 1,000 FREE cron job
executions, enough to launch 3 free cron jobs daily in 1 year!
===
Register an account here: http://www.setcronjob.com/register.php
--
View this message in context:
http://www.nabble.com/Reliable-web-based-cron-tp25527681p25527681.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
Hello there,
I'm guessing that when a row in a MySQL table is removed, the ID colomns of the
rows which come after that row are not changed. For example:
1
2
3
4
Now, if I want to remove the third rows, the ID colomn would be something like:
1
2
4
I was wondering if there was a way to fix it through a query, so I wouldn't
have to use a for statement in PHP to fix it?
Thanks!
--
---
Contact info:
Skype: parham-d
MSN: fire_lizard16 at hotmail dot com
GoogleTalk: [email protected]
Twitter: PD90
email: parham90 at GMail dot com
--- End Message ---
--- Begin Message ---
On Sun, 20 Sep 2009 12:07:39 +0430
"Parham Doustdar" <[email protected]> wrote:
> Hello there,
> I'm guessing that when a row in a MySQL table is removed, the ID
> colomns of the rows which come after that row are not changed. For
> example: 1 2
> 3
> 4
>
> Now, if I want to remove the third rows, the ID colomn would be
> something like: 1
> 2
> 4
>
> I was wondering if there was a way to fix it through a query, so I
> wouldn't have to use a for statement in PHP to fix it?
>
> Thanks!
>
I'm not sure why you would want to do that--it would make things very
hard to keep track of. Once an ID has been assigned to a set of data,
that ID should not change.
Perhaps if you explained the actual problem you're having, instead of
how you're trying to solve it, it would be easier to offer a possible
solution. There is likely a way to solve it which does not involve
mangling the stored data.
Regards,
Torben
--- End Message ---
--- Begin Message ---
On Sun, 2009-09-20 at 01:06 -0700, Lars Torben Wilson wrote:
> On Sun, 20 Sep 2009 12:07:39 +0430
> "Parham Doustdar" <[email protected]> wrote:
>
> > Hello there,
> > I'm guessing that when a row in a MySQL table is removed, the ID
> > colomns of the rows which come after that row are not changed. For
> > example: 1 2
> > 3
> > 4
> >
> > Now, if I want to remove the third rows, the ID colomn would be
> > something like: 1
> > 2
> > 4
> >
> > I was wondering if there was a way to fix it through a query, so I
> > wouldn't have to use a for statement in PHP to fix it?
> >
> > Thanks!
> >
>
> I'm not sure why you would want to do that--it would make things very
> hard to keep track of. Once an ID has been assigned to a set of data,
> that ID should not change.
>
> Perhaps if you explained the actual problem you're having, instead of
> how you're trying to solve it, it would be easier to offer a possible
> solution. There is likely a way to solve it which does not involve
> mangling the stored data.
>
>
> Regards,
>
> Torben
>
Yeah, the idea of using relational databases like MySQL is so that you
can use multiple tables to store information, and link them by a common
field, often an id. If you go aorund altering your id's so that they run
in order, then you lose any links you had on them that use that field.
There is no reason to have them all run in order anyway, unless you're
writing some really bad queries.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Hi all.
I am developing a peer to peer application which is written in C for windows
platform and which contains a web interface using php and html stuffs. In
this case for the application I am using embedded mysql library as the
database. Now I have a big problem because I have no Idea about How to
access and manage this embedded mysql database from php.
Please someone help me to recover from this problem.
--- End Message ---