RE: [PHP] Adding GD libraries after compile

2002-06-27 Thread Martin Towell
dl() is your friend here - well it works fine on the win version at least... :) -Original Message- From: PHPCoder [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 5:03 PM To: php-general Subject: [PHP] Adding GD libraries after compile Hi I have a working PHP build on my webserver

Re: [PHP] Re: Generating Barcodes and printing

2002-06-27 Thread PHPCoder
Thanks, this one seems to be the easiest. Shouldn't be too difficult for me to modify so the barcode gets displayed alone on a new page so the person can just hit the print button on his browser... Anil Kumar K. wrote: >Also: http://www.mribti.com/barcode/ > > >On Thu, 27 Jun 2002, Peter wrot

[PHP] Adding GD libraries after compile

2002-06-27 Thread PHPCoder
Hi I have a working PHP build on my webserver, but it seems it was compiled without support for gd or pdflib and a couple of others. Since rebuilding PHP requires a rebuild of apache as well, I really don't want to go that route unless 100% essential. So, is there a way I can add these libs now

[PHP] Modify string in text file

2002-06-27 Thread adi
I have a text file: file1 with a string in it '' How to make a php file: file2.php, with a textbox and a button in it; when i press button, value from textbox take place of '' string? tx in advance for any help

[PHP] Re: Generating Barcodes and printing

2002-06-27 Thread Anil Kumar K.
Also: http://www.mribti.com/barcode/ On Thu, 27 Jun 2002, Peter wrote: > Read the stuff you find on google first though - there was an article I read > about certain inks absorbing InfraRed light so barcodes printed in them will > not work! > The HP ink used in the Deskjet 693 and 660 seems to

RE: [PHP] checking

2002-06-27 Thread Martin Towell
see if isset() works for you -Original Message- From: Leo [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 6:42 PM To: php.net Subject: [PHP] checking I have a form and I don't want to insert recording with blank value. I put: if ($lastname="") { $insert="no" } if ($insert="

[PHP] checking

2002-06-27 Thread Leo
I have a form and I don't want to insert recording with blank value. I put: if ($lastname="") { $insert="no" } if ($insert="no"){ do not insert; else insert; } my probleme is in some case $lastname="" is true and other case is false. I tried with $lastname=" " but no change. how can I

Re: [PHP] preg_replace pains

2002-06-27 Thread Paul Roberts
try $str = preg_replace("|\[details\].*?\[/details\]|si","", $str); drop the i if you want it case sensitive. Paul "Richard Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I've been having a wonderful night trying to solve this one, but

[PHP] $PHP_SELF weirdness

2002-06-27 Thread mail.vicnet.net.au
I have two url containing the same php web pages http://ngvabook/ and http://dev/ngvabook ngvabook is the live pages dev/ngvabook is the test. both are checked out of CVS and thus the same source using the dev/ngvabook $PHP_SELF is set to http://dev/ngvabook when using the http://ngvabook vers

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Tom Rogers
missed a couple of quotes and braces there :) while ($row = mysql_fetch_assoc($result)) { $vehicles[$row['dealer_id']][$row['vehicle_id']]['views'][] = $row['page_views']; } At 02:03 PM 28/06/2002 +1000, Tom Rogers wrote: >Hi >I would do it this way (untested) > >while ($row = mysql_fetch_ass

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Tom Rogers
Hi I would do it this way (untested) while ($row = mysql_fetch_assoc($result)) { $vehicles[$row['dealer_id][$row['vehicle_id]['views'][] = $row['page_views']; } should end up something like this ( [645] => Array ( [35073] => Array ([

Re: [PHP] OT) PHP is not so fast as we think?

2002-06-27 Thread Jason Wong
On Friday 28 June 2002 09:00, Norihisa Washitake wrote: > Hi all, > > PHP is usually thought to be faster than perl, but sometimes PHP > runs slower than perl in some cases. Depends on what you use PHP and Perl for. I tend to use PHP for websites and Perl for system admin tasks. > Belows is the

RE: [PHP] How can I write in a loop??

2002-06-27 Thread Martin Towell
Is this a direct copy of what you've got? If so, line 11 shouldn't be there -Original Message- From: sunny AT wde [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 1:24 PM To: [EMAIL PROTECTED] Subject: [PHP] How can I write in a loop?? Hi all, would be very greatful if someone co

Re: [PHP] Gradients in PHP & GD

2002-06-27 Thread Joshua Alexander
"It seems pretty straightforward to me." is more responsible than "It's pretty straightforward." Nice time to be changing your story ;) >Anyway, thank you for your input on this thread. THAT was really helpful. It didn't seem straightforward to the original writer, or else why the question...

[PHP] How can I write in a loop??

2002-06-27 Thread sunny AT wde
Hi all, would be very greatful if someone could hlp. Basically I want to extract information from Mysql, and then write it to a file. I can write state pieces of text, but having trouble with writing when the information comes out in a while loop. This is what I hhave so far: --

Re: [PHP] preg_replace pains

2002-06-27 Thread Analysis & Solutions
Hi Richard: On Fri, Jun 28, 2002 at 02:36:59AM +0100, Richard Davey wrote: > [details]...[/details] > $message = preg_replace("'\[details\].*?'", "", $message); You didn't state what you want to get out of this exercise. To squash the detail tags and everything between them: $msg = preg

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
Martin, That is a little scary. But you've fallen into the same trap that I wound up in in that it's too slow on big queries. =/ Your second idea was something I experimented with earlier, but due to the nature of some of the other data I'm trying to work with didn't really work out too well. A

Re: [PHP] preg_replace pains

2002-06-27 Thread Richard Davey
"John Holmes" <[EMAIL PROTECTED]> wrote in message 000a01c21e45$92b64270$b402a8c0@mango">news:000a01c21e45$92b64270$b402a8c0@mango... > Wouldn't you want to use preg_match() before you replace it? In this instance, no I don't think so. I've already performed the task I needed with the tags in que

RE: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Martin Towell
This is what I came up with before I saw this email, and "eek", we think the same (sorta) This is going to be a bit iffy, but here goes (BTW: this hasn't been tested, so expect heaps of errors :) ) $i = 0; while ($row = mysql_fetch_assoc($result)) { for ($j = 0, $found = false;

RE: [PHP] preg_replace pains

2002-06-27 Thread John Holmes
Wouldn't you want to use preg_match() before you replace it? www.php.net/preg_match ---John Holmes... > -Original Message- > From: Richard Davey [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 9:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] preg_replace pains > > Hi all, >

[PHP] preg_replace pains

2002-06-27 Thread Richard Davey
Hi all, I've been having a wonderful night trying to solve this one, but I'm going to throw in the towel and see if anyone else can shed some light on it. The scenerio is quite simple, I'm parsing some form input from a user and looking for the following: [details]...[/details] where the ..

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
Martin, Here's an example of what I implemented (simplified down again). As you can see, it's hideously simple and not optimized in the least. It works well on small datasets, but you can see by looking at it that large datasets get exponentially slower. while ($row = mysql_fetch_assoc($re

RE: [PHP] Newbie problem - Slashes

2002-06-27 Thread John Holmes
Show us your code. ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 5:33 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Re: [PHP] Newbie problem - Slashes > > > Hi John,Phillip, >

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
Martin, I'm happy to do it either way, but I can't think of a really fast way to do it, which is why I thought I'd ask. =) Morgan Grubb. "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF508A54E@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF508A54E@EXCHANGE...

RE: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Martin Towell
this sort of merging would be easier to do when you create the array (unless you need the other format for something else?) -Original Message- From: Morgan Grubb [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 11:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Fast code to partially fla

[PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
I have a large dataset which can contain many different fields, and I'm trying to flatten them in such a way that I can display it happily in a table. To simplify: I'm populating the array such (many many more fields, but these will do): $i = 0; while ($row = mysql_fetch_assoc($result))

[PHP] OT) PHP is not so fast as we think?

2002-06-27 Thread Norihisa Washitake
Hi all, PHP is usually thought to be faster than perl, but sometimes PHP runs slower than perl in some cases. Belows is the example program in both PHP and Perl languages. This solves "x^2 + y^2 + z^2 = 32" and shows an array of (x, y, z) candidates. This program runs 1000 times for timekeeping.

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
I agree... its trivial when presented as is. But what would be the difference when you're doing quite a lot more with only 10 iterations? 100? That's something to think about... -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 5:21 PM To: [E

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
Php version 4.06 (yet another server) Obj: Took 72.846336007118 seconds Proc: Took 72.550191044807 seconds Yea... I'm coming to the conclusion that unless you're coding for a REALLY high traffic website this difference does not matter... But the again under the circumstances it might matter gr

RE: [PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!

2002-06-27 Thread Martin Towell
The command line CURL has the -T option - might be worth looking to see if you can do the same in PHP, otherwise you might have to break out of PHP and use the system's CURL Martin -Original Message- From: SpamSucks86 [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 10:12 AM To: [E

Re: [PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!

2002-06-27 Thread Bogdan Stancescu
multipart/form-data is very VERY similar to mail with attachments. Maybe you could tweak a package/library/class which allows that in order to build the POST request and then simply send it using socket functions to the server you want to. I don't know, maybe this is too complicated and you co

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Martin Towell
I haven't got around to reading all the other replies yet, so this reply might already be covered... So I went to that url - and okay, according to the person writing that page, there's a ~3sec increase in the time it takes to execute - BUT - that's to do 1 million iterations, doesn't seem too mu

[PHP] HTTP POST a file with CURL <----------PLEASE HELP!!!!!!

2002-06-27 Thread SpamSucks86
If I had a form on a page with it would POST the file to the script. I want to have a PHP script read a file and then emulate that action to another script. Since the enctype="multipart/form-data" I'd think that I can't just use the normal POST method with CURL to do it. Anyone know how to do thi

Re: [PHP] fsockopen and HTTP/1.1???

2002-06-27 Thread Chris Shiflett
Alex Elderson wrote: >The problem is the "Connection: Close\n\n" header. The webserver close the connection >after the first request, if i remove >the "Connection: Close\n\n" header the first fgets($web_conn, 128) command will never >ends. > This is because persistent TCP connections are the d

Re: [PHP] Gradients in PHP & GD

2002-06-27 Thread Bogdan Stancescu
Yes, it actually would've been should the person who started the thread answered (instead of a wise-guy saying "That's very helpful" - in this case, no, it didn't prove to be). That's because that way we would've found out what exactly he needed ("Of course the change can be only across a part

Re: [PHP] Uploading files

2002-06-27 Thread Bogdan Stancescu
Well, apparently $_POST[passcodeFile] is empty. The first question that comes to mind is whether you have the correct array index there. The second is why do you need the double quotes surrounding it. You should try echoing $_POST[passcodeFile] and see if it contains anything. Bogdan Tyler Lo

Re: [PHP] Rookie Question RE: Specific Coldfusion equivalent in PHP

2002-06-27 Thread Peter Janett
header ("Location: http://whatever";); You probably want to put: exit; After that line, so you script stops at that point. (Exit; is like ) :) HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 an

Re: [PHP] Detecting Browser Type/OS from HTTP_USER_AGENT

2002-06-27 Thread Chris Garaffa
Erik, While I agree in principal, you must remember that not all UAs (User Agents) comply with the Standards, especially newer ones like XHTML, CSS 2, etc. Even a somewhat mainstream UA, like OmniWeb, for example (because I've been having problems with it lately) will not render your page the

Re: [PHP] Rookie Question RE: Specific Coldfusion equivalent inPHP

2002-06-27 Thread Richard Baskett
It's a header call.. so: header("Location: http://whatever";); Rick "Only a life lived for others is worth living." - Albert Einstein > From: "bailie" <[EMAIL PROTECTED]> > Reply-To: "bailie" <[EMAIL PROTECTED]> > Date: Thu, 27 Jun 2002 16:04:41 -0400 > To: [EMAIL PROTECTED] > Subject: [PHP] R

[PHP] Rookie Question RE: Specific Coldfusion equivalent in PHP

2002-06-27 Thread bailie
Hello All, I am trying to find out what the PHP equivalent is to coldfusion's http://whatever";> Obviously, this cf tag forwards to whatever page is indicated in the url arguement. After having googled and searched all the php sites I know of, I just cannot seem to figure out how this is done.

[PHP] Re: Generating Barcodes and printing

2002-06-27 Thread Peter
Read the stuff you find on google first though - there was an article I read about certain inks absorbing InfraRed light so barcodes printed in them will not work! The HP ink used in the Deskjet 693 and 660 seems to be ok for this job. "Phpcoder" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

Re: [PHP] Newbie problem - Slashes

2002-06-27 Thread Nookie
Hi, Maybe mysql_escape_string($string) helps? Greetings, Nookie - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 11:32 PM Subject: Re: [PHP] Newbie problem - Slashes > > Hi John,Phillip, > Th

Re: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Rick Kukiela
i did restart the server is there like a php install-to direcotry that php installed to that i should remove before rebuilding, it seems like new make install didnt overwrite the old install for some reason thats the only thing i can think of that would cause this. rick - Original Messag

Re: [PHP] Newbie problem - Slashes

2002-06-27 Thread kim
Hi John,Phillip, Thanks for writing. > You're fault. :) Guessed as much. :-) I know quotes are used for the beginning and end of a string,but i'm thinking what if a user "accidently" puts in a double quote.maybe as a typo error? The part I cannot understand is why is the MySql database's

RE: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Demitrious S. Kelly
Whoa! Good idea! -Original Message- From: Kurth Bemis (List Monkey) [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:35 PM To: Demitrious S. Kelly Cc: 'Rick Kukiela'; [EMAIL PROTECTED] Subject: RE: [PHP] ok what kind of crack is my computer smoking? At 02:19 PM 6/27/2002 -0700

Re: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Rick Kukiela
Thats what i did, i rm -rf /usr/local/src/apache_1.3.26 ; rm -rf /usr/local/src/php-4.2.1 ; rm -rf /usr/local/src/mod_per-1.27 then i reextracted the tarballs and restarted totaly from scratch, everything worked as expected except when i restarted it up its like nothing changed. rick - Origi

RE: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Kurth Bemis (List Monkey)
At 02:19 PM 6/27/2002 -0700, Demitrious S. Kelly wrote: hey - RESTART APACHE! ~kurth >You check and make sure the date was set right on the box? > >You could try "make clean" for everything before configuring... > > >-Original Message- >From: Rick Kukiela [mailto:[EMAIL PROTECTED]] >Sen

RE: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Demitrious S. Kelly
You check and make sure the date was set right on the box? You could try "make clean" for everything before configuring... -Original Message- From: Rick Kukiela [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:10 PM To: [EMAIL PROTECTED] Subject: [PHP] ok what kind of crack i

Re: [PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 05:09 PM, Rick Kukiela wrote: > SO what do i have to do to get php to acknolege the fact that it has > been > recompiled with new options Did you rm ./config.cache in the Apache source tree? If I were you, I'd remove the source trees you have, re-extrac

Re: [PHP] PHP Session Idle Time

2002-06-27 Thread 1LT John W. Holmes
How do you define idle time in a stateless environment?? How do you know if it just takes the person 20 minutes to read the page, or they are idle? All you can do is set a time when the page was requested, and when the next page is requested, if it's been over XX minutes, they were idle too long

[PHP] OOP and xml_set_element_handler

2002-06-27 Thread Christof Rath
Is it possible to call xml_set_element_handler() with a class function like: xml_set_element_handler($parser, $this->startElement, $this->endElement); thx Christof Rath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Session Idle Time

2002-06-27 Thread Rasmus Lerdorf
See your php.ini file: ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetime = 1440 On Thu, 27 Jun 2002, Jefferson Cowart wrote: > I'm writing a web application in which I would like the session to > expi

RE: [PHP] PHP Session Idle Time

2002-06-27 Thread Demitrious S. Kelly
Save time as a session variable... and if current time minute time is greater than x seconds, then destroy the session and start over. -Original Message- From: Jefferson Cowart [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Sessi

[PHP] ok what kind of crack is my computer smoking?

2002-06-27 Thread Rick Kukiela
I needed to recompile php to support some extra features so i went to my /usr/local/src direcotry and i rm -rf'ed apache mod_perl and php src dirs. I then re-extracted the tarballs for thoes programs... Re built everything the way i normally did (including rm -rf /usr/local/apache) which is my a

[PHP] PHP Session Idle Time

2002-06-27 Thread Jefferson Cowart
I'm writing a web application in which I would like the session to expire after a certain amount of idle time. I tried using the session_set_cookie_params function but that is time from session start. How would I go about doing idle time? Thanks Jefferson Cowart [EMAIL PROTECTED]

Re: [PHP] grabbing content of a web page...

2002-06-27 Thread B i g D o g
You can also do this: http://www.example.com/'); while (list ($line_num, $line) = each ($fcontents)) { echo "Line $line_num:; ", htmlspecialchars ($line), "\n"; } // get a web page into a string $fcontents = implode ('', file ('http://www.example.com/')); ?> PHP.net example always RTM... B

Re: [PHP] Newbie problem - Slashes

2002-06-27 Thread 1LT John W. Holmes
You're fault. :) Remember that quotes are used to tell the beginning and end of a string. So if you are using a " to mean the beginning of the string, then there can't be any " within the string itself. If there are any ", they need to be changed to \", which means they are escaped. magic_quotes

[PHP] Newbie problem - Slashes

2002-06-27 Thread kim
Hello all, I'm a newbie into PHP and am facing a funny problem. I have a form with a textarea named address, I am able to submit the form and enter the data into the database without any problem,but to make sure that it handles "bad" data too I tested it out with this sentance: When cheese g

Re: [PHP] grabbing content of a web page...

2002-06-27 Thread 1LT John W. Holmes
fopen('http://www.yahoo.com","r";); ---John Holmes... - Original Message - From: "Kelly Meeks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 3:53 PM Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an ur

RE: [PHP] grabbing content of a web page...

2002-06-27 Thread Demitrious S. Kelly
File() or fgets() -Original Message- From: Kelly Meeks [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:54 PM To: [EMAIL PROTECTED] Subject: [PHP] grabbing content of a web page... Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wa

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread Demitrious S. Kelly
Comparison (do not compare the speeds between the versions of php as they are on different servers under different loads.) The only conclusion that I can draw from this so far is that different versions of php handle these situations differently, newer versions may handle OOP code better that proc

[PHP] Re: Generating Barcodes and printing

2002-06-27 Thread Manuel Lemos
Hello, On 06/27/2002 03:27 PM, Phpcoder wrote: > Hi, > I would like to generate barcodes and have it print out the barcode > automatically from awebpage, is this possible? How? This class does exactly what you need: http://www.phpclasses.org/pdfbarcode128 -- Regards, Manuel Lemos -- PHP

[PHP] grabbing content of a web page...

2002-06-27 Thread Kelly Meeks
Howdy, I know there has to be a way to grab output of an url on another site? Let's say you wanted to get the output of yahoo.com (just for example)? Is there any way you can stick that into a variable, and then manipulate it? Thanks, Kelly

RE: [PHP] Re: PHP and OOP

2002-06-27 Thread SP
Never tested it so I tried it out for the fun of it. I didn't use yours but I used the other guy's code on separate pages and did it ten times. I guess I was wrong, I got around 2% difference. Definitely not the 20% difference that guy got in his. He was probably using a older version. Mine w

RE: [PHP] Generating Barcodes and printing

2002-06-27 Thread Steve
Along with the Goggle search suggested by Dan, you need to know what format you need for your barcode label. Think of them as fonts. If you already have your barcode scanning hardware, see what barcode format was included. -Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] HTTP1.1

2002-06-27 Thread Steve
I have used this in the past... Foo http://www.foo.com/";> and as Cal mentioned, use somefile -Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating Barcodes and printing

2002-06-27 Thread Analysis & Solutions
On Thu, Jun 27, 2002 at 08:27:31PM +0200, PHPCoder wrote: > > I would like to generate barcodes and have it print out the barcode > automatically from awebpage, is this possible? How? Go to http://groups.google.com/groups?hl=en&safe=off&group=php.general Put this exact thing in the search terms

[PHP] Generating Barcodes and printing

2002-06-27 Thread PHPCoder
Hi, I would like to generate barcodes and have it print out the barcode automatically from awebpage, is this possible? How? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advantage of CURL over using LYNX

2002-06-27 Thread Jerome Houston
I've used both fopen() and the CURL libraries... > > I need to grab some data from a CGI program running on a different > > server. I have been toying around executing LYNX using the passthru > > command. I seem to be able to grab the data just fine using "lynx > > -source -preparsed $URL".

RE: [PHP] Buy & Sell

2002-06-27 Thread jon
I have one: http://jonroig.com/freecode/openrealty/ -- jon - jon roig project manager openlistings -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:50 PM To: PHP General List Subject: [PHP] Buy & Sell Hi all. Hav

Re: [PHP] HTTP1.1

2002-06-27 Thread Gerard Samuel
Acutally, I think Im ok, because, the dynamic links, adjust to where ever it lives in the file system. I defined a constant and use the constant in links, so no matter how you rearrange stuff, it would still work. So if the only reason is piece of mind, then Im in peace with myself... :) Thanks

[PHP] Buy & Sell

2002-06-27 Thread César Aracena
Hi all. Have anyone used a PHP pre-made program before that can manage classifieds by only administrator managed? I want to set up a Buy & Sell site for houses, vehicles, etc… Pretty much like a Real State on-line site. Any help appreciated, Cesar Aracena CE / MCS

Re: [PHP] HTTP1.1

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 01:39 PM, Gerard Samuel wrote: > I was wondering if this is a no no according to http 1.1 specs. > ie absolute links -> > http://host/correct_path_to_file.php";>somefile > > I briefly looked through through the specs, but it didn't say that > links/urls shouldn't

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread B i g D o g
You also need to remember that these tests need to be run 100s of times and then calculate the avg. However, as we can assume there is really not going to be a big difference between the two. Its not like they are whole seconds apart. B i g D o g - Original Message - From: "Remy Dufo

RE: [PHP] HTTP1.1

2002-06-27 Thread Cal Evans
It's not so much a no-no as it is bad form. It makes it very difficult to re-arrange your site at a later date or move that page. For your own peace of mind and those who come behind you, absolute links in the form of href="/correct/path/to/the/file.php" should be used. You can omit the http://

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 12:48 PM, Shane wrote: > I would like your opinions on the best way to implement an "Are You > Sure You Want To Do This?" dialog for an Admin user when they go to > delete a record in a DB. > > Do you find that a whole page is usually required for this, or does

[PHP] HTTP1.1

2002-06-27 Thread Gerard Samuel
Kinda off topic, but it deals with a php script Im writing. Ive been using dynamic strings to create relative links like -> somefile I was wondering if this is a no no according to http 1.1 specs. ie absolute links -> http://host/correct_path_to_file.php";>somefile I briefly looked through throu

Re: [PHP] Re: PHP and OOP

2002-06-27 Thread Remy Dufour
I've tested thecode and there is what i've got Proceduraltook 1.24408602715 seconds OOtook 1.24240803719 seconds Here is the code. Test it by yourself took ". (getmicrotime() - $time_start) ." seconds"; class count {function icount($vs) {$var=0; while($count < $vs) {

[PHP] Help - PHP4

2002-06-27 Thread ER Lees
PHP$ is goiving me pagefaults (example below). System - Win 98 Apache 1.3.12 PHP 4.0.06 Any help GREATLY appreciated!! Thks Richard PHP caused an invalid page fault in module PHP4TS.DLL at 0177:1008d92e. Registers: EAX=011bed00 CS=0177 EIP=1008d92e EFLGS=

[PHP] PHP Oracle 8 Functions Efficiency Problem

2002-06-27 Thread notoriousvic_ca
I have an HTML form which allows users to query data in an Oracle 8 Database. Usualy a search may return over 100 records so I diplay 10 records per page. I would like to make the search more efficient by using the OCISetPrefetch to prefetch the first 10 records. This works great for the first pa

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Richard Baskett
This is the one that I use: Rick "Dost thou love life? Then do not squander time; for that's the stuff life is made of." - Ben Franklin > From: "Shane" <[EMAIL PROTECTED]>

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Dennis Moore
It really depends on how complex your site/application is... I really like using a popup window with some Javascript that refreshes the parent/opener page upon updating or executing the PHP. It then closes the popup window. If the user says no, it just closes the window. This gives the use a mo

[PHP] PHP Security

2002-06-27 Thread Lazor, Ed
Does anyone have favorite links related to PHP security? My Google searches have been bringing up a lot of info, but I'd like to make sure everything's covered. My idea is to collect advice and recommendations on design, style, and methodologies for secure PHP programming. I will be organizing

RE: [PHP] INCLUDE vs Functions

2002-06-27 Thread Fifield, Mike
I cannot answer this for sure but my guess would be that having separately included files would be faster. There are two reasons for this. First functions are almost always slower then regular php code. Second you will be loading the entire "Routines.php" on every page even if you only require one

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Jeff Lewis
Shane, I use a javascript prompt. When you click OK, it passes the information on to the PHP script to do the work :) Jeff - Original Message - From: "Shane" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 27, 2002 12:48 PM Subject: [PHP] Best Delete Confirmation Script

[PHP] Best Delete Confirmation Script

2002-06-27 Thread Shane
Greetings. I would like your opinions on the best way to implement an "Are You Sure You Want To Do This?" dialog for an Admin user when they go to delete a record in a DB. Do you find that a whole page is usually required for this, or does anyone have any nice pop up solutions for such a query

[PHP] INCLUDE vs Functions

2002-06-27 Thread Jeff Gannaway
I'm re-writing a medium-sized commercial site in PHP. There will be elements that will on nearly every page. I was considering writing each element as a program and then using INCLUDE statements wherever I wanted that element displayed. Now I'm wondering if grouping all those elements into

[PHP] Interfacing with Verisign

2002-06-27 Thread Miva Guy
I'm finishing up a site for an organization that wants to have members register online. I've done shopping carts in other languages before prior to CyberCash's decline. Before I get started, I wonder what requirements I'll need and if anyone has some good examples of the final stage of a purchase

[PHP] searching all open sessions

2002-06-27 Thread Dave
Is there any way (built in function or otherwise) to search for a value across all open sessions? Here's the problem: A user logs in, a new session is created and their user_id is saved as a session variable. 10 minutes later the same user logs in through a new second browser window, and anothe

[PHP] Sessions and 4.2.1

2002-06-27 Thread Steve Heath
Why can I not write any session information to my MySQL database? System: SunOS sunblade1 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-100 Server Software: Apache/2.0.36 (Unix) PHP/4.2.1 I am using the following to handle sessions: session_mysql.php PHP4 MySQL Session Handler by Ying Zhang

Re: [PHP] passing variable arguments from

2002-06-27 Thread Haddad Said
I just found out the $_POST['language'] is always assigned the value Array. Since a user must choose either of the options and not both, I would rather do this without arrays, is there another way? "Haddad Said" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

Re: [PHP] passing variable arguments from

2002-06-27 Thread Haddad Said
Yes I changed that, but now it always echoes EngP=0 "Mark Heintz Php Mailing Lists" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 27 Jun 2002, Haddad Said wrote: > > > in query.php i have this piece of code; > > > > echo " > > > > one > > two > > >

Re: [PHP] passing variable arguments from

2002-06-27 Thread Mark Heintz PHP Mailing Lists
On Thu, 27 Jun 2002, Haddad Said wrote: > in query.php i have this piece of code; > > echo " > > one > two > > > > "; > > and in test2.php i have this; > > if ($_POST['language'] = 1) > {$lang = "EngP=1";} > else {$lang = "EngP=0";} > echo $lang ; > > But it always echoes EngP=1 no matter wha

Re: [PHP] passing variable arguments from

2002-06-27 Thread Haddad Said
I still cant get it right, in query.php i have this piece of code; echo " one two "; and in test2.php i have this; if ($_POST['language'] = 1) {$lang = "EngP=1";} else {$lang = "EngP=0";} echo $lang ; But it always echoes EngP=1 no matter what I choose, what is wrong here?? "Erik Price

Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread René Moonen
>I had the same problem yesterday afternoon, trying to compile PHP with >Sablotron 0.95. Last week, I did a compile with Sablotron 0.90 and everything >was good, so I downgraded 0.95 to 0.90 and was able to successfully build >PHP. > > That did it for me also... thanks René -- PHP Genera

Re: [PHP] Gradients using GD

2002-06-27 Thread Anzak Wolf
> > After much pain and suffering I figured out how to do dual color >Gradients > > using GD in an oval. While it is not as clean as I'd like it works and >can > > be tweaked as needed. In the process I also found some very cool >Gradient > > effects that could be used as well. I'm currently

[PHP] performance, memory & objects

2002-06-27 Thread Erik Price
Since we are on the topic of objects with PHP, what is the best way to free the memory being used by an object? A lot of examples use unset($objReference). But when freeing the memory used by a large string, it's best to assign that string's reference variable to an empty string, ($str = "";)

[PHP] Uploading files

2002-06-27 Thread Tyler Longren
Hello, I usually use this code to upload files when I have a form with It no longer works for some reason: $data = fread(fopen("$_POST[passcodeFile]", "r"), filesize("$_POST[passcodeFile]")); Here are the errors that it produces: Warning: fopen("", "r") - Success in /usr/local/apache/htdocs/cj

Re: [PHP] Display Records in Multiple Pages

2002-06-27 Thread Jason Wong
On Thursday 27 June 2002 21:22, Erik Price wrote: > On Thursday, June 27, 2002, at 02:56 AM, Justin French wrote: > > Use the LIMIT function in your SELECT query... check out the MySQL > > manual... > > and then generate back / forward links depending on your current > > offset. It > > should be

Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread James Clifford
On Thu, Jun 27, 2002 at 09:14:32AM +0200, René Moonen wrote: > > > >Yes. Since 4.1.x at least. But for XSLT you need to get expat and > >Sablotron and link them into the compile (with the appropriate > >./configure options). > > > > Hum, I did spent some time yesterday on exactly that, bu

  1   2   >