Re: [PHP] htaccess

2013-07-07 Thread Tedd Sperling
Simon: Confirmed. Those two lines cause the problem. However, commenting out those lines causes other problems. Are there similar statements to these: AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php5-cgi .php .htm .html That will allow for their function (whatever

Re: [PHP] htaccess

2013-07-07 Thread Simon J Welsh
On 8/07/2013, at 8:06, Tedd Sperling wrote: > Hi gang: > > I have a client who has an account with GoDaddy (I know). > > GoDaddy says they have PHP v 5.3 installed on the client's account, but > phpinfo() says different, namely it reports 5.2.17. > > After c

[PHP] htaccess

2013-07-07 Thread Tedd Sperling
Hi gang: I have a client who has an account with GoDaddy (I know). GoDaddy says they have PHP v 5.3 installed on the client's account, but phpinfo() says different, namely it reports 5.2.17. After calling GoDaddy, they said the client has an htaccess file that makes everything 5.2 inste

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - > http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk> > > > -- >

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Lester Caine
- 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 Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
I meant: PhpDocumentor 2 Am 07.07.2013 17:44 schrieb : > It's a clean install via PEAR a couple of hours ago! > > Sent from my android device. > > -Original Message- > From: Sebastian Krebs > To: Lester Caine > Cc: PHP General List > Sent: Sun, 07 Ju

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread lester
It's a clean install via PEAR a couple of hours ago! Sent from my android device. -Original Message- From: Sebastian Krebs To: Lester Caine Cc: PHP General List Sent: Sun, 07 Jul 2013 16:41 Subject: Re: [PHP] phpdocumentor with PHP5.4 You can simply update phpdocumentor Am 07.07

Re: [PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Sebastian Krebs
/?page=**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 > Rainbow Digital Media - > http://rainbowdigitalmedia.co.**uk<http

[PHP] phpdocumentor with PHP5.4

2013-07-07 Thread Lester Caine
ainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mongo usage

2013-07-06 Thread Tim Dunphy
t; Thanks! Fixed the type-o. Still no change. > > > > $connection = new Mongo(); > > > >$db = $connection->jfdb; > > > >//$collection = $db->addresses; > > > >$adresses = $connection->jfdb->addresses; > > ~~~~~ > > >

[PHP] Re: mongo usage

2013-07-06 Thread Tim Streater
n = $db->addresses; > >$adresses = $connection->jfdb->addresses; ~ > > Any other suggestions? Appreciated. Fix the other typo. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o. Still no change. $connection = new Mongo(); $db = $connection->jfdb; //$collection = $db->addresses; $adresses = $connection->jfdb->addresses; Any other suggestions? Appreciated. Tim

Re: [PHP] mongo usage

2013-07-06 Thread Matijn Woudt
On Sat, Jul 6, 2013 at 9:16 PM, Tim Dunphy wrote: > | You commented out the setting of yhe addresses variable > > Those were both equivalent ways of stating the same thing. I tried > substituting the other statement but there was no change: > > $db = $connection->jfdb; > > //$collection =

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
p until one spot. But there is nothing obviously wrong > with the code. Nothing! > > That's why I need the guaranteed message delivery on why PHP does not like > the code. > > Turn on all your error reporting/logging. Add a try/catch if appropriate. Turn off any unhandled exc

[PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Brian Smither
ode. Nothing! That's why I need the guaranteed message delivery on why PHP does not like the code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Richard Quadling
hes. And > still no clue as to why. > > So, still looking for that magic method to get PHP to report what's > happening on a 500 Internal Server Error when it's (presumably? not > sure...) not the server's fault. Have you got all your extensions updated? Enable di

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
>adresses; Thanks again! On Sat, Jul 6, 2013 at 2:57 PM, Jonathan Sundquist wrote: > You commented out the setting of yhe addresses variable > On Jul 6, 2013 1:42 PM, "Tim Dunphy" wrote: > >> Hey all, >> >> I'm trying to pick up some basic use of

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
> > Date: Sat, 6 Jul 2013 14:42:07 -0400 > > From: bluethu...@gmail.com > > To: php-general@lists.php.net > > Subject: [PHP] mongo usage > > > > > Hey all, > > > > I'm trying to pick up some basic use of MongoDB using PHP. > > > &

Re: [PHP] mongo usage

2013-07-06 Thread Jonathan Sundquist
You commented out the setting of yhe addresses variable On Jul 6, 2013 1:42 PM, "Tim Dunphy" wrote: > Hey all, > > I'm trying to pick up some basic use of MongoDB using PHP. > > I seem to have hit an early obstacle that I'd like your opinion on. I try >

RE: [PHP] mongo usage

2013-07-06 Thread Thomas Punt
Could the comma after the last element in your array be causing the problem? > Date: Sat, 6 Jul 2013 14:42:07 -0400 > From: bluethu...@gmail.com > To: php-general@lists.php.net > Subject: [PHP] mongo usage > > Hey all, > > I'm trying to pick up some basic use of Mo

[PHP] Guaranteed Way to Get Error Message Wanted

2013-07-06 Thread Brian Smither
hod to get PHP to report what's happening on a 500 Internal Server Error when it's (presumably? not sure...) not the server's fault. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mongo usage

2013-07-06 Thread Tim Dunphy
Hey all, I'm trying to pick up some basic use of MongoDB using PHP. I seem to have hit an early obstacle that I'd like your opinion on. I try to pass an array to the mongo insert function, but for some reason the function does not recognize the array I'm passing. Even though

Re: [PHP] strlen ?

2013-07-06 Thread Lester Caine
?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] strlen ?

2013-07-06 Thread Jim Giner
many of the names from a csv file. Apparently when I do that it stores the LF at the end of the csv line. Have to remember that the next time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen ?

2013-07-05 Thread Lester Caine
/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen ?

2013-07-05 Thread Ashley Sheridan
im to remove a LF. Especially on an iphone for input, since it's not > >easy to enter a LF. Quoting the data is not the same thing as validating it. Thanks, Ash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-05 Thread Ken Robinson
Check the permissions on the files/directories involved. I get this on Linux when the files/directories are too open. Ken At 05:38 PM 7/5/2013, Brian Smither wrote: I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of yesterday) with Aprelium's Abyss X1 v2.8 web serv

[PHP] Find a list of function that clashes?

2013-07-05 Thread Daniel
any way of generating a list of all the functions that are the same across both phpbb and WordPress? Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen ?

2013-07-05 Thread John Meyer
nto a database. Consider trimming the data before doing the INSERT. I do validate my data by quoting it but I never expected to have to do a trim to remove a LF. Especially on an iphone for input, since it's not easy to enter a LF. -- PHP General Mailing List (http://www.php.net/) To u

[PHP] Guaranteed Way to Get Error Message Wanted

2013-07-05 Thread Brian Smither
I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of yesterday) with Aprelium's Abyss X1 v2.8 web server in FastCGI mode on WinXPSP3. An earlier version of this application works. The current version causes a 500 Internal Server Error. There is no entry in PHP's (fu

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
NSERT. I do validate my data by quoting it but I never expected to have to do a trim to remove a LF. Especially on an iphone for input, since it's not easy to enter a LF. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen ?

2013-07-05 Thread Stephen
don't see anything concatenating a LF to my string. Is this a browser being used for input? Never assume what a browser will do. It is good practice to validate and condition data before inserting into a database. Consider trimming the data before doing the INSERT. -- Stephen -- PHP Ge

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php > var_dump("Mike Hall", strlen("Mike Hall")); string(9) "Mike Hall" int(9) Try trimming it first and then apply strlen. Why would I need to trim something that I can already see doesn'

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
t; >wrote: >>> >>> Mike Hall comes back as 10, not 9 >>>> F.B. comes back as 5, not 4. >>>> >>>> >>> Doesn't work for me. >>> >>> php > var_dump("Mike Hall", strlen("Mike Hall")); >&

Re: [PHP] strlen ?

2013-07-05 Thread Matijn Woudt
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner wrote: > On 7/5/2013 1:32 PM, shiplu wrote: > >> On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner >> **wrote: >> >> Mike Hall comes back as 10, not 9 >>> F.B. comes back as 5, not 4. >>> >>> >>

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 1:32 PM, shiplu wrote: On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner wrote: Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php > var_dump("Mike Hall", strlen("Mike Hall")); string(9) "Mike Hall" int(9)

Re: [PHP] strlen ?

2013-07-05 Thread shiplu
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner wrote: > Mike Hall comes back as 10, not 9 > F.B. comes back as 5, not 4. > Doesn't work for me. php > var_dump("Mike Hall", strlen("Mike Hall")); string(9) "Mike Hall" int(9) Try trimming it firs

Re: [PHP] strlen ?

2013-07-05 Thread John Meyer
an explanation? Does strlen count the line feed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strlen ?

2013-07-05 Thread Jim Giner
elds. But everyone of them is coming back with a length that is one more than I see. Ex. Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. I've looked at my data and counted the chars - there is no extra space at the beginning or end in my table. Anyone have an explanation?

[PHP] Fwd: Hmm.. I got NULL here. Why?

2013-07-05 Thread Karl-Arne Gjersøyen
My PHP Source = "; var_dump($kg_pa_lager); ?> My var_dump() value; == string(84) "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = 'Tengs' AND varenr = 'EDY22X180'" NULL My Database table: ==

[PHP] Hmm.. I got NULL here. Why?

2013-07-05 Thread Karl-Arne Gjersøyen
My PHP Source = "; var_dump($kg_pa_lager); ?> My var_dump() value; == string(84) "SELECT kg_pa_lager FROM dynamit WHERE valgt_lager = 'Tengs' AND varenr = 'EDY22X180'" NULL My Database table: ==

Re: [PHP] Can this work?

2013-07-05 Thread Ashley Sheridan
; 2013/7/5 Stuart Dallas >> > >> >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen >> wrote: >> >> >> >>> Hello. I have a form in HTML/PHP with for loops that generate a >> selected >> >>> list like this: >> >>>

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:24, Karl-Arne Gjersøyen wrote: > 2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: >> >>> 2013/7/5 Stuart Dallas >>> >>>> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen >> wrote: >&

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas > On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: > > > 2013/7/5 Stuart Dallas > > > >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen > wrote: > >> > >>> Hello. I have a form in HTML/PHP with for loops that generate

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen wrote: > 2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen wrote: >> >>> Hello. I have a form in HTML/PHP with for loops that generate a selected >>> list like this: >>> for($

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Tedd Sperling > On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen > wrote: > > The lists look like this: > > > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > > method="post"> > value="1-25" selected="selected&quo

Re: [PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
2013/7/5 Stuart Dallas > On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen wrote: > > > Hello. I have a form in HTML/PHP with for loops that generate a selected > > list like this: > > for($i = 1; $i< 25;$i++ ){ > > > > } > > > > The lists look l

Re: [PHP] Can this work?

2013-07-05 Thread Tedd Sperling
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen wrote: > The lists look like this: > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > method="post"> value="1-25" selected="selected">1-25 value="1">12http://sperling.com/ph

Re: [PHP] Can this work?

2013-07-05 Thread Stuart Dallas
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen wrote: > Hello. I have a form in HTML/PHP with for loops that generate a selected > list like this: > for($i = 1; $i< 25;$i++ ){ > > } > > The lists look like this: > > http://localhost/%7Ekarl/kasen/io/kp/index.php&

[PHP] Can this work?

2013-07-05 Thread Karl-Arne Gjersøyen
Hello. I have a form in HTML/PHP with for loops that generate a selected list like this: for($i = 1; $i< 25;$i++ ){ } The lists look like this: http://localhost/%7Ekarl/kasen/io/kp/index.php>" method="post">1-2512345678910111213141516

Re: [PHP] Web dev, DB and "proper db design".

2013-07-05 Thread Lester Caine
while they are still in use. One of the problems I end up having to recover is where a hickup in the PHP or user side of things has deleted an entry, or more usually the whole table! In this case a properly implemented constraint would have prevented the problem. While using a constraint to manage

Re: [PHP] Web dev, DB and "proper db design".

2013-07-05 Thread Tony Marston
engine. But the main advantage of adding constraints in the database is that it protects the foreign entries from being deleted while they are still in use. One of the problems I end up having to recover is where a hickup in the PHP or user side of things has deleted an entry, or more usually the

Re: [PHP] Web dev, DB and "proper db design".

2013-07-05 Thread Lester Caine
database working for instance. So everything works the same for each engine. But the main advantage of adding constraints in the database is that it protects the foreign entries from being deleted while they are still in use. One of the problems I end up having to recover is where a hickup in the PHP

Re: [PHP] Web dev, DB and "proper db design".

2013-07-05 Thread Tony Marston
n guy and then a c/s guy and now a (new) web guy, things haven't changed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php So, like Jim, I'm just going to speculate your correspondent has never actually designed anything very int

[PHP] PHP 5.4.17 released!

2013-07-04 Thread Stas Malyshev
Hello! The PHP development team announces the immediate availability of PHP 5.4.17. About 20 bugs were fixed. All users of PHP are encouraged to upgrade to this release. For source downloads of PHP 5.4.17 please visit our downloads page: http://www.php.net/downloads.php Windows binaries can be

Re: [PHP] Web dev, DB and "proper db design".

2013-07-04 Thread musicdev
answers, and I hope I get some wide experiences here. > >> > >> Thanks for looking. > >> > >> Richard. > >> > > I"m going to guess that your source of such drivel never learned about > such things. Probably thinks that a 'key' h

Re: [PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Tamara Temple
ch > things. Probably thinks that a 'key' has to be defined as such in the db, > whereas we know what a FK really is. > > Don't worry. As a former big iron guy and then a c/s guy and now a (new) web > guy, things haven't changed. > > -- > PHP Gener

Re: [PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Andy McKenzie
t; Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - > http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Lester Caine
ntact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Web dev, DB and "proper db design".

2013-07-04 Thread Jim Giner
s that a 'key' has to be defined as such in the db, whereas we know what a FK really is. Don't worry. As a former big iron guy and then a c/s guy and now a (new) web guy, things haven't changed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Web dev, DB and "proper db design".

2013-07-04 Thread Tony Marston
SELECTs You cannot have relationships in a database without foreign keys, but you can have foreign keys with constraints. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Richard Quadling
Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was told "I've never worked on a web application where foreign keys were used in the database". As someone who has spent 25 years working on accounting/epos systems on MS SQL Server (yep, windows) and now in a web

[PHP] Hello again. new newbie querstion

2013-07-03 Thread Karl-Arne Gjersøyen
I have done as you explain for me an it works very vell in the halft part of my application. But below is my snippet of my source code where the number of items and weight not will update itself. This code do as what number I write in the "oppdater_stk_nonel_tenner[]" field is written as result, in

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-28 Thread Tamara Temple
ransaction skip. > > I don't know what to think about it -- no explanation. > > But, the problem suddenly vanished -- very strange. > > Cheers, > > tedd > > _ > tedd.sperl...@gmail.com > http://sperling.com I have no answers as to why the huge skip forwar

Re: [PHP] Problem with variables

2013-06-28 Thread Tamara Temple
Fernando A wrote: > I am working with php and codeigniter, but I have not yet experienced. > I need create a variable that is available throughout system. > This variable contains the number of company and can change. > as I can handle this? Hi, Fernando, welcome. I'm just a l

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-28 Thread Tedd Sperling
of my browser for > quite some time. But I couldn't explain why. > > Paul Yes, it was something like what Paul said -- it was not a transaction skip. I don't know what to think about it -- no explanation. But, the problem suddenly vanished -- very strange. Cheers, tedd ___

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-27 Thread Paul M Foster
x27;t interrupted the way it should have been. I remember the system taking forever to calm down before it gave the next transaction a number way forward of the last one. I waited in front of my browser for quite some time. But I couldn't explain why. Paul -- Paul M. Foster http://noferblatz.

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-27 Thread adriano
holes in sequence of auto increment happen using transaction for insert new record but you don't commit transaction itself it seems that the autoincrement is incremented anyway at least this is my case. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Migration of applications to PHP 5.4

2013-06-27 Thread Forum
Hello, i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy with PHP 5.4. Some applications like mediawiki could be updated and they are running fine. But there are some old and beloved applications that run any more. A good example is PHPmyedit 5.7.1 http

Re: [PHP] Last Record INSERT

2013-06-26 Thread Curtis Maurand
abase? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
t put stuff in it as per client's needs. However, all of a sudden, it's been fixed -- everything is back to "normal" -- very strange. Thanks to everyone. Cheers, tedd _____ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://w

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
member it. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Jim Lucas
turned on, you might be able to rummage through the logs and see what happened and when it happened. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Matijn Woudt
On Wed, Jun 26, 2013 at 7:35 PM, Tedd Sperling wrote: > On Jun 26, 2013, at 1:32 PM, Jim Giner > wrote: > > >> But more importantly - don't you need to figure out why it happened?? > As well as correcting any inserts with the bogus id? > > > Yes, I would like to know -- I'm open for suggestions.

Re: [PHP] Last Record INSERT

2013-06-26 Thread Carsten Jensen
d, I ask for the record number (ID) back. >>>> >>>> I am asking simply because mysql_insert_id() is deprecated. >> >> Now you tell me. :-) >> >> I learn something new every day of my life... and I'm getting damned tried >> of it. >> >

Re: [PHP] Last Record INSERT

2013-06-26 Thread Dan Munro
ysql_insert_id() is deprecated. > > > > Now you tell me. :-) > > > > I learn something new every day of my life... and I'm getting damned > tried > > of it. > > > > Back to the books. > > > > Thanks. > > > > Cheers, > >

Re: [PHP] Last Record INSERT

2013-06-26 Thread Samuel Lopes Grigolato
l_insert_id() is deprecated. > > Now you tell me. :-) > > I learn something new every day of my life... and I'm getting damned tried > of it. > > Back to the books. > > Thanks. > > Cheers, > > tedd > > _ > tedd.sperl...

Re: [PHP] Last Record INSERT

2013-06-26 Thread Stuart Dallas
module is now either mysqli or PDO depending on your requirements. Moving to mysqli from mysql will probably be the less painful route. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
t;> I am asking simply because mysql_insert_id() is deprecated. Now you tell me. :-) I learn something new every day of my life... and I'm getting damned tried of it. Back to the books. Thanks. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP Ge

Re: [PHP] Last Record INSERT

2013-06-26 Thread Stuart Dallas
How are you doing the insert? If you're inserting with mysql_query() then that's just as deprecated as mysql_insert_id(). -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
edd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
Hi gang: What's the most-current way to get the ID of the last recorded inserted in a database? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Jim Giner
serts with the bogus id? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
ike: >> >> alter table abc auto_increment = 2301; >> > > ALTER TABLE tbl AUTO_INCREMENT = 2301; > > -Stuart Thanks -- I needed confirmation on that. It is something that i don't want to do. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Stuart Dallas
t -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Samuel Lopes Grigolato
he next number in an > auto-increment? > > Something like: > > alter table abc auto_increment = 2301; > > Any ideas of why this happened? > > Cheers, > > > tedd > > _____ > t...@sperling.com > http://sperling.com > > > -- > PHP

[PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
(programmatically) to set the next number in an auto-increment? Something like: alter table abc auto_increment = 2301; Any ideas of why this happened? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Problem with variables

2013-06-25 Thread Jim Giner
On 6/25/2013 5:46 PM, Fernando A wrote: Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

[PHP] Problem with variables

2013-06-25 Thread Fernando A
Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

Re: [PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Paul M Foster
On Tue, Jun 25, 2013 at 07:58:32PM +0200, Forum wrote: > Hello, > > i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy > with PHP 5.4. > > Some applications like mediawiki could be updated and they are running fine. > > But there are some old

[PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Forum
Hello, i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy with PHP 5.4. Some applications like mediawiki could be updated and they are running fine. But there are some old and beloved applications that run any more. A good example is PHPmyedit 5.7.1 http

[PHP] Migration of applications to PHP 5.4

2013-06-25 Thread Forum
Hello, i recently migrated my webserver from Debian Lenny (with PHP 4.x) to Wheezy with PHP 5.4. Some applications like mediawiki could be updated and they are running fine. But there are some old and beloved applications that run any more. A good example is PHPmyedit 5.7.1 http

[PHP] Re: Some Advice

2013-06-25 Thread Jonesy
in the same house or cybercaf=E9, which gives the= > m > the same IP. > 2) The user could be traveling with a wireless card, his IP would change > quite a lot in this scenario. Or, it could be an AOL user and requess could be routed through who knows how many different requestors. -

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
uld at least check the IP of the client additionally to have some > prove > it is the same client you gave the session-ID. > > And it is better to put the session-ID in a POST-field than in GET. So it > es very unlikely someone passes a session ID around accidently. > > -- &g

Re: [PHP] Some Advice

2013-06-25 Thread Alex Pojarsky
me client you gave the session-ID. > > And it is better to put the session-ID in a POST-field than in GET. So it > es very unlikely someone passes a session ID around accidently. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] Some Advice

2013-06-25 Thread php
You should at least check the IP of the client additionally to have some prove it is the same client you gave the session-ID. And it is better to put the session-ID in a POST-field than in GET. So it es very unlikely someone passes a session ID around accidently. -- PHP General Mailing List

Re: [PHP] Some Advice

2013-06-25 Thread Floyd Resler
Thanks for pointing me to that. Looks to be much simpler that they way I was going to do it. Thanks! Floyd On Jun 25, 2013, at 8:17 AM, Samuel Lopes Grigolato wrote: > Hope it helps: > http://stackoverflow.com/questions/3740845/php-session-without-cookies (go > directly to t

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
it helps: > http://stackoverflow.com/questions/3740845/php-session-without-cookies (go > directly to the answer) > > > On Tue, Jun 25, 2013 at 9:15 AM, Floyd Resler wrote: > >> I use sessions to store login information. However, a particular user of >> a site can

Re: [PHP] Some Advice

2013-06-25 Thread Samuel Lopes Grigolato
Hope it helps: http://stackoverflow.com/questions/3740845/php-session-without-cookies (go directly to the answer) On Tue, Jun 25, 2013 at 9:15 AM, Floyd Resler wrote: > I use sessions to store login information. However, a particular user of > a site can only access it at the library

<    3   4   5   6   7   8   9   10   11   12   >