[PHP] Regular expression

2006-01-30 Thread Barry
Simple reg help please i want to match the last "," in "a,b,c,d" and replace it with " and " i tried ereg_replace(",([a-zA-z])*$"," and ",$string); but i forgot how to add the "d" which is also matched now back to the " and " Can you give any good reg_exp sites where to learn it? Its long ago

[PHP] Re: Other than default grey button

2006-01-30 Thread Barry
e/she has chosen. But for that you would have to create an image for each language. I also think CSS will be the easiest solution. http://www.w3.org/Style/CSS/ Good luck! Greets Barry -- Smileys rule (cX.x)C --o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP][SOLVED] Regular expression

2006-01-30 Thread Barry
Silvio Porcellana [tradeOver] wrote: Barry wrote: Simple reg help please i want to match the last "," in "a,b,c,d" and replace it with " and " Without using a regexp, you could do: $string = 'a,b,c,d'; $letters = explode(',&#x

Re: [PHP] Other than default grey button

2006-01-30 Thread Barry
Jevos, Peter wrote: Dear Jochem . I know that I'm probably out of this mailing list. I did almost everything , just buttons remains. I looked at the scripts, it is php and I tried to change something but unsuccesfull. Therefore I wrote to this mailing list, cause I thought this is matter of ph

Re: [PHP] Passing Credentials

2006-01-31 Thread Barry
de.php.net/fputs http://de.php.net/fgets Probably somone can tell how to access HTTP auth sites with php? GET /pathto/webcam HTTP 1.0 Authantication: Basic and then? Password: ?? or what ^^ HTH and thanks if others can post the last info on how to auth via php. I also like to know that lol ^^ Gre

[PHP] Re: form variables issue

2006-01-31 Thread Barry
All U Want wrote: Hi folks, I'm sure it is a very simple question for you but I'm getting almost crazy. I've got a simple form with several form objects, one of them is a text field. After submitting the form if one of the form objects hasn't been modified I will show the same form but k

[PHP] Re: Problems with realpath()

2006-01-31 Thread Barry
Ron King wrote: Hi, My hosting isp just upgraded from 4.3.1 to 4.4.1, and some of the tools I use (from InterAKT) no longer work. After doing quite a bit of research, I've seen a few bugs regarding realpath(), but none related to 4.4.1. When I try the following: With version 4.4.0, I ge

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? --

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:

[PHP] Re: Question about C++ like macros on PHP

2006-01-31 Thread Barry
Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $para

[PHP] Re: PHP and DBase...

2006-01-31 Thread Barry
David BERCOT wrote: Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? http://de.php.net/dbase -- Smileys rule (cX.x)C --o(^_^o) -- P

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
d april! ^^ echo "date 1:".strftime("%d %m %Y",strtotime ("+1 Month",strtotime("+1 Month")))."\n"; ^^ gives 3rd april ^^ So its not logic. month +2 should output 2nd april! Barry -- Smileys rule (cX.x)C --o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
James Benson wrote: The case makes no difference, because... echo date('r', strtotime ("next Month"))."\n"; echo date('r', strtotime ("next month"))."\n"; I was referring here to a note on php.net -> For those upgrading from PHP 4 to PHP 5 there are a number of things that are different abou

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
o its 3rd February) -> +1 month -> 31st February (What the O_o) How does he calculate? For me 3rd Fabruary -> +1 Month -> is 3rd March also 31st January -> +2 Month -> is for me 3rd March 31st February is not true because i miss "3" (!!) days. Not for you? Bar

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: Ford, Mike wrote: Uhm -- my mistake, sorry -- 31st Feb equates to 3rd March, not 2nd, so 3rd April here is correct. The basic thing is that strtotime() just uses the same day-of-the-month when calculating in months -- so, on the 31st January, it reckons thus: +1 month

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: Barry wrote: Ford, Mike wrote: Uhm -- my mistake, sorry -- 31st Feb equates to 3rd March, not 2nd, so 3rd April here is correct. The basic thing is that strtotime() just uses the same day-of-the-month when calculating in months -- so, on the 31st January, it reckons thus

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Ford, Mike wrote: On 31 January 2006 14:12, Barry wrote: Barry wrote: Last try: Edit: > > also 31st January -> +2 Month -> is for me 3rd April > > > > 31st March is not true because i miss "3" (!!) days. > Huh? Are you saying that, for you:

[PHP] Re: Problems with GZIPped content in some cases?!?

2006-01-31 Thread Barry
} else { echo $Content; } flush(); exit(); } ?> actual page content This is surely a browser problem. I have encuntered the same stuff, over and over. by a few people. I have created the gzips locally and sended it to them. No problems since then. Greets

Re: [PHP] Re: PHP and DBase...

2006-01-31 Thread Barry
Jochem Maas wrote: Barry wrote: David BERCOT wrote: Hi, I'd like to connect to DBase files (.dbf) in order to do SQL requests. Do you know if it is possible ? If yes, do you have an example ? I'm working on Debian with PHP5. Thank you very much. David. Blind? 'Blind

Re: [PHP] strange behaviour with strtotime()

2006-01-31 Thread Barry
Ford, Mike wrote: Yes, but 1 apple is 1 apple is 1 apple. 1 month can be 28 days, or 31 days, or anything in between. 2 months can be anything from 59 to 62 days. A month is an imprecise measure, and adding them together will get you an even more imprecise result. Deal with it -- that's just

[PHP] Re: Wysiwyg editors?

2006-02-01 Thread Barry
? The one time I tested Htmlarea it only worked on IE. Editable for the viewing client, bot not for other clients at all. Second. What are the ways to store user created pages? Just dump all the code the editor outputs to database? Or are there other options? Save them as file O_o ? Mad greet

Re: [PHP] image uploads

2006-02-01 Thread Barry
ke 100% sure that the image isn't re-loaded to server if user hits "refresh"? And he will cause it can take long time to upload 2.5Mb pics over a slow link. use the header ("Loacation:"); function or Meta-refresh to automatically reload the page, so even if he hits then

[PHP] Re: Hide email addresses from spam bots

2006-02-01 Thread Barry
magic? No! It's google! www.google.de/search?q=hide+email+from+spambot+php+script Barry -- Smileys rule (cX.x)C --o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Performance question

2006-02-01 Thread Barry
Mathieu Dumoulin wrote: This is more a "How would you do it" than a "How can i do it" question. Didn't have time to try it, but i want to know how mysql_seek_row acts with large result sets. For example im thinking of building a node tree application that can have dual direction links to nod

[PHP] Re: Help retrieving an HTML array

2006-02-01 Thread Barry
print_r ($sendedArrayName); And look if there are even values in it. print_r($_POST["xname"]); for example If this is empty create your code like: input type="text" name="xname[]" value="blah1" input type="text" name="xname[]" value="

Re: [PHP] Validating Radio Buttons in two directions

2006-02-02 Thread Barry
ple for them. I was tempted to not post my solution but then I'd be guilty of the same. I hope this is of some use to other newbies out there. You would wonder how much "newbies" are on this list. Show me just one "PHP expert" in here and you get 20 bucks. Regards Barry -- Smileys rule (cX.x)C --o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validating Radio Buttons in two directions

2006-02-02 Thread Barry
Barry wrote: Now time to go back into an array: $colorarray = explode (" ", $colorstring); Next I count how many times particular values show up in an array: $colorvalues = array_count_values ($colorarray); *Note: This gives me an array with how many times each value shows up.

[PHP] Re: How to get a network drive name

2006-02-02 Thread Barry
iable wherever and search for pattern. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail() and Return-Path header

2006-02-02 Thread Barry
Søren Schimkat wrote: Hi Guys I'm using the mail function for sending mail, and I would like to specify the Return-Path header, but it would seem that PHP or Apache is modyfying the header. This is the simple code: mail('[EMAIL PROTECTED]', 'Subject', 'Message', "From: [EMAIL PROTECTED]: [EMAI

Re: [PHP] Re: How to get a network drive name

2006-02-02 Thread Barry
Ibrahima TALL wrote: Hi barry and thanks for your response ! Your solution seems to be restrictive for me and for my application clients because in such situation, they will be obligated to have a config file in which they must define all the network drive names and to update it whenever a

Re: [PHP] Getting The Document Root

2006-02-02 Thread Barry
Jeremy Privett wrote: No, what I'm looking for is the root of the document root, if that makes any sense. not at all ^_^ -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] How to get a network drive name

2006-02-02 Thread Barry
server and to display them in the client's browsers ? Told ya. Over the shell. You can output the "shell output" into a variable. e.g. //code echo shell_exec ("vol c:"); This shows the Name of the volume C: on windoze systems. you can also do $var = shell_exec ("vol c:&qu

Re: [PHP] How to get a network drive name

2006-02-02 Thread Barry
Ibrahima TALL wrote: i have already tryed this command barry, in fact the name of the volume is different from the name of a network drive. A volume concerns a partition i think For exemple, you can define many drives, let say COMMON1(X:), COMMON2(Y:) in the DISK(C:). In this situation, the

[PHP] PHP 4.2.2 Float->Mysql addition problem

2006-02-03 Thread Barry
s $sum = $sum + $assoc["floatval"]; } echo $sum; // echoes an INTEGER VALUE O_o echoing the mysql value it is float like "123.45" The type of the mysql value is "string" setting the type to float doesnt help (settype()) Any ideas? Greets Barry -- Smi

Re: [PHP] PHP 4.2.2 Float->Mysql addition problem

2006-02-03 Thread Barry
bcscale() parameter. Thanks Andy sounds great. Changed DB to decimal 10.2 Tried it, but using bcadd i get a value of 0.00. If you have som sample code lying around somewhere that would be great, or do you know what happened? Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o

Re: [PHP] PHP 4.2.2 Float->Mysql addition problem

2006-02-03 Thread Barry
Barry wrote: Andrei wrote: When working with floats with php/mysql I had problems too... When summing amounts I had errors so my solution was using decimal (20, 10) type into mysql for storing amounts and when using sums in php I used bc functions. This way u get exact calculations

[PHP] Re: [Off] Cheap SSL certificates?

2006-02-03 Thread Barry
Brian Dunning wrote: I'm moving all my hosting to Rackspace, which means I'll need to buy all my own SSL certs. Does anyone have a favorite (cheap) source? I've found LiteSSL at $14.95/per. Thanks... Problem is when you have cheap ssl certs they might pop up in browser on visit, when they a

Re: [PHP] PHP 4.2.2 Float->Mysql addition problem

2006-02-06 Thread Barry
use what the actual string values ARE for us to do >any more than guess, though. Normal prices like: 345.76 234.09 324.54 And so on Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DOM/XML Query

2006-02-06 Thread Barry
n line *Number* ** How do I fix this problem? Is there a fix for this? Thanks for your help Install xml support for your PHP. PHP is telling you that such function is not included in your current PHP version. ->Call to undefined function xmldoc() Translated: I don't have that function

[PHP] Re: string lenght?

2006-02-06 Thread Barry
William Stokes wrote: Hello, How can I test whether a string is 1 or 2 digits long? Thanks -Will strlen() -_- RTFM www.php.net/strlen -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: Sound

2006-02-06 Thread Barry
browsers that do) For serverside you can also use shell commands which may be more helpful than finding something on php. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Window close.

2006-02-07 Thread Barry
Oliver Grätz wrote: Just for the laugh: You could send a redirection to a page that causes the browser to crash ;-) No client side scripting involved *g*. OLLi Or fill up the buffer till browser crashes ^_^ -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP

[PHP] Re: Array sizes?

2006-02-08 Thread Barry
ly use (for benchmarking) a recursive foreach in combination with strlen. And add it all up. (This is probably some work for the PC so that's why benchmarking) Anyo other ideas would be cool, since i think i will need that someday too :P Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Barry
Paul Novitski wrote: Anders Norrbring wrote: Maybe I'm just blind, but I can't find any way to count an array size in bytes? I have a quite big array with multiple data formats in it, and I would like to know how big it is in bytes... At 01:05 AM 2/8/2006, Barry wrote: I don

[PHP] Re: global variable declaration

2006-02-08 Thread Barry
t_r(); // now you can access it like: $outer_array[0]; $outer_array[1]; ... $outer_array[n]; Your FOR loop replaces the variable $result everytime. That's why it is empty. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mail

[PHP] Re: SESSION and include

2006-02-08 Thread Barry
m my browser but not when it is included in that main page. Whats am I missing? /Fredrik use require() www.php.net/require Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Re: SESSION and include

2006-02-08 Thread Barry
Fredrik Tillman wrote: ok.. Let me explain the problem better. 'user_level' is set by a login script. It seems to be working fine since I can make things like: if ("1"==$_SESSION[user_level]) { let this stuff happen } on my mainpage. on that same mainpage I use include ("page.php"); (I also

Re: [PHP] Re: SESSION and include

2006-02-08 Thread Barry
Fredrik Tillman wrote: IN PAGE.PHP [More code here] Hit me if i am wrong, but doesn't it start a new session here? Would you mind removing the session_start() from that file and test it again? btw please try what i mentioned earlier. it's easier to locate the problem. Thank

Re: [PHP] Re: SESSION and include

2006-02-09 Thread Barry
en solved after 2 mins if have known that the given path was a http path >_> Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML parsing

2006-02-09 Thread Barry
. But forgot which one it was >< greets barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't install

2006-02-09 Thread Barry
Ing. Tomás Liendo wrote: Hi I can't install PHP on Windows. The error: "Windows Can't found c:\Windows\System32\issext.vbs" What Can I do? Please Help me! Thnaks, Tom. Copy the issext.vbs to your system32 folder. Don't have it? Well: www.google.de -- Smileys rule (cX.x)C --o(^_^o) Dance f

Re: [PHP] define() or $variable for application settings?

2006-02-09 Thread Barry
ined as constants. That's how i see that. And safe, well. if php is safe, the vars in it are also. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't install

2006-02-09 Thread Barry
Ing. Tomás Liendo wrote: Sorry but I can't find the file issext.vbs!! Where can I get it Can you send me this file? Thank you! Tom have you used your pc's search function to search for the file? I don't have an ISS server so i can't send it to you -- Smileys rule (cX.x)C --o(^_^o) Dan

[PHP] Re: Can't insert values into MySQL DB via PHP

2006-02-10 Thread Barry
7;purchased') VALUES ( NULL , '$t', '$y', '$c' , '$p' )"; echo $sqladd; $result = mysql_query($sqladd); Insert Into dvd (title, year,cost,purchased) When the id is auto_increment you dont have to add it to the query. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Examples

2006-02-10 Thread Barry
Dave Jarvis wrote: Hi, I didn't quite know where this should go inside the PHP user manual. It is a collection of six simple tricks I use to give websites that extra flair of functionality. http://joot.com/dave/writings/articles/php-examples.shtml I hope you find the auto-complete city and cou

Re: [PHP] Can't insert values into MySQL DB via PHP

2006-02-10 Thread Barry
ing wrong in my programming to make that unfathomable error, and frankly, I can't see it. Than it's not enough code you have posted. There must be a problem between [Form of the page] <> [PHP code] Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^

[PHP] Re: limit on the mail function

2006-02-13 Thread Barry
hour. Is it possible with PHP mail()? Thanks for any help. Janos Suto No, but you can configure the virtual hosts that PHP uses POP3 logins to send mail. Then you can configure your mail server like that. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o

[PHP] Re: doubt in mail function

2006-02-13 Thread Barry
l server installed? Does this code work on your linux machine? Be sure mail sending is allowed on your windows machine. sendmail_from NULLPHP_INI_ALL sendmail_path NULLPHP_INI_SYSTEM Those ini variables must be set correctly in order to send mail on windows. Greets

[PHP] Re: Blogger post failed?

2006-02-14 Thread Barry
Jay Blanchard wrote: Is anyone else getting these messages? Very annoying. Sometimes. Proably the server is reaching its limits :P Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread Barry
ply a // recommended filename and // force the browser to display the save dialog. header("Content-Disposition: attachment; filename=".$path.";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($path)); readfile($path); have phun!

[PHP] Re: php errors ? help please ...

2006-02-15 Thread Barry
t tried to modify header information. like: echo "ZOMG!"; header ("Location: hahaha.php"); // this will not work! Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread Barry
J_K9 wrote: This is what I used: As you can see, there is no output before the headers are set. In fact, the error say that the headers were set on line 6, which is can this be? Is there something I need to turn off like default headers? Thanks, J_K9 What is before line 6? Bec

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread Barry
J_K9 wrote: Barry wrote: J_K9 wrote: This is what I used: As you can see, there is no output before the headers are set. In fact, the error say that the headers were set on line 6, which is default headers? Thanks, J_K9 What is before line 6? Because the Lines 1-10

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread Barry
r? What server do you use? What PHP version? Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread Barry
system? $ locate log Probably you have a virtual hosting. look at /var/www Otherwise no idea. The code is okay, i use it myself and it works just great. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Routing downloads through PHP

2006-02-15 Thread Barry
Michael Crute wrote: May I suggest you get a cheap box (you could build one for a few hundred bucks, or ebay), get a copy of and do development locally, beats the heck out of external hosting for development/learning stuff. -Mike probably. yes. But when you have some bad hosting provider us

Re: [PHP] Regular expression

2006-02-15 Thread Barry
Weber Sites LTD wrote: Check out some Regular Expression code examples To learn more : http://www.weberdev.com/AdvancedSearch.php?searchtype=category&category=Rege xps Sincerely berber ZONG! -> No results were found. * Run this seach again but include PHP Functions in the resul

[PHP] Re: please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Barry
[EMAIL PROTECTED] wrote: text file problem read text file to array string. I use function File(). but when I display data in text file it compress space in each lines such as first record contain "1_2__3__4__" ( _ = blank ) when store in array string is "1 2 3 4" . I want you tel

Re: [PHP] please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Barry
Hugh Danaher wrote: If you want to preserve the blank spaces then try; str_replace(" ", " ", $contents); //   is html for blank space. HTH HTD no he don't: qote: > read text file to array string -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General

[PHP] Re: CSS Groups?

2006-02-16 Thread Barry
William Stokes wrote: Anybody know any good CSS groups? I don't want to post here non PHP related stuff Thanks -Will http://www.css-discuss.org/ -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: Secure Mail Form using PHP

2006-02-16 Thread Barry
So far I'm able to remove bcc, cc, to, etc but unable to remove \n & \r. If I could do that I'd consider it fairly secure. As you'll see below, I've been trying various ways of doing it. strtr() works good for me. http://de2.php.net/strtr Barry -- Smileys rule (cX.x

[PHP] Re: Site bloated by images

2006-02-16 Thread Barry
MARG wrote: Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up memory_limit in php.ini, but no

[PHP] Re: archiving?

2006-02-17 Thread Barry
benifactor wrote: i have a question about what i beleive to be called archiving... i am building a news script and would like to limit post to be displayed per page i have done this successfully. what i am having probplems with is displaying the next set of news. here is my code: include("cor

[PHP] Re: umlaut problem in firefox

2006-02-17 Thread Barry
g.php Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: archiving?

2006-02-17 Thread Barry
Barry wrote: benifactor wrote: i have a question about what i beleive to be called archiving... i am building a news script and would like to limit post to be displayed per page i have done this successfully. what i am having probplems with is displaying the next set of news. here is my

[PHP] Japanese spam on list

2006-02-17 Thread Barry
Whats that Japanese spam mail on this list about Oo -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "!" in front of a variable?

2006-02-17 Thread Barry
7;t know...I've never seen '!' used in a function like that. causes a boolean var to be the opposite !$var = true returnes false Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: need a php multiple/mysql choice quiz

2006-02-20 Thread Barry
want? A basic example. what is that? Basic example: Use php and mysql for example. Be a bit more precise please. Or this will end up like multiple choice here. Thank you barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http

Re: [PHP] Re: need a php multiple/mysql choice quiz

2006-02-20 Thread Barry
Jochem Maas wrote: Barry wrote: Ross wrote: I am looking for a php/mysql multiple choice quiz. One that saves the answers to a database. A basic example I can expand on is all that is required. Ross O_o - You want us to give you code examples? - You want us to give you hints? - link

[PHP] Re: Help with query

2006-02-21 Thread Barry
Ing. Tomás Liendo wrote: Hi I need the students that didn't take an exam. The tables: exams(id_test, title, desciption, ) results(id_student, id_test, date, qualification...) I'm using a version of MySQL that doesn't support NOT IN, then I tried in this way: SELECT * FROM exams LEFT JOI

[PHP] Re: Help with query

2006-02-21 Thread Barry
id_test) WHERE id_student =".$user; So you get when the user has a result and applied to it. If you dont get a result, he wouldn't have done it yet. (theory) Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.ph

[PHP] header function

2003-03-07 Thread Barry Gould
blank page with html open and close tags. I'm SURE there are no spaces or blank lines before these lines. It works fine if I put the code in the main page instead of using the virtual include. Output buffering is set to 4096 in php.ini. Any suggestions would be appreciated. Thanks, Bar

Re: [PHP] header function

2003-03-10 Thread Barry Gould
I have session auto start on. Plus, like I said, it works fine if it's at the top of the page, not in the include file. Thanks, Barry At 05:19 PM 3/7/2003, Jim Lucas wrote: if you put this at the very to of the page, I am guessing then that you haven't ran session_start() ?? if you

Re: [PHP] header function

2003-03-10 Thread Barry Gould
I'm starting to think this is a BUG. Can anyone else test this and confirm or contradict? Thanks, Barry At 03:35 PM 3/7/2003, you wrote: I am having a hard time with the header("Location:") function inside an include file with PHP 4.3.1 (Linux, running as a module w/ Apache 1

Re: [PHP] header function

2003-03-10 Thread Barry Gould
AHA! Thank you! Barry At 01:38 PM 3/10/2003, you wrote: Use INCLUDE(), not virtual(). virtual() isn't supposed to be used with PHP files. ---John Holmes... - Original Message - From: "Barry Gould" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, Mar

[PHP] File ordering

2003-08-14 Thread Katherine Barry
I am doing a 'readdir' on a subdirectory. I did my file naming counting on it ordering based on numbering... But when I do the readdir it isn't doing it. My naming convention 002_2003_66.jpg would indicate the 66th picture for the month of Feb in 2003. This gave me automatic sorting. So I thought.

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Barry Gould
Yes, the RPM you need in RedHat for php with mysql is called php-mysql. It is a replacement for the php rpm Also, if you install them both (i.e. rpm -Uvh php*) you may not get the correct php.ini file. At 12:39 PM 4/3/2003, you wrote: Don wrote: Further to this point, I've just read that RedHat

[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-03 Thread Barry Gould
1 week old. I've just tried changing the permissions to 770 (drwxrwx---) and restarting apache; it doesn't seem to be making any difference. apache is apache-1.3.27-2 from RedHat's RPM Any ideas would be appreciated. Thank you, Barry Gould -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-03 Thread Barry Gould
At 01:36 PM 4/3/2003, Ernest Vogelsinger wrote: At 23:25 03.04.2003, Barry Gould said: [snip] >Following some documentation I found somewhere on php.net, I have the >permissions on /tmp/php equal to 310: > >ls -l /tmp >d-wx--x---2

Re: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread Barry Gould
just count from 0 to FF in HEX or count from 0 to 16777216 and print each output in HEX I'm sure there's a function for outputting a number in hex. of course, displaying 16million numbers to the browser will be time consuming, to say the least. :P Barry At 03:59 PM 4/3/2003, you

Re: [PHP] generate all permutations possible? (twist)

2003-04-04 Thread Barry Gould
is similar to a standard PHP array. Note this is a stateful algorithm that only outputs a few results at a time; you could modify it to output all results. Be careful how you store the output, as it will get VERY big very quickly. Barry Gould At 05:28 PM 4/3/2003, you wrote: Hi guys, I appreciate yo

[PHP] re:[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-04 Thread Barry Gould
Any other ideas on this? Should I submit it to the bug system? Thanks, Barry Date: Thu, 03 Apr 2003 13:25:16 -0800 Hi, I'm having a problem where session files are not expiring or getting deleted. I'm running RedHat 7.3 (which normally expires sessions fine). I removed the RedHat PH

Re: [PHP] re:[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-04 Thread Barry Gould
then? AHA! That's it! I thought the default was 1%, which should have been enough as I had several hundred session files there, but it was at 1/1000 or 0.1% Thank you, Barry I'm sure this isn't the problem, but the OS must be able to track the last "access" time of the

Re: [PHP] Webtrends

2003-04-04 Thread Barry Gould
Check out Analog and Webalizer. RedHat includes Webalizer... it seems to work fine. Barry Gould At 03:49 PM 4/4/2003, you wrote: I know this is sort of off topic but I was wondering it any one knew if there was a GNU version of Webtrends or perhaps a GNU equivalent, maybe in php to use on an

[PHP] Cache bypass

2001-03-20 Thread Barry Russell
opers working at a distance...) Thanks, Barry -- 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: [EMAIL PROTECTED]

Re: [PHP] MySQL Install Problem

2002-02-06 Thread Dave Barry
On 20 0, Ben Clumeck <[EMAIL PROTECTED]> wrote: > I am trying to install MySQL on WinXP, I get the following error message: > > Microsoft(R) Windows DOS > (C)Copyright Microsoft Corp 1990-2001. > > C:\DOCUME~1\BEN>cd c:\mysql\bin > > C:\MYSQL\BIN>mysqld--standalone > 'MYSQLD--STANDALONE' is not

Re: [PHP] form posting to a fake page

2002-04-17 Thread Barry Hoggard
That's the way apache works - it's not specific to PHP. The same happens under mod_perl, for example. Redirects ALWAYS lose any posted information. You have to save the form data a different way, such as in a session variable. -- Barry Hoggard Tristan Media LLC e: [EMAIL PROTECT

[PHP] Base class for objects with get/set w/o overload

2002-04-22 Thread Barry Hoggard
ad(). My other alternative is to have something like get('varname'), set('varname', 'value') in a base class for my object. Is that they way to do this, or can you point me to a better way? I don't wish to manually implement methods for every variable in every cla

[PHP] --enabel-pnctl / php sockets

2002-05-06 Thread Barry Smoke
lock it in securely... But...still allow other connections, (like apache listens to minservers/maxserversmultiple sessions on one port) The idea being that one isp might have multiple admins/staff entering in domain information. Any help on this is much appreciated. Barry Smoke Project Leader V

RE: [PHP] --enabel-pnctl / php sockets

2002-05-06 Thread Barry Smoke
Barry Smoke Project Leader Vispman.org -Original Message- From: Barry Smoke [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: [PHP] --enabel-pnctl / php sockets I have recently discovered php's binary capabilities, and am using it to wr

<    1   2   3   4   >