Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
unk of text won't have any apparent effect. > >When you eval() code in a string, that code has to either return() >something, or have direct effects on its own (such as calling functions or >setting values). eval() != echo. > >miguel > >On Mon, 20 May 2002, Leif K-B

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
he footer file? >have you tried displaying the contents of $footertext just before you call >checkmember()? > does it contain what you're expecting? > >-Original Message- >From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] >Sent: Monday, May 20, 2002 3:23 PM

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
Ok, I guess I'll send it. Thanks for trying to help. Here it is: $ip = $REMOTE_ADDR; $query = mysql_query("select COUNT(*) as rowexists from ips where ip = '$ip'"); $result = mysql_fetch_array($query); if(($result['rowexists'] == 0) && ($loggedin)){ mysql_query("INSERT I

Re: [PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
erwise they won't be available. > >miguel > >On Mon, 20 May 2002, Leif K-Brooks wrote: > >>Ok, I guess I'll send it. Thanks for trying to help. Here it is: >> >>$ip = $REMOTE_ADDR; >>$query = mysql_query("select COUNT(*) as rowexists f

Re: [PHP] Email harvesters

2002-05-20 Thread Leif K-Brooks
I think it would be a good idea to have whatever software sends list messages to the newsgroup block out the addresses. Miguel Cruz wrote: >If you're concerned and don't have effective anti-spam filtering on your >email box, I'd suggest coming up with a second address to use for "public" >pur

[PHP] Server push?

2002-05-25 Thread Leif K-Brooks
Does php support server push? I am trying to make a real-time chat. Would server push be the best way, and if so, how would I do it? Thanks for any help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newman Says: Only one value from a msSQL field.

2002-06-01 Thread Leif K-Brooks
I don't know about msSQL, but in mySQL you can do something like $sql = "SELECT * FROM brands WHERE 1 GROUP BY field ORDER BY `sId` DESC LIMIT 6"; Philip J. Newman wrote: >Only one value from a msSQL field. > >I have many values the same in a field and would like to know how i can select one

[PHP] Any way to display a changing value?

2002-02-21 Thread Leif K-Brooks
I was wondering if there's any way to display a value to the user that keeps changing? I know about flush(), but that just prints it out before the script ends, but doesn't display it in one place. Is there a way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] bbcode

2002-02-22 Thread Leif K-Brooks
I'm planning to make a forum built into my site. I know all of the forums have bbcode, and I doubt they all programmed it themselves. Is there somewhere I can get the code for bbcode? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php-gtk

2002-02-26 Thread Leif K-Brooks
I read the tutorial for it on the php-gtk site, but I didn't see a thing about how to run it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odbc32.dll missing

2002-02-26 Thread Leif K-Brooks
It keeps telling me that when I try to run php-gtk. Can someone tell me where to get this .dll from? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odbc32.dll missing

2002-02-26 Thread Leif K-Brooks
on 2/27/02 2:09 AM, Leif K-Brooks at [EMAIL PROTECTED] wrote: > It keeps telling me that when I try to run php-gtk. Can someone tell me > where to get this .dll from? Thanks Well, I found that dll, but now I'm getting another error. "The PHP4TS.DLL file is linked to

[PHP] Does anybody have code for this?

2002-02-28 Thread Leif K-Brooks
I'm looking for two functions. One to scramble a string, and one to check if one string is a scrambled version of another. Does anybody have these? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Does anybody have code for this?

2002-02-28 Thread Leif K-Brooks
on 3/1/02 2:43 AM, Monty at [EMAIL PROTECTED] wrote: > Maybe try looking into the crypt() or md5() functions on php.net. These will > encrypt a string more than "scramble," but maybe one of these serves the > purpose. No, that isn't what I'm looking for. It's not for encryption. I just need a f

[PHP] Has anybody used whizhost?

2002-03-01 Thread Leif K-Brooks
I'm thinking of switching my website t whizhost (http://www.whizhost.com/). It has more features than my current host, and is a dollar a month less. Has anybody ever used them? Please tell me if they were good or not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Checking how many users are logged in?

2002-03-02 Thread Leif K-Brooks
I have a site with logins, etc. I was wondering if there's any way to see how many users are logged in. I know I could change a database and add one to a number when a user logs in, and subtract one when they log off, but what if they just go to another site or close their browser? -- PHP Ge

[PHP] What permissions for uploading?

2002-03-13 Thread Leif K-Brooks
I have a script that allows the user to upload a file. Right now, though, it says permission denied when I try to upload. The permissions for the folder I want to upload to is 755 right now. What should I change it to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Moving server clock?

2002-03-17 Thread Leif K-Brooks
Right now, I have a static server time clock on my page, produced by date(). I would like to make it move, and I was wondering if anyone has code that returns the server time to javascript to animate it or something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Anybody have a function to encode a string?

2002-03-18 Thread Leif K-Brooks
I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anybody have a function to encode a string?

2002-03-18 Thread Leif K-Brooks
on 3/19/02 2:28 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: On Tue, 19 Mar 2002, Leif K-Brooks wrote: > I need a function that encodes stuff, with a key. It, of course, needs to > be decodable too. Does anbody know/have a function like this? http://www.php.net/manual/en/ref.mcry

[PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Leif K-Brooks
I'm doing some replacing with str_replace, but it's case sensitive. Is there any way to make it not case-sensitive? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Case non-sensitive replacing with str_replace?

2002-03-19 Thread Leif K-Brooks
on 3/20/02 12:24 AM, Martin Towell at [EMAIL PROTECTED] wrote: use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists, but the former function does) -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 4:16 PM To: [

[PHP] Variable problem

2002-03-22 Thread Leif K-Brooks
I have a variable name in a print <<< END and then some text after it. The thing is, php thinks that the text is part of the variable name, which makes the variable, and the text after it, not show up. But, if I put a space, it makes my html not work right. Any ideas? -- PHP General Mailing

[PHP] move_uploaded_file returning true but not working

2002-04-03 Thread Leif K-Brooks
I run a site where users can, among other things, adopt virtual pets. I have several admisistrators on the site, and I am trying to create a thing that adds a new pet species through the administrator control panel without me having to ftp it. It takes four files: red happy, red sad, blue happy,

[PHP] move_uploaded_file returning true but not working

2002-04-06 Thread Leif K-Brooks
I run a site where users can, among other things, adopt virtual pets. I have several admisistrators on the site, and I am trying to create a thing that adds a new pet species through the administrator control panel without me having to ftp it. It takes four files: red happy, red sad, blue happy,

[PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Leif K-Brooks
Is there one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Workaround for no cron?

2002-04-07 Thread Leif K-Brooks
I have to wait for my host to compile php as binary for cron to work with php, and a lot of things on my site depend on cron. Does anyone have some sort of code that I could put at the top of all my pages so when they get visited, it checks to see if a script has been executed yet this time petio

Re: [PHP] Disabling bars on Browser

2002-04-07 Thread Leif K-Brooks
on 4/7/02 9:31 PM, Justin French at [EMAIL PROTECTED] wrote: This is the wrong group/list for this post. The disabling of bars, or any sort of browser feature/appearance is NOT PHP. PHP is a server side langauge. Commonly, you would use JavaScript for such stuff, so I recommend you check out t

[PHP] Banning javascript?

2002-04-08 Thread Leif K-Brooks
I want to ban javascript from my site (users can edit some things). I know how to ban it in

[PHP] Regilar expressions problem

2002-04-12 Thread Leif K-Brooks
I have an interactive website, with forums programmed by me. They have smilies, and I'm trying to make a way for users to be able to type smilies without them changing to images if they want. I'm trying to make it so if they type "NOSMILE:)" it will remove the NOSMILE and not display the smiley

Re: [PHP] Create a new directory on server.

2004-01-31 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: is there in PHP a function that create a new directory on server This is a serious case of needing to RTFM. www.php.net/mkdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6