[PHP] has anyone used cookies with snoopy?

2002-03-15 Thread Underbrush
Hello everyone, Does anyone know how to retrieve a cookie with snoopy, such that I could store it and use it to reinitialize the cookie variable the next time I use snoopy. Or, could I take the cookie off my system and use it to initialize the cookie variable? I desperately need to figure

[PHP] writing data to a file, pointers

2002-03-15 Thread Philip J. Newman
can someone point me in the right direction for writing data to a file. d:/site/file.txt infomation: [DATE] Information Please point me right. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] Deleteing folders containing files...

2002-03-15 Thread Philip Jeffs
Hi, Does anyone know of an 'easy' way to delete folders that contain files and sub-folders? Thanks, Phil - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500

Re: [PHP] writing data to a file, pointers

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Philip J. Newman wrote: can someone point me in the right direction for writing data to a file. d:/site/file.txt infomation: [DATE] Information $information = 'Some information'; $filename = 'd:/site/file.txt'; if ((is_writable($filename) ||

[PHP] Re: Deleteing folders containing files...

2002-03-15 Thread Henrik Hansen
[EMAIL PROTECTED] (Philip Jeffs) wrote: Hi, Does anyone know of an 'easy' way to delete folders that contain files and sub-folders? system(rm -rf folder); else you need to delete all the folders contents and then the foler itself reccursivly. -- Henrik Hansen -- PHP General Mailing

Re: [PHP] Deleteing folders containing files...

2002-03-15 Thread Andrey Hristov
Linux /Unix - $some=`rm -rf your_dir`; Regards, Andrey - Original Message - From: Philip Jeffs [EMAIL PROTECTED] To: PHP LIST [EMAIL PROTECTED] Sent: Friday, March 15, 2002 11:36 AM Subject: [PHP] Deleteing folders containing files... Hi, Does anyone know of an 'easy' way to

[PHP] Reporting the size of a file/directory on the web server. 820420

2002-03-15 Thread Nick Patsaros
I've scoured the PHP manual and I still can't seem to find it. What I'm trying to do is have PHP grab the size of a file or directory (say of a php file) then when that file is displayed, I want it to display the size of the file in the footer of the page. I would also like to have the viewer

Re: [PHP] Reporting the size of a file/directory on the web server. 820420

2002-03-15 Thread Jason Wong
On Friday 15 March 2002 18:32, Nick Patsaros wrote: I've scoured the PHP manual and I still can't seem to find it. What I'm trying to do is have PHP grab the size of a file or directory (say of a php file) then when that file is displayed, I want it to display the size of the file in the

[PHP] Re: Sorting in php

2002-03-15 Thread Luke Welling
Uma Shankari T. wrote: Can anyone please tell me is there any function in php for sorting in which the contents are stored in array Have you seen sort(), arsort(), asort(), ksort(), natsort(), natcasesort(), rsort(), usort(), array_multisort(), or uksort()? Luke Welling -- PHP and

[PHP] Re: What permissions for uploading?

2002-03-15 Thread Luke Welling
Leif K-Brooks wrote: I have a script that allows the user to upload a file. Right now, though, it says permission denied when I try to upload. The permissions for the folder I want to upload to is 755 right now. What should I change it to? Are you checking the permissions on both the

[PHP] Re: Reporting the size of a file/directory on the web server. 820420

2002-03-15 Thread Luke Welling
Nick Patsaros wrote: I've scoured the PHP manual and I still can't seem to find it. What I'm trying to do is have PHP grab the size of a file or directory (say of a php file) then when that file is displayed, I want it to display the size of the file in the footer of the page. I would

[PHP] unable to view .php files in browser

2002-03-15 Thread ngupta
I am using php,mysql,apache combination on a linux machine. I used the INSTALL file available in php-4.0.6.tar to install PHP in static mode. Compilations and Installation go on fine with no errors. But when a test.php script containing: HTML HEAD TITLETesting PHP/TITLE /HEAD BODY ?

RE: [PHP] require() vs include()

2002-03-15 Thread Ford, Mike [LSS]
-Original Message- From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] Sent: 15 March 2002 00:55 Plus, depending on how you are calling the file. Meaning if the file name that you are calling is a static file name or dynamic file name require() and require_once() will include a

[PHP] mail() function

2002-03-15 Thread Piotr Wozniak
Hi, I can't send e-mail by mail() function (PHP 3.0.18, local MTA Postfix). Function succeeds (return code is 1) but no e-mail is delivered and there is no records in mail logs. Variable sendmail_path in php3.ini is rather good: /usr/sbin/sendmail - this is proper link to real executable

Re: [PHP] Deleteing folders containing files...

2002-03-15 Thread Michael Sims
At 09:36 AM 3/15/2002 +, Philip Jeffs wrote: Hi, Does anyone know of an 'easy' way to delete folders that contain files and sub-folders? Here's what I use (use rmdirRf($folderthatcontainsotherstuff)): ? function rmdirRf($file) { if(file_exists($file)) { chmod($file,0777); if

[PHP] array within an array

2002-03-15 Thread Caspar Kennerdale
I have an sql query which calls * rows from a table. Each row is an array of table field values. This is how I understand the heirachy $table_row_array[0] = $field_row_array[] $table_row_array[1] = $field_row_array[] $table_row_array[2] = $field_row_array[] Now $table_row_array is being drawn

Re: [PHP] array within an array

2002-03-15 Thread Jan Rademaker
On Fri, 15 Mar 2002, Caspar Kennerdale wrote: I have an sql query which calls * rows from a table. Each row is an array of table field values. This is how I understand the heirachy $table_row_array[0] = $field_row_array[] $table_row_array[1] = $field_row_array[] $table_row_array[2] =

RE: [PHP] array within an array

2002-03-15 Thread Niklas Lampén
$array[0][1] is how you access multi-dimensional arrays. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: 15. maaliskuuta 2002 15:18 To: [EMAIL PROTECTED] Subject: [PHP] array within an array I have an sql query which calls * rows from a table.

RE: [PHP] array within an array

2002-03-15 Thread Caspar Kennerdale
Thanks all I knew it was something simple, but my brain was in twists. (no change there ha ! ha !) -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 13:24 To: Php-General Subject: RE: [PHP] array within an array $array[0][1] is how you

RE: [PHP] array within an array (one more query)

2002-03-15 Thread Caspar Kennerdale
can you therefore have $array[0][9][2][3] if you had an array within an array within an array within an array. (not sure i'd want to, but you never know) $array[0][1] is how you access multi-dimensional arrays. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL

RE: [PHP] array within an array (one more query)

2002-03-15 Thread Niklas Lampén
Yes. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: 15. maaliskuuta 2002 15:35 To: Php-General Subject: RE: [PHP] array within an array (one more query) can you therefore have $array[0][9][2][3] if you had an array within an array within an array

Re: [PHP] unable to view .php files in browser

2002-03-15 Thread heinisch
At 15.03.2002 17:28, you wrote: I am using php,mysql,apache combination on a linux machine. I used the INSTALL file available in php-4.0.6.tar to install PHP in static mode. Compilations and Installation go on fine with no errors. But when a test.php script containing: ? phpinfo(); ? is

[PHP] multiple variables

2002-03-15 Thread Ralph Jarvis
Hi; An obvious question for some, but I am stumped: I want to use multiple optins in an if statement... if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) What would be the proper syntax for this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] multiple variables

2002-03-15 Thread Christoph Starkmann
Hi! if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) What would be the proper syntax for this? Here: if((user($arbitraryVariable) = 1) and ($arbitraryVariable = 4) and ($arbitraryVariable == round($arbitraryVariable))) In other cases, you'd have to write if((user($arbitraryVariable)==1) or

Re: [PHP] multiple variables

2002-03-15 Thread Andrey Hristov
if (in_array($arbitraryValue,array(1,2,3,4))){ } - Original Message - From: Ralph Jarvis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 15, 2002 4:50 PM Subject: [PHP] multiple variables Hi; An obvious question for some, but I am stumped: I want to use multiple

Re: [PHP] multiple variables

2002-03-15 Thread Edward van Bilderbeek - Bean IT
or use something like this: $array_values = array(1,2,3,4); if (in_array(user($arbitraryVariable), $array_values)) { // do your stuff } Greets, Edward - Original Message - From: Christoph Starkmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 15, 2002 4:11 PM

Re: [PHP] PHP Is Inserting (the same) Database Record Multiple Times In My HTML Output

2002-03-15 Thread Erik Price
On Friday, March 15, 2002, at 12:19 AM, hugh danaher wrote: You're the second one I've seen using do. What do? Is it in the php manual and I missed it? do { ... } while ( ... ); Runs the while loop at least once, regardless of whether or not the while conditional evaluates to TRUE.

Re: [PHP] has anyone used cookies with snoopy?

2002-03-15 Thread Underbrush
I figured it out. Don't know how to retrieve cookies, but I learned how to set them with curl. No need to use Snoopy. Sorry. - Original Message - From: Underbrush To: [EMAIL PROTECTED] Sent: Friday, March 15, 2002 4:24 PM Subject: [PHP] has anyone used cookies with

Re: [PHP] Targetted redirection?

2002-03-15 Thread Analysis Solutions
Hi Folks: Okay, here's what I'm talking about... A sample system. Four files. index.php main page holding the frameset. frameset has two frames. one on left. one on right. left.php navigation menu that goes in the left hand frame right.php content in right hand

Re: [PHP] XML char data parsing

2002-03-15 Thread Thalis A. Kalfigopoulos
If I send just a line of simple text (like The quick brown fox drowned) for XML parsing, why doesn't it call the function which I declare for character data handling? It doesn't even give me an error :-( Is it wrong to have plain text as input for XML parsing? Why, as a matter of fact,

Re: [PHP] Targetted redirection?

2002-03-15 Thread Erik Price
On Friday, March 15, 2002, at 10:27 AM, Analysis Solutions wrote: Now, put all those files on your machine. Hit index.php and you'll see everything normally. Then, uncomment the header function in left.php or right.php and you'll see that page jump out of the frames. But, turn the

[PHP] SERVER INFO

2002-03-15 Thread Dani
Hi all, I appologise if this is off topic but I don't know who to ask. I hope you guys don't mind. Does any body know where I can find information about the steps of setting up a server(LINUX) so that people can find a certain URL address? I want to sent up a small server for myself from home

[PHP] SESSIONS not timing out

2002-03-15 Thread Anson Smith
My I am working on a PHP page that uses sessions. I use $_SESSION['whatever'] to set all my session vars. I can use the session_destroy() and it works fine but if I just close the browser (All Browsers), when I come back to the page the Session is still active. the session.cookie_lifetime is

RE: [PHP] SERVER INFO

2002-03-15 Thread Hunter, Ray
Check out the Linux howto's at http://www.linuxdoc.org/docs.html#howto This will help you set up a server and get online... Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 11:42 AM

php-general Digest 15 Mar 2002 15:56:32 -0000 Issue 1228

2002-03-15 Thread php-general-digest-help
php-general Digest 15 Mar 2002 15:56:32 - Issue 1228 Topics (messages 88619 through 88664): Re: Fetching 1 array from either one of 2 possible columns? 88619 by: Martin Towell mt_rand() 88620 by: Phillip S. Baker 88630 by: David Robley Re: GET values from

[PHP] Populating Dropdown with MYSQL data

2002-03-15 Thread Jeff Dale
I want to have a dropdown list populated with data from my MySql server. Any examples or websites that could help is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML char data parsing

2002-03-15 Thread Analysis Solutions
On Fri, Mar 15, 2002 at 10:34:28AM -0500, Thalis A. Kalfigopoulos wrote: [regarding error checking...] Well, as a matter of fact I do. Good, good. Dan, did you actually run this and got an error? Why, as a matter of fact, yes! :) The error I get is syntax error Enjoy, --Dan --

[PHP] Re: Populating Dropdown with MYSQL data

2002-03-15 Thread Julio Nobrega Trabalhando
select name=somename ?php $sql = SELECT id, name FROM table; $res = mysql_query($sql); while (list($id, $name) = mysql_fetch_array($res)) { echo option value=\$id\$name/option; } ? /select -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal

[PHP] XML parser questions

2002-03-15 Thread Thalis A. Kalfigopoulos
OK, I'm getting a bit confused about the well-formedness checking of expat. Doesn't expat do basic well-formedness checking? If I set empty start/endElement and charData handlers, and I parse: elem1 elem2text /elem1 /elem2 I get an error as expected about mismatched tags. But if I give:

RE: [PHP] Targetted redirection?

2002-03-15 Thread Brinkman, Theodore
OK, If I understand correctly, the following scenario would work? Given: My site is being brought up inside somebody else's (say about.com)frameset. [We'll call this page about.html] Given: I want my main page (index.html) to break out of the frames in the about.html page. Solution: My main

[PHP] Help - Variables

2002-03-15 Thread BUDINSCHI Cosmin
Could smbdy please help me I have a variable with the name $name(=the_name_of_the_variable) and I want to know if $the_name_of_the_variable is set. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help w/passing a search parameter that includes space and ,

2002-03-15 Thread Jack Sasportas
I have never passed a search value with a space or a comma , in it, but here is the first time. What happens is that IE puts in the space and takes the whole value as the parameter and correctly finds the result we are looking for from the search request, but in Netscape it only sees up to where

Re: [PHP] SERVER INFO

2002-03-15 Thread bvr
Hi, Yes, you have to be connected while someone looks at your site. A webserver on a modem would be terribly slow, but possible if you just want to expiriment. If you want to start 'quickly' without too much RTFM, find out what webservers are good and have an installer package for your

[PHP] Re: Help - Variables

2002-03-15 Thread Julio Nobrega Trabalhando
if (isset($var_name)) { echo 'Isset!'; } ? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Budinschi Cosmin [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Re: Help - Variables

2002-03-15 Thread BUDINSCHI Cosmin
On Fri, 15 Mar 2002, Julio Nobrega Trabalhando wrote: :if (isset($var_name)) { :echo 'Isset!'; :} : : ? This I knew ... i don't know the variable's name untill I execute the script. I want to found out if a cookie is set who's name is $var1.$var2 and $var2 is the

Re: [PHP] Targetted redirection?

2002-03-15 Thread Chris Boget
?php # Turning this on will jump this page out of the frames. # header('Window-target: _top'); ? Can you use this only for the predefined variables? _top, _parent, etc? Because it isn't working for me. Perhaps I am misunderstanding something. Here are my sample files: index.php

Re: [PHP] Re: Help - Variables

2002-03-15 Thread bvr
isset($_COOKIE[$var1 . $var2]) isset($HTTP_COOKIE_VARS[$var1 . $var2]) // (for ancient PHP versions) http://www.php.net/manual/en/features.cookies.php or isset(${$var1 . $var2}) http://www.php.net/manual/en/language.variables.variable.php bvr. BUDINSCHI Cosmin wrote: On Fri, 15 Mar 2002,

Re: [PHP] How to access arrays from $GLOBAL?

2002-03-15 Thread bvr
Maybe it makes sense to you like this: $mtxt = $GLOBALS['mtxt']; $mtxt === $GLOBALS['mtxt'] $mtxt[1] === $GLOBALS['mtxt'][1] bvr. hmm.. the '===' operator, now that's weird ;) Because in my mind (which I know is totally wrong in this instance, I'm just explaining for your benefit) using:

Re: [PHP] Re: Help - Variables

2002-03-15 Thread BUDINSCHI Cosmin
On Fri, 15 Mar 2002, bvr wrote: :isset($_COOKIE[$var1 . $var2]) :isset($HTTP_COOKIE_VARS[$var1 . $var2]) // (for ancient PHP versions) : :http://www.php.net/manual/en/features.cookies.php : :or : :isset(${$var1 . $var2}) : :http://www.php.net/manual/en/language.variables.variable.php : :bvr. :

Re: [PHP] array within an array (one more reply)

2002-03-15 Thread bvr
Sorry, replies to really deep threads looks nice in my mail program.. ;)bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Targetted redirection?

2002-03-15 Thread Analysis Solutions
On Fri, Mar 15, 2002 at 11:27:59AM -0500, Brinkman, Theodore wrote: Given: My site is being brought up inside somebody else's (say about.com)frameset. [We'll call this page about.html] Given: I want my main page (index.html) to break out of the frames in the about.html page. Solution:

Re: [PHP] Targetted redirection?

2002-03-15 Thread Analysis Solutions
On Fri, Mar 15, 2002 at 11:03:22AM -0600, Chris Boget wrote: script language=php if( isset( $submit )) { header( Window-target: content ); header( location: right.php ); exit(); } /script The script needs to be in between ?php and ? in order to execute on your server.

Re: [PHP] Targetted redirection?

2002-03-15 Thread Chris Boget
script language=php if( isset( $submit )) { header( Window-target: content ); header( location: right.php ); exit(); } /script The script needs to be in between ?php and ? in order to execute on your server. Browsers don't execute PHP. What you've written is how

Re: [PHP] SERVER INFO

2002-03-15 Thread Oliver Heinisch
At 16.03.2002 01:41, you wrote: Hi all, I appologise if this is off topic but I don't know who to ask. I hope you guys don't mind. Does any body know where I can find information about the steps of setting up a server(LINUX) so that people can find a certain URL address? I want to sent up a

Re: [PHP] Help w/passing a search parameter that includes space and ,

2002-03-15 Thread Jason Wong
On Saturday 16 March 2002 00:38, Jack Sasportas wrote: I have never passed a search value with a space or a comma , in it, but here is the first time. What happens is that IE puts in the space and takes the whole value as the parameter and correctly finds the result we are looking for from

Re: [PHP] Targetted redirection?

2002-03-15 Thread Analysis Solutions
On Fri, Mar 15, 2002 at 12:25:10PM -0500, Analysis Solutions wrote: On Fri, Mar 15, 2002 at 11:03:22AM -0600, Chris Boget wrote: script language=php /script The script needs to be in between ?php and ? in order to execute on your server. Browsers don't execute PHP. What you've

[PHP] Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Daniel Negron/KBE
I have error's enabled in php.ini. I keep getting Undefined variable when I run a script that contains IF or ELSE IF's. Is this normal because the variable hasn't been set at the beginning of the script ? Thank You Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc.

Re: [PHP] SERVER INFO

2002-03-15 Thread Dave Goodrich
Dani, you have so much to learn. There are many issues to be considered when creating a webserver, but all are within your grasp. I suggest a trip to your local bookstore to get a copy of Running Linux. Read every page, every single page. Then you will know the answer to your question, and

[PHP] Variable Variables and Mulitdimensional Arrays

2002-03-15 Thread Charlie Killian
Hi. I want to be able to access a key in a multidimensional array at some depth n without knowing before runtime what the keys are. I thought this might be possible using variable variables. Here's some sample code using variable variables and multidimensional arrays: $y = 'a'; $z = 'b'; $t =

[PHP] write to specific place in file

2002-03-15 Thread John P. Donaldson
How do I write to a specific place in a file instead of just using fputs to append text to the end of the file? Thanks, John __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- PHP General Mailing List

Re: [PHP] write to specific place in file

2002-03-15 Thread Bas Jobsen
First read it, then split and then write it. $fp=fopen($file,r); $content=fread($fp,filesize($file)); fclose($file); $parts=explode($splitsign,$content); $fp=fopen($file,w); fwrite($fp,$parts[0].$insert.$splitsign.$parts[1]); fclose($file); Op vrijdag 15 maart 2002 19:09, schreef John P.

[PHP] Ayuda urgente!!!!

2002-03-15 Thread Raúl Hernández
Gracias amigos de la lista: Necesito instalar el modulo php en solaris 6, pero con la configuracion del manual que esta en la pagina me emite un error, alguien sabe o a tenido experiencia instalando php sobre solaris... Cordialmente, Razl Hernandez S. -- PHP General Mailing List

[PHP] FW: AW: agh - Compile w/php

2002-03-15 Thread Alex Black
hi all, I received this from a guy at SAP regarding a SAPDB compile with php: As you might have guessed, I am still unable to compile --with-sapdb I've entered a bug report with all of the details: http://bugs.php.net/bug.php?id=16100 If anyone has successfully compiled SAPDB with PHP on any

Re: [PHP] Populating Dropdown with MYSQL data

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Jeff Dale wrote: I want to have a dropdown list populated with data from my MySql server. Any examples or websites that could help is appreciated. function outputSingleSelect() // $name = name to give the HTML form element. // $query = MySQL query. Should return 2

[PHP] Re: Help Out A Newbie In Configuring PHP.INI

2002-03-15 Thread Dr. Shim
Uh oh, did I ask this question before? If I did, I'm very sorry. =( David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Note that I'm using the Windows version of PHP. Whenever I use a mail()

[PHP] Passing parameters

2002-03-15 Thread Morten Nielsen
Hi, I have a php file where a make a lookup in a data base. I store the result in a variable call $qid. I then have an include statement of another file where I need the data from $qid. Can anybody tell me how I get the data. Thanks, Morten -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Passing parameters

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Morten Nielsen wrote: I have a php file where a make a lookup in a data base. I store the result in a variable call $qid. I then have an include statement of another file where I need the data from $qid. Can anybody tell me how I get the data. If it was in the global

[PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Charlie Killian
I have error's enabled in php.ini. I keep getting Undefined variable when I run a script that contains IF or ELSE IF's. Is this normal because the variable hasn't been set at the beginning of the script ? Yes. If the variable hasn't been defined previously you'll get a warning: if ( $dd 2)

RE: [PHP] Targetted redirection?

2002-03-15 Thread Robert V. Zwink
Here's a nice link to Netscape.com describing the basics of frames: http://www.netscape.com/eng/mozilla/2.0/relnotes/demo/target.html You can find the predefined variables for use in frames listed, along with a quick reference to the optional HTTP header that can be specified. For your

[PHP] PHP and Java Servlets

2002-03-15 Thread Richard Fox
I have to build a bridge page from my PHP script that does the following: 1. Kick off a Java servlet (in my case running on my Tomcat4 plug-in to Apache) 2. Receive data back from that servlet and continue my PHP script. Does anyone have hard won advice, tips on great articles, examples, etc?

[PHP] Ayuda instalando php

2002-03-15 Thread Raúl Hernández
Auxilio necesito ayuda instalando PHP, me saca el siguiente error. # make gcc -g -O2 -DEAPI -DMOD_PERL -DUSE_EXPAT -O -O2 -G -Kpic -I. -I. -I/usr/apache/include -c language-parser.tab.c -o language-parser.tab.o gcc: unrecognized option `-Kpic' /usr/ccs/bin/as:

[PHP] converting html entities outside of tags

2002-03-15 Thread Alain Dresse
Hi, I want to allow the users of my site to insert text with anchors, bold and italic html tags. I have filtered out all the other tags. I now want to convert the other , , quote, double quote and to html entities. If I use the function htmlspecialchars, it of course also quotes the valid

Re: [PHP] Targetted redirection?

2002-03-15 Thread Chris Boget
Here's a nice link to Netscape.com describing the basics of frames: http://www.netscape.com/eng/mozilla/2.0/relnotes/demo/target.html Ok, I'll have to check it out. For your particular question though I would consider targeting the action of the FROM tag: FORM ACTION=top.php

Re: [PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE?)

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Daniel Negron/KBE wrote: Thank You Charlie. I also found out that I needed to put an symbol infrom of the string. This stopped it from throwing me an error. If($submit) blah blah blah Better yet, use: if (isset($submit)) blah blah blah That explicitly checks to

Re: [PHP] multiple variables

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Ralph Jarvis wrote: An obvious question for some, but I am stumped: I want to use multiple optins in an if statement... if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) What would be the proper syntax for this? Sometimes I find a switch to be the most efficient (and

RE: [PHP] Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

2002-03-15 Thread Dave
I have been sloppy in teh past and just used if($submit) blah blah blah not sure of ramifications, but seems to work unless $submit is false or not set. again, take with grain of salt, other suggestions (especially isset) are much more certain. Dave -Original Message- From: [EMAIL

[PHP] okok

2002-03-15 Thread Raúl Hernández
GRacias lo vo a compilar y les cuento si me funciona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mulitple ini files?

2002-03-15 Thread charlesk
I want to make use of the doc_root settings in the ini file. But I don't want ot have links on my sites like on one site href=/site1/document.php and on another site href=/site2/document.php Is there some way to have different doc_roots based on the domain name or per IIS site? Charles

Re: [PHP] Mulitple ini files?

2002-03-15 Thread charlesk
I have many sites and all are virtual hosts. I would like IIS to specify the home directory, for html, gifs, jpgs... and all of the php files to be somewhere else in the filesystem, specified by the php.ini. Charles -- Original Message -- From:

[PHP] Changing 2 frames ...

2002-03-15 Thread Marcel Besancon
Hi everybody, is it possible to change two frames at one time using a php-script. For example: When I click on a link then the right _and _ the left frame should change to another side. Ist this possible or do I have to use JavaScript instead ??? Any answer can be useful Bye, Marcel --

[PHP] shell_exec()

2002-03-15 Thread Carlos Fernando Scheidecker Antunes
Hello all, Does anyone know if shell_exec waits to have whatever it was passed to be executed before returning to the script? I am asking that because I need to write a script to compact files to a zip and then have it e-mailed to a predefined address. The files it will compact might have a

Re: [PHP] Populating Dropdown with MYSQL data

2002-03-15 Thread Daniel Negron/KBE
also found this. http://www.thickbook.com/extra/tb_loopoption.pdf |+ || [EMAIL PROTECTED] | ||| || 03/15/02 02:39| || PM| |||

Re: [PHP] Changing 2 frames ...

2002-03-15 Thread Justin French
To do it with PHP, you'd have to refresh the entire frameset, with some vars in the URL to load certain pages into the frameset. Yuk. The other solution is Javascript, but of course not everyone will have it, so I wouldn't rely on it for anything mission critical like navigation of the entire

[PHP] Driving me nuts, need one second of your time

2002-03-15 Thread cosmin laslau
? $query = SELECT * from mytable; $result = mysql_db_query(db, $query); while ($myarray = mysql_fetch_array($result)) { $title = $myarray[title]; echo $titlebr; } ? Can someone PLEASE tell me why the coding above gives the following error: Warning: Supplied argument is not a valid MySQL

RE: [PHP] Driving me nuts, need one second of your time

2002-03-15 Thread Darren Gamble
Good day, You get this message because the mysql_db_query statement failed, and that your code didn't check to see that it did or not before proceeding to the next statement. And, this statement fails because you have not even connected to the database yet. At the risk of sounding

Re: [PHP] Driving me nuts, need one second of your time

2002-03-15 Thread Steve Cayford
It looks like your sql query failed, so the result is invalid. Assuming that this is really the whole script, then you're counting on the mysql_db_query function to open a connection to the database db using the default connection values which (according to the manual) are host: localhost,

Re: [PHP] XSLT parsing causes passed by reference error

2002-03-15 Thread Edward Tanguay
Hello Erik, I have this hosted at my ISP. The phpinfo() shows that they have: Linux 2.4.3 PHP Version 4.0.4pl1 Sablotron XSLT support: enabled Which annotations are you refering to? The odd thing is that I have copied the code from two different examples from the web and both give me this

[PHP] new_xmldoc won't work?

2002-03-15 Thread Edward Tanguay
Can anyone shed light on why this code doesn't work? I get: fatal error: Call to undefined function: new_xmldoc() in /home/tanguay/test/testsab2.php on line 4 ? xslt_output_begintransform('tst.xsl'); $doc = new_xmldoc('1.0'); $root = $doc-ad_root('sites'); $site = $root-ne_child('site','');

[PHP] Using Switch to control form action . .

2002-03-15 Thread Andre Dubuc
I'd like to control which php file is called when clicking two buttons on the bottom of a form; one called Add Names, the other Submit I've tried the following with no success: *** form action= switch ($name) { case add:

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Andre Dubuc wrote: I'd like to control which php file is called when clicking two buttons on the bottom of a form; one called Add Names, the other Submit I've tried the following with no success: *** form action= switch

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread Justin French
I haven't had any experience with switch at all, but I do have forms with multiple submit buttons. I've been running things slightly differently: FORM action=rap.php method=post ... input type=submit name=submit value=Add Names input type=submit name=submit value=Submit /FORM Then

Re: [PHP] Mulitple ini files?

2002-03-15 Thread Michael Sims
At 03:59 PM 3/15/2002 -0600, charlesk wrote: I have many sites and all are virtual hosts. I would like IIS to specify the home directory, for html, gifs, jpgs... and all of the php files to be somewhere else in the filesystem, specified by the php.ini. There is a thread archived on Google

[PHP] Issues displaying data from database organizing by category

2002-03-15 Thread Jim
I'm new to PHP so bare with me please. I'm collect data fine from mySQL into an accociative array. I can display it fine. Here's the issue: ** Looks like this: GALLERY 1 Item Name Item Desc GALLERY 2 Item Name Item Desc GALLERY 2 Item Name Item Desc GALLERY 3 Item Name

Re: [PHP] Issues displaying data from database organizing bycategory

2002-03-15 Thread mnc
On 15 Mar 2002, Jim wrote: ** Should look like this GALLERY 1 Item Name Item Desc GALLERY 2 Item Name Item Desc Item Name Item Desc GALLERY 3 Item Name Item Desc I have 2 tables: tblGalleries and tblItems. tblItems has a column (itmGalley_ID) that corresponds

[PHP] Weird?

2002-03-15 Thread jtjohnston
Does anyone have time to run this code? This is definitely weird. Either a Windows or a code problem. If I set: $to_path = c:\\ccl_www\\.$date.ccl_www\\; to: $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; (I add \\) It fails to create c:\ccl_www\20020315\ccl_www, but otherwise will create c

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread Andre Dubuc
Thanks Miguel, I sort of figured I wasn't doing something right. Thanks for setting me straight on switching between html and php. Sort of basic, but I didn't know whether I needed to do that everytime. Sorry for the delay in replying -- just as I received your message, we had company over.

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread Andre Dubuc
Thanks Justin, It wasn't pseudo code -- I just didn't know what I was doing! : I didn't know I had to brace php code with ?php . . . ?. I like your method as well -- I'll give it a try. Thanks for replying, Regards, Andre On Friday 15 March 2002 19:58, you wrote: I haven't had any

[PHP] Re: Help Out A Newbie In Configuring PHP.INI

2002-03-15 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Uh oh, did I ask this question before? If I did, I'm very sorry. =( David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Note that I'm

[PHP] [More] Re: Weird?

2002-03-15 Thread jtjohnston
Miguel, No, You're right I wasn't running E=All. It's a windows machine, so I have all the write priveledges I want. These are the errors I'm getting: Warning: stat failed for c:\ccl_www\MarFriccl_www\ (errno=2 - No such file or directory) in C:\WINDOWS\Bureau\php\microweb\backup4.php

Re: [PHP] shell_exec()

2002-03-15 Thread Jason Wong
On Saturday 16 March 2002 06:21, Carlos Fernando Scheidecker Antunes wrote: Hello all, Does anyone know if shell_exec waits to have whatever it was passed to be executed before returning to the script? I am asking that because I need to write a script to compact files to a zip and then

  1   2   >