Re: Fwd: RE: [PHP] Odd Strpos Behavior

2002-12-09 Thread Jason Wong
On Tuesday 10 December 2002 09:45, Steve Keller wrote: > At 12/9/2002 07:20 PM, John W. Holmes wrote: > > It'd be easier to use a regular expression for something like this. > > Something like this would work (from PHP Architect): > > I appreciate that, but considering I'm working from about 120

Re: [PHP] Re: Generating forms using OOP

2002-12-09 Thread Davy Obdam
Thanks scott, This might definatly come in handy later as i am new too OOP in PHP. I am now trying to generate a set of radio boxes... but without succes yet... Best regards, Davy Obdam mailto:[EMAIL PROTECTED] Scott Hurring wrote: Here's an OOP function from an HTML class i wrote to simplify

[PHP] MySQL: FullText Index

2002-12-09 Thread John Taylor-Johnston
Does anyone know what the limit is for a FULLTEXT Index in MySQL 3.23.49+? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update query based on array

2002-12-09 Thread Jason Wong
On Tuesday 10 December 2002 07:06, Jason Dulberg wrote: > I am displaying a list of data (from an sql query) and some of the fields > in that list are editable through a form. If the user chooses to edit one > or more of the rows of data, they must click on a checkbox to add that row > to an "updat

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread Tariq Murtaza
Thanks very much John :) John Nichel wrote: It probably wouldn't help you all that much. Since it was for my own personal use, I hardcoded directory paths and such for my personal set up. I used to do it with a shell script too (nothing fancy there either). Just configure it again without ap

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread John Nichel
It probably wouldn't help you all that much. Since it was for my own personal use, I hardcoded directory paths and such for my personal set up. I used to do it with a shell script too (nothing fancy there either). Just configure it again without apxs ./configure --with-whateveroptions mak

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread Tariq Murtaza
Hi John, Can we share your Perl script? I compiled with switch "--with-apxs=/usr/local/apache/bin/apxs" Is it that apache switch? Thanks Tariq John Nichel wrote: I went thru the same problem, so one day I just sat down, and wrote a Perl script that does the module and binary at the same time

Re: [PHP] Integer to decimal value.

2002-12-09 Thread Doug Parker
excellent. thanks. John W. Holmes wrote: I know this seems easy, but I can't get it to work for the freaking life of me. I have number that is an integer, lets say 15, and I need it to be 15.00, for a monetary value. I've casted every which way to no avail. www.php.net/number_forma

Re[2]: [PHP] Script not working from one computer

2002-12-09 Thread Tom Rogers
Hi, Tuesday, December 10, 2002, 2:31:48 AM, you wrote: >> Have you checked: >> >> Browser versions? (is the browser the same type/version as on the other >> machines) >> Is it a laptop? If so, are you using the internal keyboard with Numlock 1JWH> on? >> Is the machine in question set-up on the ne

Re[3]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Tom Rogers
Hi, Tuesday, December 10, 2002, 2:31:00 AM, you wrote: FW> Hi Tom, FW> I had this checked out before, but I did only check the errorlog for this FW> virtual host, there is an entry in the error log of the main server for FW> each request to the page in question: FW> [Mon Dec 9 17:27:05 2002

RE: [PHP] Integer to decimal value.

2002-12-09 Thread John W. Holmes
> I know this seems easy, but I can't get it to work for the freaking life > of me. I have number that is an integer, lets say 15, and I need it to > be 15.00, for a monetary value. I've casted every which way to no avail. www.php.net/number_format ---John W. Holmes... PHP Architect - A monthl

[PHP] Integer to decimal value.

2002-12-09 Thread Doug Parker
I know this seems easy, but I can't get it to work for the freaking life of me. I have number that is an integer, lets say 15, and I need it to be 15.00, for a monetary value. I've casted every which way to no avail. Any help would be greatly appreciated. -- PHP General Mailing List (http://

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread John Nichel
I went thru the same problem, so one day I just sat down, and wrote a Perl script that does the module and binary at the same time. Saved me alot of grief. Scott Hurring wrote: If you do it correctly, yes. The apache module usually lives somewhere in the apache hierarchy, whereas the 'php' bin

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread ed
Thanks to all that replied. Ed On Mon, 9 Dec 2002, John Nichel wrote: > Yes you can. Just use clean source, but the config line can be the same > less the "--with-apache" switch. > > [EMAIL PROTECTED] wrote: > > Can I do that using the same src I used to create the dynamic module and > >

RE: [PHP] update query based on array

2002-12-09 Thread Jason Dulberg
So you mean do something like: Doesn't that create 2 additional arrays though? Basically my form is just row after row of the html code above... each row has a different ID of course. The update query should only update fields with checked checkboxes. Thanks for your input! Jason > -O

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread John Nichel
Yes you can. Just use clean source, but the config line can be the same less the "--with-apache" switch. [EMAIL PROTECTED] wrote: Can I do that using the same src I used to create the dynamic module and both would work hapilly together? Thanks, Ed On Mon, 9 Dec 2002, John Nichel wrote: N

[PHP] [Bug Report ?!] Line return erased from xml attributes.

2002-12-09 Thread Sébastien MICHEL
Hi, I have a problem with my php4.1.2 from debian woody (because this version that why I didn't post a bug report). When I parsing an xml file. Returns (\r or \n) don't appear in string resulted from xml object attribut. _exple_: function startElement($parser, $name, $attrs) { ... va

Fwd: RE: [PHP] Odd Strpos Behavior

2002-12-09 Thread Steve Keller
At 12/9/2002 07:20 PM, John W. Holmes wrote: > It'd be easier to use a regular expression for something like this. > Something like this would work (from PHP Architect): I appreciate that, but considering I'm working from about 1200 files that already exist and use [] to denote table names, I k

Re: [PHP] Format a currency values

2002-12-09 Thread Ray Hunter
Look at this function in the manual: number_format() HTH, Ray On Mon, 2002-12-09 at 17:38, Adriano Santos wrote: > What should I do in order to view a currency format field? > For example: I have a double-type field in my table that receives values in > currenct, > and I want to show the user

Re: [PHP] Fractions

2002-12-09 Thread Stephen
I found how it works, and it doesn't put it into a mixed number. I work on it this week and see if I can't fix it. Thanks for all the help people! - Original Message - From: "Andrew Brampton" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 7:17 PM Sub

Re: [PHP] Variables problem

2002-12-09 Thread Andrew Brampton
The problem is as the error says, totalqty is not the name of one of your form elements, I think infact you want: echo "Items ordered: " . $totalqty . "\n"; Since the $_POST is just used to read varibles sent to you from a form, whereas any other varibles you make ie: $totalqty = $_POST["tireqty"

[PHP] Format a currency values

2002-12-09 Thread Adriano Santos
What should I do in order to view a currency format field? For example: I have a double-type field in my table that receives values in currenct, and I want to show the user the following message: print "Your monthly fee is R$50,00" ? thanks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Variables problem

2002-12-09 Thread Stephen
If you have globals on, then I see your problem. Rename $totalqty to something else - Original Message - From: "Marco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 4:30 AM Subject: [PHP] Variables problem > Hi All, > > I'm a newbie and try to learn a l

RE: [PHP] Odd Strpos Behavior

2002-12-09 Thread John W. Holmes
> I'm getting a really weird return from Strpos. What I'm doing is this, and > anyone familiar with any of the table-runner programs for RPG's will know > what I'm getting at here, I have a fields, like [adjective], [noun], etc., > which I need to pull out and replace with values from included php

[PHP] Variables problem

2002-12-09 Thread Marco
Hi All, I'm a newbie and try to learn a little php, so a searched the internet for documentation and wow...find a real course. Fanatic I typed the code below and ..yes the first part of my form works fine: My first orderform...looks cool, works fine Orderform.html **

Re: [PHP] Fractions

2002-12-09 Thread Stephen
Would this also print out as a mixed number if it should? - Original Message - From: "Andrew Brampton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 6:44 PM Subject: Re: [PHP] Fractions > Well how would you do it on paper? > > $numerator = 8; > $denominator

[PHP] Re: # of lines in a file

2002-12-09 Thread Scott Hurring
... or, if the file is HUGE and you don't want to read it all into RAM using file(), you could open the file using fopen() and read line-by-line until you get to the one you want. (or use fseek() fread() funcs to grab a big chunk of text at once and then count the newlines, and loop until you find

Re: [PHP] Re: Not able to connect to FTP server

2002-12-09 Thread Scott Hurring
it doesn't look like the FTP is failing becuase of the if() construction, becuase this works fine... Have you tried checking error messages (IIRC, $php_errmsg can be setup to hold the most recent error message), or try turning up the error reporting on your test server to E_ALL (look in php.ini)

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread Scott Hurring
If you do it correctly, yes. The apache module usually lives somewhere in the apache hierarchy, whereas the 'php' binary is '/usr/bin/' or '/usr/local/bin/', so they can quite happily co-exist. Beware though, when upgrading one, upgrade BOTH. It drove me nuts once when i forgot, and ended up havi

Re: [PHP] writing to mysql using php

2002-12-09 Thread Scott Hurring
You're limited to one action per statement, not one record. Using "UPDATE ... WHERE", you can update any number of rows with a single SQL statement. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message 001301c29fc8$b20f06c0$0

Re: [PHP] Linux and Graphics

2002-12-09 Thread Scott Hurring
With RedHat, AFAIR you have to compile PHP from source *after* first configuring the GD libraries. It's always been a massive PITA when i've had to compile PHP on Redhat with Graphic ext's -- try debian instead ;-) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Ray Hunt

Re: [PHP] Fractions

2002-12-09 Thread Stephen
Ok, I got one. It finds the great common divisor. I divide the numerator and denominator by it. Then I do an if statement to see if the numerator is greater then the denominator. If so, I divide them by each other. How can I tell if there's a remainder, and if so, put it into a fraction in simplies

Re: [PHP] Fractions

2002-12-09 Thread Andrew Brampton
Well how would you do it on paper? $numerator = 8; $denominator = 12; $factor = 1; //Start at the greater of the 2, and loop down til you find a common factor for ($i=max($numerator,$denominator);$i>1;$i--) { //Check if each number divided by $i has no remainder if (($numerator % $i) ==

[PHP] Re: Generating forms using OOP

2002-12-09 Thread Scott Hurring
Here's an OOP function from an HTML class i wrote to simplify forms myself -- It might come in handy for ya later :-) // Single Select dropdown box /* @params $name String Name of this form element $items Array Array of items to place in this select box $selected String Single item to s

Re: [PHP] Fractions

2002-12-09 Thread Ray Hunter
If there are none in the math functions then you need to create your own or do a search at google to see if anyone has created some functions like that... On Mon, 2002-12-09 at 16:20, Stephen wrote: > But how do you find it in PHP? > > > - Original Message - > From: "Ray Hunter" <[EMA

[PHP] Odd Strpos Behavior

2002-12-09 Thread Steve Keller
I'm getting a really weird return from Strpos. What I'm doing is this, and anyone familiar with any of the table-runner programs for RPG's will know what I'm getting at here, I have a fields, like [adjective], [noun], etc., which I need to pull out and replace with values from included php files

Re: [PHP] update query based on array

2002-12-09 Thread Jimmy Brake
not real sure of the setup of the form but if you have mutiple groups of items to be updated then you should make the rank an array -- rank[pid#] you should make all the items -- that are related part of the same group -- by using [] On Mon, 2002-12-09 at 15:06, Jason Dulberg wrote: > I am displ

Re: [PHP] Fractions

2002-12-09 Thread Stephen
But how do you find it in PHP? - Original Message - From: "Ray Hunter" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 6:12 PM Subject: Re: [PHP] Fractions > Just like math...find the greatest common denominator of the numer

Re: [PHP] Fractions

2002-12-09 Thread Ray Hunter
Just like math...find the greatest common denominator of the numerator and denominator and then divide each (numerator and denominator) by that number... ie: numerator = 8 and denominator = 12 so we have 8/12 then greatest common denominator is 4... so 8/4 = 2 and 12/4 = 3 thus, 8/12 => 2/3

[PHP] update query based on array

2002-12-09 Thread Jason Dulberg
I am displaying a list of data (from an sql query) and some of the fields in that list are editable through a form. If the user chooses to edit one or more of the rows of data, they must click on a checkbox to add that row to an "update array". The problem is that when I read that array to pass to

[PHP] Fractions

2002-12-09 Thread Stephen
I know for a fact that you're all going to think, "What the heck does he want fractions for!?" I have a reason...I just won't tell you. :-P   My problem is this. I want to simplify a fraction to simplest form but if I divide, I'll get a decimal which I can't use. How could I put it in simple

Re: [PHP] Spaces

2002-12-09 Thread Stephen
One more problem I could see is that if the user types in an odd number of spaces like 5 or 7. Wouldn't this replace string only replace spaces all the even spaces like 2, 4, 6, 8, and so on? - Original Message - From: "Andrew Brampton" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]

Re: [PHP] Please help - uploading multiple files

2002-12-09 Thread Ernest E Vogelsinger
At 23:10 09.12.2002, Allred, Mark said: [snip] >The problem is, I have to click "Browse" for each file. > >I want to be able to access the functionality to allow for Shift-Click >series picker that everyone probably knows about. I need to be able to >slurp

RE: [PHP] Cookie handling, NS 4.x?

2002-12-09 Thread Chris Shiflett
--- Chad Day <[EMAIL PROTECTED]> wrote: > I'm not sure how this would matter since the cookie is > never set at all.. it's not an issue of it reading the > cookie, as it can't read what is never set. I'll give > it a shot when I get home though anyway. Read my response again, and you'll see that w

[PHP] Please help - uploading multiple files

2002-12-09 Thread Allred, Mark
Hi, I am very new to PHP, but it looks like it can do quite a bit. I am impressed by the number of array functions there are. I have a question. I am trying to create a php program that will allow for multiple file uploads. I already have the HTML working for enctype="multipart/form-data". I

Re: [PHP] Spaces

2002-12-09 Thread Stephen
So would I just do this? $text = str_replace(" ", " ", $_POST['input']); - Original Message - From: "Andrew Brampton" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 4:30 PM Subject: Re: [PHP] Spaces replace more than 1 space

Re: [PHP] Find Next Integer

2002-12-09 Thread Stephen
Ah, yes, thanks! - Original Message - From: "Andrew Brampton" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 4:08 PM Subject: Re: [PHP] Find Next Integer > Well that case then > if ($sign = ">") > ceil($number); > else >

RE: [PHP] Cookie handling, NS 4.x?

2002-12-09 Thread Chad Day
I'm not sure how this would matter since the cookie is never set at all.. it's not an issue of it reading the cookie, as it can't read what is never set. I'll give it a shot when I get home though anyway. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Monday, Dec

Re: [PHP] Spaces

2002-12-09 Thread Andrew Brampton
replace more than 1 space in a row with a   OR, when outputing their text place a tag around it Andrew - Original Message - From: Stephen To: PHP List Sent: Monday, December 09, 2002 9:25 PM Subject: [PHP] Spaces I have a article submission thing where the user types in w

Re: [PHP] Cookie handling, NS 4.x?

2002-12-09 Thread Chris Shiflett
--- Chad Day <[EMAIL PROTECTED]> wrote: > I am having a fairly confusing problem with setcookie() > in NS 4.x. > > My script: > > nscookie.php: > > setcookie("NSUSERNAME", 'cday', time()+2592000, '/', > ".mydomain.com"); > Header("Location: nscookie2.php"); > exit(); > > nscookie2.php: > > ech

[PHP] Spaces

2002-12-09 Thread Stephen
I have a article submission thing where the user types in whatever they want. I've already made it so that when the user pushes enter, it saves it as a for HTML but how would I do this for spaces also? I'm storing the contents in a MySQL database... Thanks,Stephen Cratonhttp://www.melchior.u

Re: [PHP] writing to mysql using php

2002-12-09 Thread Hugh Danaher
Shams, Most database actions you want your user to do should be limited to them writing to one record and/or updating that one record. If instead you want to update information on several records, then you'd need a statement like: $table="your_table_name"; $query=mysql_query("update $table set col

Re: [PHP] Find Next Integer

2002-12-09 Thread Andrew Brampton
Well that case then if ($sign = ">") ceil($number); else floor($number); Is that nearer to what you mean? Andrew - Original Message - From: "Stephen" <[EMAIL PROTECTED]> To: "Andrew Brampton" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002

Re: [PHP] a simple test script for testing gd

2002-12-09 Thread Ray Hunter
There are some test scripts in the tests directory of the src. However, i do not know if there are any script for the testing of gd functions... On Mon, 2002-12-09 at 13:12, [EMAIL PROTECTED] wrote: > Hello list, > > Anybody here who knows a simple php-script for the puspose of testing gd-rela

Re: [PHP] header gives different results with post

2002-12-09 Thread Ellen Cyran
The actual code echoes a buffer of comma separated values. I just shorten it since it doesn't work for post even with these few headers and the word test echoed. At 11:28 AM 12/9/2002 -0800, Evan Nemerson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you trying to attach an additiona

Re: [PHP] Linux and Graphics

2002-12-09 Thread Ray Hunter
What functions do you want to use? You can review the functions in the manual and it will tell you how to configure php with them... On Mon, 2002-12-09 at 13:31, Todd Cary wrote: > I am running PHP in a RedHat 7.3 environment and I notice that the > graphic functions are not present. Since I am

[PHP] external program execution error

2002-12-09 Thread Lee P. Reilly
Hi there, I am having problems with passthru, exec, etc. on Red Hat 8 (w/ PHP 4.2.3; Apache 1.3.27). When I use passthru / exec to execute "pwd" or "ls-al" I have no problems executing & viewing the output. However, when I try and execute a program using the command line e.g "./lee54 < GNOM_FILE_g

Re: [PHP] Find Next Integer

2002-12-09 Thread Stephen
But the problem is, the user may type in a decimal.. I guess I could round then add or subtract.. Would that work too? - Original Message - From: "Andrew Brampton" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Sent: Monday, December 09, 2002 1:14 PM Subject: Re: [PHP] Find Next In

[PHP] Cookie handling, NS 4.x?

2002-12-09 Thread Chad Day
I am having a fairly confusing problem with setcookie() in NS 4.x. My script: nscookie.php: setcookie("NSUSERNAME", 'cday', time()+2592000, '/', ".mydomain.com"); Header("Location: nscookie2.php"); exit(); nscookie2.php: echo $_COOKIE[NSUSERNAME]; In IE (all versions I have tested), this

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread ed
Can I do that using the same src I used to create the dynamic module and both would work hapilly together? Thanks, Ed On Mon, 9 Dec 2002, John Nichel wrote: > No. To get the binary executable, compile it without the apache switch. > > [EMAIL PROTECTED] wrote: > > When you compile php for

[PHP] Linux and Graphics

2002-12-09 Thread Todd Cary
I am running PHP in a RedHat 7.3 environment and I notice that the graphic functions are not present.  Since I am quite new to Linux, I would appreciate it if someone could explain to me what I need to do to have graphic functions. Many thanks. Todd --

[PHP] a simple test script for testing gd

2002-12-09 Thread info
Hello list, Anybody here who knows a simple php-script for the puspose of testing gd-related tasks eg like dynamic construction of buttons??? Oliver Etzel

RE: [PHP] writing to mysql using php

2002-12-09 Thread Enrique Garcia Briones
If there were no more replies... you can use it by means of BUCLES, isn't it? BR, Enrique -Mensaje original- De: Shams [mailto:[EMAIL PROTECTED]] Enviado el: Martes, 03 de Diciembre de 2002 04:32 a.m. Para: [EMAIL PROTECTED] Asunto: [PHP] writing to mysql using php Hi, I'm relatively n

Re: [PHP] Dynamic vs. Static

2002-12-09 Thread John Nichel
No. To get the binary executable, compile it without the apache switch. [EMAIL PROTECTED] wrote: When you compile php for apache using the dynamic module example used in the documentation, do you not get an exacutable php to use from the command line? Ed -- By-Tor.com It's all about the

[PHP] Dynamic vs. Static

2002-12-09 Thread ed
When you compile php for apache using the dynamic module example used in the documentation, do you not get an exacutable php to use from the command line? Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work

2002-12-09 Thread Roedel, Mark
Are you *sure* your Apache module and commandline interpreter were both compiled with the same set of options? Does a phpinfo() call to the Apache module indicate that gettext is enabled there? --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer| at himsel

Re: [PHP] header gives different results with post

2002-12-09 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you trying to attach an additional results.csv, or are you trying to name the output (ie "test")??? If you're trying to name the output, changing Content-Disposition: attachment;filename="results.csv" to Content-Disposition: inline;filename="re

Re: [PHP] How to test php.info from command line

2002-12-09 Thread Jason Wong
On Tuesday 10 December 2002 02:39, [EMAIL PROTECTED] wrote: > Hello All, > > >How to test php.info from command line: > > #echo "" | php > > to the standard output (screen) - or if you want to a file like this way: > #echo "" | php > /tmp/test_php.txt > > Oliver Etzel > > .eu - domain are coming so

Re: Re[2]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Jason Wong
On Tuesday 10 December 2002 00:31, Fritz Wittwer wrote: > >FW> I have now upgraded to Apache 1.3.17 and php4.2.3 no change. Did you mean 1.3.27? 1.3.17 is pretty old. > >Does the apache error_log give any clues? > I had this checked out before, but I did only check the errorlog for this > virtu

[PHP] PHP 4.2.3, Apache 2.0.40, gettext(), and web don't work

2002-12-09 Thread Dubravko Kakarigi
PHP 4.2.3 compiled with gettext(), with Apache 2.0.40. A call to bindtexdomain() when viewed through the web generates PHP Fatal error: Call to undefined function: bindtextdomain() in ... When I run the same script from the command line, as in php -f index.php, it works fine. Any ideas? ==

[PHP] How to test php.info from command line

2002-12-09 Thread info
Hello All, >How to test php.info from command line: #echo "" | php to the standard output (screen) - or if you want to a file like this way: #echo "" | php > /tmp/test_php.txt Oliver Etzel .eu - domain are coming soon www.t-host.com -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] re-compiling php4

2002-12-09 Thread info
Did it and was working fine . Thank u Jason - Original Message - From: Jason Wong To: [EMAIL PROTECTED] Sent: Monday, December 09, 2002 4:37 PM Subject: Re: [PHP] re-compiling php4 On Monday 09 December 2002 20:58, [EMAIL PROTECTED] wrote: > Hello List, > Even though I´

Re: [PHP] re-compiling php4

2002-12-09 Thread info
Hi Jason, Hi all, >> Even though I´d compiled and installed my source php4.3 sucessfull I will >> get the following compiling information by php.info: >For best results when recompling. Completely remove the old source directory >then untar a fresh new copy. Did it. Yes - working fine. This tip

Re: [PHP] Re: Not able to connect to FTP server

2002-12-09 Thread Adam Voigt
Umm, try this: $ftp = ftp_connect("ftp.direw.net") or die("Couldn't connect."); See if you get "Couldn't connect". I suspect it's cause your both checking the variable and setting it in the same clause. On Mon, 2002-12-09 at 12:34, bill wrote: Have you tried passive mode?

[PHP] Re: Not able to connect to FTP server

2002-12-09 Thread bill
Have you tried passive mode? Vinod wrote: > Hi friends, > > I am having a DSL Internet connectivity in our office and my PC is > connected to Internet using a HTTP/FTP Proxy(192.168.0.10) and the > browser(Mozilla) in my PC is configured to connect to net through the > proxy > > When I tried to c

[PHP] Re: save file from outside url

2002-12-09 Thread Jeremiah Breindel
I figured it out! Variable scope problem! Thanks for all your help! "Jeremiah Breindel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to save a dynamically generated image on an outside server to a > local file on my server using the code below: >

Re: [PHP] # of lines in a file

2002-12-09 Thread Ray Hunter
Might not be the most secure way, but very fast... $lines = `cat file.txt | wc -l` That will give you the number of lines...but again not the best method... On Mon, 2002-12-09 at 09:58, [EMAIL PROTECTED] wrote: > Hey guys, I've been searching the manual for a way to grab the number of > lines

[PHP] header gives different results with post

2002-12-09 Thread Ellen Cyran
When I submit a post to the following page rather than a get the download screen in IE 5.5SP2 appears twice. Is there any way around this? I definitely need to use post since the length of the string being sent is fairly long. header("Content-type: application/octet-stream"); header('Con

RE: [PHP] # of lines in a file

2002-12-09 Thread John W. Holmes
> Hey guys, I've been searching the manual for a way to grab the number of > lines in a file and read a particular line from it, however I found no > solution to my problem so I'm wondering if any of you out there could help > me file() will read the file into an array, one line per element, so...

Re: [PHP] # of lines in a file

2002-12-09 Thread Adam Voigt
$f = fopen("filename","r"); $data = "" fclose($f); $data = "" $lines = count($data); $certainline = $data[linenumberyouwant]; Replace filename in both places, and linenumberyouwant. On Mon, 2002-12-09 at 11:58, [EMAIL PROTECTED] wrote: Hey guys, I've been searching the m

[PHP] Find Next Integer

2002-12-09 Thread Stephen
I have yet another math question. How could you find the next integer of a number specified? Then how could you tell it to go up or down depending on if the greater then or less tehn sign was chosen by the user? Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persever

Re: [PHP] # of lines in a file

2002-12-09 Thread John Nichel
You could try... $file = ( "/path/file.ext" ); $lines = sizeof ( $file ); [EMAIL PROTECTED] wrote: Hey guys, I've been searching the manual for a way to grab the number of lines in a file and read a particular line from it, however I found no solution to my problem so I'm wondering if any of y

RE: [PHP] PHP with JSP

2002-12-09 Thread John W. Holmes
> I hava to develop a solution that use PHP and JSP. But the system has to > use the same session. > > I´ve already installed the PHP integration with Java and it works. But I > can´t find the class to call a session? Well, your JSP script should receive the same cookie as your PHP script with th

[PHP] # of lines in a file

2002-12-09 Thread Clivus2k1
Hey guys, I've been searching the manual for a way to grab the number of lines in a file and read a particular line from it, however I found no solution to my problem so I'm wondering if any of you out there could help me :-) - CS

RE: [PHP] Script not working from one computer

2002-12-09 Thread Rich Gray
Does a print_r() of the superglobal arrays differ in any significant way when posting the username/password from the troublesome client when compared to the superglobals for a well behaved machine? -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 09 December 200

Re: [PHP] Script not working from one computer

2002-12-09 Thread 1LT John W. Holmes
> Have you checked: > > Browser versions? (is the browser the same type/version as on the other > machines) > Is it a laptop? If so, are you using the internal keyboard with Numlock on? > Is the machine in question set-up on the network correctly, i.e. has it got > domain, gateway addresses etc set

Re[2]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Fritz Wittwer
At 16:04 09.12.2002, Tom Rogers wrote: Hi, Tuesday, December 10, 2002, 12:09:46 AM, you wrote: FW> No, it is not output from a DB, just a simple static text file with some FW> PHP functions in it, but even if I remove them, the error remains the same. FW> I have now upgraded to Apache 1.3.17

Re: [PHP] save file from outside url

2002-12-09 Thread Jeremiah Breindel
image output code is close to the bottom *** $image_filename = "../images/tsroll_" . $id . ".png"; //dynamic file name $msg = $rollover; class textPNG { var $font = 'fonts/ARIAL.TTF'; //default font. put in full path. var $msg = "undefined"; // default text to display. var $s

Re: [PHP] save file from outside url

2002-12-09 Thread Jason Wong
On Monday 09 December 2002 23:44, Jeremiah Breindel wrote: > Ok. I stripped the needed code out of the image creation script and > inserted it into my update script. It works great as long as I hard > code in the filename of the file that is being saved to the server. > When I pass the image crea

Re: [PHP] MySQL Table backup

2002-12-09 Thread Adam Voigt
Quote: It sounds like you are not running it from the command prompt but from within mysql. Reponse: I suspect as much. On Mon, 2002-12-09 at 11:15, Chris Hewitt wrote: Shaun wrote: >ERROR 1064: You have an error in your SQL syntax near

Re: [PHP] MySQL Table backup

2002-12-09 Thread Chris Hewitt
Shaun wrote: ERROR 1064: You have an error in your SQL syntax near 'mysqldump -h localhost -u xxx -p xxx backup.sql' at line 1 It sounds like you are not running it from the command prompt but from within mysql. Unless the omission of the redirection sign ">" but not "backup.sql" was intentio

Re: [PHP] Using odbc_pconnect function

2002-12-09 Thread Adam Voigt
I believe everything you have mentioned is automatic. You don't need to pass $connectionstring since PHP detects it's the same info and just sends you the same connection. Also, I believe PHP auto-closes after a certain amount of time (might be configurable, check the php.ini). On Mon, 2002-

[PHP] Using odbc_pconnect function

2002-12-09 Thread Luc Roettgers
Hi, Trying to use persistant connections to reduce general access times on my tables, I have the following problem. When creating my connection with: $connectionstring = odbc_pconnect("prov","username","pass"); I'm able to use it on the current page but how do I resuse the variable $connecti

RE: [PHP] Creating a report in PHP

2002-12-09 Thread José León Serna
El lun, 09-12-2002 a las 16:39, Jon Haworth escribió: > Hi Todd, > > > Is there a "report generator" that will give me the > > flexibility to use fonts and fontfaces that works with > > PHP and MySQL? > > I don't know of a PHP-based report generator (although a hunt round > sourceforge might tu

[PHP] Metastorage generates Entity-Relationship class diagrams in UML

2002-12-09 Thread Manuel Lemos
Hello, As announced last week, Metastorage is an application that generates customizable APIs made of classes that store and retrieve objects stored in persistent storage containers like for instance relational databases. The generated code uses Metabase API and consequently supports PEAR::MDB

Re: [PHP] save file from outside url

2002-12-09 Thread Jeremiah Breindel
Ok. I stripped the needed code out of the image creation script and inserted it into my update script. It works great as long as I hard code in the filename of the file that is being saved to the server. When I pass the image creation function a variable for the filename it tells me "invalid fil

RE: [PHP] Creating a report in PHP

2002-12-09 Thread Jon Haworth
Hi Todd, > Is there a "report generator" that will give me the > flexibility to use fonts and fontfaces that works with > PHP and MySQL? I don't know of a PHP-based report generator (although a hunt round sourceforge might turn something up), but you can: 1. use PHP scripts to output your repo

Re: [PHP] MySQL Table backup

2002-12-09 Thread Adam Voigt
Your not trying to run that from within MySQL are you? You do know that mysqldump is an entirely seperate command then the mysql console (where you would for instance type, USE DB; SELECT blah FROM table) right? On Mon, 2002-12-09 at 10:26, Shaun wrote: thanks for the reply,

Re: [PHP] re-compiling php4

2002-12-09 Thread Jason Wong
On Monday 09 December 2002 20:58, [EMAIL PROTECTED] wrote: > Hello List, > Even though I´d compiled and installed my source php4.3 sucessfull I will > get the following compiling information by php.info: > > Configure Command './configure' '--with-gd' '--with-zlib' > > and nothing else. > >

Re: [PHP] Re: make error

2002-12-09 Thread info
Hi Lokesch, Output is for gd gd GD Support => enabled GD Version => bundled (2.0 compatible) GIF Read Support => enabled PNG Support => enabled WBMP Support => enabled Any Hints? Oliver - Original Message - From: Lokesh Setia To: [EMAIL PROTECTED] Sent: Monday, December 09,

  1   2   >