Re: [PHP] converting decimal to fraction and vice versa

2002-11-09 Thread Jason Wong
On Sunday 10 November 2002 12:45, Michael P. Carel wrote: > hi to all; > > is there any way to convert decimal numbers to fraction and fraction to > decimal format. i need to convert the inputed fractional value in the field > before inserting it to the mysql database, such us 1/2 = 0.5 . thanx in

Re: [PHP] Suggestions Please

2002-11-09 Thread John Nichel
I'm not big at taking options away from a customer / client / visitor to my site, but in a case like this, I would. You don't have to worry about all the different ways people can enter things, if you set the standards. For example, with the email Check it with JavaScript before the form

Re: [PHP] Re: Function Problem

2002-11-09 Thread conbud
huh I thought I tried that befoer and it didnt work but this time it worked good, thanks everyone. Also whats the difference between $globals['$variable'] and just global -Lee "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message news:20021110082455.7C29.MAXIM@;php.net... > > you need to return

Re: [PHP] Re: Function Problem

2002-11-09 Thread Maxim Maletsky
you need to return $db: function db_conn($host,$user,$pass,$dab) { $db = mysql_connect("$host", "$user","$pass" mysql_select_db("$dab",$db); return $db; } and then use $db = db_conn(,,,); or make it global: function db_conn($host,$user,$pass,$dab) { blobal $db; $db = mysql_connect("$host", "$

Re: [PHP] Suggestions Please

2002-11-09 Thread Justin French
Programatically, I doubt this can be done... or if it can, it would be one mother of a regex :) As you've already pointed out, there's a million ways to write an email address, and something such as an ICQ number can be written without the word "icq" and some people will still spot it... but to P

[PHP] Re: Function Problem

2002-11-09 Thread conbud
also I have the function wrong in my original question I have it as function db_conn($host,$user,$pass,$dab) { $db = mysql_connect("$host", "$user","$pass" mysql_select_db("$dab",$db); } and not function db_conn($host,$user,$pass,$dab) { $db = mysql_connect("$host", "$user","$pass")mysql_select_db

Re: [PHP] Function Problem

2002-11-09 Thread conbud
Hey, Of course they do, they work if I put the echo in the function its self, but I dont need the echo in the function. - Lee "Marco Tabini" <[EMAIL PROTECTED]> wrote in message news:1036911387.23753.1054.camel@;localhost.localdomain... > Either add > > global $db; > > as the first line of the fu

Re: [PHP] Function Problem

2002-11-09 Thread Marco Tabini
Either add global $db; as the first line of the function or change your function call to: $db = db_conn("$host","$user","$pass","$dab"); I assume that $host, $user, $pass and $dab actually contain some correct values. Marco -- php|architect - The magazine for PHP Professionals T

Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Marco Tabini
Dhaval, did you try the code I sent you? Marco On Sat, 2002-11-09 at 23:59, Dhaval Desai wrote: > Hi! > > > Well let's make it simple.. We can see that the following values: > > 211 > are stored in just one row in 31 different columns. > > Bsaed on this if we wer

[PHP] Function Problem

2002-11-09 Thread conbud
Hey Im trying to create a fucntion in an include file function db_conn($host,$user,$pass,$dab) { $db = mysql_connect("$host", "$user","$pass")mysql_select_db("$dab",$db); } In the page ide use: require('func.inc.php'); db_conn("$host","$user","$pass","$dab"); $result = mysql_query("select

[PHP] Suggestions Please

2002-11-09 Thread Mike Miller
Ok I am building a site similar in purpose to elance for a client, and part of their terms and conditions is no contact info till a bid has been awarded. So they want all contact info that is posted to be removed on submission of the bid, and any on site contact between buyer, and provider. I have

[PHP] set_error_handler() Keeps Triggering Errors

2002-11-09 Thread Monty
When I use set_error_handler('error_function') in my scripts, errors are constantly being triggered that I've never seen before. If I comment the handler function out, the errors go away. I have the error reporting set very loosely: error_reporting (E_ERROR | E_USER_ERROR) - so not sure why it keep

Re: [PHP] fopen() using non-standard port

2002-11-09 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You can't use fopen, but you can use fsockopen ( php.net/fsockopen ). $fp = fsockopen ( "www.domain.com", 2734); fputs($fp, "GET / HTTP/1.0\r\n\r\n"); while ( !feof($fp) ) echo fgets($fp, 256); CURL is kinda overkill, sockets are overkill and

Re: [PHP] date problem

2002-11-09 Thread Maxim Maletsky
say it again? -- Maxim Maletsky [EMAIL PROTECTED] On Sun, 10 Nov 2002 12:37:48 +0800 "Michael P. Carel" <[EMAIL PROTECTED]> wrote: > to all; > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Dhaval Desai
Hi! Well let's make it simple.. We can see that the following values: 211 are stored in just one row in 31 different columns. Bsaed on this if we were to make a table with colspans how would it go..? Thank you Dhaval From: Marco Tabini <[EMAIL PROTECTED]

[PHP] converting decimal to fraction and vice versa

2002-11-09 Thread Michael P. Carel
hi to all; is there any way to convert decimal numbers to fraction and fraction to decimal format. i need to convert the inputed fractional value in the field before inserting it to the mysql database, such us 1/2 = 0.5 . thanx in advance. regards, mike -- PHP General Mailing List (http://

[PHP] date problem

2002-11-09 Thread Michael P. Carel
to all; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen() using non-standard port

2002-11-09 Thread Khalid El-Kary
hi, i suggest that you use CURL, check the PHP manual if CURL did't help you can use the lower-level PHP sockets extension also check the PHP manual khalid _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.

[PHP] fopen() using non-standard port

2002-11-09 Thread Tim Lan
Is there anyway to use fopen() to open a webpage through a non-standard port? For example, the webpage I need must be accessed through port 2734 instead of the standard HTTP port 80, and PHP seems to ignore port information in the URL (e.g. fopen( "http://www.domain.com:2734/..."; ); ) Thanks in a

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-09 Thread Bob Eldred
So experiment. That's exactly how I made my fantasy league stuff work. Along with a few questions here when I had *specific* issues with code. Bob - Original Message - From: "Karl James" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 12:33 PM Subject: RE: [PH

[PHP] Php | Architect Magazine?

2002-11-09 Thread Nick Oostveen
Has anyone taken a look at this magazine yet (www.phparch.com)? I came across mention of it on Slashdot earlier today and it looks interesting. I am considering subscribing but wouldn't mind some feedback about the overall quality of the publication beforehand. Nick Oostveen -- PHP General M

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-09 Thread Justin French
Hi, This is a big, complex project for a newbie, and I doubt you're going to find anyone with the time available to give you a hand. Can I suggest you start by learning some PHP in relation to forms, form validation, login, sessions, etc etc. There's a good article by Kevin Yank on sitepoint.com

Re: [PHP] Errors and Logging Configuration Options: docref-root

2002-11-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Did you restart apache? HTH! ~Paul On Saturday 09 November 2002 03:14 pm, Stefan Schiller wrote: > I updated my development-server > > --> FreeBSD 4.7-REALEASE, Apache/1.3.27 (Port-Build), PHP 4.2.3 > (Port-Build) ...] > > After this I found > > http:

Re: [PHP] HTML forms & php 4.2.3 - how to get cvs fix applied

2002-11-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Reconfigure php without "--enable-mbstr-enc-trans" and that will fix the problem. HTH! ~Paul On Friday 08 November 2002 06:56 pm, andy wrote: > I recently updated from 4.2.0 to 4.2.3 - since doing so values submitted > to php from HTML forms usi

php-general Digest 10 Nov 2002 02:10:06 -0000 Issue 1695

2002-11-09 Thread php-general-digest-help
php-general Digest 10 Nov 2002 02:10:06 - Issue 1695 Topics (messages 123576 through 123641): Re: W3C and PHP 123576 by: Ernest E Vogelsinger 123578 by: Ernest E Vogelsinger 123579 by: . Edwin 123581 by: . Edwin 123592 by: Jens Lehmann 123600 b

[PHP] confusion in session vars

2002-11-09 Thread Khalid El-Kary
hi, did any one face a prob when session vars get mixed from a website to another when you use the same browser window ? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus --

Re: [PHP] re: W3C and PHP

2002-11-09 Thread Brad Thomas
Alternatively, you could set php.ini to use the semi-colon (;) to seperate arguments. HTH Brad "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:Pine.LNX.4.44.0211082246320.2586-10@;www.lerdorf.com... > and in your php.ini file add: > > arg_separator.output = "&" > > On Sat, 9 Nov 20

[PHP] Errant include file works everywhere but here

2002-11-09 Thread Andre Dubuc
I've run into a problem with an include file that I can't figure out why it's happening. Certain text files on my site are rather long. Originally, when these pages loaded, the menu structure would load first, followed by the text in a box to the right of the Menu. However, the long text fil

Re: [PHP] calculate bytes in string

2002-11-09 Thread Ian Newlands
This was exactly what I was trying to avoid. See I was porting a reporting module to write .XLS files to a database, rather than to files. It's easier for me to clean up old reports that way. Anyway, thanks for your help! Regards, Ian Newlands "@ Edwin" <[EMAIL PROTECTED]> wrote in message n

Re: [PHP] calculate bytes in string

2002-11-09 Thread Ian Newlands
Well I tried that, however I was saving dynamically generated .XLS files. Because I was using addslashes before hand it was reporting the wrong file size. So it was my mistake, thanks for your help! Regards, Ian Newlands "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:200211091639.43919

[PHP] Looping through formfields...

2002-11-09 Thread Brad Apps
Hey Guys, Can anyone please point me to any URLs or give me some code which will loop through form fields and delete the particular file which is passed from the form. The user will click a checkbox next to each file needed deleting and we must perform a unlink() to each file. Thanks. -- PHP

Re: [PHP] How to know files in a directory

2002-11-09 Thread John Nichel
Yeah, spend a milisecond looking at the manual, and you'll find "Filesystem Functions" Mohd_Q wrote: I wonder if there is a way to get the files names in a given directory. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Marco Tabini
imho there are many problems with a handler of this type... since an error could occur anywhere--in the middle of an HTML tag, or within a block of client-side script code--you don't know for sure that the Javascript is going to be interpreted properly by the browser...and therefore it may look mes

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
Ok, it's late, and my last post for today, but I need to get this right ;-) ', 'document.location.href="', $url, '">', '', '', 'A nasty error has occurred. If you are not redirected ', 'to the correct page, click here to', 'co

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
At 23:57 09.11.2002, Ernest E Vogelsinger said: [snip] >if ($we_found_an_error) { >$url = 'http://' . $_SERVER['SERVER_NAME'] . > '/my_error_handler.php?any_parameters_you_need'; >echo '', > 'document.location.href="'

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
At 23:42 09.11.2002, Monty said: [snip] >Is there any way to gracefully handle errors that happen after output to the >screen has begun (the point where header(Location:) doesn't work) without >using ob_ functions? > >I have a separate PHP page I'd like to di

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Marco Tabini
I think the only way to do it the way you want to do it is through buffering (with the ob_functions or via the php.ini file). Turning off error printing is another possibility--that way you can have the errors logged to a file rather than to the screen. Marco -- php|architect - The

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Rasmus Lerdorf
Just turn off display_errors in your php.ini file On Sat, 9 Nov 2002, Monty wrote: > Is there any way to gracefully handle errors that happen after output to the > screen has begun (the point where header(Location:) doesn't work) without > using ob_ functions? > > I have a separate PHP page I'd l

[PHP] Handling Errors Gracefully

2002-11-09 Thread Monty
Is there any way to gracefully handle errors that happen after output to the screen has begun (the point where header(Location:) doesn't work) without using ob_ functions? I have a separate PHP page I'd like to display with the error if one happens using the error_handler() and trigger_error() fun

[PHP] Re: How to know files in a directory

2002-11-09 Thread BAROILLER Pierre-Emmanuel
use opendir() , and readdir().. you'll get a var like $file, then check is_file($file) to see if it's a file :) (take a look at the php doc.) "Mohd_q" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] I wonder if there is a way to get the files names in a given directory.

[PHP] Re: Rotating Ads

2002-11-09 Thread BAROILLER Pierre-Emmanuel
The fastest way to do this is very simple : store the last Id of your banner , get another from your SQL table (with rand) and display it (repeat if the Id is the same).. And, in your html page, add a refresh=xx to refresh the ad page. Regards, P.E. Baroiller "Stephen" <[EMAIL PROTECTED]> a écrit

Re: [PHP] starting recompiled php as a cgi-interpreter

2002-11-09 Thread Maxim Maletsky
read the manual regarding the installation of php as cgi. There you will find the clues. I am not very sure what exactly you meant. -- Maxim Maletsky [EMAIL PROTECTED] On Sat, 9 Nov 2002 15:34:47 +0100 <[EMAIL PROTECTED]> wrote: > Hi PHP-List, > > Oh sorry, more concrete for an easy question

Re: [PHP] php5 features?

2002-11-09 Thread Maxim Maletsky
Try searching the list archives, particularly of PHP-DEV lists (but hesitate asking these questions there) -- Maxim Maletsky [EMAIL PROTECTED] On Sat, 9 Nov 2002 13:27:05 -0800 (PST) ed <[EMAIL PROTECTED]> wrote: > Hi all. I was wondering if there are resources on the > web that will help m

[PHP] php5 features?

2002-11-09 Thread ed
Hi all. I was wondering if there are resources on the web that will help me get an idea of the changes and new features that will be in php5. I'm particularly interested in what's gonna be added or changed to php in regards to its OOP capabilities. I already love this language. I'm just lookin

[PHP] php5 features?

2002-11-09 Thread ed
Hi all. I was wondering if there are resources on the web that will help me get an idea of the changes and new features that will be in php5. I'm particularly interested in what's gonna be added or changed to php in regards to its OOP capabilities. I already love this language. I'm just lookin

Re: [PHP] Weird behaviour with references to objects...

2002-11-09 Thread Tim Molendijk
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:5.1.1.6.2.20021108175627.00b44880@;mail.vogelsinger.at... > > This is clearly said in your PHP.ini file: > > ; Whether to enable the ability to force arguments to be passed by reference > ; at function call time. This method is depr

Re: [PHP] PHP 4.3.0 and Zend Engine 2

2002-11-09 Thread Andi Gutmans
On Tue, 5 Nov 2002 [EMAIL PROTECTED] wrote: > Can anybody tell me if PHP 4.3.0 will use Zend Engine 2? Hi, The Zend Engine 2 is likely to appear officially only in PHP 5. However, I have released a couple of alphas with the Engine 2 bundled against the latest CVS of PHP (i.e. almost PHP 4.3.0). H

Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Marco Tabini
Ouch... well, assuming you have two columns: day_id and value, here's a possible solution: $rs = mysql_query ('select day_id, value from my_table order by day_id'); $a = mysql_fetch_assoc ($rs); do { $i = 1; $control = $a['value']; while (($a = mysql_fetch_assoc ($rs))

[PHP] Errors and Logging Configuration Options: docref-root

2002-11-09 Thread Stefan Schiller
I updated my development-server --> FreeBSD 4.7-REALEASE, Apache/1.3.27 (Port-Build), PHP 4.2.3 (Port-Build) ...] After this I found http://www.php.net/manual/en/ref.errorfunc.php#ini.docref-root In the manual. I downloaded the manual and changed some config-item [httpd.conf] Alias /manual/ "/

Re: [PHP] How to know files in a directory

2002-11-09 Thread Marco Tabini
Try readdir() http://www.php.net/manual/en/function.readdir.php Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-09 at 15:01, Mohd_Q wrot

Re: [PHP] header function

2002-11-09 Thread Ernest E Vogelsinger
At 20:47 09.11.2002, Donahue Ben said: [snip] >I am using the header function what i have is this: > >header("Location: >http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/".$relative_url > >$relative_url is a php file > >when i run this script wi

[PHP] How to know files in a directory

2002-11-09 Thread Mohd_Q
I wonder if there is a way to get the files names in a given directory.

Re: [PHP] RegExp for Forum-List-Code

2002-11-09 Thread Ernest E Vogelsinger
At 17:19 09.11.2002, Jens Lehmann said: [snip] >Hi out there, > >I encountered a lot of problems while trying to convert a list >in Forum-Code (like UBB-Code). > >[list] >[*] item 1 >[*] item 2 >[*] item 3 >[/list] > >should be converted to > > >item 1 >item

Re: [PHP] Rotating Ads

2002-11-09 Thread Andrew Brampton
you can use SQL: SELECT id, url, image FROM tblAdds ORDER BY RAND() LIMIT 1 I think thats just about it, that should evenly show them, if you want to bias the displying of your ads you would need to get a count of the ads in the DB, then use some random number generated from PHP to chose which to

Re: [PHP] header function

2002-11-09 Thread Stephen
The file loading may be too long for PHP to recognize it or whatever. Try shortening it in some way. - Original Message - From: "Donahue Ben" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 09, 2002 2:47 PM Subject: [PHP] header function > I am using the header func

[PHP] header function

2002-11-09 Thread Donahue Ben
I am using the header function what i have is this: header("Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/".$relative_url $relative_url is a php file when i run this script with this header function in it, i get an error saying:"Redirection limit for this URL has excee

[PHP] Rotating Ads

2002-11-09 Thread Stephen
I have a link exchange script and I need to rotate the ads each time a page refreshes. How exactly can I do this? I have an id field for each ad. How could I display a different ad each time the page refreshes using the id field? Thanks, Stephen Craton http://www.melchior.us "Life is a gift fr

[PHP] Rotating Ads

2002-11-09 Thread Stephen
I have a link exchange script and I need to rotate the ads each time a page refreshes. How exactly can I do this? I have an id field for each ad. How could I display a different ad each time the page refreshes using the id field? Thanks, Stephen Craton http://www.melchior.us "Life is a gift fr

Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Dhaval Desai
Hi! Well I have 12 table for 2 years which makes it 24 tables named as: jan_2002, feb_2002 ...etc dec_2002 jan_2003, feb_2003 ...etc dec_2003 Each table has fields according to the number of days in the month plus 1 field as a unique key. Each registration will create 1 entry in 24 tables each

Re: [PHP] RegExp for Forum-List-Code

2002-11-09 Thread Jens Lehmann
That's what I thought, too. But it doesn't work. test.php: $text = ' [*] jusfj [*] ijusnf [*] jsf [*] jusdf '; $text = preg_replace('/\[\*\]([^(\[\*\])(<\/ul>)]*)/i','$1',$text); $text = htmlentities($text); Output: jusfj ijusnf jsf jusdf I tested some different things, which didn't work

Re: [PHP] Automatic Colspan from database data

2002-11-09 Thread Marco Tabini
How is your database organized? you might be able to pull this information from the query by using an appropriate group-by clause. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at

[PHP] HTML forms & php 4.2.3 - how to get cvs fix applied

2002-11-09 Thread andy
I recently updated from 4.2.0 to 4.2.3 - since doing so values submitted to php from HTML forms using keys - value="foo[bar]" - get truncated in php - example: if I submit "[EMAIL PROTECTED]" it will come out as "eight13.com" with a print_r($_POST) I found these bug reports which say what app

Re: [PHP] Re: preg_split problem

2002-11-09 Thread Ernest E Vogelsinger
At 18:59 09.11.2002, samug said: [snip] >Thanks. >But what if you don't know how many elements there will be ahead? > >"Samug" <[EMAIL PROTECTED]> kirjoitti viestissä >news:20021109165530.58233.qmail@;pb1.pair.com... >> Could someone tell me why isn't this wo

RE: [PHP] HTTP POST FILE UPLOAD HELP - REVISITED

2002-11-09 Thread @ Darwin
You're absolutely correct. The script works perfectly fine now, and I have you to thank. I went back to "Handling file uploads" and re-read the entire thing. I guess I missed the part that said the following before the actual script example. My fault and my apologies. Thanks Jason, and thanks to a

Re: [PHP] preg_split problem

2002-11-09 Thread Ernest E Vogelsinger
At 17:58 09.11.2002, samug said: [snip] >$text = "And what did I tell you?"; >list($one,$two,$three,$rest) = preg_split("/\s+/", $text); >print($rest); > >The result would be "I" and not "I tell you?" [snip] Your rege

Re: [PHP] Re: preg_split problem

2002-11-09 Thread Marek Kilimajer
if you use list($one,$two,$three,$rest) = preg_split("/\s+/", $text, *4*); you get the remaining elements in $rest as a single string samug wrote: Thanks. But what if you don't know how many elements there will be ahead? "Samug" <[EMAIL PROTECTED]> kirjoitti viestissä [EMAIL PROTECTED]">news:[E

Re: [PHP] W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
At 15:22 09.11.2002, @ Edwin said: [snip] >True. And & IS a valid html. In fact, changing & to & is the only >way I could pass the xhtml validator. So, it's not really a bug when the >validator complains about the & sign... [snip]-

[PHP] Re: preg_split problem

2002-11-09 Thread samug
Thanks. But what if you don't know how many elements there will be ahead? "Samug" <[EMAIL PROTECTED]> kirjoitti viestissä news:20021109165530.58233.qmail@;pb1.pair.com... > Could someone tell me why isn't this working? > > $text = "And what did I tell you?"; > list($one,$two,$three,$rest) = preg_s

Re: [PHP] preg_split problem

2002-11-09 Thread Jason Wong
On Sunday 10 November 2002 00:58, samug wrote: > Could someone tell me why isn't this working? > > $text = "And what did I tell you?"; > list($one,$two,$three,$rest) = preg_split("/\s+/", $text); > print($rest); > > The result would be "I" and not "I tell you?" > Why? Because that is what you aske

Re: [PHP] preg_split problem

2002-11-09 Thread Marek Kilimajer
list throws away the other two array elements, you need list($one,$two,$three,$rest) = preg_split("/\s+/", $text, 4); samug wrote: Could someone tell me why isn't this working? $text = "And what did I tell you?"; list($one,$two,$three,$rest) = preg_split("/\s+/", $text); print($rest); The re

[PHP] Re: MySQL and PHP math problem...

2002-11-09 Thread Peter
Thanks...the thing that I did wrong was I retrieved the number with FORMAT(SUM(amount), 2), which formats the number and return it in the string format...so that's what happened during the computation (it only took the number prior to the ','. I miss the type-checking in C. :-) Thanks, -Peter "@

[PHP] Automatic Colspan from database data

2002-11-09 Thread Dhaval Desai
Hi everybody! Well this is how it goes... For the month of January there are 31 days... so there are 2 rows in this table on the top row there are 31 columns showing 31 days...and in the row below this one we will have to generatecolspan based on the below information pulled from the

Re: [PHP] RegExp for Forum-List-Code

2002-11-09 Thread Marek Kilimajer
untested: preq_replace('/\[\*\]([^(\[\*\])(<\/ul>)]*)/i','$1',$text); Jens Lehmann wrote: Hi out there, I encountered a lot of problems while trying to convert a list in Forum-Code (like UBB-Code). [list] [*] item 1 [*] item 2 [*] item 3 [/list] should be converted to item 1 item 2 item

[PHP] preg_split problem

2002-11-09 Thread samug
Could someone tell me why isn't this working? $text = "And what did I tell you?"; list($one,$two,$three,$rest) = preg_split("/\s+/", $text); print($rest); The result would be "I" and not "I tell you?" Why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] W3C and PHP

2002-11-09 Thread Jens Lehmann
>> ... If this is really what the W3C validator tells you you should file a bug > report, IMHO. Passing GET variables should be valid HTML ;-) Usually entities start with "&" and end with ";". The "entity" §ion doesn't end with ";" and is not defined, that's why it's not valid. Jens PS: Be awa

[PHP] Re: Request entity too large (already seen the FAQ)

2002-11-09 Thread Brian Fahrlander
On Thu, 7 Nov 2002 11:31:52 -0600, [EMAIL PROTECTED] (Brian Fahrlander) wrote: OK, thanks for no help whatsoever. But I'm not bitter; I'm here to report what I found so that the next guy with this problem isn't stuck: The PHP docs say to change variables in /etc/php.ini (like the whole

[PHP] RegExp for Forum-List-Code

2002-11-09 Thread Jens Lehmann
Hi out there, I encountered a lot of problems while trying to convert a list in Forum-Code (like UBB-Code). [list] [*] item 1 [*] item 2 [*] item 3 [/list] should be converted to item 1 item 2 item 3 I converted the first one to [*] item 1 [*] item 2 [*] item 3 Now I need a Regexp for co

Re: [PHP] Setup-dependent quotes problem

2002-11-09 Thread @ Edwin
> > Also the phpMyAdmin gives me errors when I use the ' inside a field in a (BGUI (B> > select. (B (BAnd since you're using 4.2.3, make sure that you've read this as well (if (Byou haven't yet): (B (B http://bugs.php.net/bug.php?id=19404 (B (B- E (B (B...still using 4.2.2... (B (B--

RE: [PHP] Need MENTOR for Fantasy football project

2002-11-09 Thread Michael Geier
As this is the industry I am in, maybe I can offer a few hints/suggestions to start you on your way: start with the database - is your user table built (how much information about the user do you need) ? - are you validating the incoming email address (sending an email to confirm entry) ?

Re: [PHP] How can I start up a new and recompiled version of source PHP???

2002-11-09 Thread @ Edwin
Well, *I think* if you've overwritten the previous files, then you'll be able to use the new versions. Try phpinfo() or php -v (or something) and perhaps you'll see if indeed the new version is running. - E <[EMAIL PROTECTED]> wrote: > Hello Edwin, > Thank you for answering my question : > > >-

Re: [PHP] Setup-dependent quotes problem

2002-11-09 Thread Marco Tabini
Ciao Daniele, Check this out: http://ca.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc Also, programmatically: http://ca.php.net/manual/en/function.set-magic-quotes-runtime.php Hope it helps. Marco -- php|architect - The magazine for PHP Professionals The first monthly wor

php-general@lists.php.net

2002-11-09 Thread BAROILLER Pierre-Emmanuel
Hi ! Could you write it in english please ? "Rich" <[EMAIL PROTECTED]> a ecrit dans le message de news: [EMAIL PROTECTED] > PHP$B=i?4 $B$*CN7C$rGR > $BNc$($P!"(Bhttp://www.mydomain.com$B$G%;%C%7%g%s$r3+;O$7!"$=$N8e!"(B > https://www.mydomain.com/regist.htm$B$X0\F0$7$?$H$-$K!"%;%C%7%g%s$O7

[PHP] starting recompiled php as a cgi-interpreter

2002-11-09 Thread info
Hi PHP-List, Oh sorry, more concrete for an easy question: How can I start up this new and recompiled version of PHP which was recompiled -not as a DSO- but runs PHP as a CGI-Interpreter??? How can I start this fresh and recompiled PHP as a CGI-Interpreter?? How to start and fire up? Please he

[PHP] upload whole direcotry using ftp functions

2002-11-09 Thread AKHIL KODALI
Hi, I there anyway to upload entire directory. -- AKHIL K 200101009 Room No. 15 BH-2 IIIT -- Look at me. My life has no meaning or direction, and I'm happy -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Setup-dependent quotes problem

2002-11-09 Thread Daniele Baroncelli
Hi there, I have just reinstalled a new PHP version, the 4.2.3. Before I had the 4.0.6. I now get the quotes problem in my scripts that connect to the database. Also the phpMyAdmin gives me errors when I use the ' inside a field in a GUI select. Before everything was working fine. Which paramet

Re: [PHP] W3C and PHP

2002-11-09 Thread @ Edwin
Hello, "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: [snip] > If this is really what the W3C validator tells you you should file a bug > report, IMHO. Passing GET variables should be valid HTML ;-) [/snip] True. And & IS a valid html. In fact, changing & to & is the only way I could pass th

Re: [PHP] How can I start up a new and recompiled version of source PHP???

2002-11-09 Thread info
Hello Edwin, Thank you for answering my question : >- [snip] > How can I start up this new and recompiled version of PHP??? >[/snip] That´s all ?? Even for a -"NOT-DSO" but CGI-Installation.??? How can I check that all things were compiled? Hope for help. Oliver Etzel lowcost domains lowc

Re: [PHP] re: W3C and PHP

2002-11-09 Thread @ Edwin
Not really. Try it ;) Khalid is correct. - E "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: > At 07:45 09.11.2002, Khalid El-Kary said: > [snip] > >hi, > >just use & instead > > > [snip] > > Sorry, no. This woul

Re: [PHP] re: W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
At 07:45 09.11.2002, Khalid El-Kary said: [snip] >hi, >just use & instead > [snip] Sorry, no. This would result in a quite funny variable: $_GET = Array( name=> khalid amp;age => d ) -- >O Ernest

php-general@lists.php.net

2002-11-09 Thread Rich
PHP$B=i?4http://www.mydomain.com$B$G%;%C%7%g%s$r3+;O$7!"$=$N8e!"(B (Bhttps://www.mydomain.com/regist.htm$B$X0\F0$7$?$H$-$K!"%;%C%7%g%s$O7QB3$5(B $B$l$k$N$G$7$g$&$+!)(B (B $BJL%5!<%P!<$X0\F0$9$k$H%;%C%7%g%s$O=*N;$9$k$HJ9$-$^$7$?!#%I%a%$%sItJ,$,F1(B $B$8$G$b(Bhttps://$B$K$J$k$3$H$G!"JL%

Re: [PHP] W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
At 07:12 09.11.2002, conbud said: [snip] >Hi, >In some of my URLs I have to pass variables through the URL like >nav.php?page=about§ion=linux - when i do this and then scan my site for >W3C validation I get this >Line 40, column 28: > ... O Ernest E. Vog

php-general Digest 9 Nov 2002 13:57:57 -0000 Issue 1694

2002-11-09 Thread php-general-digest-help
php-general Digest 9 Nov 2002 13:57:57 - Issue 1694 Topics (messages 123529 through 123575): Re: RE 123529 by: Charles Wiltgen mkdir() 123530 by: Edward Peloke 123531 by: Marco Tabini Need MENTOR for Fantasy football project 123532 by: Karl James 123

Re: [PHP] Installation Kit

2002-11-09 Thread @ Edwin
"Stephen" <[EMAIL PROTECTED]> wrote: > I've always had trouble doing that. Is there like a tutorial or anything on > how to setup PHP and MySQL? Simple. Google for "setup PHP and MySQL". - E ...[snip]... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] How can I start up a new and recompiled version of source PHP???

2002-11-09 Thread @ Edwin
By restarting your web server? - E <[EMAIL PROTECTED]> wrote: [snip] > How can I start up this new and recompiled version of PHP??? [/snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How can I start up a new and recompiled version of source PHP???

2002-11-09 Thread info
Hello PHP-ppl, please help me with an easy question. I want to recompile my sorce-installation from tarball, because I forgot an essential flag, the --enable-ftp flag: ./configure . --enable-ftp --other-flags Orderly I erased the config.cache file, the make distclean After running .

[PHP] Re: MySQL and PHP math problem...

2002-11-09 Thread @ Edwin
Hello, (B (B"Peter" <[EMAIL PROTECTED]> wrote in message (B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... (B (B...[snip]... (B (B> the result of echo, $tmp is displayed as '0.0002'. What's wrong here? (BThe (B> problem only occurs when the value is greater than a 1,000? Could the ',' (B>

Re: [PHP] HTTP POST FILE UPLOAD HELP - REVISITED

2002-11-09 Thread Jason Wong
On Saturday 09 November 2002 18:39, [EMAIL PROTECTED] wrote: > Sorry about that guys, here is a bit more info that might be useful: > > I forgot to tell you that I'm working on a Windows XP box with full rights, > which means the default temporary directory is C:\WINDOWS\Temp and there > are no lim

Re: [PHP] Help with form

2002-11-09 Thread @ Edwin
Hello, "Karl James" <[EMAIL PROTECTED]> wrote: > http://www.ultimatefootballleague.com/Create_Account.htm > > Im Trying to create this form so that this will give you access to login > Team action page > Where you can do the add/drops Trades and submit starters.. I suggest you try something simp

[PHP] HTTP POST FILE UPLOAD HELP - REVISITED

2002-11-09 Thread @ Darwin
Sorry about that guys, here is a bit more info that might be useful: I forgot to tell you that I'm working on a Windows XP box with full rights, which means the default temporary directory is C:\WINDOWS\Temp and there are no limitations on what I can and cannot access on the system (running as sys

Re: [PHP] Help with form

2002-11-09 Thread Paul Roberts
why don't you submit it to a php script (instead of using the mailto ) and get mail() to email it to you, you could also process it and save the info somewhere. Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Karl James" <[EMAIL PROTECTED]> To: <[EMAI

  1   2   >