[PHP] Boolean Search Interpreter

2002-10-12 Thread SpamSucks86
Is there an algorithm in PHP or pseudo-code, or any other language that could help me write an algorithm to take a Boolean search string and parse it and convert it into SQL? I can convert it to SQL just fine, I just need help parsing the string and figuring out what they want (AND, NOT, OR). Than

[PHP] One Session ID, Multiple Domains

2002-10-04 Thread SpamSucks86
Is it possible to have one session ID and access it from two domains? Here's the situation: I have an online store. I use sessions to track the shopping cart. When I go to checkout and switch to SSL, it's on another domain (but still on the same machine). I need to access the session data from

[PHP] .htaccess to change browscap setting

2002-09-27 Thread SpamSucks86
AllowOverride is set to All in apache, and when I put this in a .htaccess file, it changes the value: php_value upload_max_filesize "750" however, when I put "php_value browscap "/home/user/php/browscap.ini" in there, it doesn't change the setting. Is browscap not changeable fr

[PHP] sprintf() question

2002-08-29 Thread SpamSucks86
I read the manual page on sprintf, but I still don't understand exactly how the format string works. $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; // echo $money will output "123.1"; $formatted = sprintf("%01.2f", $money); // echo $formatted will output "123.10" How does t

[PHP] PHP Acronym: What does it mean to you?http://phpacronym.coolfreepage.com

2002-07-28 Thread SpamSucks86
Visit http://phpacronym.coolfreepage.com and submit what the PHP acronym means to you!

[PHP] TOC protocol (AOL Instant Messenger)

2002-07-13 Thread SpamSucks86
I'm interested in coding something in PHP which uses the TOC protocol to connect to AOL Instant Messenger (AIM). Has there been anything done like this in PHP? I'm also looking for more information on the TOC protocol. I have the protocol specs, but it doesn't say where the server is to connect to

[PHP] Build-up of MySQL Sessions

2002-07-09 Thread SpamSucks86
I'm running windows 2000 and the latest releases of PHP and MySQL. All database connections are made with mysql_pconnect(). Connections build up, however. The only person connecting to this webserver at the moment is myself. It seems that it opens connections and keeps them open, but doesn't alway

[PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!

2002-06-27 Thread SpamSucks86
If I had a form on a page with it would POST the file to the script. I want to have a PHP script read a file and then emulate that action to another script. Since the enctype="multipart/form-data" I'd think that I can't just use the normal POST method with CURL to do it. Anyone know how to do thi

[PHP] Annoying GD problem (imagecopy) ---- SOMEONE PLEASE HELP!!!!!!

2002-06-05 Thread SpamSucks86
I have two images, for the sake of clarity, call them image A and image B. Image B is smaller than A, and it has a yellow background with a black foreground. Image A is just a color image, nothing special. When I use imagecopy() and put B on top of A, image B loses its yellow background. Both are

RE: [PHP] PHP Boolean Interpreter - Need to search a mySQL database

2002-05-13 Thread SpamSucks86
tabase At 4:50 PM -0400 12/5/02, SpamSucks86 wrote: >I was wondering if anyone knew of any good Boolean interpreters (NOT, >AND, OR, +, -, |," ")? I've found three, but they're VERY buggy and I >wouldn't put them into production. Frankly, I don't have th

[PHP] PHP Boolean Interpreter - Need to search a mySQL database

2002-05-12 Thread SpamSucks86
I was wondering if anyone knew of any good Boolean interpreters (NOT, AND, OR, +, -, |," ")? I've found three, but they're VERY buggy and I wouldn't put them into production. Frankly, I don't have the time, patience, or ability to write a good one from scratch. Here are the three I've found in cas

RE: [PHP] Search Engine With Boolean Support <--Please help

2002-05-11 Thread SpamSucks86
#x27;t think it will help me. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 11, 2002 2:23 PM To: SpamSucks86 Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Search Engine With Boolean Support <--Please help On Sat, 11 May 2002, SpamSucks86 wrote: >

[PHP] Search Engine With Boolean Support <--Please help

2002-05-11 Thread SpamSucks86
I need to have an internal search engine for my site. It needs to support Boolean (not, or, and). Are there any fairly simple scripts out there that will help me with this? Even if it's just to give me an idea of where to start. I'm using mySQL, and Boolean support isn't implemented until v4.0. Th

[PHP] POST form File Upload Progress Bar?

2002-04-16 Thread SpamSucks86
I have a POST form with a file upload field. Users will be uploading pictures. What would be the most professional way to tell them their file is uploading and to please wait? Since the action page won't execute until after the image is done uploading, is there a way to have an intermediary page l

[PHP] $HTTP_SESSION_VARS with unset()

2002-03-14 Thread SpamSucks86
when someone logs in, it sets $HTTP_SESSION_VARS with the appropriate information. to log them out, I tried just using unset($HTTP_SESSION_VARS['valid_user']) but it doesn't actually remove it from the session. it will only work if valid_user was set on the same script call (for example, if it log

[PHP] HTTP Request Headers - PUHLEASE HELP!

2002-02-24 Thread SpamSucks86
I have an infinitely annoying problem. I coded a script which tracks who viewed my profile in AOL Instant Messenger. When they click on a link (AIM inserts their screen name into the URL) the script records it. However, it does not replace spaces in their screen name with %20 like a normal browser

RE: [PHP] regexp on user supplied link

2002-02-20 Thread SpamSucks86
I absolutely hate regular expressions because I suck at writing them...but I can help you with the logic. I was thinking search for a pattern which matches HREF=" + any number of characters + ". Your match would be HREF="blahblahblah". Then, you could go and chop off the HREF=" and the lagging ",

[PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread SpamSucks86
I had this same problem. It's very aggravating. Jason G's solution won't work, because $oRow will always be true as long as there is more results, NOT if there are less than 3 results left. Why don't you true something like this 0) { //echo your row with 3 cells $numevenrows = $

[PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread SpamSucks86
I had this same problem. It's very aggravating. Jason G's solution won't work, because $oRow will always be true as long as there is more results, NOT if there are less than 3 results left. Why don't you true something like this 0) { //echo your row with 3 cells $numevenrows = $

[PHP] RE: Sessions that last for ever

2002-02-16 Thread SpamSucks86
I think changing a setting in php.ini will do it, I'm just not sure which one. session.cache_expire seems like it might do something, or maybe session.gc_maxlifetime. Look them up in the manual -Original Message- From: Nigel Gilbert [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 16,

RE: [PHP] How to keep form inputs from being cleared

2002-02-08 Thread SpamSucks86
With --enable-trans-sid the problem still exists. For example, a user logs in and cookies are disabled. He browses to a page which doesn't load the session. Then from there he goes to a page that does use sessions. Unless I'm mistaken, --enable-trans-sid won't add the session ID unless the session

[PHP] How do I keep form inputs from being cleared - Please Help!

2002-02-05 Thread SpamSucks86
I have a registration form and if a user enters bad information and the php script generates an error, I want the user to be able to hit back and have his inputs still there. Most websites I've ever used do this, but for some reason, my form loses all its data when the back button is pushed. This

[PHP] Basic Authentication with IIS

2002-01-23 Thread SpamSucks86
With apache, you can easily match up a L/P to an htpasswd file. With IIS, the user has to be created as the windows level. I'm moving a site from an apache server to an IIS server, and need to figure out an easy way to do basic authentication. I guess putting a chunk of code at the top of every sc

RE: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-23 Thread SpamSucks86
The idea of building a website is largely to accommodate as large a portion of your visitors as possible. I'm not worried about people bookmarking sessionID's, but what if someone copy/pastes the URL to a friend and they use the section. My friend gave me an excellent idea, and that is to check th