Re: [PHP] reading from files

2004-09-17 Thread Mark
--- Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I am wondering how to read lines from a file to a php array? I > would like to > integrate a logfile into a html site. Is it possible to read line > by line and to > check how many lines there are in total? http://www.php.net/file > > Th

Re: [PHP] reading from files

2004-09-17 Thread Jason Davidson
use the functoin file, it does exactly that. http://ca3.php.net/manual/en/function.file.php Jason Merlin <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read li

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Chris Gregors
:^) too many free cycles. -Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 2:10 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] mysql_connect does not connect -- Original message from "John Holmes" : -- > Whatever

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
> HAHAHA, this thread is awsome though, you all must admit the humor > involved here. I hope this thread continues for a couple more days. > or here is an idea for a thread > {PHP} globals.asp wont set my php vars Firewall. -- --Matthew Sims -- -- PHP General Mailing

Re: [PHP] reading from files

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 22:16:43 +0200, Merlin <[EMAIL PROTECTED]> wrote: > I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read line by line and to > check how many lines there are in total? > > Thank you for any h

Re: [PHP] reading from files

2004-09-17 Thread Steve Brown
> I am wondering how to read lines from a file to a php array? I would like to > integrate a logfile into a html site. Is it possible to read line by line and to > check how many lines there are in total? I'm new here, so someone please tell me if "RTFM" is frowned upon as a response. :) http://w

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
that takes the cake. :D :D J "Matthew Sims" <[EMAIL PROTECTED]> wrote: > > > > > "[PHP} Can't get NULL to output anything!" > > > > hehe > > Andre > > > > > > Check your firewall. > > -- > --Matthew Sims > -- > > -- > PHP General Mailing List (http://www.php.ne

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 13:34:18 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > > Check your firewall. I would but I don't have 30 minutes to spare. Too busy walking my lizard.. or something. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

RE: [PHP] reading from files

2004-09-17 Thread Jay Blanchard
[snip] I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by line and to check how many lines there are in total? [/snip] Start with http://www.php.net/fopen -- PHP General Mailing List (http://www.php.n

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Jay Blanchard
Did you just top post? Top posting === evil; -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 3:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] mysql_connect does not connect HAHAHA, this thread is awsome though, you al

Re: [PHP] reading from files

2004-09-17 Thread John Holmes
From: "Merlin" <[EMAIL PROTECTED]> I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by line and to check how many lines there are in total? Thank you for any hint on that, Hint: http://www.php.net/manua

RE: [PHP] reading from files

2004-09-17 Thread Gryffyn, Trevor
I usually use file(): http://www.php.net/manual/en/function.file.php -TG > -Original Message- > From: Merlin [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] reading from files > > > Hi there, > > I am wondering how to read

Re: [PHP] To Rasmus

2004-09-17 Thread Richard Whitney
On Fri, 17 Sep 2004 07:46:23 -1200, blackwater dev <[EMAIL PROTECTED]> wrote: > > > how did gmail get you blocked? Gmail did not block me - Rasmus blocked me 18 months ago when I posted a joke to 2 different mailing lists - I was just trying to make people have a laugh. Richard -- PHP General

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 14:41:28 -0600, Chris Gregors <[EMAIL PROTECTED]> wrote: > This whole thread has degraded to the point of: > > YHBT. YHL. HAND. > > and I'm not helping it. Well.. could you at least not top post while you're not helping.. Trying to keep this dignified and stuff. :)

Re: [PHP] Re: Server upload test

2004-09-17 Thread Richard Whitney
> > And just what metrics do you hope to be measuring (if any)? Or is this just > for the fun of it? I have a client who was going to host his website at a particular host. It seemed rather slow so I wrote this liittle script to display the difference between that host and mine - just a visual te

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Andre Dubuc
) Andre On Friday 17 September 2004 05:08 pm, you wrote: > Did you just top post? Top posting === evil; > > -Original Message- > From: Jason Davidson [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 3:14 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] mysql_

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Jay Blanchard
[snip] Thanks for the input, Jay! I prefer top posting since you get the answer first, then the question (iff you're interested enough to scroll down -- sigh -- I'm too lazy :>) [/snip] .siht ekil rewsna dluohs I nehT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] reading from files

2004-09-17 Thread Jay Blanchard
[snip] I'm new here, so someone please tell me if "RTFM" is frowned upon as a response. :) [/snip] Yes. Becasue you have forgotten the also important STFA and STFW. All or nothingall or nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] reading from files

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 15:58:04 -0500, Steve Brown <[EMAIL PROTECTED]> wrote: > I'm new here, so someone please tell me if "RTFM" is frowned upon as a > response. :) RTFA and find out :) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] reading from files

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 04:58, Steve Brown wrote: > > I am wondering how to read lines from a file to a php array? I would like > > to integrate a logfile into a html site. Is it possible to read line by > > line and to check how many lines there are in total? > > I'm new here, so someone ple

[PHP] very interesting post problem

2004-09-17 Thread QT
Dear Sirs, I need to post 3 string data to destination adres. But I see first time, the name of the variables are same such as DATA. I ask the destination ovner is there any error. Should be the form fields name such as DATA1, DATA2 and DATA3. According him, his form is working fine and fields ar

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
How do I sync an Oracle and MSSQL database on an AIX system remotely from Windows '95? p.s. I found this email address on the php website, which means I've been to the php website, therefore this is a php question. Don't you dare flame me. Jay Blanchard wrote: Did you just top post? Top post

Re: [PHP] Re: Server upload test

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 05:22, Richard Whitney wrote: > > And just what metrics do you hope to be measuring (if any)? Or is this > > just for the fun of it? > > I have a client who was going to host his website at a particular host. > It seemed rather slow so I wrote this liittle script to di

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 05:17, Greg Donald wrote: > Well.. could you at least not top post while you're not helping.. > Trying to keep this dignified and stuff. :) I think everybody who is anybody who had a point to make has already done so. Can we bury this thread now? -- Jason Wong ->

[PHP] Code spacing causing HEADER problem?

2004-09-17 Thread BOOT
I don't get this! Why does example (a) work for me but not example (b) ??? I realize that no output can be sent to the browser before the header but why would code linepace effect? Thanks for any info! (a) (b) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
what is top posting "Jay Blanchard" <[EMAIL PROTECTED]> wrote: > > Did you just top post? Top posting === evil; > > -Original Message- > From: Jason Davidson [mailto:[EMAIL PROTECTED] > Sent: Friday, September 17, 2004 3:14 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re:

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
haha John Nichel <[EMAIL PROTECTED]> wrote: > > How do I sync an Oracle and MSSQL database on an AIX system remotely > from Windows '95? > > p.s. I found this email address on the php website, which means I've > been to the php website, therefore this is a php question. Don't you > dare fl

[PHP] thumbnail of webpage

2004-09-17 Thread Michael Mao
Is there a way to capture a snapshot of a html page and save it as a jpg using php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Jason Davidson
You absolutely can not send anything to the browser before a header is sent... so if you put a space in there, it gets sent to the client.. no good.. its not the code thats the problem . its that you escaped from php and left space between. Jason "BOOT" <[EMAIL PROTECTED]> wrote: > > I don't

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 06:35, BOOT wrote: > I don't get this! > > Why does example (a) work for me but not example (b) ??? I realize that no > output can be sent to the browser before the header but why would code > linepace effect? Thanks for any info! > > > (a) > > > > > > (b) > > > >

Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Manuel Lemos
Hello, On 09/17/2004 04:15 PM, Mark wrote: Thanks for the your comments. I'll definitely submit it to PECL as soon as it is more stable, but I'm not sure it is a good idea to submit a pre-alpha... There are plenty of extensions in that state in PECL. The point of PECL is that you most likely get m

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread raditha dissanayake
Jay Blanchard wrote: [snip] Thanks for the input, Jay! I prefer top posting since you get the answer first, then the question (iff you're interested enough to scroll down -- sigh -- I'm too lazy :>) [/snip] .siht ekil rewsna dluohs I nehT did you do that with strrev() or type it out by hand? -

Re: [PHP] Re: Server upload test

2004-09-17 Thread raditha dissanayake
Jason Wong wrote: On Saturday 18 September 2004 05:22, Richard Whitney wrote: And just what metrics do you hope to be measuring (if any)? Or is this just for the fun of it? I have a client who was going to host his website at a particular host. It seemed rather slow so I wrote this liittl

Re: [PHP] thumbnail of webpage

2004-09-17 Thread Jason Davidson
First, im not sure how you would capture a snapshot of the page, sinse the page is rendered by the browser, and php is completely server side. Possibly there is a way to fopen a page or something, but... i dunno.. as for making thumbnail, using the gd extension, is quite easy. check the manual fo

RE: [PHP] thumbnail of webpage

2004-09-17 Thread Vail, Warren
I have been looking into this over the last week and have come up blank as well. Doing this manually is simple, point your browser to your URL, and in windows use to copy an image of the rendering in the browser to the scratch-pad, then paste the image into a tool like paint to cut out the part o

Re: [PHP] thumbnail of webpage

2004-09-17 Thread raditha dissanayake
Michael Mao wrote: Is there a way to capture a snapshot of a html page and save it as a jpg using php? This is something that's very very hard to do with PHP but can be easily done with Java. -- Raditha Dissanayake. http

Re: [PHP] very interesting post problem

2004-09-17 Thread raditha dissanayake
QT wrote: Dear Sirs, I need to post 3 string data to destination adres. But I see first time, the name of the variables are same such as DATA. I ask the destination ovner is there any error. Should be the form fields name such as DATA1, DATA2 and DATA3. You appear to be posting to a servlet and

Re: [PHP] create and read array

2004-09-17 Thread John Taylor-Johnston
John, $sql .= "INSERT INTO newtable VALUES ({$mydata->AUS},{$mydata->id});\r\n"; I thought mysql would not permit that, running more than one query (insert ...) at a time? You can get away with it in phpmyadmin, although. -- John Taylor-Johnston --

[PHP] DROP TABLE IF EXISTS

2004-09-17 Thread John Taylor-Johnston
MySQL question: DROP TABLE IF EXISTS Instead of dropping the table, I want to truncate the table if it contains something. ANyone know of a way? I couldn't find anything under truncate in the manual. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Curt Zirzow
* Thus wrote BOOT: > I don't get this! > > Why does example (a) work for me but not example (b) ??? I realize that no > output can be sent to the browser before the header but why would code > linepace effect? Thanks for any info! > > > (a) > > > > > > (b) > > > > PHP is friendly only

Re: [PHP] DROP TABLE IF EXISTS

2004-09-17 Thread raditha dissanayake
John Taylor-Johnston wrote: MySQL question: DROP TABLE IF EXISTS Instead of dropping the table, I want to truncate the table if it contains something. ANyone know of a way? I couldn't find anything under truncate in the manual. some one in the mysql list might know. -- Raditha Dissanayake.

Re: [PHP] thumbnail of webpage

2004-09-17 Thread Curt Zirzow
* Thus wrote Michael Mao: > Is there a way to capture a snapshot of a html page and save it as a jpg > using php? As you can see this isn't an easy task. One possiblity is to ask the mozilla/gecko developers if it would be possible to to create a library that would render a page into a bitmap.

Re: [PHP] thumbnail of webpage

2004-09-17 Thread Brad Pauly
> Michael Mao wrote: > > > Is there a way to capture a snapshot of a html page and save it as a > > jpg using php? This is a bit of a hack, but kinda neat if you don't mind setting it up. I'm sure you could use php to call a script anyway. Heh. http://www.livejournal.com/users/brad/2015327.html

[PHP] How to re-code?

2004-09-17 Thread John Taylor-Johnston
I had an $array, with a list of authors and an entry number. Below is the code I used. Now I have compiled it all into a table. I don't know how to re-code these lines: foreach (array_count_values ($authors) as $author=>$count) foreach ($author_list[$author] as $ausid) ---new code---

Re: [PHP] create and read array

2004-09-17 Thread John Holmes
John Taylor-Johnston wrote: John, $sql .= "INSERT INTO newtable VALUES ({$mydata->AUS},{$mydata->id});\r\n"; I thought mysql would not permit that, running more than one query (insert ...) at a time? You can get away with it in phpmyadmin, although. You can only run one query per mysql_query() cal

<    1   2