[PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread alex
hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it possible to

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jim Lucas
alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jim Lucas
Jim Lucas wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread chris smith
On 4/16/06, Jim Lucas [EMAIL PROTECTED] wrote: Jim Lucas wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jim Lucas
chris smith wrote: On 4/16/06, Jim Lucas [EMAIL PROTECTED] wrote: Jim Lucas wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread chris smith
On 4/16/06, Jim Lucas [EMAIL PROTECTED] wrote: chris smith wrote: On 4/16/06, Jim Lucas [EMAIL PROTECTED] wrote: Jim Lucas wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102

Re: [PHP] Common Files

2006-04-16 Thread Jochem Maas
Shaun wrote: Hi, We have a dedicated UNIX server running FreeBSD, is it possible to set a directory where we can place a set of common files that can be used by all of our web sites? yes, but if you use openbase_dir then don't forget to add the relevant dir to the openbase_dir list.

Re: [PHP] Common Files

2006-04-16 Thread Alister Bulman
On 16/04/06, Jochem Maas [EMAIL PROTECTED] wrote: Shaun wrote: Hi, We have a dedicated UNIX server running FreeBSD, is it possible to set a directory where we can place a set of common files that can be used by all of our web sites? also check out PEAR (pear.php.net) which does

Re: [PHP] Common Files

2006-04-16 Thread Jochem Maas
Alister Bulman wrote: On 16/04/06, Jochem Maas [EMAIL PROTECTED] wrote: Shaun wrote: Hi, We have a dedicated UNIX server running FreeBSD, is it possible to set a directory where we can place a set of common files that can be used by all of our web sites? also check out PEAR

Re: [PHP] Fatal error: Unsupported operand types

2006-04-16 Thread kmh496
2006-04-16 (일), 19:35 +0900, kmh496 쓰시길: can somebody explain why $this-param = $this-SYSTEM-db-answer + $this-param; is causing the error Fatal error: Unsupported operand types in /var/www/current/mjguest/modules/settings.php on line 52 context is

Re: [PHP] Fatal error: Unsupported operand types

2006-04-16 Thread chris smith
On 4/16/06, kmh496 [EMAIL PROTECTED] wrote: can somebody explain why $this-param = $this-SYSTEM-db-answer + $this-param; is causing the error Fatal error: Unsupported operand types in /var/www/current/mjguest/modules/settings.php on line 52 context is function

Re: [PHP] Fatal error: Unsupported operand types

2006-04-16 Thread chris smith
On 4/16/06, kmh496 [EMAIL PROTECTED] wrote: 2006-04-16 (일), 19:35 +0900, kmh496 쓰시길: can somebody explain why $this-param = $this-SYSTEM-db-answer + $this-param; is causing the error Fatal error: Unsupported operand types in

Re: [PHP] Fatal error: Unsupported operand types

2006-04-16 Thread kmh496
2006-04-16 (일), 21:02 +1000, chris smith 쓰시길: On 4/16/06, kmh496 [EMAIL PROTECTED] wrote: 2006-04-16 (일), 19:35 +0900, kmh496 쓰시길: can somebody explain why $this-param = $this-SYSTEM-db-answer + $this-param; is causing the error Fatal error: Unsupported

Re: [PHP] Fatal error: Unsupported operand types

2006-04-16 Thread Jochem Maas
kmh496 wrote: can somebody explain why $this-param = $this-SYSTEM-db-answer + $this-param; is causing the error no. because: a, you don't mention the version of php you use b, we don't have knowledge of you codebase (posting code listings for a complete class really isn't going

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-16 Thread Jochem Maas
don't know if someone mentioned it already but i was digging around in the docs for something completely different and bumped into this: preg_grep() [http://php.net/preg_grep] and I thought of your question, might be just what your looking for. I can't remember having come across this func

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Kevin Kinsey
alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it

[PHP] Can't make shorthand work in PHP5

2006-04-16 Thread abrea
Dear List, The shorthand form ?=$printthis? worked fine for me in PHP4, but I cannot make it work in PHP5. (?php print($printthis); ? works ok, however). Could anybody please tell me if this form is still available in PHP5, and, if so, if a different syntax is needed? I searched the matter in the

Re: [PHP] Can't make shorthand work in PHP5

2006-04-16 Thread cajbecu
Hello, Check your php.ini configuration, there is an option to activate this option. [EMAIL PROTECTED] wrote: Dear List, The shorthand form ?=$printthis? worked fine for me in PHP4, but I cannot make it work in PHP5. (?php print($printthis); ? works ok, however). Could anybody please tell

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread tedd
At 4:46 PM +1000 4/16/06, alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Ryan A
Alex, Heres a very simple way to do exactly what you want as long as you are deleting all the records from the table: once you are in phpmyadmin you should have a frame with the database name(s) on the left and the tables on the right, click on the database name so that you have a list of tables

Re: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Ryan A
Oops sorry, I made a little mistake here: click on the database name so that you have a list of tables in the *right* frameI meant: click on the database name so that you have a list of tables in the *LEFT* frameCheers,Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Can't make shorthand work in PHP5

2006-04-16 Thread chris smith
On 4/16/06, cajbecu [EMAIL PROTECTED] wrote: Hello, Check your php.ini configuration, there is an option to activate this option. Might help to tell them what it is.. Look for short_open_tag. http://www.php.net/manual/en/ini.core.php (you can enable it with a htaccess file if need be).

Fwd: [PHP] Include Problem

2006-04-16 Thread Martin Alterisio
Ups, I forgot to reply to everyone again, sorry. -- Forwarded message -- From: Martin Alterisio [EMAIL PROTECTED] Date: 16-abr-2006 13:53 Subject: Re: [PHP] Include Problem To: Shaun [EMAIL PROTECTED] You're using an absolute path to the file, maybe what you really meant to do

RE: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jay Blanchard
[snip] i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it possible to somehow

RE: [PHP] Bar codes

2006-04-16 Thread Weber Sites LTD
Barcodes On The Fly With GD http://www.weberdev.com/get_example-184.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP code examples : http://www.weberdev.com PHP MySQL Forums : http://www.weberforums.com Learn PHP MySQL Playing Trivia :

[PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson
alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it

[PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread tedd
At 1:42 PM -0600 4/16/06, Chuck Anderson wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id

Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson
tedd wrote: At 1:42 PM -0600 4/16/06, Chuck Anderson wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next

Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread tedd
At 3:01 PM -0600 4/16/06, Chuck Anderson wrote: tedd wrote: At 1:42 PM -0600 4/16/06, Chuck Anderson wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought

Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson
tedd wrote: At 3:01 PM -0600 4/16/06, Chuck Anderson wrote: tedd wrote: At 1:42 PM -0600 4/16/06, Chuck Anderson wrote: alex wrote: hi everyone i have delete a few entries in my database as they were entered for testing purposes and are no longer need

[PHP] New Date/Time Functionality and Setting Timezones

2006-04-16 Thread Chris
In more than one place in the PHP documentation it refers to the order in which the new Date/Time functionality determines the appropriate time zone. That order is: 1) the value set by date_default_timezone_set(), if any 2) the TZ environmental variable 3) the date.timezone php.ini option

RE: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jay Blanchard
[snip] 2. Reset the auto_increment in Operations to 101 [/snip] This isn't another of those 'reseting the auto-increment' holy war questions where you use the AI number as an identifier for the record, is it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Table formation...

2006-04-16 Thread Jay Blanchard
I know that this is simple, and again I am operating on little rest in the quest to get a site launch by sometime tomorrow evening. I have a table of data and I want to display items by two's, i.e. Item 1 Item 2 Item 3 Item 4 Item 5 ...and so on. I seem to remember doing this using mod

Re: [PHP] Table formation...

2006-04-16 Thread chris smith
On 4/17/06, Jay Blanchard [EMAIL PROTECTED] wrote: I know that this is simple, and again I am operating on little rest in the quest to get a site launch by sometime tomorrow evening. I have a table of data and I want to display items by two's, i.e. Item 1 Item 2 Item 3 Item 4 Item

RE: [PHP] Table formation...

2006-04-16 Thread Jay Blanchard
[snip] Something like this? $c = 0; while($c $itemcount) { if ($c % 2 == 0) $c++; } [/snip] Yep! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson
Jay Blanchard wrote: [snip] 2. Reset the auto_increment in Operations to 101 [/snip] This isn't another of those 'reseting the auto-increment' holy war questions where you use the AI number as an identifier for the record, is it? Nope. And I have no intention of taking it there.

RE: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jay Blanchard
[snip] I just get obsessive and thorough when testing and then I don't like stale data in my database - so I like to reset everything. It would be better to backup before testing and then restore. Resetting the AI just makes it the same as if you had. [/snip] I agree, that is why I truncate

Re: [PHP] PHP Framework alternative ...

2006-04-16 Thread Ligaya Turmelle
I second that, and if anyone in the know cares to comment on whether: a. php will actually implement static late binding Mike Lively gives and update on the late static binding patch submitted to the internals on his blog

Re: [PHP] Table formation...

2006-04-16 Thread Paul Novitski
At 05:19 PM 4/16/2006, Jay Blanchard wrote: I have a table of data and I want to display items by two's, i.e. Item 1 Item 2 Item 3 Item 4 Item 5 Pardon my asking on the eve of your launch, but is a table the most sensible markup for this data? It looks to me like a one-dimensional

RE: [PHP] Table formation...

2006-04-16 Thread Jay Blanchard
[snip] Pardon my asking on the eve of your launch, but is a table the most sensible markup for this data? It looks to me like a one-dimensional list that just happens to be presented two to a row. If so, I'd use an unordered list, float each item left, and limit the list width to two item