[PHP] Spiders, Sessions, trans SID, and mod_rewrite

2002-10-09 Thread Tech Support
Hello I'm preparing to start an ecommerce project that will require the use of sessions throughout the entire site for referrer and affiliate tracking purposes. I also plan to use mod_rewrite to make links to dynamic content search spider friendly. example: instead of

Re: [PHP] Credit Card Validation With Expiration Date

2002-07-30 Thread Tech Support
That is correct. As long as the expiration date is past present it's fine. I used to work for another hosting company who would just guess new expiration dates for monthly recurring customers who had not submitted a cancellation request but who's cards had expired. As long as the date was past

Re: [PHP] searching an array for words starting with 'p'

2002-07-30 Thread Tech Support
try preg_grep() http://www.php.net/manual/en/function.preg-grep.php example: ? $word = array('alpha', 'beta', 'php'); // match anything beginning with upper or lower case p $matches_array = preg_grep('/^(p|P).*/', $word); print_r($matches_array); ? Jim Grill Support Web-1 Hosting

Re: [PHP] Re: A somewhat unusual session question...

2002-07-30 Thread Tech Support
That last statement was not entirely true. The server does not have to know when someone leaves to clean up. You are right about session.gc_maxlifetime and session.gc_probability. if the maxlifetime is set to 1200 (20 minutes) and the probability is set to 1 that means that one percent of the

Re: [PHP] mcrypt

2002-07-30 Thread Tech Support
Message - From: Purushotham Komaravolu [EMAIL PROTECTED] To: Tech Support [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 1:44 PM Subject: Re: [PHP] mcrypt Hi, Thanks for the prompt answer. But I am still getting the same error

Re: [PHP] PHP5?

2002-07-29 Thread Tech Support
You could join the developer's list and just read. I joined just to keep up with what's coming in future releases and it's also pretty interesting. They are constantly talking about what features/bugs need work and when they want to do a release and who will be on vacation and can't help and blah

Re: [PHP] Public Scripts in a commercial product

2002-07-29 Thread Tech Support
There are many types of licensing and it really depends on what the author licensed it under. Most are GPL. Normally the first few lines of the LICENSE file typically included with the dist will explain the details of the license. If there is not one always assume that if you use any part of it

Re: [PHP] Public Scripts in a commercial product

2002-07-29 Thread Tech Support
Uhhh but you really should ask the author too. ;-) Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Tech Support [EMAIL PROTECTED] To: Chris Boget [EMAIL PROTECTED]; PHP General [EMAIL PROTECTED] Sent: Monday, July 29, 2002 5:38 PM Subject: Re

Re: [PHP] Help reg. create user and allocate space

2002-07-28 Thread Tech Support
Are you asking us how to write an entire online community program??? Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "umesh" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 28, 2002 6:40 AM Subject: [PHP] Help reg. create user and allocate

Re: [PHP] php 'mail()' security

2002-07-28 Thread Tech Support
There is no substitute for good data verification such as strip_tags() or some regular expressions to limit valid input. I also would recomend checking the referrer to be sure someone doesn't hijack you form and try to modify it and submit it from a remote location. Here is an example: if

Re: [PHP] PHP/MySQL Search Engine Query Question

2002-07-28 Thread Tech Support
Here is an idea ? // make array out of words in search string $search_array = explode(' ', $search); // make regexp pattern '.*(this|or|that).*' $string = .*( . implode('|', $search_array) . ).*; $query = SELECT * FROM my_table WHERE body REGEXP '$string'; $result = mysql_query($query,

Re: [PHP] php 'mail()' security

2002-07-28 Thread Tech Support
- Original Message - From: Bob Lockie [EMAIL PROTECTED] To: Dennis Gearon [EMAIL PROTECTED]; Tech Support [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, July 28, 2002 1:19 PM Subject: Re: [PHP] php 'mail()' security There is no substitute for good data verification

Re: [PHP] failure notice (fwd)

2002-07-27 Thread Tech Support
That's what happens when ISP's aren't careful about what happens on their network. Getting your IP's on the black list is probably one of the worst things you can let happen as an ISP. They warn you and give you time to rectify the situation (cancel accounts/access of offenders) before they

Re: [PHP] CURL SSL

2002-07-27 Thread Tech Support
cURL needs to be compiled with SSL support. ./configure --with-ssl=SSLPATH where SSLPATH is the actual path to where openssl can be found. ./configure --with-ssl=/usr works for me. Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Oscar F [EMAIL

Re: [PHP] Help: header function

2002-07-26 Thread Tech Support
string to keep the session without the need for a session cookie. Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: k a m e s h [EMAIL PROTECTED] To: Tech Support [EMAIL PROTECTED] Cc: Matt [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 26, 2002

Re: [PHP] Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread Tech Support
You need a web server like M$ IIS or Apache. I would rather chew tin foil than run an IIS server even if it was on a win machine. You can install the win version of the Apache web server and then just browse to http://localhost/ to view your work. Jim Grill Support Web-1 Hosting

Re: [PHP] High Resolution Images

2002-07-26 Thread Tech Support
This may sound silly, but you are uploading in binary mode right? Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 26, 2002 5:24 PM Subject: [PHP] High Resolution Images Hello, I am

Re: [PHP] php redirect

2002-07-26 Thread Tech Support
I know what you mean about everything being M$. I'm a die hard GNU fan and therefore hate everything M$, but I can think of more than one occasion where that attitude cost me some money. I somehow still believe that if I stick to my beliefs and maybe try to convert some M$ people to host their

Re: [PHP] PHP UPGRADE on LINUX

2002-07-26 Thread Tech Support
It really depends on what version you have now. I'd say the biggest thing to look out for is the register_globals, which is now defaulted to Off. This will break lots of sites!!! Turn it on unless you want your phone to ring for days. Users should, however, be urged to get used to coding with it

Re: [PHP] Help: header function

2002-07-26 Thread Tech Support
] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, July 26, 2002 11:27 AM Subject: Re: [PHP] Help: header function From: Tech Support [EMAIL PROTECTED] To: k a m e s h [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 26, 2002 11:20 AM Subject: Re: [PHP] Help: header function Try

Re: [PHP] Help: header function

2002-07-26 Thread Tech Support
Try just header(Location: $PHP_SELF); or header(Location: $SCRIPT_NAME) ...leave out http:// ...and your quotes are in the wrong place too. Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: k a m e s h [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] mysql question

2002-07-26 Thread Tech Support
Congrats! Good choice! Take a look here: http://www.convert-in.com/acc2sql.htm or here: http://www.google.com/search?hl=enlr=ie=ISO-8859-1q=convert+access+databa se+to+mysql Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Christian Calloway [EMAIL

Re: [PHP] sessions

2002-07-26 Thread Tech Support
okay... if register_globals is off then your session handling is going to change dramatically. You can read more on it here: http://www.php.net/manual/en/ref.session.php Basically, You still use session_start(); at the top of your page, but you never use session_register, session_is_registered,

Re: [PHP] preg_match() occurence position

2002-07-25 Thread Tech Support
How about this: $text = this is test; preg_match can return the first match in an optional array I'll call $matches http://www.php.net/manual/en/function.preg-match.php preg_match('/test/', $text, $matches); strpos returns the numeric position of the first occurrence

Re: [PHP] Sessions, how they exist and die

2002-07-25 Thread Tech Support
Hi Matt, The user's browser will retain the session cookie as long as it is open unless session.cookie_lifetime is set to something other than zero in the php.ini or you can also set it in your script like this: // set session cookie to expire in 30 minutes.

Re: [PHP] String Manipulation

2002-07-25 Thread Tech Support
I tested this out with success. $string = ereg_replace('(.*(\(|\[)|(\)|\]).*)', '', $string); ### // Here is actual working code $string1 = (Something) - is wrong with me; $string2 = something - (is wrong with me); $string3 = something - (is wrong with me; $string4 = [something]

Re: [PHP] pulling records from mysql

2002-07-25 Thread Tech Support
This query will return only the 16th row SELECT firstname FROM table_name LIMIT 16, 1 This query will give you all rows up to 15 SELECT firstname FROM table_name LIMIT 1, 15 Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Tyler Durdin [EMAIL

Re: [PHP] String Manipulation

2002-07-25 Thread Tech Support
); Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Mike [EMAIL PROTECTED] To: 'Tech Support' [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 10:48 AM Subject: RE: [PHP] String Manipulation Ok, It works and everything, but I

Re: [PHP] FreeBSD 4.6 / PHP 4.2.2 / Apache 2.0.39 install trouble

2002-07-25 Thread Tech Support
4.2.2 will not work with apache 2.X from what I've read. However, I have heard that if you get the latest CVS of both php and apache it will work. I have not, and probably will not, go down that road just yet :-) Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message

Re: [PHP] an array_key_exists() substitute for php 4.0 4.1 ?

2002-07-25 Thread Tech Support
http://www.php.net/manual/en/function.array-key-exists.php The name of this function is key_exists() in PHP version 4.0.6. Damn those elusive manual pages :-/ Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: David D [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] mySQL Queries using PHP's SESSION variables

2002-07-25 Thread Tech Support
well, you could simply loop through the session vars and build the query as you go. $query = SELECT * FROM Inventory WHERE; // I'm assuming you keep your item numbers in a items or something similar foreach ($HTTP_SESSION_VARS['items'] as $pid) $subquery .= ItemNumber = '$pid' OR ; // get

Re: [PHP] GD Library

2002-07-25 Thread Tech Support
I'm not a windoze user but if that line has a ; at the beginning of it like you have it in your message then it is commented out! LOL. :-) Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Ryan Moore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Trouble with \

2002-07-24 Thread Tech Support
If the \ are showing up in form posted data just do this: $newtext = stripslashes($oldtext); The slashes are put before any single or double quote by a nifty little php feature called magic quotes. By escaping quotes in form posted data you greatly reduce the risk of sql injections and other

Re: [PHP] How do you make a directory

2002-07-23 Thread Tech Support
How about a trailing slash after the directory name ;-) like this: $dirpath = /home/sites/home/users/demodocs/web/userforum/ . $username; you had: $dirpath = /home/sites/home/users/demodocs/web/userforum . $username; which would try to create a new directory inside the web directory.

RE: [PHP] changing a variable according to the input in a checkbox

2001-11-27 Thread Yoan Bosch [VDB TECH SUPPORT DEVEL]
Hi I think if you want the user to type in a number, rather use a textbox, not a checkbox ;-)) Then call the textbox phone in the form you want the user to fill in, and when submitted, the variable $phone will contain the number he typed in. Then use: $prefix = substr($phone, 0, 3); if