[PHP] Re: Help with a regular expression for 0,1 or 2 decimal places

2005-10-25 Thread Phillip Oertel
hi, i'm not a regex guru myself, but the following regex should work - tabke a look at my regex test setup ... ?php $test = array( 1, 1., 1.2, 1.23, 1.234, 1234, 1234., 1234.5, 1234.56, 1234.567 ); // if there's a dot, we want at least one number after

[PHP] cleanly written shop-system (php5, object-oriented)?

2005-10-24 Thread Phillip Oertel
hi, i want to create a shop server application. the shop client interface will be in flash (communication with php over xml, soap or amfphp), the administration interface will be html. most likely it will probably be a long-running application that will be extended in several steps, so we need a

[PHP] Re: Php, Rails and ajax

2005-10-24 Thread Phillip Oertel
hi, rails is written in the ruby programming language. which has nothing to do with php. ruby and php are different programming languages, that are used on the server-side of the web. normally you decide on one of them! ajax in contrast is a way of updating the web browser content without

[PHP] Re: Php, Rails and ajax

2005-10-24 Thread Phillip Oertel
hi, rails is written in the ruby programming language. which has nothing to do with php. ruby and php are different programming languages that are used on the server-side of the web. normally you decide on one of them! ajax in contrast is a way of updating the web browser content without

[PHP] Re: cleanly written shop-system (php5, object-oriented)?

2005-10-24 Thread Phillip Oertel
and stability PHP4 offers which is why most applications use it. Worst thing you can do is design a website in entirely flash :) Phillip Oertel wrote: hi, i want to create a shop server application. the shop client interface will be in flash (communication with php over xml, soap

[PHP] Re: Why this doesn't work ?

2005-10-24 Thread Phillip Oertel
hi mario, first of all, make sure that your query works from the mysql console or phpmyadmin or some other tool (copy-paste the query from the code and replace $loging with something reasonable). then try the following: $query = SELECT COUNT (login) FROM formacao WHERE login = '$login'; //

Re: [PHP] Why this doesn't work ?

2005-10-24 Thread Phillip Oertel
ah! remove the whitespace between the COUNT and () : COUNT(login) instead of COUNT () ... Hi, Make this line instead $result = mysql_query($query) or die(mysql_error() . with the query $query; and you'll likely see the error. Here it goes: You have an error in your SQL syntax;

[PHP] Re: CURL and multiple sites at once

2002-03-03 Thread Phillip Oertel
curl_setopt($ch, CURLOPT_URL, http://foobarcom/page1html;); curl_setopt($ch, CURLOPT_FILE, $fh1); curl_exec($ch); //exec1 curl_setopt($ch, CURLOPT_URL, http://foobarcom/page2html;); curl_setopt($ch, CURLOPT_FILE, $fh2); curl_exec($ch); //exec2 curl_setopt($ch, CURLOPT_URL,

[PHP] Re: Can I use PHP to check server software????

2002-02-28 Thread Phillip Oertel
Hei wrote: Can I use PHP to check server software??? you can use curl, see the func below needs the php-curl libary enabled phil titleshowHeader - lese HTTP Header Antwort des entfernten Servers/title form action=?php echo $PHP_SELF ? input type=text name=url value=?php echo $url ?

[PHP] Re: errorr log

2002-02-28 Thread Phillip Oertel
Erwien Samantha Y wrote: does you webserver (apache?) and/or php have the rights needed to write to the /tmp directory? if not you have to chmod the permissions for the /tmp dir an maybe better idea would be to make directory /tmp/php directory and chown that to wwwrun but you should

[PHP] Re: PHP software tool

2002-01-06 Thread Phillip Oertel
Yoep wrote: I use this one too... its just 20$ or so though, and is a very great and convient editor. I do all my PHP coding in it. ACK. phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Re: Paging through MySQL results in PHP

2002-01-05 Thread Phillip Oertel
hi nelson, i'm not sure if i get you right, but you could store the 'base' of your generated SQL query in a session variable, that way you don't have to drag the $kw array along. // before any html output (sends http headers) session_start(); // build query from keywords -- results in string

[PHP] Re: Help Please

2002-01-05 Thread Phillip Oertel
line 29: mysql_query('$SQL') will send the following query to your db: $SQL i know of no db that understands that ;-) everything in single quotes is NOT parsed by php. here, use double quotes, or better, none at all. hope it works now, phil. -- PHP General Mailing List

[PHP] Re: Help Please (clarification)

2002-01-05 Thread Phillip Oertel
Phillip Oertel wrote: line 29: mysql_query('$SQL') will send the following query to your db: $SQL -- it sends exactly this string instead of the content of your variable $SQL, which contains the real query. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] Re: $PHP_SELF not working -please help

2001-12-20 Thread Phillip Oertel
Alawi wrote: use $PHPSELF not $PHP_SELF in windows BAD IDEA. what happens if one day you (or even worse: someone else) wants to run your scripts on a different server? one of the nicest things about PHP that you can run it on many different any OS's. phil. -- PHP General Mailing List

[PHP] Re: $PHP_SELF not working -please help

2001-12-19 Thread Phillip Oertel
Now for some strange reasons it tries to access my web direcorty that does not contain any file, and i get the 404 page not found error. check the source code of the html page. most likely you will see: FORM ... ACTION=. if not, it will still give you a hint about what's going wrong. are

[PHP] Re: http message

2001-12-17 Thread Phillip Oertel
see my message Re: URL checking. i just posted a few curl functions that do exactly what you want to. phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] Re: replacing Carriage Return

2001-12-17 Thread Phillip Oertel
Phantom wrote: I solicit information from a text field and save the data in mysql to be pulled out later and displayed as text on a webpage. However, Carrage Returns in the text field do not appear in the webpage text. they're not supposed to show up in HTML ! you need to replace the

[PHP] Re: array in sessions

2001-12-17 Thread Phillip Oertel
Gregor Jaksa wrote: Hello, is it possible to register array in session .. something like that: session_register(ex_array[field1]); session_register(ex_array[field2]); session_register(ex_array) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: i get a warning after upgrading to 4.1.0 (repost)

2001-12-16 Thread Phillip Oertel
John Lim wrote: This is a known bug with persistent database connections. Switching to non-persistent connections or ISAPI avoids this problem. thanks ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: pictures width and height

2001-12-16 Thread Phillip Oertel
Tommy Straetemans wrote: Is there a way to check the height and width from a picture that I upload? yes, easy. but you need gdlib installed. ?php phpinfo(); ? will tell you. from the documentation: The GetImageSize() function will determine the size of any GIF, JPG, PNG, SWF, PSD or

[PHP] Re: URL checking

2001-12-16 Thread Phillip Oertel
Trx wrote: Hi, I'm very much a newbie! I'm trying to set up a site which will automatically test links in a large link directory and show date and time of last check and whether or not a link to the external URL was dead or alive at the time. the curl library will let you do this. query

[PHP] Re: Problem with Code

2001-12-16 Thread Phillip Oertel
Phillip B. Bruce wrote: 1. Is there any documentation that explains the differences between the versions of PHP? php4 : much more fun ! go use it ! the documentation will tell you on each function page in which php version the fuction was first available. 2. Does it matter when writing

[PHP] i get a warning after upgrading to 4.1.0 (repost)

2001-12-15 Thread Phillip Oertel
does anyone know what Warning: Unknown persistent list entry type in module shutdown (11) in Unknown means? what do i have to do to solve the problem php seems to have? environment: Win2k, IIS5.0, MySQL just upgraded from PHP 4.0.6 to 4.1.0 now i get the warning msg. any help would be

[PHP] Re: last entry in mysql

2001-12-14 Thread Phillip Oertel
Yoed Anis wrote: hey guys, quick question I'm having trouble finding an answer too. In a mysql database, how can I select that last row entry. This might be done mins after i put that entry there and i tried to use: $lastid=mysql_insert_id(); to get the last id but to no avail. Thanks

[PHP] i get a warning after upgrading to 4.1.0

2001-12-13 Thread Phillip Oertel
does anyone know what Warning: Unknown persistent list entry type in module shutdown (11) in Unknown means? what do i have to do to solve the problem php seems to have? environment: Win2k, IIS5.0, MySQL just upgraded from PHP 4.0.6 to 4.1.0 now i get the warning msg. any help would be

[PHP] Re: using eval

2001-12-13 Thread Phillip Oertel
why would you want you quote the variable? eval (\$str = $str;); should work. at least no more parse error. phil. [EMAIL PROTECTED] wrote: I keep getting this error when I use eval what am I missing Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on line 1