[PHP] Looking for modifiable web administration script for MySQL

2002-03-19 Thread Steve Clay
time and just alter existing, well-crafted code and stick this on our secure server. How easy would it be to alter PHPMyAdmin itself? Thanks for any insight.. Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] sessions not so secure..solution?

2002-03-19 Thread Steve Clay
t. That way, worst case scenario the hackers gets a SESSID and heads to checkout first, server restricts real user from accessing (because of different IP). This is my first time coding for a secure server and my first post here as well.. Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP

Re[2]: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Steve Clay
riable for GPG putenv("GNUPGHOME=/home/me/.gnupg"); //execute command $this->error = exec($command); //check error / read in $gpgedfile, unlink the files.. Hope this helps.. Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eating mySQL result rows 1 by 1.. a better way?

2002-03-21 Thread Steve Clay
ore it leaves the mySQL server (and would it be faster)? If it makes any difference the average result row is probably around 40-50 bytes but some of these queries can return up to 850 rows.. Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: RC4Crypt encryption opinions

2002-03-22 Thread Steve Clay
Maxwell, I tried it out. The sample test crashed the PHP 4.0.5 CGI binary everytime on my winNT system. No script has ever /crashed/ the executable before, just might be worth note. Steve Friday, March 22, 2002, 12:45:11 AM, . wrote: > I'm looking for opinions on RC4Crypt --

[PHP] semi-OT: moving PWS to Apache on NT

2002-03-25 Thread Steve Clay
thing good to say about the v2.0 betas? Steve -- [EMAIL PROTECTED] ** http://mrclay.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Code Bulk

2002-03-26 Thread Steve Clay
GS> echo 'Finished'; ?>> I can do one better: ... ?>Finishedhttp://mrclay.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Where is php.ini on Mac OS X?

2002-03-27 Thread Steve Cayford
On mine it's in /usr/local/lib, but I seem to recall discussion earlier about some OSX installations lacking the ini file. -Steve On Tuesday, March 26, 2002, at 04:53 PM, Chuck "PUP" Payne wrote: > Can some one please tell me where php.ini is located on Mac OS X? > >

[PHP] Re: Comparrison

2002-03-27 Thread Steve Clay
IE5.5"; } Users of perfectly good browsers like Mozilla, Opera, and IE5/mac won't be locked out. Steve Wednesday, March 27, 2002, 7:46:12 AM, Ron wrote: R> How would I compare to variables where I would want one variable to equal R> only part or some of the other v

[PHP] Re: Sessions/Cookies and HTTP Auth

2002-03-28 Thread Steve Clay
il. Could be wrong about this though.. Steve Wednesday, March 27, 2002, 10:10:19 PM, David wrote: DM> 3. I am thinking that I should get an error because I presume that DM> session_start() will attempt to set a cookie (which it appears to do). DM> (I tried setcookie() too and the coo

Re: [PHP] running commands as root from a script

2002-03-28 Thread Steve Edberg
x27;t need to be run often so it doesn't impact server performance any. -steve At 09:37 AM 3/28/02 , Ken Nagorski wrote: >Hi there, > >I have a little problem. I need to run a few commands for Courier from a >script. What I have is a php based application that makes it

Re: [PHP] Parsing error

2002-04-01 Thread Steve Cayford
ess you include break statements. e.g. try this: switch ($row) { case 1: { $vignette = $data[$c]; break; } case 2: { $photo = $data[$c]; break; } ... ... ... -Steve On Monday, April 1, 2002, at 10:44 AM, news.php.net wrote: > Hi, >

[PHP] PHP work in Sydney Australia

2002-04-01 Thread Steve Farmer
Hi all, I am looking for a PHP coder based in Sydney, Australia for a couple of weeks work. If you are available and based in Sydney, please email me [EMAIL PROTECTED] Regards Steve Farmer -- - "Minds are like parachutes, they work best

Re: [PHP] session

2002-04-02 Thread Steve Cayford
Try putting session_start() in your retief.php script as well as piet.php. -Steve On Wednesday, April 3, 2002, at 01:06 PM, R. Lindeman wrote: > okay i've posted something before here are my scripts either you tell me > what i do wrong or i'll go beserk > > you can ch

Re: [PHP] Loop, array, life....

2002-04-03 Thread Steve Cayford
On your first email you loop through all the news in the $newsfetch resource. I think you need to then do a mysql_data_seek() call against that to reset it for the next time through the loop. Otherwise you'll just get a null result because you're already at the end of the data.

Re: [PHP] Classes??

2002-04-04 Thread Steve Cayford
Yeah, sure. -Steve On Thursday, April 4, 2002, at 10:42 AM, Gerard Samuel wrote: > Maybe a simple question. > But can one file contain 2 or more classes?? > Thanks > > > -- PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] English/Arabic Mysql problem...

2002-04-04 Thread Steve Cayford
Are you using unicode? I don't know the answer for you - maybe check the mysql site - but I'd be interested in hearing an answer as well if anyone has one. -Steve On Thursday, April 4, 2002, at 12:11 AM, Dhaval Desai wrote: > Hello people, > > I am making a bilingual web

Re: [PHP] objects handling objects

2002-04-04 Thread Steve Cayford
ween passing by reference and by copy, though, or you'll find yourself updating a copy of an object somewhere instead of the original. -Steve Here's some code I was just playing around with: method1(); } function otherMethod2($object) { return $object->method2();

Re: [PHP] objects handling objects

2002-04-04 Thread Steve Cayford
Doh, typo: // this next line would generate a parse error // print("c:a1: " . $c->echo($a)->method1() . "\n"); should read // this next line would generate a parse error // print("c:a1: " . $c->echoMethod($a)->method1() . "\n"); On Thursd

Re: [PHP] Workaround for no cron?

2002-04-07 Thread Steve Werby
time or you just need someone who can do the same via a cron job on one of their boxes. Hope that helps. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: printf

2002-04-10 Thread Steve Fitzgerald
Use number_format() to put a comma between the thousands $foo = 123456789; print number_format($foo); //will print 123,456,789 Ron Allen wrote: > I am looking at how to format output > > Here is what I have. There is a simple currency conversion that I do and > the output is just a string of nu

[PHP] Sessions and Opera

2002-04-10 Thread Steve Fitzgerald
e. IE & NS both print the output as expected, but in Opera all variables are empty. Has anyone got any thoughts/solutions/experiences? regards Steve -- ## login page method="POST"> Enter password: "; print "The val

[PHP] Re: Sessions and Opera

2002-04-10 Thread Steve Fitzgerald
dei? Salvei? Que tal um presentinho? > http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 > > "Steve Fitzgerald" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > While testing a login page with different browse

Re: [PHP] arguments against php / mysql?

2002-04-10 Thread Steve Edberg
with it. And, I think there's some nominal license fee to use it on Windows. Thus endeth my spiel - - steve edberg -- ++ | Steve Edberg [EMAIL PROTECTED] |

[PHP] image dimentions

2002-04-10 Thread Steve Klugherz
Is there anyway to gather image dimentions from a gif or a jpg file? I need to gather this information from user uploaded files and can not trust the user to enter them correctly. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] editors

2002-04-10 Thread Steve Klugherz
Does anyone know of any text editors that understand the syntax of php? I have finally got the company I work for convinced that php is the way to go for the web based portion of our product. I would like to find an editor that does context highlighting (like visual cafe) to keep grumblings to a m

Re: [PHP] image dimentions

2002-04-11 Thread steve bissonnette
I believe you want this, http://www.php.net/manual/en/function.getimagesize.php > on 4/10/02 1:11 AM, Steve Klugherz at [EMAIL PROTECTED] wrote: > Is there anyway to gather image dimentions from a gif or a jpg file? I need > to gather this information from user uploaded file

Re: [PHP] unique ID

2002-04-11 Thread Steve Bissonnette
I personally really like this, Maybe you can customize it as needed - or someone can improve upon it ! PIN9f39f7 $rawuid = md5(uniqid(rand(),1)); $uid = "PIN" . substr($rawuid,0,6); echo $uid; ?> on 4/11/02 3:44 PM, ROBERT MCPEAK at [EMAIL PROTECTED] wrote: > Could somebody

Re: [PHP] Set Global Variables

2002-04-11 Thread Steve Cayford
Keep in mind that there is no common memory space for all the users. Each request is being handled by a different process with its own memory space that's forked off of the original web server. (Assuming apache, I don't know how IIS works). -Steve On Thursday, April 11, 2002, at

RE: [PHP] Set Global Variables

2002-04-11 Thread Steve Edberg
s of variables, very long strings stored there, and hundreds of apache child processes. - steve At 2:52 PM -0400 4/11/02, [EMAIL PROTECTED] wrote: >If I do that, won't the data that I fetch be duplicated in memory for each >user? I'm trying to have just one space in memor

[PHP] 2 newbie questions ;)

2002-04-12 Thread Steve Bradwell
to my echo line? Also I have an anchor tag that is a link to open an Access db. For some reason it opens 2 copies instead of one. i have tried the following: Launch App and Launch App but it seems to want to open two copies anyhow, anyone seen this before? Thanks, Steve.

Re: [PHP] How to sort by 3rd row in an 2d-Array

2002-04-12 Thread Steve Cayford
Or try the usort() function? -Steve On Friday, April 12, 2002, at 12:26 PM, Kevin Stone wrote: > This is a terribly inneficient way of handling your situation but I > believe > it would work. > > // First we're going to make a list of all company v

Re: [PHP] Wanting a better understanding of classes in PHP...

2002-04-12 Thread Steve Cayford
Well, start here probably: http://www.php.net/manual/en/language.oop.php -Steve On Friday, April 12, 2002, at 12:50 PM, Chuck "PUP" Payne wrote: > Hi, I was up on freshmeat and I saw a TON of php classes. I like to > know how > can I use them? And is a class a bit o

[PHP] launching an exe

2002-04-15 Thread Steve Bradwell
Hi everybody, Is there a php function I should use to launch an executable program from a users hard drive instead of just creating a link to it?? Thanks alot, Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie running an exe

2002-04-15 Thread Steve Bradwell
g 2 copies opening when I launch an app from an href. Thanks alot, Steve Junior Software Engineer CompexWaterloo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "What date/time was it 7 hours ago"?

2002-04-15 Thread Steve Cayford
You could convert it to a timestamp using strtotime(), subtract 7*60*60, then convert it back to a string with strftime(). -Steve On Monday, April 15, 2002, at 09:50 AM, Torkil Johnsen wrote: > "What date/time was it 7 hours ago"? > > I'm just trying to make a log us

Re: [PHP] web spider?

2002-04-15 Thread Steve Bissonnette
Ryan, You might want to look into this as a basis for some of your code, http://agent-source.com/sitemapper/ Contains a good ammount of "spidering" code that's broken down into small functions. ( not that I understand half of it ; ) Good luck -- s t e v e b i s s o n n e t t e [EMAIL PROTE

Re: [PHP] array to string

2001-10-19 Thread Steve Werby
m to find the > sure-to-be simple command to do this on php.net or phpbuilder.com, etc. Any > ideas? See implode(). $fcontents_string = implode( '', $fcontents ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing L

Re: [PHP] require & include

2001-10-22 Thread Steve Cayford
true, a require() nested in an if statement will be included regardless. Also check out include_once() and require_once(). -Steve On Monday, October 22, 2001, at 05:15 PM, jtjohnston wrote: > Coverting from perl ... > What's the differencw between require and include? Where, when, wh

Re: [PHP] Re: require & include

2001-10-23 Thread Steve Cayford
So both include() and require() *are* subject to conditional statements in the code? Guess I missed that. Thanks. -Steve On Tuesday, October 23, 2001, at 01:00 AM, Rasmus Lerdorf wrote: > That's outdated. The only difference today is that if a file can't be > included/r

[PHP] Confused object in session variable.

2001-10-25 Thread Steve Cayford
print("From authenticate HTTP_SESSION_VARS['ucAuthoUser']: "); print($HTTP_SESSION_VARS['ucAuthoUser']->getLogin() . "\n"); return; } } showLogin($appName); } } /* more functions and the class de

Re: [PHP] Confused object in session variable.

2001-10-25 Thread Steve Cayford
to figure out what I was doing wrong. Thanks for any suggestions. -Steve On Thursday, October 25, 2001, at 12:07 PM, Steve Cayford wrote: > Well, it's probably me that's confused. I have an authenticate() > function which should start a session and if the user is not logged i

Re: [PHP] function names

2001-10-25 Thread Steve Cayford
d has nothing with the PHPs internal print > function. Hmm. I think you're wrong here. I made this test script: a = "hello"; } function print() { // this is line 10 echo $this->a; } } $obj = new test; $obj->print(); ?> Which gives this: Parse er

Re: [PHP] Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Steve Cayford
I think you want UNIQUE. create table sometable ( somecolumn char(40), someothercolum int, unique somecolumn ) ...something like that. I haven't messed with it much. -Steve On Thursday, October 25, 2001, at 04:31 PM, Jeff Gannaway wrote: > Does anyone know ho

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
o str_repeat( ' ', 10 ). If you wanted to create a space within HTML I'd suggest using " " (some people prefer " "), but if you do that within the body of a text email it should display the actual characters, not the text, so that won't get you the desi

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
started using that instead of   a few months ago b/c I thought it was *more* universal. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
her. I had been using   since '96 and only started using   in the last 2 months because I was under the impression that it was more universally accepted.If you happen to know of a resource describing ascii code standards or differences b/w Mac and PC character sets please let me know on o

Re: [PHP] Re: header("Location:);

2001-10-30 Thread Steve Cayford
On Tuesday, October 30, 2001, at 11:41 AM, Henrik Hansen wrote: > [EMAIL PROTECTED] (Alberto) wrote: > >> Ok, it works fine for me, i can redirection, but I don't want the >> browser to >> load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN >> B.PHP, I >> know i can use include('a

[PHP] date problem

2001-10-30 Thread Steve Tsai
ms to have started after daylight savings time changed. I hope someone has an idea of what's wrong and how to fix it. As for now, I'm adding time() - 3600 * 8 to all my scripts right now. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] Sessions & Header PROBLEM again!

2001-11-02 Thread Steve Cayford
it is set and redirect to page 2, which will redirect to page 3, which will redirect to page 1, etc... Can you get an infinite redirection loop? 5. The form on page 1 includes a hidden count variable, page 2 and page 3 don't. What happens when you run this? -Steve On Friday, November 2,

Re: [PHP] cron or something similar ?

2001-11-03 Thread Steve Werby
ms do this > even when they are hosted at remote sites? Some people just use mailing list programs like majordomo, mailman, smarlist, etc. and send the newsletter out to the recipients manually... -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General

Re: [PHP] passing variables between pages without using url??

2001-11-03 Thread Steve Werby
f the GET method. Then the variables are not displayed in the query string. If you are passing across a series of pages, after the first page you'll want to add the variables you're going to pass to hidden input fields or use session variables which will make the variables available th

Re: [PHP] bcc

2001-11-03 Thread Steve Werby
"Nikola Karović" <[EMAIL PROTECTED]> wrote: > how can i send bcc from my php @mail script. mail( $to, $subject, $message_body, "From: $from_name <$from_address>\nbcc:[EMAIL PROTECTED]" ); -- Steve Werby President, Befriend Internet Services LLC http://www.befr

Re: [PHP] Questions per installing on linux (Php 4)

2001-11-03 Thread Steve Werby
you referenced in your post. It might be a better idea to ask about the PHP install on cobalt-users (go to www.cobalt.com to subscribe, after searching the archives of course) since everyone on that list is running RaQ systems, while my guess is that only a fraction of the people on this list

Re: [PHP] Number_Format Question

2001-11-03 Thread Steve Werby
m_parts[1]; Or if it's always going to be a number b/w 0 and 1 then you could use substr() to get the part you want. You could also use something like ereg_replace(). Someone else may have a solution that's better. -- Steve Werby President, Befriend Internet Services LLC http://ww

Re: [PHP] site last updated

2001-11-03 Thread Steve Werby
"Ryan Christensen" <[EMAIL PROTECTED]> wrote: > You can do this in a per-page basis w/: > > $modified = stat("yourfile.html"); > echo date("l, F dS",$modified[9]); Also see getlastmod() and filemtime(). -- Steve Werby President, Befrie

Re: [PHP] passing variables between pages without using url??

2001-11-03 Thread Steve Werby
lude the PHP code necessary to process form1.php. If that doesn't make sense maybe you can include some code or explain in more detail what you're trying to accomplish and what the problem you're facing is. It's late here so maybe I'm just not thinking clearly. --

Re: [PHP] Access $HTTP_POST_VARS from class member fucntion

2001-11-04 Thread Steve Edberg
#x27;track_vars' on to enable $HTTP_POST_VARS and other $HTTP_xxx_VARS arrays. If that's the case - and you can't upgrade immediately - you need to turn track_vars on in httpd.conf, php.ini, or .htaccess (whatever's appropriate in your setup). Hope that helps - - steve e

[PHP] Re: Apostrophes and Textareas

2001-11-09 Thread Steve Brett
have a look at get_html_translation_table htmlspecialchars() , htmlentities() and get_html_translation_table. these function do all the work for you without reinventing the wheel. Steve "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi the

[PHP] Re: #!/usr/local ignore option?

2001-11-12 Thread Steve Brett
why not just keep the module and drop the #!/usr/local/bin/php at the beginning of each script .. ? I've not heard of an ISP that asked for this b4 ... Steve "Michael Rice" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > H

[PHP] Re: emailing attachments

2001-11-12 Thread Steve Brett
you need: {can't remember the exact syntax but it's the file type you're looking for, opens the file open dialogue so they can choose local file} Steve "Don" <[EMAIL PROTECTED]> wrote in message 004a01c16b33$b43a2c60$4fad2b18@cr993021a">news:004a01c16b3

[PHP] Re: executing another php.script

2001-11-12 Thread Steve Brett
you don't need a sepaerate script. define two functions and then loop through calling the second function. much neater (and easier) Steve "David Tod Sigafoos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am sur

Re: [PHP] php slowdown under apache on win 2000 only under netscape

2001-11-12 Thread Steve Knipping
I ALT-TAB, or mouse click a different window, the Netscape localhost issue resolves itself, the variables POST just fine, and my page displays. This problem does not happen in IE. Very strange. -Steve "Laurence Gordon" <[EMAIL PROTECTED]> wrote: > > Actually I kind of made

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Steve Cayford
Sure sounds like you're hitting this function twice by accident. Are you sure you're only calling it once? That would explain why you only get one output with the die(), but two without it. -Steve On Wednesday, November 14, 2001, at 10:34 AM, Christian Dechery wrote: > I don&#

Re: [PHP] Anyone ever done this - sort a multi-dimensional array

2001-11-15 Thread Steve Cayford
You can roll your own fairly easily: function mycmp($a,$b) { return strcmp($a[1],$b[1]); } usort($array, 'mycmp'); ...something like that at any rate. -Steve On Thursday, November 15, 2001, at 10:07 AM, Richard S. Crawford wrote: > Of the type... > > $array[0

[PHP] PHP with ORACLE 8i/9i

2001-11-16 Thread Steve Haemelinck
Question: I want to build php withd support for ORACLE 8i or 9i. Normally you use the option with-oci=. So far so good. How can I achieve this when the oracle database is running on another server? Thx Haemelinck Steve Haemelinck.be - Developers Unite (Under construction ) http

Re: [PHP] Form's : making me sick!

2001-11-17 Thread Steve Maroney
Thats sounds right becasuse anything between ... can only will be passeed only to one script. Steve On Tue, 13 Nov 2001, George Pitcher wrote: > I don't think that you can nest forms. > > George > > - Original Message - > From: "De Necker Henri" <[

Re: [PHP] query works in mysql, but not from php

2001-11-19 Thread Steve Cayford
You don't need to put in the final semi-colon when running a query from php. Take that out and you should be fine. -Steve On Monday, November 19, 2001, at 04:58 PM, Olav Drageset wrote: > Hi > > $sql = "SELECT user FROM persons WHERE user = '$firstName'

Re: [PHP] floating point exception after php 4 upgrade on raq 2

2001-11-20 Thread Steve Werby
mips processor. Before you do ./configure edit line 105 in the PHP source distro of ext/standard/crypt.c and change it to: php_srand(time(0) * getpid() * (php_combined_lcg() * 1.0)); I've upgraded Apache/PHP/MySQL dozens (maybe hundreds) of times from sourrce on the RaQ1/2 so if you still h

Re: [PHP] MySQL and GROUP BY

2001-11-20 Thread Steve Werby
ness_Name', CONCAT( Last_Name, ', ', First_Name ) ) AS mylist FROM My_Table ORDER BY mylist -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

[PHP] PHP & Oracle9i

2001-11-20 Thread Steve Haemelinck
Is it possible to use Oci-functions with Oracle 9i database ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Conversion number two?

2001-11-20 Thread Steve Werby
perl for us lazy people so i dont have to use > commas and enter every variable name in single quotes? I think you mean PHP not perl, but there is a way. $required = explode( ' ', 'name address phone' ); The code above turns the space separated list into an array. -- Steve Werby

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
be more than one email incoming at the same > time...while theoretically the MTA only passes them one by one to > whatever's next in line (whether it's procmail, or any other type of > program) I don't think you'll have a problem. Each call to the program should run as a se

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
u have other scripts accessing the same files/tables that may run at the same time you're ok. If there are potential conflicts look at explicit LOCKing in the database. FYI, potential problems related to database and file writes are not just a product of piping to a script - the same potential e

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > Steve Werby wrote: > > > Exactly. It sounds like you're doing INSERTs so unless you're doing an > > UPDATE or SELECT that can give unexpected results if another instance of the > > script is

[PHP] PHP Arrays conflicting with Javascript, PLease advise?!?

2001-11-21 Thread Steve Maroney
lto_zipcode].value; }; }; // Done --> Billing Information Name: Address:   City: State: <-- OTHER CODE SNIPPED --> Thank you, Steve Maroney -

Re: [PHP] Installing PHP 4 on a RAQ3

2001-11-25 Thread Steve Werby
nstalled PHP countless times on dozens of Cobalt boxes so it definitely can be done. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: [PHP] Re: failure notice

2001-11-26 Thread Steve Werby
options you need in ./configure. You'll get better bang for your buck searching the archives for cobalt-users and posting there. After all, *everyone* on that list runs Cobalt servers whereas probably only a small percentage do on the PHP list. See archives at marc.theaimsgroup.com and list subs

[PHP] What kind of looping ?

2001-11-27 Thread Steve Maroney
ILE 1 FILE 2 FILE 3 FILE 4 FILE 5 FILE 6 FILE 7 I would image I would use a for loop, but I cant figure it out. Can somone assist me ? Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] What kind of looping ?

2001-11-27 Thread Steve Werby
"Steve Maroney" <[EMAIL PROTECTED]> wrote: > Now $file_list[] has some number a file names. I want print 4 file names > into a row. Each file name has to be in its on cell. > > >FILE 0 FILE 1 FILE 2 FILE 3 >FILE 4 FILE 5 FILE 6 FILE 7 > > >

Re: [PHP] Directory Contents Listing

2001-11-27 Thread Steve Werby
"Deependra B. Tandukar" <[EMAIL PROTECTED]> wrote: > How do I display the directory contents using PHP? See readdir() in the online manual. I'm pretty sure it even has example code you could paste in. -- Steve Werby President, Befriend Internet Services LLC http://www

Re: [PHP] how to transfer a local DB to a DB on Server ?

2001-11-27 Thread Steve Werby
m the source machine to the destination machine using FTP. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Would like to join list...

2001-11-29 Thread Steve Osborne
Can anyone email me directly and tell me how to subscribe to this list? Thanks, Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] in_array error

2001-11-29 Thread Steve Osborne
n ListDiff List and RemoveList are NOT arrays"; } return ($diff); Thanks, Steve Osborne Database Programmer Chinook Multimedia Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] in_array error

2001-11-29 Thread Steve Osborne
I'm using php 4 on my machine, however the server that I am testing on only supports php3 - Original Message - From: "Gerard Onorato" <[EMAIL PROTECTED]> To: "Steve Osborne" <[EMAIL PROTECTED]>; "PHP-General (E-mail)" <[EMAIL PROT

Re: [PHP] Image width??

2001-11-29 Thread Steve Edberg
)? > >Thanks. > -- +----+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http

Re: [PHP] Good host needed

2001-11-29 Thread Steve Werby
the dedicated hosting forum and then posting to that forum with specific questions. With thousands of members and tens of thousands of messages about hosting it's a better place to do your homework. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP Gen

Re: [PHP] why didnt you come watch me on my webcam? you said youwould! w

2001-12-02 Thread Steve Maroney
; > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > Sorry, We're to busy with PHP ! Thank you, S

Re: [PHP] howto run shell script

2001-12-03 Thread Steve Werby
"Danar Prabandaru" <[EMAIL PROTECTED]> wrote: >how do I run a shell script from PHP web interface?? > >assume /path/to/my/script.sh as the path and the owner and group of >this script are belong to apache See exec(), system(), etc. -- Steve Werby

[PHP] Why are slashes automatically stripped from db result?

2001-12-03 Thread Steve Cayford
n off magic quoting. What else would cause this? Thanks for any suggestions. -Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Why are slashes automatically stripped from db result?

2001-12-04 Thread Steve Cayford
ng at first, though. Thanks. -Steve > > Good luck Steve, > Tyler Longren > > - Original Message - > From: "Martin Towell" <[EMAIL PROTECTED]> > To: "'Steve Cayford'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent:

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread Steve Cayford
using PHP, then no. Keep in mind that PHP is only running on the server(*), all the client machine sees is the HTML output from your PHP script. Maybe you could use javascript to do this, but I haven't used javascript much. -Steve (*) Assuming you're using PHP

Re: [PHP] Cannot use a scalar value as an array

2001-12-04 Thread Steve Cayford
row[0]; > $serveur[$i]['connectes'] = (int) ($row[1] / $row[2]); // Error! > $max = max($max, $serveur[$i]['connectes']); > } > How does the operator precedence work in the statement ($row[1] / $row[2]) ? You might try (($row[1]) / ($row[2])) instead,

Re: [PHP] Stuck on array, need a little help.

2001-12-04 Thread Steve Cayford
ey\n"; > } > } > } > Are you looking for something more like this: $modelString = ""; $makeString = ""; foreach($bikes['Road'] as $make => $models) { $makeString .= " " . $make; foreach($models as $model =>

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread Steve Cayford
Ah, well, can't help you there, sorry. -Steve On Tuesday, December 4, 2001, at 09:40 AM, George Pitcher wrote: > Steve, > > Thanks for the response, but it's a server-side 'run' I'm looking for, > not > client-side (they get web access to the db). >

Re: [PHP] Logic

2001-12-04 Thread Steve Werby
entire if statement will evaluate to true. Not what you want. It might be easier to edit and follow your code if you rewrite as: if ( ! in_array( $type, array( 'add', 'edit', 'delete' ) ) ) { } -- Steve Werby President, Befriend Internet Services LLC http://www.befrie

Re: [PHP] Reg ex help-Removing extra blank spaces before HTMLoutput

2001-12-04 Thread Steve Edberg
lly's 'Mastering Regular Expressions'; a worthwhile purchase. -steve At 2:06 AM -0500 12/5/01, Ken wrote: >I want to remove all superfluous blank spaces before I sent my HTML >output, to make the output smaller. > >So I'd like to take $input, replace any number of b

Re: [PHP] md5 decrypt

2001-12-05 Thread Steve Werby
e time it cracked the password (if it did) your user would have likely taken their business elsewhere. On a few servers I manage I run it periodically to check for weak passwords, then I contact the users with weak passwords and ask that they change them. John the Ripper: http://www.openwal

Re: [PHP] Display BLOB Image

2001-12-06 Thread Steve Cayford
This is what I used to do what you're trying: header("Content-Type: image/" . $imagetype); // $imagetype is jpeg or gif header("Content-Length: " . strlen($image)); echo $image; Note that "Type" is capitalized in "Content-Type", and include the &q

Re: [PHP] Finding num of days b/t two dates.

2001-12-07 Thread Steve Cayford
Here's one way to do it by converting dates into timestamps. \n"); print(strftime("date 2 is %b %d, %Y", $date2) . "\n"); print("the difference in seconds is " . $timedif . "\n"); print("the difference in days is " . ($timedif / (60 *

<    4   5   6   7   8   9   10   11   12   13   >