[PHP] upload whole direcotry using ftp functions

2002-11-09 Thread electroteque
hi i was wondering if there was anyway to upload a whole directory using the php ftp functions rather than single files ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calculate bytes in string

2002-11-09 Thread Jason Wong
On Saturday 09 November 2002 14:22, Ian Newlands wrote: Does anyone know of a function, or a method to calculate how many bytes are in a string? Similar to the filesize file system function. Any help would be appreciated. Assuming 1 character = 1 byte, then strlen(). -- PHP General Mailing

Re: [PHP] calculate bytes in string

2002-11-09 Thread @ Edwin
Or, Jason Wong [EMAIL PROTECTED] wrote: On Saturday 09 November 2002 14:22, Ian Newlands wrote: Does anyone know of a function, or a method to calculate how many bytes are in a string? Similar to the filesize file system function. Any help would be appreciated. Assuming 1 character =

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-09 Thread @ Edwin
Karl James [EMAIL PROTECTED] wrote: I have the php bible 4 book but it Doesn’t tell you how to do things all the way Well, I don't think there's a book that would tell you how to do things all the way. Besides, if there is, programming wouldn't be fun anymore ;) Start from small things--I'm

[PHP] Help with form

2002-11-09 Thread Karl James
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.. SO what im trying to do on this form is have the results mailed to me in my in box and

[PHP] FW: Form posted from Microsoft Internet Explorer.

2002-11-09 Thread Karl James
This is I get regarding the Email sent from my form http://www.ultimatefootballleague.com/Create_Account.htm -Original Message- From: Karl James [mailto:karl.james;verizon.net] Sent: Friday, November 08, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: Form posted from Microsoft Internet

Re: [PHP] Securing PHP Code with GET | POST | SESSIONS or other things

2002-11-09 Thread @ Edwin
And, you can add to this Never trust data from the client...always filter it(I use an lib to do that)! Make sure register_globals is off or code accordingly. Make sure that you're using SSL (https). Also, (maybe not directly related though...) if possible, separate your web server from your

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: [EMAIL

[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

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 simpler.

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

[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

[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

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

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:

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

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=aboutsection=linux - when i do this and then scan my site for W3C validation I get this Line 40, column 28: ... a

[PHP] http$B$G%;%C%7%g%s$r3+;O(B$B$7$?>l9g!"(Bhttps$B$X(B$B9T$C$F$b7QB3$5$l$k$N$G(B$B$7$g$&$+!)(B

2002-11-09 Thread Rich
PHP$B=i?4

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 amp; instead a href=mypage.php?name=khalidamp;age=d/a [snip] Sorry, no. This would result in a quite funny variable: $_GET = Array( name= khalid

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 amp; instead a href=mypage.php?name=khalidamp;age=d/a

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 lowcost

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 amp; IS a valid html. In fact, changing to amp; is the only way I could pass

[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

[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

[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

[PHP] Re: http$B$G%;%C%7%g%s$r3+;O$7$?l9g!(Bhttps$B$X9T$C$F$b7QB3$5$l$k$N$G$7$g$$+!)(B

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?4T$G$9!#+J,$J$j$K$$$m$$$m$HD4$Y$F$_$^$7$?$,$o$+$i$J$+$C$?$N$G!(B $B$*CN7C$rGRZ$5$;$F$/$@$5$$!#(B

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

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] 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] 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--

[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 ul liitem 1/li liitem 2/li liitem 3/li /ul I converted the first one to ul [*] item 1 [*] item 2 [*] item 3 /ul

Re: [PHP] W3C and PHP

2002-11-09 Thread Jens Lehmann
... a href=nav.php?page=aboutsection=Linuxfont color=#256 ... ^ Error: unknown entity section 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

[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:

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

2002-11-09 Thread Marek Kilimajer
untested: preq_replace('/\[\*\]([^(\[\*\])(\/ul)]*)/i','li$1/li',$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 ul liitem 1/li

[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

[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 @

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 result

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 asked for! $doo =

[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] 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) =

Re: [PHP] W3C and PHP

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

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:[EMAIL

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 regex splits the

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

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 working?

[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 appears

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

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 = 'ul [*] jusfj [*] ijusnf [*] jsf [*] jusdf /ul'; $text = preg_replace('/\[\*\]([^(\[\*\])(\/ul)]*)/i','li$1/li',$text); $text = htmlentities($text); Output: ul li j/liusfj li ij/liusnf li jsf /lili j/liusdf /ul I tested some

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

[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

[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

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 function

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] 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 ul liitem 1/li liitem 2/li

[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] 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 with this

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

[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] 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))

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).

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 deprecated

[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

[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

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 me

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:

[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

[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] 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()

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 like

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 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

Re: [PHP] Handling Errors Gracefully

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

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 ;-) ?php if ($we_found_an_error) { $url = 'http://' . $_SERVER['SERVER_NAME'] . '/my_error_handler.php?any_parameters_you_need'; echo 'script language=JavaScript',

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

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

[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. --

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

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

[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

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 = amp; On Sat, 9 Nov 2002,

[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

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

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 using

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

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

[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

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: [PHP]

[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

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*

[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

[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

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]

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] 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

[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

[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

[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 * FROM

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 were to

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 The

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 function or

  1   2   >