Re: [PHP] svg graphics and php : is it possible

2002-07-03 Thread William S.
Perhaps this relates to the original question as an additional feature. What would be the best way to offer SVG content from the main opening page? Since SVG requires a browser that has the approprite plugin or a dedicated browser, is it better to create a hyperlink or maybe have the SVG capabili

[PHP] Re: synchronizing php functions

2002-07-03 Thread Philip MacIver
Well I have a system that people can login to, and I want to produce an array (or something of the sort) that holds who is logged in so that I can monitor it. The problem is that sessions are local to the clients machine so if I tried to put this information in the session then the only informat

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-03 Thread Jesper Brunholm
David E. Weekly wrote: >>IMHO you're better off > > I agree and understand why, but... > >>but yes, if you set register_globals = on then >>you shouldn't need to have retooled your scripts. > > I agree. =) > >>Did you restart your >>webserver after you adjusted php.ini? > > Yes. Full stop/s

RE: [PHP] FW: Help please!

2002-07-03 Thread joakim . andersson
Hi, Maybe you can do something like this (if you have access to GD on the server): /Joakim > -Original Message- > From: Steve Vernon [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 02, 2002 9:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] FW: Help please! > > > Hello, > I hav

[PHP] $this in an XML data handler ... in a class

2002-07-03 Thread Clay Loveless
Here's a brain-bender ... At least it is for me at the moment. : ) When I use an XML parser inside a class, the xml_*_handler functions aren't recognizing "$this->" variables. I can kind of see why ... But would like it to work anyway. : ) Here's an example: class Blah { var $xmlparser;

[PHP] Installation de PHP 4.2.1 with Apache and extension Frontpage 2002

2002-07-03 Thread Claudio Valgoi
Hello, I've recently installed Mandrake v 8.1 on my computer and then successfully compiled and installed PostgreSQL and Apache 1.3.24 and PHP 4.2.1... All that works well... When I installed Frontpage 2002 extensions on the same computer, PhP didn't work any more. I then tried to compile again

[PHP] Program executing in PHP. Please help

2002-07-03 Thread Latex Master
Hello php-general, Dear php list, I've got completely lost in program execution under php. I need to run a command grab it's output for the next processing, So I wrote a script: "; echo $kick_my_ass; echo ""; ?> And I get nothing :(. Script like below: "; echo $kick_my_ass; echo ""; ?> W

[PHP] Submitting Form Data

2002-07-03 Thread Mark Colvin
I have a php script that performs a query and then dynamically builds a section of a page for every row returned. Each section has some fields and three submit buttons. My problem is this. If I make a change to one particular section, how can I submit the form passing only the relevant section dat

[PHP] PHP and COM - Excel

2002-07-03 Thread MindHunter
I am trying to create a Pivot Table with PHP's COM functions. I managed to get the data and charts functions going but the pivot table is tricky. Anyone that managed it before? I am looking for examples, plz. Tx MH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Problem With ora_do

2002-07-03 Thread Grimes, Dean
I'm having a weird problem with ora_do. It works fine as long as I don't have a "WHERE" clause in the query. For example: select * from table_name works just fine but select * from table_name where col_name = value returns nothing. However, if I use ora_open, ora_parse and ora_exec every

[PHP] How do I split an alphabetical list (array) into A-M and N-Z?

2002-07-03 Thread Daevid Vincent
Anyone have a function that will take an alphabetical list of names (in an array already) and split it into two 'chunks' (arrays) A-M and N-Z? So, let's say I have: Abby Road BobbyCraft Darren's doodads Farenheit 456 generic name MyCom.com

[PHP] Simple Example of Passing on a file through a PHP script

2002-07-03 Thread JJ Harrison
I want to show info when my docs are viewed though my stats program. I have decieded the best way would be to put the info into a DB through php file then output the PDF, Excel, Zip or Powerpoint file. Only trouble is I have no Idea how to do this -- JJ Harrison [EMAIL PROTECTED] www.tececo.com

[PHP] Displaying the table records along with check boxes.

2002-07-03 Thread Balaji Ankem
Hi friend, I would like to display the table records along with check boxes for the purpose of selecting particular records or select all and for deleteing them or for other purpose. Anybody have ready made code for this type... Any help would be greatly appreciated. Thanks and Regards Ba

[PHP] Stock Prices

2002-07-03 Thread David Russell
Hi all How would I get recent stock prices in a page? I obviously need to get this from some source. I am looking for local (South African) and international share prices for a portal-type system. What I will probably do (for the sake of speed) is have a cron job periodically fetch the releva

Re: [PHP] Displaying the table records along with check boxes.

2002-07-03 Thread 1LT John W. Holmes
The code to create a check box is: HTH, ---John Holmes... PS: It might help if you actually try to do something yourself and then ask a question. We're not here to feed you code. Anyways, a way you might approach it is to name all of your checkboxes the same, something like Where $id is a u

Re: [PHP] Submitting Form Data

2002-07-03 Thread 1LT John W. Holmes
Put a form around each section, so only the data in the form will be submitted. You can have more than one form on a page, and only the form containing the submit button that's pressed will be sent, the others will be ignored/dropped/whatever... ---John Holmes... - Original Message - Fro

[PHP] revecom + php

2002-07-03 Thread val petruchek
Hi again, php gurus! Does anyone of you have any experience working with revecom rfom php script? Will be grateful for any comments and links to articles of the subject -- Sincerely, val petruchek http://val.zp.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Setting a cookie and redirecting

2002-07-03 Thread Cord Schneider
> No, it just happens to have sent them in the order his browser liked. > > ASP can't do anything "different" from PHP. > > I used to laugh when ASPers asked why PHP had to do all this extra stuff > with cookies and stuff to do sessions. Sigh. :-) > > Some browsers will process the headers in one

RE: [PHP] Displaying the table records along with check boxes.

2002-07-03 Thread Balaji Ankem
Hi John, Thanks for the reply. Here the thing is I already tried and I desparately need urgently, that’s why I mailed to the group. Anyway thanx for u'r suggestion. Rgds Balaji -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 5:56 P

Re: [PHP] How do I split an alphabetical list (array) into A-M and N-Z?

2002-07-03 Thread Jason Wong
On Wednesday 03 July 2002 19:52, Daevid Vincent wrote: > Anyone have a function that will take an alphabetical list of names (in > an array already) and split it into two 'chunks' (arrays) A-M and N-Z? Psuedo-code: loop through array array_shift() if element is A-M add to the A-M array, else

[PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
whats wrong with this. it's getting stuck somewhere function urls_clickable($string) { for($n=0; $n < strlen($string); $n++) { if(strtolower($string[$n]) == 'h') { if(!strcmp("http://";, strtolower($string[$n]) . strtolower($string[$n+1]) . strtolower($string[$n+2]) . strtolower($string[$

RE: [PHP] cURL in an exec() . more

2002-07-03 Thread jay . blanchard
[snip] As a matter of fact, when viewing the source (which should display properly if word wrap is off in Notepad) the line appears to be broken up. I have an idea...write the line to a file then open the file and get the line for exec()...blabbering now, must go... [/snip] I have fixed many thin

Re: [PHP] How do I split an alphabetical list (array) into A-Mand N-Z?

2002-07-03 Thread Martin Clifford
Try using a regular expression to go through each of the array elements, sending to one array if the first letter is [a-mA-M], to another if the first letter is [n-zN-Z]. If you're not searching by first letter in the array elements, and they are comma-delimited name sets, do it that way. HTH

[PHP] Compiling PHP with Java support on a virtual server

2002-07-03 Thread Revathi
Hi all, I have compiled PHP with Java support using the option ./configure --with-prefix="path to lib directory" --with-java="jdk path" on a virtual server. There is no problem with compilation. During compilation it gives Checking for Java Support yes . I made modifications to the php.ini fi

Re: [PHP] Installation de PHP 4.2.1 with Apache and extension Frontpage 2002

2002-07-03 Thread Aaron Gould
If you have Apache installed as an RPM, make sure you have the "apache-devel" RPM installed as well. I remember I had this problem once in RedHat... apxs is included in the devel package if I recall correctly. -- Aaron Gould [EMAIL PROTECTED] Web Developer - Original Message - From: "

Re: [PHP] whats wrong with this function

2002-07-03 Thread 1LT John W. Holmes
Yes, your problem is it doesn't work. HTH, ---John Holmes... PS: Think that's a worthless answer? Well...same for your question... - Original Message - From: "Adrian Murphy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 8:47 AM Subject: [PHP] whats wrong wit

Re: [PHP] whats wrong with this function

2002-07-03 Thread Jason Wong
On Wednesday 03 July 2002 20:47, Adrian Murphy wrote: > whats wrong with this. > it's getting stuck somewhere Stick in some echo statements at strategic points in the loops to find out _where_ it is getting stuck. > function urls_clickable($string) { > for($n=0; $n < strlen($string); $n++) > {

[PHP] Why can't I get imagepstext to work?

2002-07-03 Thread Victor Spång Arthursson
No matter what I try, it doesn't work… I have GD installed and my phpinfo is on this link: Please, someone, help… Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Simple Example of Passing on a file through a PHP script

2002-07-03 Thread joakim . andersson
Hi, Store all files in a 'secret' folder, preferably outside the www-root. Store filename, size, type, date, whatever in your dB. To link to a file, use something like this MyDoc.pdf Then in download.php you update your stats table with the relevant info and then send the file to the user. | do

Re[2]: [PHP] cURL in an exec() . more

2002-07-03 Thread Latex Master
Hello jay, Jay try just to execute php And see what is done. For example i have problems with execution read my e-mail in the list. Wednesday, July 3, 2002, 4:56:39 PM, you wrote: jbnc> [snip] jbnc> As a matter of fact, when viewing the source (which should display properly jbnc> if wor

Re: [PHP] Simple Example of Passing on a file through a PHP script

2002-07-03 Thread 1LT John W. Holmes
> $fd = fopen($filename,'r'); > fpassthru($fd); or readfile($filename); Saves you an fopen call, same result... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[2]: [PHP] cURL in an exec() . more

2002-07-03 Thread Jay Blanchard
[snip] Jay try just to execute php And see what is done. For example i have problems with execution read my e-mail in the list. [/snip] Still not working. I have the script check for the existence of the file and return an error if it is not downloaded. That is the only error I get Thank

[PHP] Re: RegEx question

2002-07-03 Thread Tracker 1
as a preg "/(...)$/" this gives you the last three chars.. -- === Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net =

[PHP] Re: RegEx question

2002-07-03 Thread Tracker 1
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message... > > How can I regex to compare the last three chars of a string to "php"? > > if (substr($foo, -3) == 'php'){ > } > > Oh, wait, you wanted to use RegEx. Sorry, can't help you there. :-) > > Don't use a cannon to swat a fly. probably a good

Re: [PHP] does a form submit from a http page to a https ensure secure data?

2002-07-03 Thread Erik Price
On Tuesday, July 2, 2002, at 09:48 PM, Richard Lynch wrote: > My old ISP had SSL on another server (or at least directory) and > personally > vetted every line of code that went on it. Royal PITA, but more secure. What does "vetted" mean? I didn't see it in the Jargon File so maybe it's OT

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
relax friend.i was just asking - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Adrian Murphy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 2:08 PM Subject: Re: [PHP] whats wrong with this function > Yes, your problem is it doesn't

Re[4]: [PHP] cURL in an exec() . more

2002-07-03 Thread Latex Master
Hello Jay, Let's try it in the different way. create an executable command file. and try to execute it via php it must work. Wednesday, July 3, 2002, 5:20:49 PM, you wrote: JB> [snip] JB> Jay try just to execute php JB> And see what is done. For example i have problems with execution

[PHP] Re: Where do I specify a DSN?

2002-07-03 Thread Tracker 1
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message... > > I'm getting this error message...where does it come from? > > > >Warning: SQL error: [unixODBC][Driver Manager]Data source name not > >found, and no default driver specified, SQL state IM002 in SQLConnect in > >/var/www/html/index.php on

[PHP] sample javascript popup+php - newbie

2002-07-03 Thread adi
hi, I want to make an app with properties: -i have a file1.php with a textbox1 and button1; when i press button1, file2.php is popup-ed. - in file2.php i have textbox2 and button2; when button2 is pressed, file2 is closed, and value of textbox2 is submited to texbox1. There is somewere an sample

RE: Re[4]: [PHP] cURL in an exec() . more

2002-07-03 Thread Jay Blanchard
Trying that now... -Original Message- From: Latex Master [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 8:26 AM To: Jay Blanchard Cc: [EMAIL PROTECTED] Subject: Re[4]: [PHP] cURL in an exec() . more Hello Jay, Let's try it in the different way. create an executable comm

Re: [PHP] Re: blank (OT)

2002-07-03 Thread Scott Fletcher
No problem! Just saw the "www.the-spa.com" link so I thought it was an advertisement. It wasn't until after I submitted did I realize I was in error. FletchSOD "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Scott Fletcher wrote: > > >This is

Re: [PHP] Dealing with XML charsets

2002-07-03 Thread B i g D o g
Peter, What OS are you running this on...if you are on windows then uncomment the php_iconv.dll in your php.ini file and then you can see if you can run the iconv functions. If you are running under unix/linux then you need to compile php with the iconv functions. Example ./configure --with-ic

Re: [PHP] whats wrong with this function

2002-07-03 Thread Stuart Dallas
On Wednesday, July 3, 2002, 1:47:05 PM, "Adrian Murphy" wrote: > whats wrong with this. > it's getting stuck somewhere "Somewhere" isn't very helpful. When asking for help be sure to include as much information as possilble. Laying out your code so the structure can be seen... http://";, strtol

Re: [PHP] Setting a cookie and redirecting

2002-07-03 Thread Erik Price
On Tuesday, July 2, 2002, at 11:10 PM, Justin French wrote: > on 03/07/02 11:54 AM, Richard Lynch ([EMAIL PROTECTED]) wrote: > >> Rule of Thumb: >> If you have to do header("Location: ...") you have a >> design/engineering/organizational problem in your code/pages/site. >> >> I'm sure a zillio

Re: [PHP] $_POST into a formatted string, help!

2002-07-03 Thread Scott Fletcher
Hey, that is new to me! Thanks! FletchSOD "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 01de01c22216$984c5740$6501a8c0@kevin">news:01de01c22216$984c5740$6501a8c0@kevin... > Oh man I hope you don't shoot yourself when you realize how easy this is.. > > foreach ($_POST as $key => $val) > { >

Re[6]: [PHP] cURL in an exec() . more

2002-07-03 Thread Latex Master
Hello Jay, Let us know if it worked Wednesday, July 3, 2002, 5:27:21 PM, you wrote: JB> Trying that now... JB> -Original Message- JB> From: Latex Master [mailto:[EMAIL PROTECTED]] JB> Sent: Wednesday, July 03, 2002 8:26 AM JB> To: Jay Blanchard JB> Cc: [EMAIL PROTECTED] JB> Subject

[PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Jean-Christian Imbeault
I'm writing my first commercial site and of course I am thinking about security. I'm worried about someone using a flaw in my PHP script logic to access information they shouldn't. I've read the PHP books I have and Googled around but can't quite find specific answers to my questions about PHP

[PHP] addslahes and magic quote woes

2002-07-03 Thread Jean-Christian Imbeault
I am trying to make my PHP safe against malicious data user inputs. Reading up on this most people suggest using addslashes(), magic_quotes on and other things like mysql_escape_string(); But I have been running into the problem that I mess up the user's input because I use more then one of th

[PHP] php execution a server side program updated problem please help

2002-07-03 Thread Latex Master
Hello php-general, Hello php-general, Dear php list, I've got completely lost in program execution under php. I need to run a command grab it's output for the next processing, So I wrote a script: "; echo $output; echo ""; ?> And I get nothing :(. Script like below: "; echo $output; echo

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
thnks, i didn't write the function so i've now replaced it with something better. - Original Message - From: "Stuart Dallas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 2:30 PM Subject: Re: [PHP] whats wrong with this function > On Wednesday, July 3, 2002,

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Martin Clifford
Try stripslashes() before addslashes(), to ensure that it doesn't already contain slashes. HTH Martin >>> Jean-Christian Imbeault <[EMAIL PROTECTED]> 07/03/02 09:40AM >>> I am trying to make my PHP safe against malicious data user inputs. Reading up on this most people suggest using addslashe

Re: [PHP] Re: synchronizing php functions

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 04:08 AM, Philip MacIver wrote: > The problem is that sessions are local to the clients machine Huh? > so if I tried to put this information in the session then the only > information that I would get back is the people that > are > logged in on my machine, not

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Jean-Christian Imbeault
Martin Clifford wrote: > Try stripslashes() before addslashes(), to ensure that it doesn't already contain slashes. > > HTH > > Martin But what if the original data contained a slash? I want to keep that slash in the data ... Jc -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Re: $this in an XML data handler ... in a class

2002-07-03 Thread Peter Clarke
"Clay Loveless" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here's a brain-bender ... At least it is for me at the moment. : ) > > When I use an XML parser inside a class, the xml_*_handler functions aren't > recognizing "$this->" variables. I can kind of s

[PHP] PHP in South Africa

2002-07-03 Thread MindHunter
I am looking for PHP programmers in South Africa, specifically in the Gauteng area. Please mail me. Tx Bk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[6]: [PHP] cURL in an exec() . more

2002-07-03 Thread Scott Fletcher
Awww Nut! I post a reply a while ago and probably accidenly delete it instead of sending it. Dang! I hate this MS-Outlook software! Anyway! I"m not going to start over, so I'll be brief! 1) Check the file path, like "/usr/local/bin/curl" instead of "curl" as an example. Sometime environment

Re: [PHP] $_POST into a formatted string, help!

2002-07-03 Thread Erik Price
> Oh man I hope you don't shoot yourself when you realize how easy this > is.. > > foreach ($_POST as $key => $val) > { > $str .= "&$key=$val"; > } > > Then just crop the first char off and there you go. Even easier, though maybe requiring a tiny bit extra memory to deal with the array:

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 09:40 AM, Jean-Christian Imbeault wrote: > I am trying to make my PHP safe against malicious data user inputs. > Reading up on this most people suggest using addslashes(), magic_quotes > on and other things like mysql_escape_string(); > > But I have been running

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Jean-Christian Imbeault
Erik Price wrote: > > Turn off magic_quotes and do addslashes() explicitly every time you do a > database insert. Then make sure you always stripslash() data returned > from a database query. > > magic_quotes is convenient for newbies, but after a while you'll find it > only trips you up, a

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread 1LT John W. Holmes
Just pick one, and use only one. If you have magic_quotes ON, then you don't need addslashes, etc. ---John Holmes... - Original Message - From: "Jean-Christian Imbeault" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 9:40 AM Subject: [PHP] addslahes and magic

Re[2]: [PHP] addslahes and magic quote woes

2002-07-03 Thread Latex Master
Hello Jean-Christian, The answer is NO NO NO. At the beginning you have talked about security. You have to realize that there is no 100% protection against hackers. Using strip/addslashes will help you to filter some user input not all. :) So try to pick one way and go that

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread 1LT John W. Holmes
From: "Jean-Christian Imbeault" <[EMAIL PROTECTED]> > Erik Price wrote: > > > > > > Turn off magic_quotes and do addslashes() explicitly every time you do a > > database insert. Then make sure you always stripslash() data returned > > from a database query. You don't need to strip slashes from d

Re: [PHP] $_POST into a formatted string, help!

2002-07-03 Thread 1LT John W. Holmes
- Original Message - From: "Erik Price" <[EMAIL PROTECTED]> > > foreach ($_POST as $key => $val) > > { > > $str .= "&$key=$val"; > > } Make sure you define $str = ""; before it enters the loop, othewise you'll throw some warnings if your error reporting level is set high. It's because

[PHP] V basic newbie problem

2002-07-03 Thread Duncan Ellwood
I'm not sure if this is the right place for this but I'm just starting out with php and MySQL I have succesfully got a database up and I have managed to populate the first row of the html table with the first row of dynamic content without too much problem. I have used the visual enviroment

RE: [PHP] V basic newbie problem

2002-07-03 Thread Jay Blanchard
Put it in a WHILE loop and RTFM -Original Message- From: Duncan Ellwood [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 9:44 AM To: [EMAIL PROTECTED] Subject: [PHP] V basic newbie problem I'm not sure if this is the right place for this but I'm just starting out with php and M

RE: [PHP] cURL in an exec() . more

2002-07-03 Thread Jay Blanchard
OK, here is where I am (between handling other pre-holiday/long weekend processese here); I have the PHP script create a shell script containing the needed code for the cURL process. Of course the shell script will execute from the command line with me as 'root'. But the exec() that calls the she

Re: [PHP] V basic newbie problem

2002-07-03 Thread Scott Fletcher
Sorry to crash in! One quick question! Does the VB script work on NON-IE browsers? FletchSOD "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 002601c222a0$8d8e7330$8102a8c0@niigziuo4ohhdt">news:002601c222a0$8d8e7330$8102a8c0@niigziuo4ohhdt... > Put it in a WHILE loop and RTFM > > -Origin

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread Bogdan Stancescu
Submitted or filled in? i.e. do you want textbox1 to contain whatever is in textbox2 or do you want the form in file2.php to be submitted to file1.php? The difference is that in the first case no PHP gets to run when button2 is pressed, whereas in the second case file1.php gets to run with the

Re: [PHP] V basic newbie problem

2002-07-03 Thread Ray Hunter
try something like this echo ''; while( $result = mysql_fetch_array( $q ) ) { output here... } echo ''; S RAY HUNTER email: [EMAIL PROTECTED] www: http://www.venticon.com aim: spinebl8d3 - Original Message - From: "Duncan Ellwood" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

RE: [PHP] V basic newbie problem

2002-07-03 Thread Jay Blanchard
[snip] Sorry to crash in! One quick question! Does the VB script work on NON-IE browsers? FletchSOD [/snip] VBscript works on ASP (Active Server Pages) servers...IIS most noteably, but you can get ChiliSOFT ASP for Linux and other *nix boxes. ASP can use VBscript, JSP, PerlScript, and other scr

Re: [PHP] V basic newbie problem

2002-07-03 Thread Julie Meloni
DE> I'm not sure if this is the right place for this but I'm just starting out DE> My problem arises when I want to fill in the subsequent rows of the table DE> with the subesquent rows from the database. How do I create the recordset DE> that will pull the info from the relevant subsequent rows f

[PHP] $_SESSION (turned off, destory??)

2002-07-03 Thread Scott Fletcher
Say that the end-user closed the browser(s) without logging off. The $_SESSION can not be destroyed because the broswer(s) is closed. So, if hte end-user did log off and close the browser(s). How can I destroy the $_SESSION since the session_register() & session_destroy() can not be used with t

Re: [PHP] addslahes and magic quote woes

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 10:21 AM, Jean-Christian Imbeault wrote: > Security question: Is turning off magic_quotes and using > strip/addslashes() a 100% effective solution against malicious user > input? No. Think about what {add|strip}slashes() does. It simply adds slashes to strin

Re: [PHP] V basic newbie problem

2002-07-03 Thread Martin Clifford
while($row = mysql_fetch_array($result_set)) { $field1 = $row['field1']; $field2 = $row['field2']; echo "\n"; echo "$field1\n"; echo "\n"; echo "$field2\n"; echo "\n"; } This will cycle through the rows, adding the values of field1 and field2 to the respective variables, th

Re: [PHP] cURL in an exec() . more

2002-07-03 Thread B i g D o g
Check out setuid and sticky bits for the file permissions. Remember that if you are running php under apache and you try the exec with a command php is running with apaches permissions. So apache needs to be able to run what ever you are trying to run with the exec command. B i g D o g -

[PHP] using xsl:value-of select within form

2002-07-03 Thread William S.
I am able to do this: But would like to do something like this: "/> I know the latter does not work, so how do I correct it? Thank you, -- Bill Amsterdam, NL -- PHP General Mailing List (

Re[2]: [PHP] cURL in an exec() . more

2002-07-03 Thread Latex Master
Hello Jay, That wasn't what i recommended you LOL :). Ok from the beginning PHP executes and writes files with permissions (like userid and groupid) Webserver is running. So what i think will be the best way for you to do. Is to create an executable with the same owner. and then execute it

Re: [PHP] V basic newbie problem

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 10:43 AM, Duncan Ellwood wrote: > My problem arises when I want to fill in the subsequent rows of the > table > with the subesquent rows from the database. How do I create the > recordset > that will pull the info from the relevant subsequent rows for my > colu

Re: [PHP] cURL in an exec() . more

2002-07-03 Thread Scott Fletcher
Ah! I know what you're feeling about Linux. I had that problem using PHP and text editing software (for programming) with Caldera, like ftp timeout, security, file path, etc. It become too much for me, so I junked it and went back to AIX. I haven't tried it on Red Hat but I can easily turned o

Re: [PHP] cURL in an exec() . more

2002-07-03 Thread Jason Wong
On Wednesday 03 July 2002 22:49, Jay Blanchard wrote: > I have the PHP script create a shell script containing the needed code for > the cURL process. Of course the shell script will execute from the command > line with me as 'root'. But the exec() that calls the shell script will not > execute t

RE: Re[2]: [PHP] cURL in an exec() . more

2002-07-03 Thread Jay Blanchard
[snip] Ok from the beginning PHP executes and writes files with permissions (like userid and groupid) Webserver is running. So what i think will be the best way for you to do. Is to create an executable with the same owner. and then execute it. As for /usr/local/bin directory it allows to write in

Re: [PHP] php and apache path...

2002-07-03 Thread Nightshade
Analysis & Solutions wrote: > On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote: >> Analysis & Solutions wrote: >> >> Document root doensn't solve my problem... >> ... snip ... >> Any solution? > > Read and heed what I already said: > >> > Whenever you have a question like this, run p

Re: [PHP] Stock Prices

2002-07-03 Thread Analysis & Solutions
On Fri, Mar 29, 2002 at 03:00:29AM +0200, David Russell wrote: > > How would I get recent stock prices in a page? I obviously need to get > this from some source. > > I am looking for local (South African) and international share prices > for a portal-type system. This may or may not be of so

[PHP] Re: How do I split an alphabetical list (array) into A-M and N-Z?

2002-07-03 Thread Joshua E Minnie
Try looking up in the manual about array_slice (http://us2.php.net/manual/en/function.array-slice.php). -- Joshua E Minnie/CIO [EMAIL PROTECTED] Phone: 616.276.9690 Fax: 616.342.8750 Nextel: 616.862.2847 "Don't work for recognition, but always do work worthy of recognition." "Daevid Vincent" <[E

Re: [PHP] php and apache path...

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 11:08 AM, Nightshade wrote: > Yea,I understood. But my question is: is right that my Document_root > (shown > in phpinfo) is /var/www/html/ and not /var/www/html/mysite? And if isn't > right where I can change this? I'm not sure -- is that the directory that you

[PHP] problem with submit-event script from php.net

2002-07-03 Thread Dave - Technical Support
Hi there, this is my first time posting. I've set up the event calendar script that http://www.php.net uses on their front page. The only problem I'm having is getting the information from the mysql database to the backend.csv file that it uses. Everything is working properly included the submitti

[PHP] Re: Stupid PDF...

2002-07-03 Thread Cord Schneider
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Okay, here's a stumper for the gurus: > > Why does PDF just "stop" on some strings and not print them? > [...snip...] > You can even use "View Source" on the HTML to verify that there are no funky >

Re: Re[2]: [PHP] cURL in an exec() . more

2002-07-03 Thread Scott Fletcher
Bingo! That will work! This is what I do with the modem script. Since there's no PHP function or script for the modem, so I used the C programming that is already written by someone and just use PHP to execute the file. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 002901c222a3$8c2a6f00

Re: [PHP] Security: PHP: how to "harden" PHP scripts?

2002-07-03 Thread Justin French
on 03/07/02 11:36 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > In general how does one go about hardening a PHP script. i.e. making it > as "hacker-proof" as possible. General things like: I think the general answer is "you can't", but you can make it more secure. > - verifying use

Re: [PHP] Re: .htpasswd

2002-07-03 Thread Chris Hewitt
"man htpassswd" shows it can be MD5, crypt or SHA. Chris Richard Lynch wrote: >>Does anyone know what encryption is used on passwords in a .htpasswd file? >> > >I *THINK*: > >OS-dependent... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] sample javascript popup+php - newbie

2002-07-03 Thread adi
filled in - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 5:50 PM Subject: Re: [PHP] sample javascript popup+php - newbie > Submitted or filled in? i.e. do you want textbox1 to contain whatever is > i

[PHP] 15 pieces Puzzle

2002-07-03 Thread Calin Uioreanu
As I started working on this contest and did not finish it, I will put here the code for this, as this code may help somebody http://www.php9.com/index.php/section/articles -- -- Calin Uioreanu PHP Programmer ciao.com AG www.ciao-ag.com Consumer Access Europewide Phone : +49-89-25 55 1707 Fax

[PHP] Another Regex Question (General)

2002-07-03 Thread Martin Clifford
This may sound like a stupid question, but... within a regular expression, are the values in brackets evaluated consecutively, or no? For example: Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can be a number, but it has to follow a letter? Or would you just do [a-zA-Z]

RE: [PHP] V basic newbie problem

2002-07-03 Thread Dan Vande More
DMX is a little shy on descriptions, but you want to use the "Dynamic Table" under the Application Section. I make these 5 times a day. -Original Message- From: Ray Hunter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 8:52 AM To: PHP GEN; Duncan Ellwood Subject: Re: [PHP] V b

Re: [PHP] Stock Prices

2002-07-03 Thread Stuart Dallas
On Wednesday, July 3, 2002, 4:12:02 PM, Analysis & Solutions wrote: > On Fri, Mar 29, 2002 at 03:00:29AM +0200, David Russell wrote: >> >> How would I get recent stock prices in a page? I obviously need to get >> this from some source. >> >> I am looking for local (South African) and internatio

Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 12:00 PM, Martin Clifford wrote: > Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there > can be a number, but it has to follow a letter? Or would you just do > [a-zA-Z][0-9] to do that? That bracketed construction is called a character class.

[PHP] Re [PHP] cURL in an exec() . more. SOLVED

2002-07-03 Thread Jay Blanchard
It's always the smallest things that will get you, I should be slapped (preferably by a good looking woman) :) exec was not broken the permissions don't have to be mucked with ownership and group can be left alone this should be stamped on the forehead of each and every PHP developer USE FU

Re: Re[2]: [PHP] cURL in an exec() . more

2002-07-03 Thread Jason Wong
On Wednesday 03 July 2002 23:08, Jay Blanchard wrote: > {snip] > Try hand writing a script then exec() it from php. > [/snip] > > Tried that, no go. Can we go back to basics? Does: echo shell_exec('ls'); work? If not, are you running in safe-mode? -- Jason Wong -> Gremlins Associates ->

[PHP] Need Help with $_SESSION.

2002-07-03 Thread Scott Fletcher
Have not been successful in making this work for 2 days now. I'm focusing on making the $_SESSION to work on each webpages. The 1st page is the login. The 2nd page represent the rest of the webpages on a secure side after logging in. I could use some help in making this work. The $_SESSION do

[PHP] Re: Re [PHP] cURL in an exec() . more. SOLVED

2002-07-03 Thread Scott Fletcher
Ha ha! Just what I mentioned from above. FULL PATH! :-) FletchSOD "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 003201c222ac$9760ad90$8102a8c0@niigziuo4ohhdt">news:003201c222ac$9760ad90$8102a8c0@niigziuo4ohhdt... > It's always the smallest things that will get you, I should be slap

  1   2   3   >