[PHP] Re: PHP command for issuing UNIX command???

2001-12-14 Thread Scott Fletcher
Wait a minute! I checked the Apache Error Log and it said file access permission do not allow the specified action. It can use the "cp" command and the original file. But it can not create the new file as result of hte copy command. Why is that? What are the way around? Than

[PHP] Re: PHP command for issuing UNIX command???

2001-12-14 Thread Scott Fletcher
]: -rwxrwxrwx: not found. -- clip -- Anyone know what it meant and what should I do? Thanks, Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Wait a minute! I checked the Apache Error Log and it said file access &g

[PHP] Re: PHP command for issuing UNIX command???

2001-12-14 Thread Scott Fletcher
Found the problem! It's not hte file permission for those files you try to work with. You have to go up one directory and set the file permission of hte folder where those files are in and Viola! Weird? Isn't it? Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote i

[PHP] Function to parse the data from Integer to String

2001-12-14 Thread Scott Fletcher
e variable. I just want a one time timestamp, so I would need to convert it to a string. So what's the php function for converting it to a string? Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] PHP module for modem???

2001-12-18 Thread Scott Fletcher
, Scott -- 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] PHP module for modem???

2001-12-18 Thread Scott Fletcher
What application would I need to use this. In this case, no appication. Just writting the PHP code on the webpage that would work with the modem and stuffs like that. Scott "Nathan Cassano" <[EMAIL PROTECTED]> wrote in message 778f01c187e3$b84b8ed0$2925ae3f@amos">ne

[PHP] Segmentation faults on headers()

2001-12-19 Thread Scott w
file, I see the following error: [Wed Dec 19 21:48:27 2001] [notice] child pid 4996 exit signal Segmentation fault(11) I can't seem to figure out what this means...something has gone haywire, but I can't tell what it is. Anyone know wha

[PHP] How do I get one data only from the array() script?

2001-03-23 Thread Scott Fletcher
about $menu[0]="1" and then use $menu as part of $PHP_SELF to carry it over to teh same page? Scott -- 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]

[PHP] Delaying Printed Output

2001-03-24 Thread Greg Scott
Is it possible using PHP to print a single line of text to a browser, have a second or two delay and then print the next line, etc. etc.? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

Re: [PHP] Delaying Printed Output

2001-03-24 Thread Greg Scott
> You can use the following commands: > > sleep(seconds); > usleep(microseconds); I've tried those 2 functions, in an example like this: PRINT "This"; SLEEP(2) ; PRINT "Is a"; SLEEP(2); PRINT "TEST"; But the way it works in the browser is to wait for a total of 4 seconds and then it displays

Re: [PHP] Delaying Printed Output

2001-03-24 Thread Greg Scott
> You might try using flush() after the prints. > I tried that too, but at least in Netscape 6, it still waits until everything is done before displaying. I think Jack must be correct that this isn't possible for browser display. Thanks, Greg -- PHP General Mailing List (http://www.php.net

Re: [PHP] Delaying Printed Output

2001-03-25 Thread Greg Scott
> Have you looked into javascript/java? This client has worked up a Power Point slide presentation that he wants me to duplicate on the web. I had a PHP solution that was working fine, but then he decided to jazz up his Power Point presentation some. The adding a single line of text at time

[PHP] unix system

2001-03-28 Thread Scott Novinger
what are the minimum hardware requirements one would suggest for setting up a web server running php, mysql, and apache? thank you, scott [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] environment variable, why does it not work?

2001-03-29 Thread Scott Fletcher
7;t work? What can I do about it? Does caldera have problem with that? Thanks, Scott -- 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]

[PHP] version????

2001-03-29 Thread Scott Fletcher
Hi! Can anyone tell me what the difference with those PHP version? I see the version, "PHP 4.0.4pl1" with a "pl1" and some other version, "PHP 4.0.4" without a "pl1". Does either of these version had to do with php.ini file? Thanks, Sco

[PHP] php error code.

2001-03-29 Thread Scott Fletcher
What can I do about it? Would I be better off with using the PHP x.xx.xx pl1 instead of PHP x.xx.xx? Thanks, Scott -- 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] Image Resizing in PHP

2001-03-29 Thread Scott Brown
Using a GD that has GIF support, you can do this http://www.foo.com/img.php3?image=test.gif&scale=4 // create an image object from the source file $srcImg = imagecreatefromgif($DOCUMENT_ROOT . $image); // create a (blank) smaller image object $srcSize = getimagesize($DOCUMENT_ROOT . $image)

Re: [PHP] php error code.

2001-03-30 Thread Scott Fletcher
:/usr/local/lib/php.ini'". So, something definitely is going on that I don't know about. So, I wanted to know how to turn off the display "include_path'.:/usr/local/lib/php.ini' when there is a error message. That's all. Scott ""Scott Fletcher"

Re: [PHP] version????

2001-03-30 Thread Scott Fletcher
One more question! Why does some PHP 4.0 & up does not have the php.ini file? I noticed for the UNIX, there isn't one. For Caldera, there is one. For Windows, there is one. So, what's up with that???? Scott ""Scott Fletcher"" <[EMAIL PROTECTED]> wrot

[PHP] header() vs HTTP_REFERER (Netscape 6)

2001-03-30 Thread Scott Fletcher
er();" and automatically go to the next web page, the HTTP_REFERER can't recieve data from the last page that use the php code, "header();". It only affected NS6, it doesn't affected IE and Netscape Navigator. Why is that? What is the work-around to this problem?

[PHP] header() vs. no cache, it doesn't work.

2001-03-30 Thread Scott Fletcher
Next, I browse around and go back one page, the cache does not expire. Sometime I get the error messages said that the header had already start or something. So, what is the other way around to fix this problem? Or how can I fix it Thanks, Scott -- PHP General Mailing List (http:/

Re: [PHP] header() vs. no cache, it doesn't work.

2001-04-02 Thread Scott Fletcher
That one doesn't work either. Scott ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 9a2sdc$6t0$[EMAIL PROTECTED]">news:9a2sdc$6t0$[EMAIL PROTECTED]... > When I use this script > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT&

Re: [PHP] known problems with session_register()?

2001-04-02 Thread Scott Fletcher
the person log on. It seem to help a little bit. Scott "Felix Kronlage" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, Apr 02, 2001 at 09:13:41PM +0900, Yasuo Ohgaki wrote: > > > If you are enabled track vars and disabl

[PHP] Security Issue

2001-04-03 Thread Scott Novinger
web page that queries a MySQL database. This script will determine whether or not the person trying to view the page has the proper security privledges. If I need to explain this problem in more detail, please let me know. Any help or suggestions are greatly appreciated. Thank you, Scott [EMAIL

[PHP] SID ????? environment variable???

2001-04-04 Thread Scott Fletcher
session ID? SSL? Anyone know what it is? Anyone know where I can find the information about it? (This code, "SID", kept HTTP_REFERER from working in Netscape 6.) Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] SID ????? environment variable???

2001-04-04 Thread Scott Fletcher
Thanks, Scott "Felix Kronlage" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, Apr 04, 2001 at 08:59:00AM -0400, Scott Fletcher wrote: > I have been wondering what is "SID"? SID stands for Session ID. (which iden

[PHP] HOWTO: Dynamically Create A Form

2001-04-04 Thread Scott Walter
e of Funds" I want one more field to be displayed. pseudo-code: if (type_if_fund == 'Bank') { // then display text field to // enter the bank's name } else { // no need to display anything else } T

[PHP] scramble the code

2001-04-05 Thread Scott Fletcher
browser? Thanks, Scott -- 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] scramble the code

2001-04-05 Thread Scott Fletcher
Well, mine does! Scott ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This isn't quite accurate. WHen a form's method is set to "GET" (which BTW > is the form's

Re: [PHP] scramble the code

2001-04-05 Thread Scott Fletcher
Well, mine does!!! Scott ""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This isn't quite accurate. WHen a form's method is set to "GET" (which BTW > is the form's defa

Re: [PHP] scramble the code

2001-04-05 Thread Scott Fletcher
Um, well, it show up on Internet Explorer and Netscape Navigator and Netscape. Oh well. Scott ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 9ahuft$612$[EMAIL PROTECTED]">news:9ahuft$612$[EMAIL PROTECTED]... > Well, mine does!!! > > Scott >

Re: [PHP] scramble the code

2001-04-05 Thread Scott Fletcher
explain why it display the data in the URL. The data in the URL doesn't include the data from the login page. Thanks for the clarification! Now I'll give it a shot in scrambling one of the variable data that come with the header and then unscramble it on the next page. Scott "

Re: [PHP] scramble the code

2001-04-05 Thread Scott Fletcher
No way, I'm not gonna use the frame. The website had already been set up a year ago so overhauling it is not an option. For one of you who mention about the word, session. Well, I already have session and I don't want to add anymore session. Scrambling hte code will be fine. Than

[PHP] "odbc_result", long data get cut off????

2001-04-06 Thread Scott Fletcher
, you must change some of the default printer settings within the printer (see Deal Pack Help for details). - What do I need to fix that? PHP is suppose to show them all, not part of it. When the data get too long, it get cut off. Thanks, Scott -- PHP

[PHP] HTML table to MySQL?

2001-04-08 Thread Scott VanCaster
How would one go about getting each element from an HTML table to a database? The HTML will be the source code from a games site score report pasted into a form. I'm just learning, so don't waste you're valuable time explaining every detail of how this can be done, but if someone can point me in

[PHP] How to I convert the PHP variable back into Javascript?

2001-04-13 Thread Scott Fletcher
ld work if I assign the php variable to the html variable then have the javascript pick it up. Thanks, Scott -- 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-ma

[PHP] how to put javascript array into php array?

2001-04-13 Thread Scott Fletcher
Hi! How do I convert the javascript array into the PHP array? Thanks, Scott -- 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] advice on 'Nusphere Mysql Package' appreciated

2001-05-24 Thread scott [gts]
ject: RE: [PHP] advice on 'Nusphere Mysql Package' appreciated > > > Thanks for replying Scott... > > Are you trying to say that Mandrake has PHP, Mysql, Apache > and that the combination is easy to install correctly on > Mandrake? > > > > > >Fro

RE: [PHP] RE: Lists are back up

2001-06-18 Thread scott [gts]
most email programs will allow you to filter by email address also. works great for me. > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 4:05 PM > To: John Donagher; Rasmus Lerdorf > Cc: [EMAIL PROTECTED] > Subject: [PHP] RE: Lists are back

RE: [PHP] HELP problems running PHP4 script in CRON

2001-06-19 Thread scott [gts]
try using full paths to your files. > -Original Message- > From: Splashy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 9:29 AM > To: [EMAIL PROTECTED] > Subject: [PHP] HELP problems running PHP4 script in CRON > > > Hi, > > Please find script below and hopefully tell me wh

RE: [PHP] php bug reporting

2001-06-19 Thread scott [gts]
akhil, do you have a database server installed ? > -Original Message- > From: Andreas D. Landmark [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 1:18 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php bug reporting > > > At 19.06.2001 05:29, you wrote: > >Dear Sir > > i am

RE: [PHP] apache and php ate up all my memory :-[

2001-06-19 Thread scott [gts]
it could be a bunch of different reasons, ranging from software to hardware/OS errors how much total memory is in the machine?? > -Original Message- > From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] > Subject: [PHP] apache and php ate up all my memory :-[ > > Hi all > > Proba

RE: [PHP] bad form...

2001-06-20 Thread scott [gts]
i agree. for small forms with not-a-lot-of-data to be processed, keeping it all together is generally a lot easier to maintain and upgrade. (it also makes it easier for others to understand your code - since the data input *and* processing code is all in the same place) > -Original Message

RE: [PHP] Uploading a file into a database....ideas please.

2001-06-20 Thread scott [gts]
Title: Uploading a file into a databaseideas please. put a on a form - cut-paste the text onto the form, submit the form, and have the form put your info into the database   if your server supports PHP, there are many many MySQL admin scripts out there that you could use to add stu

RE: [PHP] SetCookie weirdness

2001-06-20 Thread scott [gts]
along with domains, cookies respect directories. for example: i'd have a script in '/somewhere' and another script in '/another' and when they'd try to use the same cookies, it wouldnt work... i had to actually specify a path of '/' for both of them to be able to use the same cookies. >

RE: [PHP] Include & Speed

2001-06-20 Thread scott [gts]
include() is not magical. it's all PHP code, whether or not you put it into your "main" file, or pull it in with an include() if it's slow - it's slow, regardless of *how* it was brought into the script. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: W

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread scott [gts]
you so totally could use an assoc. array right now: $cat_adt = "x"; $rm = "y"; $a[ $cat_adt ] = "whatever"; $a[ "$rm"."$cat_adt" ] = "Yeah"; print $a['yx']; save yourself a lot of trouble and dont bother with variables-of-variables and trying to get $rm_$cat_adt == $rm_x just use a hash... t

RE: [PHP] parent and grandparent member functions

2001-06-20 Thread scott [gts]
it looks like your solution *is* elegant... i tried out your code, becuase i was astonished that such a simple thing allegedly wasn't working... and it did work. below is the exact code i had in my text editor, and it executed perfectly. when i called $c->make(), it printed "A:: MAKE". ..am i mi

RE: [PHP] List of included file names.

2001-06-20 Thread scott [gts]
yeah. at the beginning of each include file, put: print ''; ...or were you looking for something a little harder and more convoluted? :) > -Original Message- > From: Tim McGuire [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 2:30 PM > To: [EMAIL PROTECTED] > Subject: [PHP]

RE: [PHP] validate phone numbers

2001-06-20 Thread scott [gts]
i agree. there's NOTHING more annoying than a broken validation script when you're trying to enter valid, but weird, data. perhaps separate the form up into one box for the country code, one box for the number, and one box for any add'l information (extensions, automated prompt numbers, etc...)

RE: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread scott [gts]
figure out how many minutes per day, put that as a constant in your script, then just multiply that by the number of days between the two dates. ... or would you prefer something more convoluted? ;) > -Original Message- > From: Wim Koorenneef [mailto:[EMAIL PROTECTED]] > Subject: [PHP]

RE: [PHP] OT - filtering problems

2001-06-20 Thread scott [gts]
i use the full version of outlook 2000, and it didnt even blink when the lists came back up... my "php" folder just started filling up as usual ;) i've noticed other people mentioning broken eudora on this list... i dont mean to sound arrogant, but perhaps it's time to upgrade, or get a better em

RE: [PHP] exec, backtics and co.

2001-06-20 Thread scott [gts]
you must have permission to execute/read the binary, and you must give the full location of that binary. > -Original Message- > From: Paindavoine, Matthieu (MPAINDAV) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 20, 2001 7:26 AM > To: '[EMAIL PROTECTED]' > Subject: [PHP] exec, backt

[PHP] Another Template Engine (code)

2001-06-20 Thread scott [gts]
values so you dont have to call regvar() for each and every var, you can simply submit a hash to the template and it'll traverse through it example: $assoc_array('name'=>'scott', 'age'=>'99'); $temp1->hash($assoc_array); will properl

RE: [PHP] General Coding Question

2001-06-20 Thread scott [gts]
on pages with mostly HTML code, the second style is much prefereable, but on pages with mostly PHP code, the first style is usually OK. overall, i tend towards the second, becuase it's a pain in the ass to esape all the double-quotes in my HTML, my echo statements usulaly end up looking like thi

[PHP] Multiple Image Submit Buttons.

2001-06-24 Thread Scott Guthrie
submit()' function. This works just fine for Netscape, but the 'document.forms[0].submit()' even by itself doesn't work for IE 5.00. Any one have any other ideas on how to do this? multiple images for submit buttons (where you know which you pressed). I need to process the d

RE: [PHP] php not working

2001-06-25 Thread scott [gts]
here's my apache config i use at home (where i have the binary version, *not* server module) ScriptAlias /pbin/ /usr/local/php-bin/ AddType application/x-httpd-php .php Action application/x-httpd-php /pbin/php > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

RE: [PHP] freebsd and exec problem

2001-06-25 Thread scott [gts]
always check permissions make sure the web server can read/execute what it needs to. also, have you tried running the program from a shell and seeing if it generated any errors? > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 25, 2001 3:12

RE: [PHP] Help with simple regular expression

2001-06-25 Thread scott [gts]
exactly. use the non-greedy "?" with the perl regex's to have perl match the least amount of characters it can. preg_match('//', $text, $matches) in the case of perl regexp's, you have to specifically tell the regexp not to be greedy. the "?" regexp modifier is how you do this. (otherwise, th

RE: [PHP] a standalone PHP script to update MySql server

2001-06-25 Thread scott [gts]
sure. install PHP as a binary and run the script just like you'd run any other script ;) > -Original Message- > From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 25, 2001 4:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] a standalone PHP script to update MySql serve

RE: [PHP] [OT-ish] Optional Extras.

2001-06-26 Thread scott [gts]
i disagree with the first point. adding extra options (like an MP3 player) will not "break the table" if you code the system with knowledge of how the underlying database is set-up. a friend of mine setup a catalog system this way. the catalogs would usually have ~5-10 custom options, so his

[PHP] semi-OT: windows/linux, IIS/apache

2001-06-26 Thread scott [gts]
> So, people, when using PHP authentication, please use a Linux box!!! The > windows version doesn't really work (at all). > > Brave Cobra there are lots of reasons for switching to linux, but it's not necessary to get authentication working properly, just use a better server. apache is one tha

RE: [PHP] Enter to BR

2001-06-26 Thread scott [gts]
or you could use preg_replace preg_replace("/\n/", "\n", $var); > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 2:56 AM > To: Joeri Vankelst > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Enter to BR > > > > How

RE: [PHP] Linux Guru's

2001-06-26 Thread scott [gts]
search for: linux4win   that's probably what you're looking for... you can install on an existing windows partition and have it look like a giant file.   -Original Message-From: ReDucTor [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 26, 2001 7:52 AMTo: [EMAIL PROTECTED]Subj

RE: [PHP] PHP Uptime error

2001-06-26 Thread scott [gts]
try 'cat /proc/uptime' logged in as the webserver user and see what you get (or try it thru a PHP script) > -Original Message- > From: infoz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 26, 2001 9:56 AM > To: Peter Phillips; [EMAIL PROTECTED] > Subject: Re: [PHP] PHP Uptime er

RE: [PHP] Help with PHP/Oracle and serializing data

2001-06-26 Thread scott [gts]
with MySQL, TEXT is for text and BLOB is for binary data. typemax. storage size TINYBLOB, TINYTEXT 2^8 BLOB, TEXT 2^16 MEDIUMBLOB, MEDIUMTEXT 2^24 LONGBLOB, LONGTEXT 2^32 > -Original Message- > From: infoz [mailto:[E

RE: [PHP] search for a better php source code viewer

2001-06-26 Thread scott [gts]
im a textpad fan. (for windows) http://textpad.com/ it supports custom syntax hilighting, line numbers, and a ton of other features that i use :) > > -Original Message- > > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 26, 2001 10:26 AM > > To: [EMAIL P

RE: [PHP] RE: Events Listings

2001-06-27 Thread scott [gts]
if you dont know PHP that well, you should implement it in a language that you know, then work from that and translate it into PHP. i used to do that with perl/PHP when i was first learning PHP... sometimes, things are more obvious when expressed in a language that you're more familiar with. >

RE: [PHP] PHP Uptime error

2001-06-27 Thread scott [gts]
is this a development box or a live hosting box? be wary of setting arbitrary permissions on *nix machines without knowing the consequences of doing so. most of the time, if things are configured a certain way, there's a pretty good reason why... :) > -Original Message- > From: Peter Ph

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread scott [gts]
stripslashes($var); and please, read the manual/documents. > -Original Message- > From: Marcus James Christian [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 27, 2001 12:19 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Filtering out \ when a ' is user entered? > > > Hello, > > I'm p

[PHP] OT MS error messages

2001-06-27 Thread scott [gts]
don't you just love MS error messages? they're always so descriptive and precise and helpful. > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 27, 2001 2:52 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Operation must use an updateable q

[PHP] variables in text or placeholders

2001-06-27 Thread scott [gts]
another way of doing it would be to ditch using variables in the actual text string altogether, and just use place holders use {varname} instead of $varname, and then you dont need to eval anything... just use a simple regexp $fullname = "Roy Rogers"; $data = array( 'name'=> 'Johnn

RE: [PHP] mssql and uniqueidentifier's

2001-06-27 Thread scott [gts]
well, the SQL statement you're trying to execute would help determine why it's not working... :) just stating that "it's broken" is like saying "my car makes this funny noise" and hoping that a mechanic will give you a detailed diagnosis. > -Original Message- > From: Thomas Häger [mailt

RE: [PHP] MIME type

2001-06-27 Thread scott [gts]
MSIE pretty much throws away any header information about a file that the server sends and tries to make a determination itself about the file based on the file extension > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] MIME type > > * If y

RE: [PHP] calculate download time

2001-06-29 Thread scott [gts]
simple. get total KB (1k = 1024 bytes) divide that by 60 (seconds in a minute) now you have estimated transfer time in minutes. > -Original Message- > From: Rhett Hermer [mailto:[EMAIL PROTECTED]] > Subject: [PHP] calculate download time > > Hi, > > I am trying to write code to find ou

RE: [PHP] Stopping stolen / spoofed / linked sessions

2001-06-29 Thread scott [gts]
keep the current user's IP address or timestamp in a database with the session ID. if the session is requested by someone with a different IP or too-late timestamp, give the requesting user a new session. > -Original Message- > From: adam (dahamsta) [mailto:[EMAIL PROTECTED]] > Sent: Wed

RE: [PHP] --with-zlib/--with-zlib-dir and --enable-xslt

2001-06-29 Thread scott [gts]
haha... i had been trying to compile PHP 4.0.5 and previous with the GD library, and it was giving me all sorts of bizarre errors, but when i downloaded PHP 4.0.6 and tried to compile it against GD, it worked beautifully not a single error. :) > -Original Message- > From: [EMAIL

RE: [PHP] Function

2001-06-29 Thread scott [gts]
read the manual... there are lots of ways to replace/change characters. :) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 4:48 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [PHP] Function > > > Hi, > > Is t

RE: [PHP] setting output_buffering for certain hosts or directories

2001-06-29 Thread scott [gts]
i've never done this myself, but a suggestion would be to check out: 'auto_append_file' and 'auto_prepend_file' they're php.ini directives. for example, try adding "auto_prepend_file 'stuff.php'" to your php.ini when PHP goes to load a page, it'll first check to see if 'stuff.php' can be found,

RE: [PHP] Creating domain and default page

2001-06-29 Thread scott [gts]
1) read apache and named docs so you know what changes need to be made, and where to make them 2) update 'httpd.conf' and the domain's 'zone' file 3) restart both 'named' and 'apache' 4) copy an 'index.php' into the subdomain's newly created directory. there are probably better ways to do

RE: [PHP] PHP & PGP

2001-06-29 Thread scott [gts]
possible? yes. feasable? yes and no... 1) encrypting traffic from the user's browser to your server is extremely impractical. 2) encrypting information on the server with PGP is a whole lot easier... there are a bunch of PHP -> PGP interface packages i've seen around, so do some searching and se

RE: [PHP] Convert (join)

2001-06-29 Thread scott [gts]
there's also join() (which is the exact same as implode) but might help you remember that it's joining the elements of an array together into a single string. > -Original Message- > From: Alva Chew [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 9:00 AM > To: [EMAIL PROTECTED]

RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-29 Thread scott [gts]
rename either the function or the class. class Display_Records { function display_records($row, $record_count) { $current_date = (date("Y-m-d")); $age = ($current_date); return $age; } function disp_rec($row, $record_count)

RE: [PHP] looking for a class that handles cookies and sessions

2001-06-29 Thread scott [gts]
read the manual!!! there's a set cookie function built into PHP. > -Original Message- > From: Jason Stechschulte [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 27, 2001 9:30 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] looking for a class that handles coo

RE: [PHP] Week Number

2001-06-29 Thread scott [gts]
here's a quick-n-dirty way. $doy = date('z'); $week = (int)($doy / 7); print $week+1; but there's one thing to be wary of: this counts full 7-day weeks, not calendar weeks, so since the first week of a calendar year might begin on wednesday or friday, this algorithm might be a few days off if y

RE: [PHP] What does this error mean?

2001-06-30 Thread scott [gts]
it means that the script doesn't have write permission to write the "logs/993700800.log" file... most probably the directory or the file itself are not owned by the webserver user. it also looks like the authour of the script did a real shoddy job of checking for errors, and tried to pass the inv

RE: [PHP] I want to get the input of keyboard

2001-06-30 Thread scott [gts]
php://stdin php://stdout php://stderr are also for console input/output... > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] I want to get the input of keyboard > > $file = fopen('php://input', 'r'); > $char = fread($file, 1); > -- PHP Genera

[PHP] perl and php data-structure interoperability

2001-06-30 Thread scott [gts]
(i left out the 'timestamp' field, becuase it's not relevant) id namedata -- 1 scott serialized array the 'data' field is a TEXT type (in my Mysql DB) that is meant to store a serialized assoc. array. this en

RE: [PHP] how to determine size of gz-handler output

2001-07-02 Thread scott [gts]
as far as i know, $cont is not GZ compressed so you're getting the length of the uncompressed data. the contents only get compressed right before sending output to the browser... > -Original Message- > From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 29, 200

RE: [PHP] Please Help......

2001-07-02 Thread scott [gts]
as a start, you'll probably have to update httpd.conf (if you're using apache) and named ... or at least know how both work. please read the pertinent docs. > -Original Message- > From: Man He [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 10:51 PM > To: [EMAIL PROTECTED] >

RE: [PHP] Reducing Brackets is a Logical expression

2001-07-02 Thread scott [gts]
i dont know the function you're looking for, but read up on the rules of formal logic, and maybe you can roll your own. i know that simplification of logical statements (and therefore, easing the burden of analyzing those statements) is a foundation of formal logic... > -Original Message---

RE: [PHP] Regular Expression help

2001-07-02 Thread scott [gts]
try something like this: $emails = array('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'); $doms = array( 'domain1.com'=>1, 'domain2.com'=>1, ); while ( list(,$email) = each($emails) ) { preg_match('/^([_\.0-9a-z-]+)@(([0-9a-z][0-9a-z-

RE: [PHP] php / apache

2001-07-02 Thread scott [gts]
put it outside the document root accessable by apache. if your documentroot is: /usr/local/apache/htdocs/ put your script somewhere outside the 'htdocs' directory. > -Original Message- > From: Petur Bjorn Thorsteinsson > [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 29, 2001 11:54 AM

[PHP] RE: Help Please.

2001-07-02 Thread scott [gts]
or you could output the raw contents of the file after sending the appropriate headers... albeit, a simple redirect is much easier :) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Gonzalo Quan > Sent: Monday, July 02, 2001 4:42 AM > To: Syed An

RE: [PHP] RE: Help Please (DISREGARD THIS)

2001-07-02 Thread scott [gts]
that last email accidentally got sent to the wrong list... thanks. -- 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] Creating domain and default page

2001-07-02 Thread scott [gts]
r of script is nobody when program is running if i'm > not mistaken. So, how to solve this kind of permission stuff? > > > >From: "scott [gts]" <[EMAIL PROTECTED]> > >To: "php" <[EMAIL PROTECTED]> > >Subject: RE: [PHP] Creating domain

RE: [PHP] Pricing Advice Needed

2001-07-02 Thread scott [gts]
maximum verbosity is not good programming practise. :) don't succumb to the dreaded Charles Dickens Syndrome and make the code too wordy and cluttered to be easily maintanable or understandeable. i've had to wade thru code written by people with CDS, and it's a nightmare seeing some of the exes

RE: [PHP] Numerical refs to assoc array suddenly "undefined offset"??

2001-07-02 Thread scott [gts]
mysql returns an assoc array that also have numerical keys, perhaps you're thinking of that... to my knowledge, PHP never supported numeric & string indexing to it's assoc. arrays... i've tested the code below on PHP v4.0.4 and v4.0.6 and it runs the same: numerical index values return nothing.

RE: [PHP] Uploading files

2001-07-02 Thread scott [gts]
use assoc. arrays, please. your code will be *much* easier to maintain and extend. variables-of-variables are headaches for everyone involved. $location = $input_form[$i]; > -Original Message- > From: David A Castillo [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 29, 2001 1:41 PM >

RE: [PHP] Question on Commercial Offerings

2001-07-02 Thread scott [gts]
if what you need is to obscure source code, scripting languages are probably not what you're looking for... there are ways to compile/encrypt/obscure the source, but they're usually a bit of a pain in the neck and easy to crack. > -Original Message- > From: Thomas Deliduka [mailto:[

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