[PHP] odbc_fetch_into(), is there a way to display each data while using this function?

2002-02-06 Thread Scott Fletcher
Hi! I want to know is is there a way to see the data per loop when using hte odbc_fetch_into() function? I want to see all of hte data. Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odbc_connect vs. DB2 (Connection speed varies)

2002-02-07 Thread Scott Fletcher
exit("Unable to connect to Database !!!"); } -- clip end -- Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Funny stiff in my logs

2002-02-11 Thread Scott Haneda
ew friends look into their error logs, all on OSX 10.1, and they also are having this as well. I am going to make a guess here, all apple OSX boxes are going to have this, any ideas where to go next? --- Sc

[PHP] Returning table rows from MySQL

2002-02-18 Thread Scott Saraniero
=mysql_fetch_array($Result)) { print (""); print ("$Row[song]"); print ("$Row[artist1] $Row[artist]"); print ""; } print ""; mysql_close($Link); ?> Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] smarter way to write config file?

2002-04-16 Thread Scott Houseman
what about something like this: $cfgAdminEmail = ( $local ) ? "[EMAIL PROTECTED]" : "[EMAIL PROTECTED]"; $cfgReportErrors = ( $local ) ? 1 : 0; $cfgSendMail = ( $local ) ? 0 : 1; Hope this helps --Scott - Original Message - From: "Justin French" <[EM

[PHP] php & snmp

2002-04-18 Thread Scott Baer
MP I have compiled net-snmp using ethereal.. I can see the snmp gets & get-next ... as well as the responses... Anyone have any idea... ?? Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What's wrong with the PHPSESSID?????

2002-04-23 Thread Scott Fletcher
8EE3E&type=credit --clip-- But when I use the php echo, it spit out nothing. What I don't understand is that it work on many other web pages except just this one webpage. Anyone know why? THanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] is their a way to run a command as root ???

2002-04-24 Thread Scott Baer
Is their a way to run a command as root..or another user.. I know their are a log of security issues with allowing this.. I will tighten down security after I get it to work. He is what I am trying to do. I have squid & squid guard set up.. in squids redirect url.. (on the same box).. I would l

[PHP] pow() vs. float when doing match.

2002-04-24 Thread Scott Fletcher
PHP 4.0.7 and after. Let's do the demo script. echo pow(0, 0.0829); It should return a "0" as it did in version 4.0.6 and before. But version 4.0.7 and after, it returned a "-1.#IND". Why is that? What is the other way around to fix the problem? Let me know!

[PHP] Re: pow() vs. float when doing match.

2002-04-24 Thread Scott Fletcher
Thanks! That's explain it! One other question. Is the even number a stable release and the odd number an unstable release? Just like the Red Hat Linux or Perl as an example. Does that apply to PHP? THanks, Scott "Jim Winstead" <[EMAIL PROTECTED]> wrote in message [E

[PHP] Wrapping Text

2002-04-27 Thread Scott Reismanis
dited, however with this method the server has to do more processing in converting smilies each time the post is viewed and vise versa. Thanks for your time, and I anticipate any light which can be shed on this issue. Scott

Re: RE: [PHP] Wrapping Text

2002-04-28 Thread Scott Reismanis
f for every view. > > ---John Holmes... > > > -Original Message- > > From: Scott Reismanis [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, April 27, 2002 11:58 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Wrapping Text > > > > Hi PHP di

[PHP] phpMyAdmin Question

2002-05-06 Thread Scott Reismanis
char columns are quicker to process thus it would be ideal to mix such columns rather than be forced to create another table for example, Thanks for your time, Scott Reismanis

[PHP] header problem

2002-05-10 Thread SCOTT . NOVINGER
why does the name variable ($name) not display in the email body, but displays just perfectly in the form result? i can see everything from "Employee ID:" down in the email body, and everything is seen in the form result. have i made some error? $bid_information = "Name: ".$name."\n"

[PHP] header problem - thank you!

2002-05-10 Thread SCOTT . NOVINGER
for all of you that replied to my original post, thank you. all of the suggestions worked and i learned a couple of new things along the way. scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] header() -- function failed to due caching.

2002-05-15 Thread Scott Fletcher
I tried to use this script but it failed due to the caching. Does anyone know the way around hte problem or have a solution to the problem? --- example script $url_address = $GLOBALS["HTTP_HOST"]; switch ($url_address) { case "www.php.net": $url_address = "ht

[PHP] Re: header() -- function failed to due caching.

2002-05-15 Thread Scott Fletcher
Never mind, I'll just javascript instead! "location.replace('url'); "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I tried to use this script but it failed due to the caching. Does >

[PHP] Avoiding 'page expired' warnings

2002-05-17 Thread Scott Graham
orm. I know there is a way to avoid this problem because all search enabled websites seem to manage to avoid it, but I don't know how. Can anyone help? I had thought using sessions would help but it makes no difference. Is this something that can be avoided with PHP or does it require some

[PHP] Error compiling PHP-4.2.1 on linux

2002-05-17 Thread Scott Hurring
1 in /usr/local/bin/php on line 3391 Warning: Unexpected character in input: '' (ASCII=4) state=1 in /usr/local/bin/php on line 3392 Warning: Unexpected character in input: '' (ASCII=27) state=1 in /usr/local/bin/php on line 3393 Parse error: parse error, unexpected T_STRING in /usr

RE: [PHP] $answers[answer$n]

2002-05-17 Thread Scott Hurring
Try $answers["answer".$n] --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Jule [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 4:41 PM > To: [EMAIL PROTECTED] >

RE: [PHP] Newbie - create image error URGENT

2002-05-17 Thread Scott Hurring
Probably don't have the GD extension enaabled. On a win machine, it's easy, look in your php.ini and set the extensions_dir to where your extensions are then un-comment php_gd.dll --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 20

RE: [PHP] Variable won't work in function, even when I global it?

2002-05-20 Thread Scott Hurring
Or why not just use include_once() or require_once() ?? That's their purpose. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Paul Roberts [mailto:[EMAIL PROTECTED]] > Subject: Re:

RE: [PHP] PHP & Excel

2002-05-20 Thread Scott Hurring
Are you on a Win32 platform? If so, use COM... $cell = $sheet->Cells($row,$col); $cell->activate; $cell->formula = "your formula"; --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 >

RE: [PHP] PHP & Excel

2002-05-20 Thread Scott Hurring
> -Original Message- > From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] PHP & Excel > > I would think that you wouldn't need formulas. Isn't that the > idea of using > PHP to create the Excel document? Have PHP compute the values of the > "formulas" and print out

RE: [PHP] Expiring certain session data while keeping the session itself

2002-05-20 Thread Scott Hurring
te("U") > ($cookie_load+75)) { print "fetch from DB"; SetCookie("cookie_load", date("U")); } else { print "Loaded ($cookie_load), now ". date("U") ." -- NOT fetching\n"; } if (!$cookie_load)

RE: [PHP] Any Ideas "@" becomes "_Xy"

2002-05-20 Thread Scott Hurring
thing they're doing, you can use > str_replace(): http://www.php.net/manual/en/function.str-replace.php > > Enjoy, > > --Dan Perhaps they did it to thwart "smart" spambots that can translate "%40" to "@". --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Text file

2002-05-20 Thread Scott Hurring
... so open up the text file and read it. What problem are you having? Are permissions set correctly? Are you making sure to escape "\" on Win? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Messag

RE: [PHP] Secure eval();

2002-05-21 Thread Scott Hurring
s are valid and present in the database. But like others have suggested, you should *really* look for a better way to do this. Putting text into a database and then blindly eval()'ing it later on is just begging for trouble. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] substr....what does this mean? (newbie)

2002-05-21 Thread Scott Hurring
e... it wants to be your friend. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: r [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 2:51 AM > To: [EMAIL PROTECTED] > Subject:

RE: [PHP] OOP with PHP

2002-05-21 Thread Scott Hurring
Try it out for yourself. :- class Test{ var $x = ''; function Test(){} } $x = new Test(); $y = new Test(); $x->x = "Way"; $y->x = "No"; print $y->x . $x->x; --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149

RE: [PHP] voting using text files

2002-05-22 Thread Scott Hurring
ssions and maintaining the filesystem that Miguel mentioned. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Jason Soza [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 3:26 PM >

RE: [PHP] voting using text files

2002-05-22 Thread Scott Hurring
file_append($file, $text); ?? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Vail, Warren [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 3:46 PM > To: 'Rasmus Ler

[PHP] Regex Assistance

2002-05-27 Thread Scott Reismanis
the preg_replace stop when it encounters a & in the URL? If anyone could shed some light on this it would be appreciated, - Regards, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Efficient PHP

2002-05-28 Thread Scott Hurring
en :), so i code for human efficiency and ease of maintenence, even if the code is a little bit slower than heavily optimized code. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How can I remove the last character from a one line file?

2002-05-28 Thread Scott Hurring
TIMTOWTDI $string = "Jacko"; print preg_replace('/.$/', '', $string); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Ed Gorski [mailto:[EMAIL PROTECTED]] &

RE: [PHP] Re: Thread safe

2002-05-28 Thread Scott Hurring
I'm not sure if it's atomic, but (AFAIK) you can do something like this with Mysql: UPDATE table SET field=field+1 where ..... --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From:

RE: [PHP] Regex Assistance

2002-05-28 Thread Scott Hurring
mp;list=XXX&two=three"); print strip_key("list", "yadda?bo=ra&list=&two=three"); print strip_key("list", "yadda?list=XXX"); print strip_key("list", "yadda?list=XXX&two=three"); print strip_key("list",

RE: [PHP] auto_increment

2002-05-28 Thread Scott Hurring
Look at Sequences for Postgres. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: webmaster [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 28, 2002 7:12 AM > To: [EMAIL PROTECTED] >

RE: [PHP] Intermediate "Searching..." screen.

2002-05-28 Thread Scott Reismanis
sivly huge :) Anyhow that does not really answer the question as it does not explain how to create the 'searching' screen however I know it definatly involves a javascript redirect... I will explore that tonight and tell you what I find. Regards, Scott - Original Message -

[PHP] Time to recompile - time to add functionality

2002-03-01 Thread Scott Brown
Ok - the scenario: I have a box that I lease... I have root privs, so I can do almost anything I want to it. Almost being the key word. Unfortunately, any time I try to upgrade a base library, I snafu the thing, and the datacenter has to rebuild the libraries. Right now, I've got php4.0.4pl1 t

[PHP] help please -- error compiling php 4.1.2 (4.0.6 compiles fine)

2002-03-01 Thread Scott Brown
I'm trying to deal with the recent security advisory... but I cant get 4.1.2 to compile on my system I'm getting : gcc -I. -I/home/webmaster/new_build/php-4.1.2/ext/standard -I/home/webmaster /new_build/php-4.1.2/main -I/home/webmaster/new_build/ph p-4.1.2 -I/home/webmaster/new_build/apache_1

RE: [PHP] help please -- error compiling php 4.1.2 (4.0.6 compiles fine)

2002-03-02 Thread Scott Brown
on 2.7.2.1 (yes, old, I know) > -----Original Message- > From: Scott Brown [mailto:[EMAIL PROTECTED]] > Sent: March 1, 2002 9:16 PM > To: [EMAIL PROTECTED] > Subject: [PHP] help please -- error compiling php 4.1.2 > (4.0.6 compiles > fine) > > > > I'm trying to deal

RE: [PHP] Re: php 4.1.1 vs 4.0.6

2002-03-02 Thread Scott Brown
So - to confirm... If upgrading from a 4.0.x up to a 4.1.x version, putting register_globals = on in the /etc/php.ini will ensure that old code continues to run. But in the long term (ie, in some future php version), the $HTTP_* vars will no longer be supported. Is this correct? > -Orig

RE: [PHP] Re: php 4.1.1 vs 4.0.6

2002-03-02 Thread Scott Brown
ore? > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: March 2, 2002 6:51 PM > To: Scott Brown > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Re: php 4.1.1 vs 4.0.6 > > > You will always be able to turn register_globals on. > Comple

[PHP] headers showing up in browser using PHP as CGI handler

2002-03-02 Thread Matthew Scott
nd is still working great with the CGI version that's in use right now. Anyone have any ideas? Thanks for your help, Matthew Scott --- Re http://marc.theaimsgroup.com/?l=php-general&m=101069420521799&w=2 [prev in list] [n

[PHP] Question about fopen()

2002-03-04 Thread Scott Miller
Hi, Does fopen() work similar to open in CGI ? If the file doesn't exist will it create it? What is the best way to test if the file was created? TIA Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to use PHP to find hte presence or absent of the file???

2002-03-04 Thread Scott Fletcher
ng of using the exec() function to list hte file and return true if the file is there. exec("ls -la test.exe"); The only problem is how to tell? Anyone know? Thanks! Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to use PHP to find hte presence or absent of the file???

2002-03-04 Thread Scott Fletcher
Here's the reply I got from someone out posting it to this outlook! The case is now closed! --clip begin-- How about: http://www.php.net/manual/en/function.file-exists.php ? -- clip end-- Thanks, Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Question on functions finding out about caller

2002-03-13 Thread scott furt
I've checked google and the PHP manual, with no results, so i thought i'd ask here: Is there any functionality in PHP to allow a function to find out what function/file/line called it? AFAIK, perl can do this, and i've always found it a big help when debugging to have functions die with a call t

Re: [PHP] What is needed to test php mail on a local testserver

2002-03-14 Thread scott furt
... and AFAIK, if you're running windows, read 'php.ini' and you can specify an SMTP server to use for mail sending. andy thomas wrote: > > On Thu, 14 Mar 2002, andy wrote: > > >>Hi there, >> >>I am wondering, how I could test the mail functions of php on a local >>machine. Do I have to instal

Re: [PHP] CLI through PHP

2002-03-14 Thread scott furt
Pipes. I've only had to do it with perl, so i have no idea what the syntax or function calls are with PHP, but i'm almost positive that PHP supports reading/writing to/from pipes. Liam wrote: > 14/03/2002 10:51:10 PM > > Hi, I was wondering how I'd go about manipulating some command line > soft

Re: [PHP] Weird?

2002-03-16 Thread scott furt
... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory "dir" doesn't exist. jtjohnston wrote: > Does anyone have time to run this code? > This is definitely weird. Either a Windows or a code problem. If I set

Re: [PHP] Update: [PHP] Weird?

2002-03-16 Thread scott furt
I meant, have you created a physical directory named $date? That's your problem. There's no directory named $date on your computer, and you're trying to write files into a non-existent directory. jtjohnston wrote: > I have created date :) > $date = date ("MD"); > That's not it. It seems to fail

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

2002-03-16 Thread scott furt
It's not absurd at all. What is absurd is that you're coding without checking for any error conditions :-) As a rule of thumb, if a function returns a success flag, check it. it'll immediately cut out about 90% of all "weird" errors. cosmin laslau wrote: > $query = "SELECT * from mytable"; >

Re: [PHP] regular expression for (NOT 'word')

2002-03-16 Thread scott furt
Try this... it should only print out "Some webpage data" $text = " script data. Some webpage data another script data "; print preg_replace('/(.*?)<\/script>/', '', $text); Ando Saabas wrote: > Ok let me explain my problem further some. I need the regular expression to > purify the html pa

Re: [PHP] Printing an array

2002-03-19 Thread scott furt
...because you never shrink $prefix after output(), try array_pop($prefix); Alexander Skwar wrote: > Hello! > > I'd like to print an array kinda like the way it was created. Ie., I've > got the following array: > > $r[0][0]['name'] = 'joe'; > $r[0][0]['gender'] = 'male'; > $r[0][0]['prop'] =

Re: [PHP] EMAIL problem

2002-03-19 Thread scott furt
you have to tell mail() who the email is from. add in a header similar to: "From: [EMAIL PROTECTED]" (read the docs for mail() for syntax) Dani wrote: > Hi, > > I have been trying to use a form to send an email. > > I use the mail() function. But I have a bit of problem. > The email send does

Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread scott furt
Have you examined the PHP error logs? Have you turned up error reporting to the max (E_ALL) and examined what it returned? Have you examined $php_errmsg (if configured in php.ini)? Have you tried putting echo statements every few lines to see exactly where and why the script dies? Balaji Ankem

Re: [PHP] More on: how to send a file to the user's browser?

2002-03-19 Thread scott furt
Are you using MSIE? what file extension are you testing with? i was having similar problems using this technique with PDF files. only with MSIE, sometimes it would print text crap to the screen and sometimes it would prompt for download. MSIE is notorious for disregarding headers and trying to

Re: [PHP] No Sense: [PHP] Update: [PHP] Weird?

2002-03-19 Thread scott furt
; $date = date ("MD"); > > How does that make a difference? > > $to_path = "c:\\ccl_www\\".$date."\\ccl_www\\"; > > You want me to change it to: > > $to_path = "c:\\ccl_www\\$date\\ccl_www\\"; > > Does anyone follow why? >

Re: [PHP] Copy *.*

2002-03-19 Thread scott furt
Or, if you're on a *nix platform, try using 'tar' to tar up the entire directory tree, copy the 'tar' file and un-tar it. or 'cp -R' should work too. Martin Towell wrote: > Does xcopy support long file names? > > -Original Message- > From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] > Se

Re: [PHP] Cookie Woes

2002-03-19 Thread scott furt
because the first argument of Setcookie is the name of the cookie you want to set. (and what the variable will be called on subsequent pages) SetCookie('username', $username ...) will do what you're expecting. Jesse Warden wrote: > I performed a: > setCookie($username, $username, time()+3600,"",

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread scott furt
Short answer: no. Long answer: have the PHP script output javascript code to the browser. PHP = server-side Javascript = client-side Marcel Besancon wrote: > Hi everybody, > > is there someone who can tell me how to call a javascript-function by a > php-script. > > Thanks for each answer

Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread scott furt
ipt.. Balaji Ankem wrote: > Hi scott, > > Yes I examined.. > It z dying in if loop (if $n==2) at the statement header("Location: > success.php"); > > It will be helpful to me if u try to execute those files as I told. > > Thanks in advance > Balaji

Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread scott furt
a javascript-function > (such as an alert). You see the php-script shall call the > javascript-function by "refreshing" the whole page. > > Bye, > > Marcel > > -- > registered Fli4l-User #0388 > "Scott Furt" <[EMAIL PROTECTED]> schrieb

Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k environment.

2002-03-19 Thread scott furt
> > -Original Message- > From: scott furt [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 5:49 PM > To: php > Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k > environment. > > > Try replacing header("Location: success.php&

Re: [PHP] More on: how to send a file to the user's browser?

2002-03-19 Thread scott furt
... or mozilla :) Jason Wong wrote: > On Tuesday 19 March 2002 19:59, scott furt wrote: > >>Are you using MSIE? >> >>what file extension are you testing with? >> >>i was having similar problems using this technique >>with PDF files. only with MSIE, s

Re: [PHP] Apache

2002-03-21 Thread scott furt
Errmm... i don't know any apache groups, but if you want to do what you ask, just read the documentation, it's easy :-) jtjohnston wrote: > Anyone know of a good apache group? > I want to hide the structure of a directory when there is no idex.html > present > > J > > > -- PHP General Ma

Re: [PHP] Re: More fun with sessions

2002-03-21 Thread scott furt
Also, if your sessions use a database, you could do some SQL queries to see which sessions have been loaded in the last few minutes. Julio Nobrega wrote: > From all users on your site? I guess only if you open the directory where > the session files are stored. And loop through the files, openi

[PHP] looking for tutorial on XML parsing of attributes...

2002-03-21 Thread Scott Brown
Ok - first off, I've found a few... phpbuilder has a nice number of references. But every one I've tried has ignored attributes... either that, or I dont understand what I'm doing. I retrieve from a distant server an XML response to an inquiry: sometext sometext1

RE: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-23 Thread Scott Brown
has to be isnt there an easier way to extract elements from the XML document? > -Original Message- > From: J. Scott Johnson [mailto:[EMAIL PROTECTED]] > Sent: March 23, 2002 12:19 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] looking for tutori

[PHP] Evaluating php code.

2002-04-02 Thread Scott Houseman
urns false, and I'd like no runtime error to be generated. Perhaps an error-handler is what's needed? What can you suggest? Many thanks Scott -- Scott Houseman Software Developer JAM Warehouse [EMAIL PROTECTED] +27 82 4918021 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Evaluating php code.

2002-04-03 Thread Scott Houseman
pe outside of this method either. So... Is there any way of telling the parser to ignore this fatal error and carry on, or alernatively, a way of parsing a string at face value for parse errors ie. 'Look for syntax errors, but don't evaluate the code.'? Thanks again for the help, i

[PHP] What's wrong with the Array? I"m baffled!

2002-04-03 Thread Scott Fletcher
missing something by putting in the php codes, "echo '**';" and the data, "**" was never spitted out on the webpage. So, it tell me that the else statment was never executed. So, the problem had to do with the data in the array itself. So, can anyone help me out? Thanks a million!! Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong with the Array? I"m baffled!

2002-04-03 Thread Scott Fletcher
Found a way around it. I'm using if (strlen($sumItUp[$name]) == "0") { } else { }. this one does work. Yes, I can use the empty() function but it doesn't fully work that way becuase it return the "NULL" as empty. Scott "Eric Coleman" <[EMAI

[PHP] Any ideas on combining arrays????

2002-04-03 Thread Scott Fletcher
U4R"]["data"]["0"]["count"] = "TU4R is 0"; $FFR["TU4R"]["data"]["1"]["count"] = "TU4R is 1"; $FFR["TU4R"]["data"]["2"]["count"] = "TU4R is 2"; I t

[PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Scott Fletcher
ed to create an array to unlimited number of PH10 without overwritting the current PH10. Here's my demo. TU4R = "TU4R is 0" PH10 = "PH10 is 0" PH10 = "PH10 is 1" PH10 = "PH10 is 2" Can anyone write a multidimentional array demostrat

Re: [PHP] Re: Any ideas on combining arrays????

2002-04-03 Thread Scott Fletcher
t;, "PH01", etc. // $number ==> Counter for the repeating $name like "PH01" $FFR[$name][$number] = $data_str; echo "Segment Type --> ".$FFR["TU4R"]["1"]; echo ""; echo "Segment Type --> ".$FFR["P

Re: [PHP] Downloading files

2002-04-09 Thread Scott Houseman
Try this: As you give the client Content-Type: application/save-as - it will not know what mime type the file is, and the browser will give the user a save-as prompt. This works in explorer - I haven't checked it in Mozilla etc - so you might have to tweak it a bit. Cheers

[PHP] Convert number into percentage????

2002-04-10 Thread Scott Fletcher
Hi! Excuse me if I seem a bit stump on how to convert the number to a percentage. I looked up on the function, printf() and sprintf() and I'm still a bit stump on that. Is there such a php function that would convert this number, "040" to a percentage? I hope there is one.

[PHP] Re: Convert number into percentage????

2002-04-10 Thread Scott Fletcher
Someone replied by email suggesting that I use "040 / 100". Unbelievable. I can't think of something simple. But thanks! Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > Excus

Re: [PHP] Apache 2.0

2002-04-11 Thread Andrew Scott
On 11 Apr 2002 at 14:37, Marcin Pasieka wrote: > How to install PHP on Apache 2.0 server? > As far as I can see, at the moment, the only way is to use cgi. It looks like that API stuff has to be rewritten/updated a little. However, since Apache 2 is now released, the API shouldn't be changing

[PHP] PEAR installation location?

2001-10-23 Thread Scott Singleton
ne is being used by PHP? -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] error compiling LDAP support into PHP, causes Apache to crash.

2001-10-25 Thread Scott Singleton
Could someone glance at my situation and the enclosed PHP error log snippet and give me an idea as to where to procede? I'm pretty stuck. Stats: OS: Linux (RH 7.1) Apache 3.19 Have latest openLDAP and Berkeley DB 3 Installed with no build errors (/usr/local;/usr/local/BerkeleyDB.3.3) My PHP c

Re: [PHP] PHP Redirect / header("location: ")

2001-11-09 Thread Scott Houseman
Make sure that there is no output from your PHP script - or any HTML code whatsoever - before you call the header function. Cheers Scott - Original Message - From: "phantom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 09, 2001 11:01 AM Subje

[PHP] php newbie - need advice

2001-11-11 Thread Scott Dudley
i'm new to php and need some advice. i have a site currently composed of static pages generated via a c program. i want to convert the site to php. the first page is an explorer-like table listing summary information. when a user clicks on a row in this table, they're taken to a detail page w

[PHP] wunderground and php

2001-11-16 Thread Scott Atkins
I would like to use something like the weather script that came with my linux on my webserver. However, I do not know where to start with sockets and such. The actual linux script takes too long to run and output. Any help would be great Scott -- PHP General Mailing List (http

[PHP] comma-formatting numbers

2001-11-17 Thread Scott Dudley
i'm new to php and am having difficulty translating this tiny awk function that i use to comma format numbers. can someone assist? my stumbling block thus far have been the fact the the php regex matching functions don't return the byte offset within the haystack and the regex replace functions

[PHP] HTTPs ????

2001-11-19 Thread Scott Fletcher
orm-urlencoded"); header("Content-length: $post_string_len"); header("site_id=$eq_one&service_name=$eq_two&efx_request=$eq_three"); echo ""; echo ""; echo "Testing!"; -- demo script end -- Thanks! Scott P.S. Just any helpful inform

[PHP] Username:Password??? (Using fsockopen...)

2001-11-19 Thread Scott Fletcher
Hi! How do I send the username and password to the port and recieve a response saying hte username & password is accepted or fail??? Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP] Error Code for fsockopen()??? What it mean?

2001-11-20 Thread Scott Fletcher
Hi! I use this script and I recieve an error code, what does this mean in english? I can understand the "0" or the "1", but "2" fsockopen (HOSTNAME, &$errno, &$errstr) or die("$errno: $errstr"); Thanks, Scott -- PHP General Mail

[PHP] addslashes, stripslashes

2001-11-26 Thread Scott Aikin
s out as: "\t" without the \4, for some reason stripslashes always removes any combination of \ and a number. Does anybody know a way around this or can maybe provide some insight about why this is happening? Thank you!!! - Scott

[PHP] php4 and ldap

2001-11-29 Thread Scott Augustus
from httpd:/usr/lib/apache/modules/libphp4.so at 0x40358694 This is on OpenBSD 2.9 with Apache/1.3.19. Any thoughts? Can't seem to find any similar errors in the archives. Thx! -- Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

[PHP] wordwrap

2001-12-03 Thread Scott Aikin
Hey Hey! I've got a question about wordwrap. It seems that when I run this on a string that contains spaces, if my replacement string happens to fall on a space, the space is removed completely from the string. This isn't good :-\ Any way around this? Thanks! - Scott -- P

Re: [PHP] session_id()

2001-12-07 Thread Scott Houseman
This is most probably because PHP sessions use browser cookies to store data - thus each browser would have a different session id, as they all store their cookies in separate locations on your PC's hard drive. Regards -- Scott - Original Message - From: "Gede Gilijk" &l

[PHP] php-4.1.0 distribution broke??

2001-12-10 Thread Bob Scott
ation, Inc. This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute it under the terms of the GNU General Public License; see the file named COPYING for details. Written by John Gilmore and Jay Fenlason. [bscott@bscott samba]$ -- Bob Scott

RE: [PHP] php-4.1.0 distribution broke??

2001-12-10 Thread Bob Scott
Bizzare -- About 2 hours ago http://www.php.net/downloads.php listed 4.1.0 dated 10 Dec 2001 as being the latest release. Now it's back to 4.0.6 I guess I will wait :) Thanks -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technol

[PHP] Modem using PHP & cURL?

2001-12-11 Thread Scott Fletcher
Hi! Does the cURL software allow the PHP to work with hte modem and stuffs like that?? 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

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

2001-12-14 Thread Scott Fletcher
use the PHP to tell UNIX to delete the file and Voila! 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] Re: PHP command for issuing UNIX command???

2001-12-14 Thread Scott Fletcher
e Permission and so on. (Can't use fopen() to create a file due to permission error). What am I missing here? Thanks, Scott "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > I wanted to know if t

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