[PHP] oracle again!!!!

2002-06-05 Thread Michael P. Carel
Hi, I've tried installing php with oracle support to my RedHat Linux server. Im recieving this error when executing a sample Ora fucntion to connect to the oracle database.My oracle database works fine but my script canot connect. I've tried this sample script with my AIX server but it works fin

[PHP] Using checkboxes

2002-06-05 Thread Dirk Beijaard
Hey all, I have a form, generated in php, with a lot of checkboxes on it. They are initialized from the db. All checkboxes are in a 2d array and they come through to my processing script fine. The only problem is that the ones that are unchecked do not come through. I know that the post com

Re: [PHP] phpSearch

2002-06-05 Thread Ali Reza Sajedi
Hello, try this: http://www.digitalgenesis.com/software/dgssearch.html --- Ali Reza Sajedi Webentwicklung und -betreuung BUP Goettingen 0551/54707-41 [EMAIL PROTECTED] http://www.bupnet.de --

RE: [PHP] PHP version 4.2 and above

2002-06-05 Thread Opere, James
I'm working on a windows2000 platform and i need to use php version >=4.2 for my graphics.How do i go about solving the problem of gd that can be supported by the above php version? The gd in phpdev 4(php version 4.06) cannot be supported by the bove php version. -Original Message- From:

[PHP] PHP CGI cannot be accessed directly

2002-06-05 Thread MindHunter
Yes I have set cgi.force_redirect=0 in my php.ini file. I have trippled checked this! I am running PHP 4.2.0 on Win2K IIS5 as CGI. What am I missing? Any known bugs? Tx MH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dumb guy needs smart answer

2002-06-05 Thread Justin French
It can't find the file you asked to include on line 12 of test.php. Post the code and we may be able to pin-point it. The first half of the error is to do with the default include path... in addition to the include path you set with include(), there is a default that PHP also checks (in your cas

[PHP] dumb guy needs smart answer

2002-06-05 Thread Doug
I get the following error statement from a PHP insert I am trying at http://www.solomonsporch.org/test.php Warning: Failed opening 'http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yes&limit=4' for inclusion (include_path='c:\php4\pear') in e:\solomonsporch.org\test.php on line 12 I rea

Re: [PHP] phpSearch

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, millw0rm wrote: > Hi, I m looking for a Search Engine kinda application which can search > content inside my own website, which includes files like php, text, html & > as well as mySQL db... do u guys hav ne idea where i can find the > application or r there ne1 who can develop

RE: [PHP] phpSearch

2002-06-05 Thread Niklas Lampén
Yeah, we'd be happy to develope such program for you. Is there something else you need, cash? : Niklas -Original Message- From: millw0rm [mailto:[EMAIL PROTECTED]] Sent: 6. kesäkuuta 2002 9:05 To: [EMAIL PROTECTED] Subject: [PHP] phpSearch Hi, I m looking for a Searc

[PHP] phpSearch

2002-06-05 Thread millw0rm
Hi, I m looking for a Search Engine kinda application which can search content inside my own website, which includes files like php, text, html & as well as mySQL db... do u guys hav ne idea where i can find the application or r there ne1 who can develop it for me pls... i tried few applications l

Re: [PHP] date problem

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, andy wrote: > I would like to count the users out of a mysql db who registered after a > certain date. > > The column I have in the db is a char and I do not want to change this > anymore. > This is how a typical entry looks like: May 29, 2002 > > This is how I tryed it: > >

[PHP] date problem

2002-06-05 Thread andy
Hi there, I would like to count the users out of a mysql db who registered after a certain date. The column I have in the db is a char and I do not want to change this anymore. This is how a typical entry looks like: May 29, 2002 This is how I tryed it: // while '10...' is unix timestamp june

Re: [PHP] Search Engine Friend Dynamic Pages

2002-06-05 Thread Scott Reismanis
Thanks for the feedback, once again timly and right on the money :) What you mention is what I thought, I just had doubts which I wished to clarify. - Original Message - From: "Ashley M. Kirchner" <[EMAIL PROTECTED]> Date: Thursday, June 6, 2002 2:46 pm Subject: Re: [PHP] Search Engine

[PHP] Is this possible

2002-06-05 Thread James Edgar
I am trying to run a class inside a class, it says that the object is there but when I go to get the info, it is not there. I have attached the code below and attache the xml.inc file. Any help would be greatly appreciated. class myClass { function myFunc($var)

[PHP] Re: Wierd problem.... Perhaps is the while ()

2002-06-05 Thread Gonzalo Daniel Vivanco Mocorrea
Proba lo siguiente (try the following): $SQL = "SELECT... ...".$cliptoshow.")"; aca el ". significa terminar cadena de texto y concatenar lo que sigue a la cadena y ." significa concatenar una nueva cadena (es lo ideal aunque ocupe mas espacio y tiempo, pues separa variables del texto) (here the

RE: [PHP] carrying a query string

2002-06-05 Thread Martin Towell
try it and see if it doesn't work, try using base64_encode() and base64_decode() after all, you're not encrypting the string, just making sure the script handles it okay, ay? -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 3:21 PM To: php Su

[PHP] carrying a query string

2002-06-05 Thread Justin French
hi all, will urlencode($QUERY_STRING) be sufficient enough conversion of the query string to enable me to pass the query string around as a var in the url? eg current script: page.php?var1=foo&var2=bah email this page to a friend ?> Then on email_a_friend.php I can urldecode() the $ref, so th

[PHP] asset tracking..

2002-06-05 Thread Peter
Hey does any one know where i get grab an asset tracking script from? so I don't have to reinvent the wheel? Cheers Peter "the only dumb question is the one that wasn't asked" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions on clustered machines

2002-06-05 Thread Cameron Just
Hi, Just wondering if sessions can be shared on clustered webservers? ie one location for session.save_path which is shared amongst many machines. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Engine Friend Dynamic Pages

2002-06-05 Thread Ashley M. Kirchner
Scott Reismanis wrote: > Just a quick question regarding developing search engine friendly > pages. Basically I am re-writing my site so that say mysite.com? > page=support&action=help becomes mysite.com/support/help/ Reason why is > it looks nicer and is search engine friendly, as some search en

Re: [PHP] long PHP array and HTML forms question

2002-06-05 Thread Jason Wong
On Thursday 06 June 2002 12:03, Steven Jarvis wrote: > I'm trying to store an array in a mysql db. I'm creating the array > variable through an html form and passing it to the page where I store > it in the db. I want to create the array with a form, store it in the > db, then display it in anothe

Re: [PHP] Search Engine Friend Dynamic Pages

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Scott Reismanis wrote: > Just a quick question regarding developing search engine friendly > pages. Basically I am re-writing my site so that say mysite.com? > page=support&action=help becomes mysite.com/support/help/ Reason why is > it looks nicer and is search engine friend

[PHP] Search Engine Friend Dynamic Pages

2002-06-05 Thread Scott Reismanis
Hey all, Just a quick question regarding developing search engine friendly pages. Basically I am re-writing my site so that say mysite.com? page=support&action=help becomes mysite.com/support/help/ Reason why is it looks nicer and is search engine friendly, as some search engines cannot spider

[PHP] Re: Regular Expressions Help

2002-06-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J. Younker) wrote: > Hi, > I'm trying to use eregi_replace to check a user-submitted URL, but I > keep getting the following error message: > Warning: Invalid range end in /var/www/html/_db_db/db_input.php > This what I'm using: > $pattern = "(h

Re: [PHP] Passing Values to an image script

2002-06-05 Thread Anzak Wolf
>On Thu, 6 Jun 2002, Anzak Wolf wrote: > > $h=20; > > $w=80; > > print ""; > > > > Now this is a much watered down version of what I'm doing, but the idea >is > > the same. I don't want to put the values I'm passing to the image in >the > > html code to be passed with a get. I'd like to be abl

Re: [PHP] run from telnet...like PERL?

2002-06-05 Thread Jason Morehouse
Also be sure and up the execution time of the script. On Thu, 06 Jun 2002 13:57:52 +1200, Miguel Cruz wrote: > On Wed, 5 Jun 2002, Robert Packer wrote: >> I wrote a script to strip the domain from an e-mail address with PHP. >> But it will max out my lousy computer at work. The lists have abo

[PHP] long PHP array and HTML forms question

2002-06-05 Thread Steven Jarvis
I'm trying to store an array in a mysql db. I'm creating the array variable through an html form and passing it to the page where I store it in the db. I want to create the array with a form, store it in the db, then display it in another form with a statement. However, I'm getting extra arra

[PHP] Re: Automatic color coded HTML

2002-06-05 Thread Jason Morehouse
http://www.php.net/manual/en/function.show-source.php Cheers, -J On Thu, 06 Jun 2002 13:55:26 +1200, Jarrad Kabral wrote: > Hi All, > > Is a command in PHP to format source code as color coded HTML? > > > > Regards > Jarrad -- Jason Morehouse ([EMAIL PROTECTED]) Netconcepts LTD - Auck

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Andre Dubuc
Hi Peter, I've just tried the sub-select approach. Works great on the first page - shows names listed alphabetically sorted by country. However, once I click on 'Next 20' both sorts go bye-bye (neither by name nor country). Going to try what you suggest tomorrow. I think it'll work. Thanks for

Re: [PHP] Re: currency rounding issues

2002-06-05 Thread Bogdan Stancescu
As a side note, your final question does make sense - I was surprised (dunno why, but I was) to find there are things which cost less then 1c, some even less than 1/10 c, so... Bogdan Michael Davey wrote: >I have found that the best way to work with currencies is to avoid using any >type of f

Re: [PHP] mail() problem

2002-06-05 Thread Manuel Lemos
Hello, On 06/06/2002 12:42 AM, César l . aracena wrote: > Ok. I've done everything that all of you told me to do, but still can't > get to send e-mails to my ISP's mail address. I did all of the > following: > > a) Append a Reply-To: [EMAIL PROTECTED] (Actually, it?s > [EMAIL PROTECTED] ) > b)

RE: [PHP] mail() problem

2002-06-05 Thread César L . Aracena
Ok. I've done everything that all of you told me to do, but still can't get to send e-mails to my ISP's mail address. I did all of the following: a) Append a Reply-To: [EMAIL PROTECTED] (Actually, it’s [EMAIL PROTECTED] ) b) Send the e-mail to my Hotmail account, but everything seems fine. The a

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread Peter
Andre Don't know how useful this will be to you .. but was following thru this and thought why wouldn't you include a page with a switch statement or the like into all the pages... so that all pages know about but not always use the queries ... so that you can have it sorted by any and everything

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Andre Dubuc
Hi John, Oh, my apologies again. I haven't thought this through enough. I'm sorry that I've wasted your time. >"Is it messing up when you click Next 20? Does it go > back to the old sorting, or what? If you're looking at page 4 sorted by > name, then you want to sort by country, you can't go ba

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Jason Wong
On Thursday 06 June 2002 06:05, Zac Hillier wrote: > Miguel, > > I mean that the variables will never change per Virtual host but that the > site is a template for many sites and these vars are part of the > distinction for each site / Virtual Host. > > So far the suggestions of using the auto-pr

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread Martin Towell
isn't this just a matter of doing order by country, whatever ?? -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 1:02 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Modifying the sort order of a query I still really don't u

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread John Holmes
I still really don't understand. You have a list of documents, 20 per page. You want to be able to sort it by country or another column, yet still display them in alphabetical order? Maybe an example page would help...is this page public anywhere? Like I said before, if you sort by new columns,

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Andre Dubuc
Hi John, Sorry about that. I should have explained what I meant. The basic problem that I'm trying (desparately) to skirt around is a troublesome paging problem. The basic query loads all files in the db sorted by name. The first page that displays has a "Next 20" button that loads the next

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread Martin Towell
I suppose you could do a _dodgy_ reg.ex. to do your own colour coding um - ereg_replace("(<[^>]*>)", "\\1", $str); I haven't tested it, but if you just want to highlight all the tags, then that should work. If you want to have a different colour for the tag name, the attributes names, and the attr

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Andre Dubuc
Thanks John, That looks promising, but the question remains -- would it affect the current paging? I really don't wnat to spend another day getting that going again! :> Further, the actual ID numbers that would populate 'display_ids' . . . 'would be generated from your result set' -- I'm not

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread John Holmes
Not really. Only settings are in PHP.ini for: highlight.string= #DD highlight.comment = #FF8000 highlight.keyword = #007700 highlight.bg= #FF highlight.default = #BB highlight.html = #00 That's the

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread John Holmes
What do you mean it'll "trash the current paging" ?? Can you give a more detailed explanation? Results 30-60 of one result set sorted by a certain column will be totally different than results 30-60 of a result set sorted by a different column. So the paging would have to start over, anyhow. Un

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread Jarrad Kabral
yeah that would be niceis it configurable at all? -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, 6 June 2002 12:19 PM To: 'Martin Towell'; 'Jarrad Kabral'; 'Php-General (E-mail)' Subject: RE: [PHP] Automatic color coded HTML Actually that only high

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread John Holmes
Actually that only highlights PHP code, not HTML, if I remember right. It would be nice if this did highlighting for HTML, too, but I think it just comes out all gray. ---John Holmes... > -Original Message- > From: Martin Towell [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 200

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Andre Dubuc
Thanks Miguel, I haven't tried the sub-query approach yet, but that does seem to be the way to do this. My fear is that it will trash the current paging (which took forever to get working with the current setup). Actually, after trying my original code again in another smaller select function,

RE: [PHP] Modifying the sort order of a query

2002-06-05 Thread John Holmes
> My understanding was that he wanted to see the same 30 rows, but sorted in > a different way. > > For instance, he wanted to see entries 30-60 as sorted by age, but to have > those sorted by height when displayed. > > miguel Maybe you could have a hidden field that lists the 30 IDs that are

Re: [PHP] simple email validation ereg

2002-06-05 Thread Miguel Cruz
On Mon, 3 Jun 2002, Alexander Skwar wrote: > So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : >> The lack of an MX record doesn't necessarily mean mail will not get >> through, so you cannot use that as a test for whether the address is >> valid. > > It will not? Do you have an example? H

Re: [PHP] Compiling PHP as static mod

2002-06-05 Thread Tom Rogers
Hi In your php config give it the path to the apache source files not the install directory. Tom At 11:55 AM 6/06/2002, Ray Hunter wrote: >When I try to compile php as a static module in php I get errors that the >mod_php4.c cannot find the header file. > >Here is my php configuration: > >./con

RE: [PHP] Automatic color coded HTML

2002-06-05 Thread Martin Towell
highlight_file() or something like that -Original Message- From: Jarrad Kabral [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 11:55 AM To: Php-General (E-mail) Subject: [PHP] Automatic color coded HTML Hi All, Is a command in PHP to format source code as color coded HTML?

[PHP] Automatic color coded HTML

2002-06-05 Thread Jarrad Kabral
Hi All, Is a command in PHP to format source code as color coded HTML? Regards Jarrad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] run from telnet...like PERL?

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Robert Packer wrote: > I wrote a script to strip the domain from an e-mail address with PHP. But it > will max out my lousy computer at work. The lists have about 1 million plus > addresses on them... However, a colleague wrote a very similar program with > PERL and ran it from

[PHP] Compiling PHP as static mod

2002-06-05 Thread Ray Hunter
When I try to compile php as a static module in php I get errors that the mod_php4.c cannot find the header file. Here is my php configuration: ./configure --build=i386-redhat-linux-gnu --prefix=/usr/local/php --with-apache=/usr/local/apache --with-sybase-ct=/sybase --with-mysql=/usr --enable-ex

[PHP] run from telnet...like PERL?

2002-06-05 Thread Robert Packer
I wrote a script to strip the domain from an e-mail address with PHP. But it will max out my lousy computer at work. The lists have about 1 million plus addresses on them... However, a colleague wrote a very similar program with PERL and ran it from telnet and it went just fine. Can PHP be run in

[PHP] Re: currency rounding issues

2002-06-05 Thread Michael Davey
I have found that the best way to work with currencies is to avoid using any type of floating point math. If you multiply your start amount by 100, then perform your calculations as integers and then divide by 100 again at the end, it should work out OK... (Heh, at least it has worked for me whe

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Miguel Cruz
My understanding was that he wanted to see the same 30 rows, but sorted in a different way. For instance, he wanted to see entries 30-60 as sorted by age, but to have those sorted by height when displayed. miguel On Thu, 6 Jun 2002, Bogdan Stancescu wrote: > That's at least curious - limiting

Re: [PHP] Bug in ob_end_flush/xslt_process... Confirm?

2002-06-05 Thread Tom Rogers
Hi It seems that it loses path information, it will work if you use an absolute path like this: function my_output_handler($string) { $arguments = array('/_xml' => $string,'/_xsl'=>$xsl); $xsltproc = xslt_create(); $html = xslt_process($xsltproc, 'arg:/_xml', "/usr/lo

[PHP] Re: currency rounding issues

2002-06-05 Thread Manuel Lemos
Hello, On 06/05/2002 09:55 PM, Paul Berg wrote: > Hi, > > I am putting together an app that involves the adding together of rounded > numbers and displaying in a currency format. > The round() function is causing errors of 1 cent to appear after addition. > Does anyone know of any routines that

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Bogdan Stancescu
That's at least curious - limiting and offsetting will most certainly affect the results which are then sorted... I don't think that's what he was after. Just my 2c. Bogdan Miguel Cruz wrote: >Try a sub-select: > >SELECT * FROM (SELECT * FROM rap ORDER BY rcountry,rcity,rsname,rfname >DESC L

Re: [PHP] Re: Finding out how a variable was registered

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, John Taylor-Johnston wrote: > If you change your header to pragma-nocache, he should not be able > to see the source to know what elements he needs for a . There are plenty of browsers (lynx being the obvious example) that will let you see the source regardless of any headers

Re: [PHP] Re: sorting a list using regex

2002-06-05 Thread Miguel Cruz
I completely don't understand what you're trying to say, but I have a sneaking suspicion the usort() functions might be helpful here. miguel On Wed, 5 Jun 2002, Joshua E Minnie wrote: > I am trying to sort a list by their first character, my problem comes when > that first character is a number

Re: [PHP] php and javascript question

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Martin Clifford wrote: > As far as I'm aware you can't create a javascript variable and use it > within PHP on the same page. You can add that variable's value to a > hidden form element to be passed to the next page, but I don't think so > with the same page. You're quite ri

Re: [PHP] Displaying images with php?

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Ragnar wrote: > no, you did not misunderstand. Thats the way im building the html code for > displaying images now, but in the manual there is a lot of image-functions. > I thought that there maybe was some better way of displaying the images.. The image functions are for buil

Re: [PHP] Passing Values to an image script

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Anzak Wolf wrote: > $h=20; > $w=80; > print ""; > > Now this is a much watered down version of what I'm doing, but the idea is > the same. I don't want to put the values I'm passing to the image in the > html code to be passed with a get. I'd like to be able to maybe pass

Re: [PHP] Modifying the sort order of a query

2002-06-05 Thread Miguel Cruz
Try a sub-select: SELECT * FROM (SELECT * FROM rap ORDER BY rcountry,rcity,rsname,rfname DESC LIMIT 30 OFFSET 30) ORDER BY whatever; miguel On Wed, 5 Jun 2002, Andre Dubuc wrote: > Apache 1.3.23 + PHP 4.1.2 + PostgreSQL 7.2 > > I have a query that sorts by name, country, and city, then pages

[PHP] Passing Values to an image script

2002-06-05 Thread Anzak Wolf
I'm stuck on an odd problem with sending values between scripts. Take the following example. $h=20; $w=80; print ""; Now this is a much watered down version of what I'm doing, but the idea is the same. I don't want to put the values I'm passing to the image in the html code to be passed wit

Re: [PHP] Remote file information (PHP 4.0)

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Erik Fears wrote: > Is there a way, when requesting remote files (using fopen() or file()) to > determine the base directory of the file retrieved? For instance, if I did: > > $file = file("http://www.host.com/directory/php";); > > Several things can happen. One is that there

Re: [PHP] Need some suggestions about "community" :)

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Hawk wrote: > Just for fun I, and a few friends were going to make a community, started > about an hour ago :) > Haven't started with the design or anything yet, but I was thinking how the > best way to handle users would be, or atleast what you can recommend, first > I thought

Re: [PHP] currency rounding issues

2002-06-05 Thread Miguel Cruz
On Thu, 6 Jun 2002, Paul Berg wrote: > I am putting together an app that involves the adding together of rounded > numbers and displaying in a currency format. > The round() function is causing errors of 1 cent to appear after addition. > Does anyone know of any routines that might assist? It wou

[PHP] Modifying the sort order of a query

2002-06-05 Thread Andre Dubuc
Apache 1.3.23 + PHP 4.1.2 + PostgreSQL 7.2 I have a query that sorts by name, country, and city, then pages in groups of 30 records. Originally, I had also coded two buttons: "Sort by Country', 'Sort by City' since I wanted to offer users the options of these choices. Unfortunately, these butt

[PHP] currency rounding issues

2002-06-05 Thread Paul Berg
Hi, I am putting together an app that involves the adding together of rounded numbers and displaying in a currency format. The round() function is causing errors of 1 cent to appear after addition. Does anyone know of any routines that might assist? Thanks in advance... Paul -- PHP General M

Re: [PHP] OOP Question in PHP

2002-06-05 Thread Daniel Tryba
On Wed, Jun 05, 2002 at 10:32:39PM +0100, Henry Blackman wrote: > Do I create a new document and pass the primary key as it's a variable in > the > > $document = new Document(number); > > and have the constructor retrieve the appropriate data from MySQL and fill > the attribute variables. > > O

[PHP] Bug in ob_end_flush/xslt_process... Confirm?

2002-06-05 Thread Bret Mogilefsky
Hello php-gen'ers, I've been whacking my head against this for a day or so and I'm fairly certain I've discovered a bug in the way user-defined output buffering handlers work when not explicitly triggered by a call to ob_end_flush(). See the attached sample2.php and mysheet.xsl, both of which s

[PHP] Re: text file

2002-06-05 Thread Philip Hallstrom
Take a look at following functions: http://www.php.net/manual/en/function.file.php http://www.php.net/manual/en/function.array-unshift.php -philip On Wed, 5 Jun 2002, John Taylor-Johnston wrote: > I want to open a text file which has 12 lines and > (1) insert a new line at line[0] > (2) re-sav

[PHP] text file

2002-06-05 Thread John Taylor-Johnston
I want to open a text file which has 12 lines and (1) insert a new line at line[0] (2) re-save the text file only with 12 lines (Therefore line[12] gets chopped out. I had some code to do this with Perl. open (NEW, ">$filepath\\$file"); print NEW "$something"; for ($i = 2; $i < 12; $i

RE: [PHP] Re: Finding out how a variable was registered

2002-06-05 Thread Dan Vande More
It may not work for you but this seems to work for us: -Original Message- From: Scott Hurring [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 4:18 PM To: Php-General (E-mail) Subject: RE: [PHP] Re: Finding out how a variable was registered If you want to stop most people, tr

RE: [PHP] Re: PHP Apache Module AND command Line

2002-06-05 Thread Scott Hurring
Grab the PHP ZIP, unzip it, add it to your PATH. done. :-) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 5:13 PM

RE: [PHP] Re: Finding out how a variable was registered

2002-06-05 Thread Scott Hurring
If you want to stop most people, try posting an MD5() hash of the field contents to the form, and then verifying it upon form submittal. For example: However, if you get a smart user, he can simply change the value and the MD5 hash to be the correct hash of the new value and circumvent all yo

Re: [PHP] Sessions question (-enable-trans-sid)

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then 1LT John W. Holmes declared > I guess PHP just can't tell that cookies are enabled. I'm sure the method > isn't full proof. Your sessions get through either way, so what's the big > deal? Mainly in SEO stuff. If an SE like google as a

RE: [PHP] Finding out how a variable was registered

2002-06-05 Thread Scott Hurring
Yes, but you really must realize how utterly easy it is to POST bogus variables to a form (Save the page as HTML, edit, load in browser, submit -- bingo).If you're using the assumption "these vars were POSTed, so they're safe", you're begging for trouble. --- Scott Hurring Systems Programme

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Zac Hillier
Miguel, I mean that the variables will never change per Virtual host but that the site is a template for many sites and these vars are part of the distinction for each site / Virtual Host. So far the suggestions of using the auto-prepend in the php.ini have not seemed to cater for this. Can yo

RE: [PHP] Need some suggestions about "community" :)

2002-06-05 Thread Scott Hurring
Oh my. There are many ways go about creating a community, but a database for Each User? That's pure insanity. Try making perhaps a table for each user, or maybe (depending on what kind and how much user data you're keeping) use one single table for all users. Read up on Database Normalization

[PHP] Need some suggestions about "community" :)

2002-06-05 Thread Hawk
Just for fun I, and a few friends were going to make a community, started about an hour ago :) Haven't started with the design or anything yet, but I was thinking how the best way to handle users would be, or atleast what you can recommend, first I thought about having a database with users, and o

[PHP] [PHP]: Function strtoupper () does not convert the characterñ to Ñ

2002-06-05 Thread ignacio . estrada
I have a capture form using text fields. This form receives data from the user and then through a php module the data will be stored on an Oracle database via ODBC. All the data is converted to caps so I am using the strtoupper() function. However when the user writes characters like ñ the s

RE: [PHP] php and javascript question

2002-06-05 Thread Scott Hurring
As someone else suggested a few days ago: try using an IFRAME, and refreshing it from javascript with the values you need. The whole browser will not refresh, just the IFRAME, which will give the illusion of jscript and php talking to each other in realtime. --- Scott Hurring Systems Programmer

RE: [PHP] htaccess

2002-06-05 Thread Ray Hunter
Try checking the apache environment...however that password will not be there... Thank you, RAY HUNTER -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 3:39 PM To: PHP Subject: [PHP] htaccess I have a php script in an .htaccess protec

RE: [PHP] htaccess

2002-06-05 Thread Scott Hurring
Try creating an .htaccess protected script, and do a var_dump($GLOBALS) to see what vars are set, and if any of them contain the name you logged in with. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > F

RE: [PHP] Is this possible

2002-06-05 Thread Scott Hurring
Since you didnt include the code for InsideClass, i can only assume that you're probably getting errors becuase "$bob" is not initialized anywhere. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Ja

[PHP] htaccess

2002-06-05 Thread Steve Buehler
I have a php script in an .htaccess protected directory. Is there a way that PHP could find out what login was used? Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OOP Question in PHP

2002-06-05 Thread Scott Hurring
Depends ;-) I'd say that the second way is probably "best", becuase it avoids implied behaviour, which sometimes can cause problems (lets say you want to init. a document object, but not get anything from the DB). If you want to create a brand new Document, obviously it won't be in the DB alread

[PHP] OOP Question in PHP

2002-06-05 Thread Henry Blackman
Hello. I have, what is probably a silly, question. I want to convert my existing scripts to OO - because it's the "way to go" in terms of the huge amount of functionality that they now have (and since I've never done it before it would be interesting). However I have one thing that I don't unde

RE: [PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread Scott Hurring
Sorry, i meant: mysql_escape_string( $value ) I use a class to handle accessing the database, and i named the function $db->quote(...); i keep forgetting that the actual function call that the class is making ;-) And yes, validating that it's an integer works also, but even after pregging vars

[PHP] Is this possible

2002-06-05 Thread James Edgar
I am trying to run a class inside a class, it says that the object is there but when I go to get the info, it is not there. I have attached the code below. Any help would be greatly appreciated. class myfirstClass { function Track($tracknum) {

[PHP] Re: Finding out how a variable was registered

2002-06-05 Thread John Taylor-Johnston
If you change your header to pragma-nocache, he should not be able to see the source to know what elements he needs for a . Or you could also use a session to hide the variables? Joe Pemberton wrote: > Is there a function call to figure out how a variable was registered? I am writing >a page t

[PHP] secure?

2002-06-05 Thread Jas
Ok, I am not a security expert so I would like to know if my security measures I have implimented is adequate enough to keep people out. Any pointers on this would be very helpful as I am trying to impliment a secure way for people to update a website through the use of a content management appli

[PHP] Re: Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread John Taylor-Johnston
Should find enough code for displaying graphics (and sending by smtp) in this code. You'll find some session stuff too. HTH J http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/index.html.phps http://www.collegeSherbrooke.qc.ca/languesmodernes/postcard/display_image.phps http://www.co

Re: [PHP] use of fsockopen

2002-06-05 Thread Gerard Samuel
Oh I forgot to mention that its not writing any content to the cache file... Gerard Samuel wrote: > Im trying to modify a script that fetches rss newfeeds. > I was using fopen, but I decided to use fsockopen() for the timeout > value. > -- > $data = ''; > $filehandle = fsoc

[PHP] Re: PHP Apache Module AND command Line

2002-06-05 Thread John Taylor-Johnston
I can. I did it once in windows on a dos command line. I believe I used print ""; instead of echo "aaa"; Steve Buehler wrote: > Is there doc somewhere to would tell how to install PHP as a command line > interpreter (like perl) without messing up the installation of PHP that is > installed

Re: [PHP] php and javascript question

2002-06-05 Thread Martin Clifford
As far as I'm aware you can't create a javascript variable and use it within PHP on the same page. You can add that variable's value to a hidden form element to be passed to the next page, but I don't think so with the same page. martin >>> "kemu" <[EMAIL PROTECTED]> 06/05/02 02:30PM >>> I ha

[PHP] use of fsockopen

2002-06-05 Thread Gerard Samuel
Im trying to modify a script that fetches rss newfeeds. I was using fopen, but I decided to use fsockopen() for the timeout value. -- --- Does anyone see anything wrong with this code?? Thanks -- Gerard Samuel http://www.trini0.org:81/ ht

Re: [PHP] Sessions question (-enable-trans-sid)

2002-06-05 Thread 1LT John W. Holmes
I guess PHP just can't tell that cookies are enabled. I'm sure the method isn't full proof. Your sessions get through either way, so what's the big deal? ---John Holmes... - Original Message - From: "Dan Hardiker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002

  1   2   3   >