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 v

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) ; $date=$inter[2]."-".$inter[1]."-

[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 anyo

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 "U

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 - Fr

[PHP] Problem with browscap.ini

2002-11-20 Thread Martin Magnusson
I've recently installed php 4.2.3 on Apache 2.0.43. (windows2000) I downloaded a browscap.ini file from GaryKeith.com and copied it to c:\WINNT\system32\browscap.ini In php.ini the value for browscap is set to c:\WINNT\system32\browscap.ini This doesn't work... For example: the variable $HTTP_USER

Re: [PHP] Problem with browscap.ini

2002-11-20 Thread Ernest E Vogelsinger
At 10:09 20.11.2002, Martin Magnusson said: [snip] >I've recently installed php 4.2.3 on Apache 2.0.43. (windows2000) >I downloaded a browscap.ini file from GaryKeith.com and copied it to >c:\WINNT\system32\browscap.ini >In php.ini the value for browscap is s

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. e

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: Hello

Re: Fw: [PHP] Loooooooooonnnnnnnnnnggggggggg

2002-11-20 Thread Marek Kilimajer
Yes, I got it wrong, use strpos instead of strrpos Tristan Carron wrote: yes it does returns the string before the first * Your script returns string before the last * How to inverse that ? - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> Newsgroups: php.general To: "PHP

[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? > > Somethi

Re: [PHP] Problem whith query in query

2002-11-20 Thread Ernest E Vogelsinger
At 04:57 18.11.2002, Lars Espelid said: [snip] >I tought this would work, but it won't: > >SELECT * FROM identifisering as i >WHERE i.identifiseringid=(SELECT MAX(ii.identifiseringid) >FROM identifisering as ii >GROUP BY dprosjekt); > >also tried: > >SELECT *

[PHP] RE: exploding strings

2002-11-20 Thread COQUET,JULIEN (HP-France,ex1)
heh does the job :) $value){ if ($value==1) { print ''.$value.''; } } ?> -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 5:54 AM To: Subject:

[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: http://www.php.net/un

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().

[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] PHP/ASP - ODBC - CHARSET - PROBLEM

2002-11-20 Thread dark rotter
Hello, In ASP i access my MSSQL using ODBC. With PHP i not access the MSSQL using ODBC but all accents of my DB they are shown strangers. //-- example In ASP: Estudo de renegociação/acordo da dívida em andamento na GITER In PHP: Estudo de renegocia‡Æo/acordo da d¡vida em andamento na GITER

[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 u

RE: [PHP] flush() issue

2002-11-20 Thread John W. Holmes
What do the include/EXPORT_*.php files do? ---John Holmes... > -Original Message- > From: Jock Pereira [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 8:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] flush() issue > > Having an issue getting flush to work. Browser version

[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 unsubs

[PHP] apache user authentification problems

2002-11-20 Thread Duncan
Hi, i wrote a php script, which shows a "printer-friendly" version of the current website. However, since the php safe_mode is turned to "on", i had to make use of a workaround to be able to display all users files with this script. Instead of accessing it via files, i use a fsockopen() connecti

[PHP] class query

2002-11-20 Thread Nick Wilson
Hi all, In a php class I'm using I do this: require_once('db/settings.inc'); // just hold db properties class blah { etc But, I have 3 classes that all start the same way that I need to require on a page and I'm getting "cannot redeclare class 'settings'". How can I solve th

[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 have

Re: [PHP] Pause for user input?

2002-11-20 Thread Marek Kilimajer
Cannot be done this way, you need to use 2 pages Larry Brown wrote: 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) 72

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 1

[PHP] Listing a table /Limit

2002-11-20 Thread Marco Bleeker
And how would I find out which portion (row number) the row would be in, that I would like to see in a listing? Hello, how would I go about listing a portion of a MySQL table, without an overall selection criterium? I have a unique index field, but it's a string and not autoincremented (but ma

[PHP] Re: Listing a table /Limit

2002-11-20 Thread Matt Schroebel
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. > -Original Message- > From: Marco Bleeker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 9:06 AM > To: [EMAIL PROTECTED]

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 Integ

[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

Re: [PHP] Unlink

2002-11-20 Thread Jason Wong
On Wednesday 20 November 2002 22:22, JohnMeyer wrote: > Does unlink work with wildcards e.g unlink("somefile*.*"); Try it? And let us know how it goes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet A

Re: [PHP] flush() issue

2002-11-20 Thread Andrew Brampton
Are you outputing each row in a table? IE won't start displaying the table until the tag, that might be causing your problem... Andrew - Original Message - From: "Jock Pereira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 1:28 PM Subject: [PHP] flush() is

Re: [PHP] Listing a table /Limit

2002-11-20 Thread Marek Kilimajer
I don't think this can be done without ordering the selection first. Then you can do it: 1. you need to find out the value your middle row has in the order column, 2. count rows with smaller value in the order column than your middle row, this is its offset 3. now you can (using the offset) selec

[PHP] Re: cURL with PHP Help?

2002-11-20 Thread UberGoober
Have you tried this: http://curl.haxx.se/libcurl/php/examples/ Would help if you posted some code, or errors or something. I've used curl in several PHP applications successfully. Snoopy is actually a really awesome implementation of curl in php: http://sourceforge.net/projects/snoopy/ I replace

[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] Unlink

2002-11-20 Thread Adam Voigt
I personally have not gotten it to work, and ended up using a very, very, well checked system call to /bin/rm verifying over and over that I am locked into the directory where I am erasing the file so I can't do any damage. On Wed, 2002-11-20 at 09:22, JohnMeyer wrote: > Does unlink work with wild

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 System_U

Re: [PHP] class query

2002-11-20 Thread Nick Wilson
* and then Nick Wilson declared > Hi all, > > In a php class I'm using I do this: > > require_once('db/settings.inc'); // just hold db properties Ooops, sorry everyone. Just noticed that one of the classes does *not* use require_once() but require() -- and therein lies the problem ;-) --

[PHP] manual trans-sid?

2002-11-20 Thread Thomas Weber
Hi, does anyone know a way to rewrite url's with the session-tag in a string, without sending the output to a browser? I'm writing some sort of webserver in php wich should, of course, send rewrited urls to its clients via sockets. Thanks a lot, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PRO

[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'], ' '); OK, so this is cool. I got this list from the

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 unsubsc

[PHP] scrolling data from db

2002-11-20 Thread Edward Peloke
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 data from the db in the middle of the page with a scrol

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

2002-11-20 Thread @ Edwin
Hello, (B (B"David Russell" <[EMAIL PROTECTED]> wrote: (B (B...[snip]... (B (B> Strip_tags removes all info after the < sign. Obviously I would like to (B> convert it to a > entity, but how can I do both of these? (B (BHave you tried this? (B (B http://www.php.net/manual/en/function.p

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 incorpo

Re: [PHP] pass file data through forms

2002-11-20 Thread @ Edwin
Hello, "??? ?ta?" <[EMAIL PROTECTED]> wrote: > Is there any way of submitting a file , pass all the data for it throuhg > another form and upload from another form? I'm not sure if I understand your question correctly but you can try using the sample code in the manual for uploading file

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 P

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 expr

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 tag, that might be > causing your problem... ...then, CSS to the rescue... :) Try this: ... HTH, - E -- PHP General Mailing List (http://w

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, et

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 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 to t

Re: [PHP] Pause for user input?

2002-11-20 Thread @ Edwin
Hello, "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 incorporate the user's response for > the remainder of the script? ... in addition to what the others already said, let me just as

Re: [PHP] scrolling data from db

2002-11-20 Thread Marek Kilimajer
There is position css2 property, you might be able to use it Edward Peloke 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

Re: [PHP] catching a robot or spider

2002-11-20 Thread Stuart
On Tue, 19 Nov 2002 14:54:49 +0100 "Wilbert Enserink" <[EMAIL PROTECTED]> wrote: Hi all, does anybody know a way to make a distinction between robots and users? should I use the user agent? Or is this not a safe method. If the visitor is a spider/robot I want to include some script containing ex

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

Re: [PHP] Looking for compiled Windows PHP installation with multistring fts support

2002-11-20 Thread @ Edwin
Hello, "Simon Dedeyne" <[EMAIL PROTECTED]> wrote: > > Sorry, I meant multibyte strings, like when you want to display > Japanese. ...well, then, you can find one here: (Japanese site) http://www.geocities.jp/rui_hirokawa/php/ or, download the file directly: http://www.geocities.jp/rui_hir

[PHP] Server-server file copy question

2002-11-20 Thread Richard Fox
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 name if necessary. I can't use ftp because the ftp ports are closed on these servers. I would like to use

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 regul

Re: [PHP] which PHP debugger?

2002-11-20 Thread Nick Oostveen
Check out DBG, which is the PHP debugger that is used by most of the IDEs out there: http://dd.cron.ru/dbg/ If you want a free, open source, IDE to use with it, check out: http://www.phpedit.com/ At 09:37 AM 11/19/2002 -0500, Adam Voigt wrote: Actually, I belive you can set breakpoints and ste

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 pat

Re: [PHP] Server-server file copy question

2002-11-20 Thread @ Edwin
Hello, "Richard Fox" <[EMAIL PROTECTED]> wrote: > 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 name if necessary. I can't use ftp because the

[PHP] FTP_SITE and FTP_EXEC prob

2002-11-20 Thread António Godinho
Hya, I'm using a script to upload a file, and after I need to chmod it to 755. I upload the file with no prob AND I can chmod using the ftp server with a FTP client. But when I use PHP I get this error: Warning: ftp_site: Unknown SITE command. in /home/to/public_html/CriaPagina.ph

Re: [PHP] Server-server file copy question

2002-11-20 Thread rw
Have you considered using rsync? http://samba.org/rsync Quoting Richard Fox <[EMAIL PROTECTED]>: ### 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

Re: [PHP] Server-server file copy question

2002-11-20 Thread rw
Sorry - nevermind! ### Have you considered using rsync? ### ### http://samba.org/rsync ### ### Quoting Richard Fox <[EMAIL PROTECTED]>: ### ### ### 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

[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 (http://www.php.net/

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 fo

RE: [PHP] manage Form data

2002-11-20 Thread John W. Holmes
> -Original Message- > From: ??? ?ta? [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 20, 2002 8:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] manage Form data > > I want to sumbit data from a form and then view the data and then send it > to the data base... That's awesom

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

2002-11-20 Thread Jami
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 something else... I have tried both of those, as

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, visi

Re: [PHP] Problem whith query in query

2002-11-20 Thread Ryan Gallagher
Quoting Ernest E Vogelsinger <[EMAIL PROTECTED]>: > At 04:57 18.11.2002, Lars Espelid said: > [snip] > >I tought this would work, but it won't: > > > >SELECT * FROM identifisering as i > >WHERE i.identifiseringid=(SELECT MAX(ii.identifiseringid) > >FROM iden

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

2002-11-20 Thread Jason Wong
On Thursday 21 November 2002 01:24, 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 using

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

[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 tag that contains in the value attribute a list of comma-delimited numbers. I need to find if a certain number is in

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 s

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 sho

Re: [PHP] Problem whith query in query

2002-11-20 Thread Ernest E Vogelsinger
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 > ) >GROUP BY dprosjekt > >Now that I look at it, you

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 identifiseri

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 co

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 tag that > contains in the value attribute a list of > comma-delimited numbers. I need to find if a certai

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] 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

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 wh

RE: [PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
Heheh. Maybe I wasn't clear, or maybe I'm missing something. > Well, one way without regex would be to explode() > numbers on a comma and use in_array() to see if > you're value exists. > That should look for your number, preceded by either > the beginning of the string or a comma and followed >

RE: [PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
<> 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 happen in the shell_exec() command, because I'd much rather have that handle the whole shebang than PHP. __ Do you Yahoo!? Yah

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 r

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 s

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, $addre

[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 Kae

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 excl

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

2002-11-20 Thread Ryan Gallagher
Quoting Jason Wong <[EMAIL PROTECTED]>: > 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 yo

RE: [PHP] copying tables

2002-11-20 Thread Edward Peloke
Is anyone using php and iframes? I have a php script "; ?> The script within the frame, auction.php, has buttons that when clicked sends parameters back to this iframe script which calls the auction.php script again with the new parameters. Everything works fine, the only problem is as I cli

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] copying tables

2002-11-20 Thread Jason Wong
On Thursday 21 November 2002 03:34, Edward Peloke wrote: > I apologize, I meant to add a new message, not respond to the copy tables > message. When you want to start a new topic please don't do so by replying to an existing one. Because if you do: - You have

[PHP] Newbie: php/mysql (Select)

2002-11-20 Thread Mr. BuNgL3
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) ? "cds like '$cdstxt'":""; $sql="SELECT * FROM divx WHERE

  1   2   >