[PHP] ill sprintf() behavior w/ HEX type

2002-11-20 Thread Chris Wesley
Using PHP/4.2.2 & Apache/1.3.26 on Linux 2.4.17 I'm trying to format a HEX value into an 8-byte string, that is zero-padded to the left, using sprintf(). Simple enough. $sprintf( "%08x", "fa23d" ); This should return "000fa23d". But it returns "". Since that doesn't work, I'm using thi

Re: [PHP] MY CLIENT

2002-11-20 Thread John Taylor-Johnston
Geez, how old is that one. Been receiving it for at least a year. And here is is, all spammed up and everything! How did that creep in? Troy May wrote: > Sorry, I'm holding out for the 126 million. :) > > -Original Message- > From: GEORGE EMEKA [mailto:[EMAIL PROTECTED]] > Sent: Wednesd

Re: [PHP] Passing Variables from one php doc to another

2002-11-20 Thread Jason Wong
On Thursday 21 November 2002 12:53, Rodrigo de Oliveira Costa wrote: > Hi people, I’m in a lot of trouble, I’m doing a paging for a mySql > database result it was going well until I tried it out. But how did you know it was going well *before* you tried it ;-) > It shows the > right amount of re

RE: [PHP] Opening a file to manipulate it

2002-11-20 Thread Tarsy
Try this: $content = implode('', file('../header.html')); Or if you're running php 4.3.0 or greater: $content = file_get_contents('../header.html'); Can't get much easier than that :) -Mark PS: That was in the user contributed notes Ed mentioned :) - Original message - From: "Troy May

RE: [PHP] Opening a file to manipulate it

2002-11-20 Thread Troy May
Thanks Ed! Yes, another member here told me to use fread(), which is what your link led to if you're not using the CVS version of PHP. (whatever that is) I got it working with this: mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 9:29 PM To: Troy May Cc: [EMAIL PROTECTED] Subject: R

RE: [PHP] MY CLIENT

2002-11-20 Thread Troy May
Sorry, I'm holding out for the 126 million. :) -Original Message- From: GEORGE EMEKA [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 10:18 PM To: [EMAIL PROTECTED] Subject: [PHP] MY CLIENT Importance: High GOLDEN BUSINESS OPPORTUNITY I am an Attorney and

[PHP] MY CLIENT

2002-11-20 Thread GEORGE EMEKA
GOLDEN BUSINESS OPPORTUNITY I am an Attorney and close confidant of MRS. MARYAM ABACHA, the former first lady and wife of the late GEN. SANI ABACHA, the former head of state and commander in chief of the armed forces of the Federal Republic of Nigeria. She (MRS. M. ABACHA), has as

[PHP] Passing Variables from one php doc to another

2002-11-20 Thread Rodrigo de Oliveira Costa
Hi people, I’m in a lot of trouble, I’m doing a paging for a mySql database result it was going well until I tried it out. It shows the right amount of registries and it shows the next page link, but when I click on the next page it says it is missing a variable, it is the one that is sent by the f

[PHP] Add On: Variable passing through a form

2002-11-20 Thread Michael Benbow
Sorry, but I forgot to say the variables froming from part 2 to part 3 can be anything between 1 and 30 or any combination thereof. will be no good here as it is too hard to pre-distringuish which variable names will be transferred Thanks Michael Benbow wrote: Hi, I currently have a page d

Re: [PHP] Newbie: nested include and object in session

2002-11-20 Thread Jonathan Sharp
1. see php.net/include_once 2. Yes $_SESSION['foo'] = new foo(); $myFoo = &$_SESSION['foo']; $myFoo->var = 123; /* page2.php */ $myFoo = &$_SESSION['foo']; echo $myFoo->var; -js Michael Wai wrote: > Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to > get some help.

[PHP] Newbie: nested include and object in session

2002-11-20 Thread Michael Wai
Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to get some help. 1. How to solve the problem of nested include? That's mean A include B and B include C. 2. Can I save the object in session? Thanks for your great help!! Regards, Michael -- PHP General Mailing List (h

RE: [PHP] Variable passing through a form

2002-11-20 Thread Peter Houchin
at a guess would say have some hidden inputs on your form that echo the var's pass from part 2 that way when your form is submitted in part 3 it gets sent along with the new stuff > -Original Message- > From: Michael Benbow [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 21 November 2002 2:24

[PHP] Variable passing through a form

2002-11-20 Thread Michael Benbow
Hi, I currently have a page divided into three areas, two of which are iframes. The user selects a component out of part 1, which decides what is shown in part 2. When something is clicked in part 2 the information updates in the second iframe, or part 3. This is all working fine through $P

[PHP] Session not Registering

2002-11-20 Thread Stephen
I have a PHP script that logs someone in then takes them to another page indicating their online status. However, when I try echoing out the contents of the session variable, it says this:       Notice: Undefined variable: _SESSION in c:\program files\apache group\apache\htdocs\checker\membe

Re: [PHP] Reading part of a file

2002-11-20 Thread Stephen
That's what my alternative was if there wasn't a way to do it in PHP with some special leet attack. :-) Thanks! - Original Message - From: "Matt" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 9:27 PM Subject: R

[PHP] Animated GIF Help!

2002-11-20 Thread Heo, Jungsu
Hello~. I made a PHP script which resize GIF Image. But, Animated GIF don't Animate ;-( Manual says 'use imagecolortransparent() to format GIF89'. But, I don't know how to use imagecolortransparent() ... Somebody Help me~ My code likes follows # cut here #

Re: [PHP] Reading part of a file

2002-11-20 Thread Matt
> From: "Stephen" <[EMAIL PROTECTED]> > Cc: "PHP List" <[EMAIL PROTECTED]> > Sent: Wednesday, November 20, 2002 8:52 PM > Subject: Re: [PHP] Reading part of a file > What I'm doing is having a PHP part, let's say that it's a calculator that > adds module, that does the adding. The second part of

Re: [PHP] Reading part of a file

2002-11-20 Thread Stephen
What I'm doing is having a PHP part, let's say that it's a calculator that adds module, that does the adding. The second part of the file is the form that the user uses to put in the numbers. That's what I want to do... - Original Message - From: "Matt" <[EMAIL PROTECTED]> To: "Stephen" <

Re: [PHP] scrolling data from db

2002-11-20 Thread Support @ Fourthrealm.com
Justin, Creative thinking to a smart solution. I will keep that in mind for future sites. Peter At 10:35 AM 11/21/2002 +1100, Justin French wrote: > If you know that your client base will ever only use IE, then go for > it. Otherwise, you'll have to avoid the iframe. That sounds a little hars

[PHP] how does sql.safe_mode work?

2002-11-20 Thread fantomas
Hello, reading manual did not help me answering this question. Where does PHP get the correst host/user/password when sql.safe_mode is on? -- Matus "fantomas" Uhlar, [EMAIL PROTECTED] ; http://www.fantomas.sk/ Warning: I don't wish to receive spam to this address. Varovanie: Nezelam si na tu

Re: [PHP] Anti Spam software

2002-11-20 Thread Alister
On Thu, 21 Nov 2002 07:26:34 +1100 "electroteque" <[EMAIL PROTECTED]> wrote: > anyone know of any good anti spam software for linux ?? and maybe be > able to monitor it with php ? SpamAsassin. You could probably set the spam to be fed to a PHP script as well, but I just throw it all to a text f

Re: [PHP] Help with functions()

2002-11-20 Thread Jason Sheets
You don't need the () around print. print testfunction($var1, $var2, $var3, $var4); Jason On Wed, 2002-11-20 at 17:48, Tracy Finifter Rotton wrote: > Try: > > $meat = testfunction ($var1, $var2, $var3, $var4); > echo $meat; > > > Or, alternatively, > > print (testfunction ($var1, $var2, $va

[PHP] force SQL user/host/password in sql.safe_mode

2002-11-20 Thread fantomas
Hello, working by an ISP, I'd like to force my users to use given databases - force the hostname, user, password and database too. I thought I can do that with defining "sql.safe_mode On" but as it seems now, it is not possible to do this. Any idea about how to do it? -- Matus "fantomas" Uhla

Re: [PHP] Help with functions()

2002-11-20 Thread Tracy Finifter Rotton
Try: $meat = testfunction ($var1, $var2, $var3, $var4); echo $meat; Or, alternatively, print (testfunction ($var1, $var2, $var3, $var4)); hope this helps. --t On 11/20/02 8:40 PM, "Beauford 2002" <[EMAIL PROTECTED]> wrote: > Hi, > > I have form that a user would input information and that

[PHP] Reading part of a file

2002-11-20 Thread Stephen
I'm making a module system. I need to make the actual module then a form to go along with it. The only way I can think of doing this is makign a file and then sectioning the file so that the first part is read and put somewhere on a page them the other part is put on the same page later on or on

Re: [PHP] Pause for user input?

2002-11-20 Thread Jason Sheets
In CLI you can use readline See the readline section in the PHP manual at http://www.php.net/manual/en Jason On Wed, 2002-11-20 at 06:42, 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'

[PHP] A very powful tool

2002-11-20 Thread internet
-- Virus Warning Message (on lakdiva) Policy.scr is removed from here because it contains a virus. -

Re: [PHP] web server and permissions

2002-11-20 Thread Ernest E Vogelsinger
At 23:37 20.11.2002, Dennis Gearon said: [snip] >Would this prevent other PHP users from including files in my include >directory? [snip] No - even if _they_ cannot read your include files, they add the include() dir

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 '%".$tit

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 go

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

Re: [PHP] copying tables

2002-11-20 Thread Justin French
Hi, I don't have the answer, but when that happens, the first thing I do is dig around in phpMyAdmin(.org)... it's a web based GUI for MySQL, and most of the time, when you do something (like copy a table), it shows you the query used to do it... then you just need to copy it, and integrate it int

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). ImageJPEG($pic

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

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'], ' > '); > > 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 someone else does something that it'

[PHP] Re: [PHP-QA] Newbie Issue blank result for .php correct displayfor .html version

2002-11-20 Thread Dane Barber
Thank you :) From: Ray Hunter <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "Easystreet.com" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP-QA] Newbie Issue blank result for .php correct displayfor .html version Date: 19 Nov 2002 18:18:47 -0700 This is really not the lis

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

Re: [PHP] preg_replace question

2002-11-20 Thread 1LT John W. Holmes
> thats the thing the urls should be able to parse http:// or www or both and > i have to unfortunatly clean up a forced port and directory in the url > aswell for gethostname to work Well, your original question should of said that and we wouldn't be wasting time. preg_match("%\.([^.]+\.[a-z]+)%

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 h

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

Re: [PHP] Header Location not working

2002-11-20 Thread Baumann Reto
This does work... No problem at all... The BIG problem is that it has to have something to do with the environment, as the error is not always there. Only if a certain combination of POST/GET request and or browsers as well as session operations occur. Bur figuring out a certain logic is nearly i

Re: [PHP] Header Location not working

2002-11-20 Thread Baumann Reto
It's mainly MSIE 5.0 for MacOS or MSIE 5.5 for Win9x "Bigdog" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What browsers are having the problems? > > On Tue, 2002-11-19 at 15:36, Baumann Reto wrote: > > Hi all > > > > Does somebody know if there is a potentia

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?

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 = ere

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

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

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

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

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

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')

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 cor

RE: [PHP] preg_replace question

2002-11-20 Thread Dan Rossi
thats the thing the urls should be able to parse http:// or www or both and i have to unfortunatly clean up a forced port and directory in the url aswell for gethostname to work -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 7:48 AM

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'] = 40

[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

[PHP] Sectioning a File

2002-11-20 Thread Stephen
I'm making a module system. I need to make the actual module then a form to go along with it. The only way I can think of doing this is makign a file and then sectioning the file so that the first part is read and put somewhere on a page them the other part is put on the same page later on or

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 tag, and leave a blank spot in its place. If you know that your client base will ever only use IE, then go for it.

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

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

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 regula

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

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/)

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 in

[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] 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 20021120184141.GA12806@chef">news:20021120184141.G

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

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

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: > > .eps > .jpg > .tif > .gif > .png > .psd > .bmp > other > > I am using somethi

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

2002-11-20 Thread Nick Eby
you can use the implode() function: for ($z=0;$z wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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.

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

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=(

[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: .eps .jpg .tif .gif .png .psd .bmp other I am using something like: for (

[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

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

RE: [PHP] Graph Question..

2002-11-20 Thread Van Andel, Robert
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 -Original Message- From: James Hatridge [mailto:[EMAIL PROT

[PHP] Re: [PHP-DEV] PHP/MySQL memory leak?

2002-11-20 Thread Steven Roussey
If you can, use PHP 4.0.6 for server processing like that. It is the last version that worked in our experience. A script using 4.0.6 can run for months for us. Anything newer will die after a few hours/days. Not sure where the problem is. May not be MySQL extension. Could be anywhere. Unless you

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 o

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

[PHP] Graph Question..

2002-11-20 Thread James Hatridge
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? Thanks JIM -- Jim Hatridge Linux User #88484

[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

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

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 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 Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > What I am trying to do is to copy a mysql table to a new table name > in a PHP script. An SQL statement similar to this might be what you are looking for: create table tmp_foo as select * from foo I believe this will fail to create any keys, indece

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

[PHP] copying tables

2002-11-20 Thread Steve Buehler
Using PHP and MySQL. I have looked and can't find the answer to this problem. What I am trying to do is to copy a mysql table to a new table name in a PHP script. The reason for this is to keep the original table the way it is and editing the copy. Now, I know that I can go through a loop rea

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

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

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

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

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

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

  1   2   >