Re: [PHP] exploding strings

2002-11-20 Thread Ernest E Vogelsinger
At 05:54 20.11.2002, Michael P. Carel said: [snip] Hi to all, I have a problem regarding exploding string. I want to explode string sepated by + sign, but i want it also the first variable in the array be distinc in terms of collor or whatever when viewed

Re: [PHP] date

2002-11-20 Thread Matthieu Le Corre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 2 fonction for that ;) written specially for the same pb as you ;) // transformation de la date jj/mm/ - -mm-jj function modate ( $date ) { $inter= split(/,$date) ;

[PHP] using move_uploaded_file

2002-11-20 Thread nirat
can anyone give me a hint as to how to use a file upload script any kind of code will be good.. I am using IIS5.0 with PHP 4.2.3. Regards Nirat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] using move_uploaded_file

2002-11-20 Thread Michael Hazelden
http://www.php.net/manual/sk/features.file-upload.php found in 2 seconds searching the PHP site for Uploaded File. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 20 November 2002 05:32 To: [EMAIL PROTECTED] Subject: [PHP] using move_uploaded_file can

Re: [PHP] using move_uploaded_file

2002-11-20 Thread nirat
thanks will give it a try Michael Hazelden [EMAIL PROTECTED] wrote in message C1260EE72F22C44F833D033A17524AD702A4D1A2@lhoexc1">news:C1260EE72F22C44F833D033A17524AD702A4D1A2@lhoexc1... http://www.php.net/manual/sk/features.file-upload.php found in 2 seconds searching the PHP site for Uploaded

Re: [PHP] catching a robot or spider - asking too

2002-11-20 Thread W. Enserink
check out the url for aother big list of user agents. I guess the only way to catch a robot is to use this list and compate them to the incoming user agent and then do your thingie. http://www.browserlist.browser.org/browser_mappings_list_big.html regards Wilbert - Original Message -

Re: [PHP] Help with functions()

2002-11-20 Thread Chris Hewitt
Beauford 2002 wrote: Hi, I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem. For example: testfunction($var1, $var2, $var3, $var4); //the form fills these values.

Re: [PHP] Problem whith query in query

2002-11-20 Thread Marek Kilimajer
you can use temporary tables: CREATE TEMPORARY TABLE tmp_name SELECT SELECT MAX(ii.identifiseringid) AS max_ii FROM identifisering as ii GROUP BY dprosjekt then: SELECT * FROM identifisering as i, tmp WHERE i.identifiseringid='123' AND i=identifiseringid=tmp.max_id; Lars Espelid wrote:

[PHP] Re: PHP Application Framework

2002-11-20 Thread Alexandru COSTIN
Hello, You could check Krysalis, http://www.interakt.ro/products/Krysalis/ It's GPL, and it has a lot of powerful features included, as it's based on XML and XSL. Alexandru Hi all, Does anyone have a recommendation for a stable yet flexible application framework for PHP? Something

[PHP] RE: exploding strings

2002-11-20 Thread COQUET,JULIEN (HP-France,ex1)
heh does the job :) ?php $no=(1+2+3); $number=explode(+, $no); foreach ($number as $key=$value){ if ($value==1) { print 'span style=color:red;'.$value.'/span'; } }

[PHP] Simple Question on Date conversion

2002-11-20 Thread Jack
Dear all Can anyone pls tell me how i can turn number : 10 to Oct? i counting on the month, that's why i won't to convert the result to month! Thx a lot Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] editing .htaccess / .htpasswrd

2002-11-20 Thread Oliver Witt
Hi everyone, I'm looking for a script that enables users of password demanding web sites to change their password, in other words a script, that can write into the .htpsswrd file. Thanks for help, Olli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Simple Question on Date conversion

2002-11-20 Thread John W. Holmes
Dear all Can anyone pls tell me how i can turn number : 10 to Oct? i counting on the month, that's why i won't to convert the result to month! $months = array(1='January',2='February',3='March',...); echo $months[$your_month_number]; You could also use a combo of date() and mktime(). echo

[PHP] Re: isapi mod on iis

2002-11-20 Thread Brian McGarvie
The Internet Guest user needs to have permissions to the foler the script's are located. This should remove the auth request. Chris Edwards [EMAIL PROTECTED] wrote in message 04f901c28ffa$a75867e0$4300a8c0@development">news:04f901c28ffa$a75867e0$4300a8c0@development... is anyone running the

[PHP] flush() issue

2002-11-20 Thread Jock Pereira
Having an issue getting flush to work. Browser version is IE 6 sp1. I am not using mod_gzip on Apache. In the following code sample you can see that I am looping through a mysql result array and using a different include each time. At the end of the foreach loop I am attempting to flush to the

Re: [PHP] flush() issue

2002-11-20 Thread Marek Kilimajer
I don't see an y newlines, try adding some. Is it working with other browsers? Jock Pereira wrote: Having an issue getting flush to work. Browser version is IE 6 sp1. I am not using mod_gzip on Apache. In the following code sample you can see that I am looping through a mysql result array and

[PHP] Pause for user input?

2002-11-20 Thread Larry Brown
Does anyone know of a method to pause during the processing of a script to prompt a user for information and then incorporate the user's response for the remainder of the script? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To

[PHP] manage Form data

2002-11-20 Thread ??????? ?????ta?
I want to sumbit data from a form and then view the data and then send it to the data base...

Re: [PHP] Pause for user input?

2002-11-20 Thread Ernest E Vogelsinger
At 14:42 20.11.2002, Larry Brown spoke out and said: [snip] Does anyone know of a method to pause during the processing of a script to prompt a user for information and then incorporate the user's response for the remainder of the script?

Re: [PHP] manage Form data

2002-11-20 Thread JohnMeyer
At 03:52 PM 11/20/2002 +0200, ??? ?ta? wrote: I want to sumbit data from a form and then view the data and then send it to the data base... Okay, send it to an intermediate page which has a form with hidden values representing all of the data, show the data on the page, and then

Re: [PHP] manage Form data

2002-11-20 Thread ??????? ?????ta?
Can you show me an example? I already tried that but it doesn't work... - Original Message - From: JohnMeyer [EMAIL PROTECTED] To: ??? ?ta? [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 3:55 PM Subject: Re: [PHP] manage Form data At 03:52 PM 11/20/2002

Re: [PHP] manage Form data

2002-11-20 Thread Jason Wong
On Wednesday 20 November 2002 22:06, ??? ?ta? wrote: Can you show me an example? I already tried that but it doesn't work... For an example, try the simple tutorial available on the PHP website. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

[PHP] Unlink

2002-11-20 Thread JohnMeyer
Does unlink work with wildcards e.g unlink(somefile*.*); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Listing a table /Limit

2002-11-20 Thread Jason Wong
On Wednesday 20 November 2002 22:12, Matt Schroebel wrote: I was thinking you'd start at the beginning, displaying row 0 through row 19, and then have a next link, that will show rows 20 through 39, and so on. Read the question again :) That's not what the OP wants. And how would I find out

[PHP] pass file data through forms

2002-11-20 Thread ??????? ?????ta?
Is there any way of submitting a file , pass all the data for it throuhg another form and upload from another form? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New generation of PHP Program, reaction to ASP.NET

2002-11-20 Thread shi ziye
Are you interested in this?! New generation of PHP Program, reaction to ASP.NET WOOP (Web Object Of Php) Have you write PHP program like this ? // begin class TForm extends System_UI_Form { function init() { $this-label1 = new System_UI_Label(label1, $this); $this-button1 = new

[PHP] Stripping HTML tags, but keeping entities...

2002-11-20 Thread David Russell
Hi all I have a text field that users can enter any information into (it is supposed to be a description field) For obvious reasons, I want to strip unfriendly HTML/PHP tags. This I am doing using: strip_tags($_POST['Duplicate'], 'B I P A LI OL UL EM BR TT STRONG BLOCKQUOTE DIV ECODE '); OK,

RE: [PHP] New generation of PHP Program, reaction to ASP.NET

2002-11-20 Thread Jon Haworth
Hi, Are you interested in this?! New generation of PHP Program, reaction to ASP.NET I saw it when you posted it yesterday and tried it out, but it didn't work for me. I imagine this is because I've disabled Javascript. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Pause for user input?

2002-11-20 Thread Chris Shiflett
No. However, I'm sure whatever you are trying to do can be designed as two pages to yield the exact same user experience. Chris --- Larry Brown [EMAIL PROTECTED] wrote: Does anyone know of a method to pause during the processing of a script to prompt a user for information and then

Re: [PHP] catching a robot or spider

2002-11-20 Thread Tom Woody
User agent isn't very useful. Most web spiders can be set to return what ever user agent needed. You are depending on the writers/users of the spiders to follow commonly acceptable practices ie looking for robots.txt and the like. On Tue, 19 Nov 2002 14:54:49 +0100 Wilbert Enserink [EMAIL

Re: [PHP] manual trans-sid?

2002-11-20 Thread Chris Shiflett
If you are creating a socket application, then *you* control when you send output to the browser. So, essentially what you are asking is how to replace the values of the href attributes in some HTML with a modified value that includes a session ID. I would recommend a combination of a regular

Re: [PHP] flush() issue

2002-11-20 Thread @ Edwin
Hello, Andrew Brampton [EMAIL PROTECTED] wrote: Are you outputing each row in a table? IE won't start displaying the table until the /table tag, that might be causing your problem... ...then, CSS to the rescue... :) Try this: table style=table-layout:fixed ... /table HTH, - E --

Re: [PHP] manage Form data

2002-11-20 Thread @ Edwin
Hello, ??? ?ta? [EMAIL PROTECTED] wrote: Can you show me an example? I already tried that but it doesn't work... Please don't get me wrong but... Saying that it doesn't work... doesn't work either. You have to at least help others to help you. Show some codes, error messages, etc. And

Re: [PHP] scrolling data from db

2002-11-20 Thread Support @ Fourthrealm.com
Eddie, I use the attached on a site of mine... works with JavaScript and DIV tags. There are 2 parts to the file - the javascript, and then the HTML code to make it happen. Tweak according to your needs. Peter At 11:00 AM 11/20/2002 -0500, you wrote: I have a large amount of data to present

Re: [PHP] scrolling data from db

2002-11-20 Thread @ Edwin
Hello, Edward Peloke [EMAIL PROTECTED] wrote: I have a large amount of data to present to the user. Currently, I am just putting it in a table and displaying it on the page, if it is more than a page of course the page just scrolls. Is there a way o, without using frames, to put all the

Re: [PHP] Unlink

2002-11-20 Thread Mark Charette
On Wed, 20 Nov 2002, JohnMeyer wrote: Does unlink work with wildcards e.g unlink(somefile*.*); No. unlink() is a thin veneer on the system unlink() call. Wildcard expansion like you have it is done by a shell glob function. You would need to replicate what the shell does - use it as a regular

Re: [PHP] Server-server file copy question

2002-11-20 Thread Ernest E Vogelsinger
At 17:55 20.11.2002, Richard Fox spoke out and said: [snip] Hi, I am using PHP 4.4.2.. I need a function to copy a file from one server to another. The src/dst filenames are relative to the Document Root of the website, but I can build an absolute path

[PHP] DBF files

2002-11-20 Thread Tony Burgess
Hi everyone, Can anyone tell me if and how to access DBF tables using PHP on UNIX. Ideally i want to display data from the tables, but also update the tables and index's etc. all through a web interface. Thank you for any help. -- Tony Burgess -- PHP General Mailing List

Re: [PHP] Re: PHP Application Framework

2002-11-20 Thread Ryan Gallagher
Quoting Alexandru COSTIN [EMAIL PROTECTED]: Hello, You could check Krysalis, http://www.interakt.ro/products/Krysalis/ It's GPL, and it has a lot of powerful features included, as it's based on XML and XSL. Alexandru Hi all, Does anyone have a recommendation for a stable yet

RE: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread John W. Holmes
I have code that says: if($_GET['sc'] != '2' OR '8'){ do this. } if($_GET['sc'] != 2 || $_GET['sc'] != 8) { do this... } You don't need the single quotes if you're comparing integers. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Ryan Gallagher
Quoting Jami [EMAIL PROTECTED]: I have code that says: if($_GET['sc'] != '2' OR '8'){ do this. } but I doesn't work. What do I need to do to get it to work? I have checked operator precendence and all that and am still confused on whether I should be using '||' or 'OR' or

[PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
Sorry to repost this, but I haven't found a solution and it's still nagging me. Maybe some of you can come up with something I can't. Here was my original post: I've made myself an INPUT TYPE=HIDDEN tag that contains in the value attribute a list of comma-delimited numbers. I need to find if a

Re: [PHP] Re: cURL with PHP Help?

2002-11-20 Thread Steve Keller
At 11/20/2002 08:46 AM, you wrote: Have you tried this: http://curl.haxx.se/libcurl/php/examples/ Yeah. That's where you end up from the Sourcefourge site. There's a sample on there for a multi-part post, but I'm confused as to how it works. Would help if you posted some code, or errors or

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Jonathan Wright
Hiya, On Wed, Nov 20, 2002 at 11:24:11AM -0600, Jami wrote: I have code that says: if($_GET['sc'] != '2' OR '8'){ do this. } but I doesn't work. What do I need to do to get it to work? I have checked operator precendence and all that and am still confused on whether I should be

Re: [PHP] Problem whith query in query

2002-11-20 Thread Ryan Gallagher
Quoting Ernest E Vogelsinger [EMAIL PROTECTED]: At 18:29 20.11.2002, Ryan Gallagher said: [snip] SELECT * FROM identifisering as i WHERE i.identifiseringid = ( SELECT MAX(ii.identifiseringid) AS maxIdentifiseringid FROM identifisering as ii

Re: [PHP] Still having ereg migranes

2002-11-20 Thread Marek Kilimajer
first way: if(ereg('([^0-9]|^)'.$your_number.'([^0-9]|$)',$_REQUEST['numbers']) ) second way: $numbers=explode(',',$_REQUEST['numbers']); if(in_array($your_number,$numbers)) Mako Shark wrote: Sorry to repost this, but I haven't found a solution and it's still nagging me. Maybe some of you can

RE: [PHP] Still having ereg migranes

2002-11-20 Thread John W. Holmes
Sorry to repost this, but I haven't found a solution and it's still nagging me. Maybe some of you can come up with something I can't. Here was my original post: I've made myself an INPUT TYPE=HIDDEN tag that contains in the value attribute a list of comma-delimited numbers. I need to find

Re: [PHP] THANK YOU! - How to: If($var != '#' OR '#')

2002-11-20 Thread Jami
Thanks all for the prompt responses. In case someone else searchs on the list, the following code worked: if($_GET['sc'] != '2' AND $_GET['sc'] !='8'){ do this. } Thanks Jason, Jonathan W., John H, Ryan G., and Tony B.! - Original Message - From: Jami [EMAIL PROTECTED] To: PHP

[PHP] interpreting variables containing in another variable

2002-11-20 Thread ROBERT MCPEAK
I've got a variable - $email_body, that contain's other variables. For example, echo $email_body, might look like this: $name, $address, $phone, $blah I want those variables to interpreted with corresponding values set earlier in the script. So, in effect, where name=bob, address=101 east

Re: [PHP] interpreting variables containing in another variable

2002-11-20 Thread Adam Voigt
Not sure what your saying, but like: $email_body = $name . , . $address . , . $phone . , . $blah; ? On Wed, 2002-11-20 at 13:15, ROBERT MCPEAK wrote: I've got a variable - $email_body, that contain's other variables. For example, echo $email_body, might look like this: $name, $address,

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Jason Wong
On Thursday 21 November 2002 01:34, Ryan Gallagher wrote: Try: if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){ /* * Do Foo provided sc is anything but a 2 or 8 */ do foo; } Assuming of course that you meant to exclude cases of 2 or 8. It's a bit hard to tell what your

RE: [PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
first way: if(ereg('([^0-9]|^)'.$your_number.'([^0-9]|$)',$_REQUEST['numbers']) ) second way: $numbers=explode(',',$_REQUEST['numbers']); if(in_array($your_number,$numbers)) Not sure I get this but, again, I can't use $_REQUEST or explode or in_array at this point. The entire process needs to

RE: [PHP] Pause for user input?

2002-11-20 Thread Larry Brown
The idea is to have the script start to load, prompt for a question or more, then use the data from the response to complete loading the page and avoid having to post all of the variables from page to page to get all of the responses back. A lot of the questions are formed based on the answers to

[PHP] web server and permissions

2002-11-20 Thread Dennis Gearon
Please B/CC me, thank you. I am on a site that has all the files in both the /home/sitename/www/ directory and a directory we'll call /home/directory/includes/ with the following permisssions: rwxr-x--r The group I have in /etc/group does not have anyone in it, including me. The server

Re: [PHP] interpreting variables containing in another variable

2002-11-20 Thread Chris Shiflett
--- ROBERT MCPEAK [EMAIL PROTECTED] wrote: I've got a variable - $email_body, that contain's other variables. For example, echo $email_body, might look like this: $name, $address, $phone, $blah I want those variables to interpreted with corresponding values set earlier in the script.

Re: [PHP] interpreting variables containing in anothervariable

2002-11-20 Thread ROBERT MCPEAK
Duh!!! Thanks! Being a newbie hurts sometimes. Chris Shiflett [EMAIL PROTECTED] 11/20/02 01:50PM --- ROBERT MCPEAK [EMAIL PROTECTED] wrote: I've got a variable - $email_body, that contain's other variables. For example, echo $email_body, might look like this: $name, $address, $phone,

[PHP] failded to connect with imap

2002-11-20 Thread Jochen Kächelin
Warning: imap_open(): Couldn't open stream {192.168.0.1:143}INBOX in /www/imap.php on line 4 can't connect: Certificate failure for 192.168.0.1: self signed certificate: /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit [EMAIL PROTECTED] Any suggestions? -- Jochen

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: On Thursday 21 November 2002 01:34, Ryan Gallagher wrote: if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){ /* * Do Foo provided sc is anything but a 2 or 8 */ do foo; } Assuming of course that you meant to exclude cases of 2 or

RE: [PHP] copying tables

2002-11-20 Thread Edward Peloke
I apologize, I meant to add a new message, not respond to the copy tables message. -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 2:30 PM To: PHP Subject: RE: [PHP] copying tables Is anyone using php and iframes? I have a php script

Re: [PHP] Graph Question..

2002-11-20 Thread Jonathan Sharp
Please post code. -js James Hatridge wrote: Hi all,, I d/l'ed a class for graphs last night. When I got the class working instead of a line graph I got the netscape symbol for no picture, ie a broken box. I must have missed something. Could someone give me a clue what I'm doing wrong?

Re: [PHP] Pause for user input?

2002-11-20 Thread @ Edwin
Larry Brown [EMAIL PROTECTED] wrote: The idea is to have the script start to load, prompt for a question or more, then use the data from the response to complete loading the page and avoid having to post all of the variables from page to page to get all of the responses back. A lot of the

RE: [PHP] Pause for user input?

2002-11-20 Thread Larry Brown
I understand that the Javascript will not pause the page from loading; however, it should, like you stated, modify the page and hence change what the client is seeing interactively which could include hiding/revealing different questions based on their input. This should ultimately present a form

[PHP] Parsing an array from a posted form

2002-11-20 Thread Verdon Vaillancourt
Hi All :) I have a form that is being passed to a mail function when submitted. It is working OK, except that I am having trouble with values from arrays such as checkbox lists. For example, I have a list such as: input type=checkbox name=graphicFormat[] value=eps / .eps input type=checkbox

Re: [PHP] Newbie: PHP/MySQL (SELECT)

2002-11-20 Thread Jason Wong
On Thursday 21 November 2002 03:53, Mr. BuNgL3 wrote: Hi... I'm with a little sintax problem... The question is that i have two search fields (titulotxt and cdstxt) and i want to create an mysql condition... i trying: $sql1=($titulotxt) ? titulo like '%.$titulotxt.%':; $sql2=($cdstxt) ?

Re: [PHP] Graph Question..

2002-11-20 Thread Jim Hatridge
On Wednesday 20 November 2002 20:37, Van Andel, Robert wrote: More information would be helpful. Perhaps the code to the page that is causing you trouble (i.e. the one where you are using the class you downloaded yesterday). Perhaps you are missing a key piece there. Robbert van Andel HI

[PHP] Re: Parsing an array from a posted form

2002-11-20 Thread Nick Eby
you can use the implode() function: for ($z=0;$zcount($graphicFormat);$z++) { $graphicFormat = stripslashes($graphicFormat[$z]); } echo implode(, , $graphicFormat); Verdon Vaillancourt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All :) I have a

Re: [PHP] Parsing an array from a posted form

2002-11-20 Thread 1LT John W. Holmes
I have a form that is being passed to a mail function when submitted. It is working OK, except that I am having trouble with values from arrays such as checkbox lists. For example, I have a list such as: input type=checkbox name=graphicFormat[] value=eps / .eps input type=checkbox

Re: [PHP] Graph Question..

2002-11-20 Thread Andrew Brampton
Try going direct to the image's URL, this might show any PHP errors. If that doesn't work, you can request the page via telnet and see if any errors are appearing Andrew - Original Message - From: James Hatridge [EMAIL PROTECTED] To: PHP-GEN [EMAIL PROTECTED] Sent: Wednesday, November 20,

Re: [PHP] Newbie: PHP/MySQL (SELECT)

2002-11-20 Thread DL Neil
On Thursday 21 November 2002 03:53, Mr. BuNgL3 wrote: Hi... I'm with a little sintax problem... The question is that i have two search fields (titulotxt and cdstxt) and i want to create an mysql condition... i trying: $sql1=($titulotxt) ? titulo like '%.$titulotxt.%':;

Re: [PHP] Parsing an array from a posted form

2002-11-20 Thread Verdon Vaillancourt
A sincere thanks to John for the prompt and succinct answer. I've seen many answers from John on this list and am much appreciative of his generosity. Best regards, verdon :) On 11/20/02 3:07 PM, 1LT John W. Holmes [EMAIL PROTECTED] wrote: I have a form that is... ... Which will return a

[PHP] preg_replace question

2002-11-20 Thread electroteque
how could i remove http://www. ot of a url string sing preg_replace ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread electroteque
add to that i'd do this if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) { for me single equals seem to assign the variable with the value double equals seem to check the variable for the value Jonathan Wright [EMAIL PROTECTED] wrote in message

[PHP] Anti Spam software

2002-11-20 Thread electroteque
anyone know of any good anti spam software for linux ?? and maybe be able to monitor it with php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie: PHP/MySQL (SELECT)

2002-11-20 Thread Van Andel, Robert
$sql1 = titulo like '%$titulotxt%' $sql2 = cd like '$cdstxt'; $sql = SELECT * FROM divx WHERE $sql1 AND $sql2 ORDER BY titulo; I think you are getting the error because of the ($titulotxt) ? portion of your sql statements. You really only need the two statements listed above and then put into

Re: [PHP] preg_replace question

2002-11-20 Thread Chris Shiflett
--- electroteque [EMAIL PROTECTED] wrote: how could i remove http://www. ot of a url string using preg_replace? No need to reinvent the wheel for this. Just use parse_url() instead: http://www.php.net/manual/en/function.parse-url.php Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Chris Shiflett
--- electroteque [EMAIL PROTECTED] wrote: if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) { for me single equals seem to assign the variable with the value double equals seem to check the variable for the value A single equals is = not !=. Otherwise, you would be correct. Chris -- PHP

Re: [PHP] preg_replace question

2002-11-20 Thread 1LT John W. Holmes
--- electroteque [EMAIL PROTECTED] wrote: how could i remove http://www. ot of a url string using preg_replace? No need to reinvent the wheel for this. Just use parse_url() instead: http://www.php.net/manual/en/function.parse-url.php Or just str_replace(). No need for regular

RE: [PHP] preg_replace question

2002-11-20 Thread Dan Rossi
looks like it returns www in the host array a bit silly when i need just the bits afterwards to do a gethostbyname -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:41 AM To: electroteque; [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread 1LT John W. Holmes
--- electroteque [EMAIL PROTECTED] wrote: if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) { for me single equals seem to assign the variable with the value double equals seem to check the variable for the value From the, imagine this, Manual: $a != $b Not equal TRUE if $a is not

RE: [PHP] scrolling data from db

2002-11-20 Thread Support @ Fourthrealm.com
Hi Eddie, iFrames do offer a really nice solution, but they are an IE only tag. Although I can't vouch for the latest Netscape, I know that the older versions simply ignore the iFRAME... tag, and leave a blank spot in its place. If you know that your client base will ever only use IE, then go

[PHP] How to unregister a single array item...

2002-11-20 Thread @ Nilaab
Hello, How do I unregister a single array item from an array? For example: session_start() session_register(item); $item['name'] = Some Name; $item['img'] = some_image_name.jpg; $item['desc'] = Some Description; $item['price'] = 400; // Now I want to get rid of the desc array item. // I tried:

Re: [PHP] How to unregister a single array item...

2002-11-20 Thread Nick Eby
@ Nilaab [EMAIL PROTECTED] wrote: Hello, How do I unregister a single array item from an array? For example: session_start() session_register(item); $item['name'] = Some Name; $item['img'] = some_image_name.jpg; $item['desc'] = Some Description; $item['price'] = 400; --snip--

Re: [PHP] interpreting variables containing in another variable

2002-11-20 Thread Ernest E Vogelsinger
At 19:15 20.11.2002, ROBERT MCPEAK said: [snip] I've got a variable - $email_body, that contain's other variables. For example, echo $email_body, might look like this: $name, $address, $phone, $blah I want those variables to interpreted with

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Ernest E Vogelsinger
At 18:24 20.11.2002, Jami said: [snip] I have code that says: if($_GET['sc'] != '2' OR '8'){ do this. } [snip] besides all other good examples, you could also if (in_array($_GET['sc'], array('2','8'))) {

[PHP] script seen on php.net manual

2002-11-20 Thread Pedro Furtado
Hey, http://www.php.net/manual/en/function.mysql-fetch-array.php regarding, jb at stormvision dot com dot na's post (below) i need to output row0=article__2||tipo 1:row1=art2|b|Tipo 2 how can i achieve this? This might be usefull for people that work with lots of rows and want to

Re: [PHP] script seen on php.net manual

2002-11-20 Thread Chris Boget
i need to output row0=article__2||tipo 1:row1=art2|b|Tipo 2 how can i achieve this? I believe you can just use urlencode() and urldecode() on the values. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] preg_replace question

2002-11-20 Thread Dan Rossi
this is fine but it didnt parse in just www.domain.com -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:41 AM To: electroteque; [EMAIL PROTECTED] Subject: Re: [PHP] preg_replace question --- electroteque [EMAIL PROTECTED] wrote: how

Re: [PHP] How to unregister a single array item...

2002-11-20 Thread Nick Eby
Nick Eby [EMAIL PROTECTED] wrote : that will work just fine. think of it this way- the array $item is registered (and maybe unregistered) with the session, but its elements aren't individually registered with the . just register/unregister the array, and otherwise work with the

Re: [PHP] web server and permissions

2002-11-20 Thread Ernest E Vogelsinger
At 19:49 20.11.2002, Dennis Gearon said: [snip] Please B/CC me, thank you. I am on a site that has all the files in both the /home/sitename/www/ directory and a directory we'll call /home/directory/includes/ with the following permisssions:

RE: [PHP] preg_replace question

2002-11-20 Thread Dan Rossi
getting really annoying one url will work where another one wont //$formatted_url = preg_replace(/\b((http(s?):\/\/)|(www\.))\b/i, , $url); //$formatted_url = preg_replace(/\b((http(s?):\/\/)|(www\.))([\w\.]+)([\/\w+\.]+)\b/i, $5, $url); $formatted_url =

RE: [PHP] preg_replace question

2002-11-20 Thread Chris Shiflett
--- Dan Rossi [EMAIL PROTECTED] wrote: some urls will have http://www. some will only have www. some will have :1023 for forced ports and they all will have /directory afterwards i just need domain.com for example :| Out of curiosity, did you not read the replies to your initial question? I

Re: [PHP] Header Location not working

2002-11-20 Thread Baumann Reto
Yes, I have an exit() immediately following header... Could these statements in any way affect the session? Or session update? Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wednesday 20 November 2002 06:36, Baumann Reto wrote: Hi all Does

Re: [PHP] web server and permissions

2002-11-20 Thread Dennis Gearon
Would this prevent other PHP users from including files in my include directory? 11/20/2002 1:45:08 PM, Ernest E Vogelsinger [EMAIL PROTECTED] wrote: At 19:49 20.11.2002, Dennis Gearon said: [snip] Please B/CC me, thank you. I am on a site that has all

[PHP] Session Not Registering on Page it is Set On

2002-11-20 Thread vernon
These pup session are going to drive me nuts! I can't seem to get this session to register on the same page it is set. For instance I load a record, then set a session right after it using: session_register(suckered); $suckered = $row_rouser['ID']; The session is set throughout the site, but

Re: [PHP] Stripping HTML tags, but keeping entities...

2002-11-20 Thread Justin French
on 21/11/02 2:25 AM, David Russell ([EMAIL PROTECTED]) wrote: strip_tags($_POST['Duplicate'], 'B I P A LI OL UL EM BR TT STRONG BLOCKQUOTE DIV ECODE '); OK, so this is cool. I got this list from the Slashdot allowed tags list, which I would assume is ok. Whoa there... NEVER assume because

Re: [PHP] scrolling data from db

2002-11-20 Thread Justin French
Hi, on 21/11/02 3:00 AM, Edward Peloke ([EMAIL PROTECTED]) wrote: I have a large amount of data to present to the user. Currently, I am just putting it in a table and displaying it on the page, if it is more than a page of course the page just scrolls. Is there a way o, without using

RE: [PHP] Graph Question..

2002-11-20 Thread Van Andel, Robert
What I'm wondering is if you are calling the graphic's placing into the page correctly. I believe the class will probably work. I have a page that includes a graph that I generate using mySQL and PHP. This is the code I use to actually display the graphic (not what generates it).

Re: [PHP] scrolling data from db

2002-11-20 Thread Justin French
on 21/11/02 7:56 AM, Support @ Fourthrealm.com ([EMAIL PROTECTED]) wrote: Hi Eddie, iFrames do offer a really nice solution, but they are an IE only tag. they are part of the HTML spec... so, conforming browsers (NN6, NN7, Opera I think, etc) all have iframe support. The real problem is NN

Fw: [PHP] Session Not Registering on Page it is Set On

2002-11-20 Thread Kevin Stone
What exactly are you doing? The code you posted doesn't explain much. -Kevin - Original Message - From: vernon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 4:13 PM Subject: [PHP] Session Not Registering on Page it is Set On These pup session are going to

Re: [PHP] Newbie: php/mysql (Select)

2002-11-20 Thread Ernest E Vogelsinger
At 20:23 20.11.2002, Mr. BuNgL3 said: [snip] Hi... I'm with a little sintax problem... The question is that i have two search fields (titulotxt and cdstxt) and i want to create an mysql condition... i trying: $sql1=($titulotxt) ? titulo like

  1   2   >