Re: [PHP] Back from the dead with a racing question!

2009-07-17 Thread Thorsten Suckow-Homberg
and return the id for this record. A timestamp (microtime()) might also help. On the other hand - yes, there is still the possbility of locking the table. Regards Thorsten -- Thorsten Suckow-Homberg Jakobstrasse 214-216 52064 Aachen http://www.siteartwork.de Tel.: 0151 -10927135 Email: t

Re: [PHP] Re: [PROJECT HELP] - JotBug - A Project Management Issue Tracker written 100% with Zend Framework

2009-01-28 Thread Thorsten Suckow-Homberg
the WebDAV adapter that allows to query SVN information over HTTP/WebDAV - without the need of having a local SVN client running. It was never finished, but feel free to take whatever you need. -- Thorsten Suckow-Homberg http://www.siteartwork.de http://www.conjoon.org -- PHP General

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Thorsten Suckow-Homberg
*Procedural or OOP?* OOP *Dev OS* Windows XP *Dev PHP Version* 5.2.6 *Live Server OS* - *Live Server PHP Version* - *Which HTTP Server Software (+version)?* Apache 2.2 *IDE / Dev Environment* UltraEdit *Preferred Framework(s)?* Zend Framework, Ext JS *Do you Unit Test?*

Re: [PHP] Plotting Tool

2008-10-07 Thread Thorsten Suckow-Homberg
Hey there, Anyone have any suggestions on a plotting package for PHP? Nothing too crazy and fancy - just easy to read plots/graphs. We were using PHPlot on our old server but it's requiring too many lib's/util's to install on a new server. JPGraph: http://www.aditus.nu/jpgraph/ HTH

Re: [PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Thorsten Suckow-Homberg
1055function mkdir_recursive($pathname, $mode) 1056{ 1057is_dir(dirname($pathname)) || mkdir_recursive(dirname($pathname), $mode); 1058return is_dir($pathname) || @mkdir($pathname, $mode); 1059} Is this function defined within a class? From which scope do you call

Re: [PHP] Help with an error...

2008-07-24 Thread Thorsten Suckow-Homberg
Daniel already answerd regarding your error, but... ?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); ... if you call the script via cron I'm pretty sure $_SERVER won't be available since the script is not used in a running webserver process context. -- PHP General Mailing List

Re: [PHP] Changing PHP.ini

2008-07-15 Thread Thorsten Suckow-Homberg
By visiting php.info in a web browser I have confirmed the location of my php.ini file as /usr/local/php5/lib/php.ini. I open that file and edit the line: ; - display_errors = Off and change it to display_errors = On I then retstart Appache and visit php.info which still reports

Re: [PHP] MySpace stuff?

2006-06-11 Thread Thorsten Suckow-Homberg
Has anyone made some classes for automating MySpace activities: a friend adder, comment poster, etc.? Thanks... http://blog.phpdoc.info/archives/39-MySpace-Welcome-to-Web-0.5-and-a-Y!Maps-toy.html I don't know if it will help you, but it is worth the read :D -- PHP General Mailing List

Re: [PHP] Inserting data at runtime (php,mysql)

2006-03-21 Thread Thorsten Suckow-Homberg
The connection is successful but the data are not getting inserted into the table. I need to insert all the words into the table. When I change the insert statement with one insert at a time, I can insert values to the database. For exampel: $qure = INSERT INTO dict VALUES (1,'apple'); Do

Re: [PHP] Re: Where can I find nice Web icons for custom admin interface?

2006-03-02 Thread Thorsten Suckow-Homberg
www.icons-to-make-my-stuff-shiny-and-professional.com You probably should get somone that is one, or learn it. If the website above works, then there is one otherwise no. What a valuable response... oO Nicolas, you should google for Linux-Themes (KDE etc.), most of the icon collections

Re: [PHP] Only 4 of 5...

2006-03-02 Thread Thorsten Suckow-Homberg
Because of this: $dbArray = mysql_fetch_array($querys); This will fill $dbArray with the first row fetched from the table. 4 are left which you are calling in your loop at the end of your code example. What's your reason anyway to call mysql_fetch_array() here? Delete this line and I'd bet

Re: [PHP] usort(): The argument should be an array

2006-02-28 Thread Thorsten Suckow-Homberg
$row[4]; $res[$i]['size'] = $row[5]; $res[$i]['weight'] = $result_array[$row[0]]; $i++; } usort($res, cmp); echo mysql_error(); $res['maxweight'] = $maxweight; $res['results'] = $results; return $res; /**/ } ? That's not enough, we need the part that sits above and

Re: [PHP] Object Function-call handling in PHP5

2005-09-28 Thread Thorsten Suckow-Homberg
at http://www.php.net/php5, section Magic Methods In your case the __toString() method would be valuable... Regards Thorsten Suckow-Homberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is PHP the language for me???

2005-09-23 Thread Thorsten Suckow-Homberg
Yep, PHP can certainly do that, and once you start you wont find a friendlier place if you need help...without this list I wouldnt be a programming in PHP todayokay, maybe I would but it would be a LOT harder :-) Sooo... how much did they pay you to make you say this? :P -- PHP General

Re: [PHP] Re: Retrieving variable name?

2005-09-21 Thread Thorsten Suckow-Homberg
Short Answer : No Longer Answer : Maybe, if you have knowledge of PHP internals and a willingness to write an extension. Even then it may not work.. g Well, PHP5's magic methods __get()/ __set() could be used to resolve the variable's name... -- PHP General Mailing List

Re: [PHP] session

2005-09-20 Thread Thorsten Suckow-Homberg
and when i click on link always I have in $count value 1 but I need value 2,3, how to do it ? ?php session_start(); if (! isset($_SESSION['count'])) { $_SESSION['count'] = 0; } $_SESSION['count']++; //session_destroy(); - don't do that! It destroys the //session associated with the

Re: [PHP] re: resource id #

2005-09-20 Thread Thorsten Suckow-Homberg
in presenting the script/form. Best regards Thorsten Suckow-Homberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] resource id#

2005-09-20 Thread Thorsten Suckow-Homberg
When I try to insert a field into my database it shows as Resource id#21? I must be doing something dim. Some could would definetely help here... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Thorsten Suckow-Homberg
Hi All, My very first post to this group as I'm a freshly spanked new born php baby. Hope I have the correct stop for noob tech questions. Welcome :) [source] First guess: On your live server the ini-value error_reporting is switched to report anything but notices and warnings or

Re: [PHP] professional code quick tip

2005-09-20 Thread Thorsten Suckow-Homberg
in other languages it is possible use conditional epression in switch case like switch $n case (0n=4): but no in php You could use the following statement: ?php switch (true) { case (0 $n = 4): $f = 1; break; case (5 $n = 7): $f = 2; break; case (8 $n = 12): $f = 3; break;

Re: [PHP] help out a noob w/ include switch?

2005-09-20 Thread Thorsten Suckow-Homberg
[...] Try the following: 1) include() will only trigger a warning if the requested file is not within the include path. Thus, to make sure the file is found, you should use require() which triggers a fatal error and prevends the script from being executed if the given filename as the

Re: [PHP] professional code quick tip

2005-09-20 Thread Thorsten Suckow-Homberg
I'm certain that is illegal. Wanna bet? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] professional code quick tip

2005-09-20 Thread Thorsten Suckow-Homberg
$100... cuz I'm sure you didn't mean to compound those conditionals such that PHP doesn't understand them ;) nargh... yes you're right... send me your account information along with your paypal login. I'll send you the money asap ;) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Thorsten Suckow-Homberg
, this is something you should never ever do. Your code should run clean even with error_reporting set to E_ALL. Best regards Thorsten Suckow-Homberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php