[PHP] Outputing XML to browser???

2002-02-15 Thread Jim Hankins
I'm attempting to do some dynamic XML output to an xml capable browser. Can someone give me an example? I'm using .php files currently. Tried xml files and the tags were messing up my xml output or if I used http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] modular programming

2002-02-15 Thread Peter Janett
Check out http://www.Fusebox.org. Fusebox is a programming methodology, originally written for Cold Fusion. Don't let the Cold Fusion scare you, it's really not about the language, but rather it's about modular programming, and may be exactly what you are looking for. Once you get what the meth

Re: [PHP] modular programming

2002-02-15 Thread Eugene Lee
On Sat, Feb 16, 2002 at 09:54:40AM +0530, Kunal Jhunjhunwala wrote: : : does anyone know of any good papers on modular programing? I have been able : to make my code modular, but I am not satisfied with it. I am trying to make : my program work the "plug in" way.. where i can just add more module

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Peter J. Schoenster
On 15 Feb 2002, at 23:12, michael kimsal wrote: > Tom Rogers wrote: > > Hi > > It uses cookies and only cookies and it seems that sessions are > > started on every access but can be turned off on individual pages if > > required. Tom > > Sorry Tom, but the application object has nothing to do wi

Re: [PHP] modular programming

2002-02-15 Thread Kunal Jhunjhunwala
Hi, I agree with everything you have said, it will come with evolution of the program. But there are times, when evolution may require re-coding over 10,000lines of code. Not a very good place to be in then :) So, if I started right, i would end and evolve right.. know what i mean? Regards, Kunal

[PHP] Sessions and templating help

2002-02-15 Thread Justin Deutsch
Hi All, I am running Apache with PHP4 as a module. I have also written a script (template.php) that sets up the default envrionment, like the CSS and navigation etc. The script also reads in a file, as defined by the ?path= of the URL. The file it reads in must have the sections (includes,

Re: [PHP] modular programming

2002-02-15 Thread Steven Walker
Dear Kunal, I don't know of any papers... I'd be interested in what you find. In my experience, 'modular coding' is entirely a process of evolution. It's impossible to sit down and design software on paper. Every piece of code I write is under constant evaluation. Each time a weakness is expo

[PHP] suscribir

2002-02-15 Thread MAURICIO
_ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] COOKIE HEADER????

2002-02-15 Thread Michael Sims
At 02:33 PM 2/15/2002 +0100, marcbey wrote: >i dont know how i have to send it back, because i dont kown where and how to >put the >ASPSESSIONIDKJHKJHHKJH=HJVHJGHJGJGHJGJHGKJ information (in the header?) This document may help: http://developer.netscape.com:80/docs/manuals/js/client/jsref/cookie

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Tom Rogers
Hi Yes you are right ... i had my head tied up with sessions :) Tom At 02:12 PM 2/16/02, michael kimsal wrote: >Tom Rogers wrote: >>Hi >>It uses cookies and only cookies and it seems that sessions are started >>on every access but can be turned off on individual pages if required. >>Tom > > >Sor

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Joshua Hoover
One way to simulate an application object is to use the php.ini "auto_prepend_file" option. Set the file with your application variables to be the file you want to prepend to every file in your application. Now, the only part that you don't have is an easy way to add/update/delete these variable

[PHP] modular programming

2002-02-15 Thread Kunal Jhunjhunwala
hey, does anyone know of any good papers on modular programing? I have been able to make my code modular, but I am not satisfied with it. I am trying to make my program work the "plug in" way.. where i can just add more modules on the fly... any tips? :) Regards, Kunal Jhunjhunwala "Minds think w

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread michael kimsal
Tom Rogers wrote: > Hi > It uses cookies and only cookies and it seems that sessions are started > on every access but can be turned off on individual pages if required. > Tom > Sorry Tom, but the application object has nothing to do with cookies. It is a 'global' session, for lack of a bette

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Tom Rogers
Hi It uses cookies and only cookies and it seems that sessions are started on every access but can be turned off on individual pages if required. Tom At 07:44 AM 2/16/02, Peter J. Schoenster wrote: >On 15 Feb 2002, at 14:43, Bendik Simonsen wrote: > > > > I have however, noticed one feature tha

[PHP] extract nouns

2002-02-15 Thread Heiko Spallek
Hi, I am looking for some non-fancy language processing: I just want to extract all nouns from a free text. Is there anything available doing this. I guess it needs to have a dictionary as part of the solution, but I don't know. Thanks for suggestions! Heiko -- PHP General Mailing List (ht

[PHP] PHP phone consultations :)

2002-02-15 Thread michael kimsal
Michael Sims wrote: >> I can also be reached at 734-480-9961 if you've questions that might >> be faster talking about than emailing, and my AIM is 'mgkimsal' is >> you're on that and need some help. >> >> That goes for anyone else on the list too... > > OMG you may end up regretting that. I'm

Re: [PHP] scheduled tasks

2002-02-15 Thread Michael Sims
At 10:03 AM 2/15/2002 -1000, Rodney Davis wrote: >Is currently anyway of doing scheduled tasks with PHP (without using >crontab)? For example, using an email script to send out e-mail >reminders every Monday or something like that? What's wrong with using cron? -- PHP General Mailing List (ht

Re: [PHP] Re: The ASP "application" object in PHP?

2002-02-15 Thread Michael Sims
At 02:21 PM 2/15/2002 -0500, Michael Kimsal wrote: >I've been here all along! :) > >Seriously, we cover some of this in our class as well, and at our monthly >PHP user group meetings. I'm actually writing up a small paper >on this and other topics. If you're interested in it, let me know. > >I

[PHP] popen

2002-02-15 Thread Lau NH
Hi, is anyone know how to make popen command to read and write to a process at the same time? My php script need to call linux command which requires interactive action, or anyone know other possible way of doing it? Regards, Lau NH

RE: [PHP] What Do You Think?

2002-02-15 Thread Jeff Sheltren
Sign me up, too! I'd love to help with any site that promotes good beer! =) Perhaps we start a database of pubs/bars and they can be browsed from a map, or a user can search for bars by name/location/rating(maybe), and they can also search by beers on tap. Sounds like quite a fun project to m

Re: [PHP] Looking for optimal coding

2002-02-15 Thread Peter J. Schoenster
On 14 Feb 2002, at 22:18, Phillip S. Baker wrote: > This is not a big thing. > But I am looking at this thinking there is a way to make the code take > up even less lines. Just want to stick this in my cap for future > reference. > > for($i=01;$i<=50;$i++) { > if (!empty($content)) {

Re: [PHP] how to send variable with direct link?

2002-02-15 Thread Tyler Longren
Server"; ?> Whatever value $ip_from_mysql holds will be accesible on page.php as the $ip variable. Tyler - Original Message - From: "Hawk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 15, 2002 4:45 PM Subject: [PHP] how to send variable with direct link? > I have

[PHP] how to send variable with direct link?

2002-02-15 Thread Hawk
I have a database with gameservers, and I am planning to make them to open a popup window where the ip I clicked on will be used as a variable for a explorer plugin that checks servers, my problem is I don't know how to get a url to send a variable specified from the database. Don't know if this s

RE: [PHP] What Do You Think?

2002-02-15 Thread Gonzalez, Zara E
I'd love a site like this. Let's do it quick before I go off traveling in May (so I can find some great pubs to visit ;) Seriously though, I haven't done much with GD (nor do I have a great deal of freetime) but I'd be willing to help out as much as I could on this project if anyone is serious ab

[PHP] Strange behaviour : php accessing Oracle (PLS-00553: character set name)

2002-02-15 Thread Robert Mena
Hi, Ie developed some scripts to access oracle. Using my development machine it works great. When I switch to the production server I keep getting Warning: OCIStmtExecute: ORA-06550: line 3, column 33: PLS-00553: character set name is not recognized ORA-06550: line 0, column 0: PL/SQL: Compilat

[PHP] php 4.0.6, apache problem

2002-02-15 Thread Pushkar Pradhan
Hi, I've installed php 4.0.6 since I am working with mapserver which works with 4.0.6 only. This is my configuration: ./configure --prefix=/rstc/user1/erc/pushkar/php-4.0.6 --with-apxs=/rstc/user1/erc/pushkar/apache_1.3.22/bin/apxs After this I add the foll. to my httpd.conf file of apache (1.3.2

[PHP] Re: The ASP "application" object in PHP?

2002-02-15 Thread Philip Hallstrom
Not that I'm an ASP expert, but I asked someone about this once and was told that the application object is really just a session for that section of the website. In other words you configure IIS so that say "/foobar" is an application. Then in /foobar/global.asa you do some stuff that sets up th

Re: [PHP] What Do You Think?

2002-02-15 Thread hugh danaher
I didn't intend to start a beer discussion, but last Friday Arik was asking for a project to do, and I was just reminding him of my suggestion. If I can work the bugs out of my image code, I might just put up a site where php people can input their local brewery/pub/whatever and see the results wo

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Peter J. Schoenster
On 15 Feb 2002, at 14:43, Bendik Simonsen wrote: > I have however, noticed one feature that ASP has that I have not found > an equal for in PHP: the "application" object. > > For those of you not familiar with ASP, the lowdown is this: The > application object acts like a global session. You as

RE: [PHP] Novice question

2002-02-15 Thread Rick Emery
$element[0] = "-".$element[0]; $element[1] = "-".$element[1]; $element[2] = "-".$element[2]; $element[3] = "-".$element[3]; -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice question Hi,

[PHP] Novice question

2002-02-15 Thread brendan conroy
Hi,thanks for reading this! This problem has got me beat! I cant figure out how to insert a minus sign into each element in an array of strings. I keep getting the error that the first element in array_push has to be an array, no matter what method I've tried, and I cant think of any more! Im tr

Re: [PHP] What Do You Think?

2002-02-15 Thread Richard Crawford
Hmm, let's not forget Sam Adams Triple Bock, if you can find it. I've got a bottle that a friend of mine gave me for my birthday three years ago... I'm still waiting for the perfect reason to drink it (my wife doesn't drink and I just don't like to drink alone). Some of my best work has been do

Re: [PHP] What Do You Think?

2002-02-15 Thread Miles Thompson
Friday afternoon -- one can tell! My votes are for Propellor Bitter or Garrison Red, both brewed here in Hfx, NS. Availability of the former more or less determines where we have our weekly Linux get-togethers. It's now 4:30, so I'm raising one to you all - Miles At 11:56 AM 2/15/2002 -0800,

[PHP] Re: scheduled tasks

2002-02-15 Thread Julio Nobrega Trabalhando
If someone or something loads your page on this particular day, you can have a: if (date(...) == 'day') { mail(); } -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=6641

[PHP] scheduled tasks

2002-02-15 Thread Rodney Davis
Is currently anyway of doing scheduled tasks with PHP (without using crontab)? For example, using an email script to send out e-mail reminders every Monday or something like that? Thanks, Rodney

Re: [PHP] What Do You Think?

2002-02-15 Thread Richard Crawford
Tetley's is good stuff. Try Old Nick. Only beer I've found that needs a chaser. On Fri, 2002-02-15 at 11:52, Erik Price wrote: > > On Friday, February 15, 2002, at 02:40 PM, Richard Crawford wrote: > > > Hmm. I'd also be interested in a "Guinness Finder" site. Plug in your > > zip code, a

Re: [PHP] What Do You Think?

2002-02-15 Thread Erik Price
On Friday, February 15, 2002, at 02:40 PM, Richard Crawford wrote: > Hmm. I'd also be interested in a "Guinness Finder" site. Plug in your > zip code, and you get a list of all of the pubs and bars in your area > that serve draft Guinness. I could support a site like that, or help > build on

Re: [PHP] What Do You Think?

2002-02-15 Thread Lars Torben Wilson
On Fri, 2002-02-15 at 11:40, Richard Crawford wrote: > I'd be much more interested in microbreweries, though. Most commercial > breweries like Anheuser Busch and Coors don't brew beer. Send some of > their product to a lab, and the results will say something like, "Your > horse has diabetes." >

Re: [PHP] What Do You Think?

2002-02-15 Thread Richard Crawford
I'd be much more interested in microbreweries, though. Most commercial breweries like Anheuser Busch and Coors don't brew beer. Send some of their product to a lab, and the results will say something like, "Your horse has diabetes." Hmm. I'd also be interested in a "Guinness Finder" site. Plu

Re: [PHP] The ASP "application" object in PHP?

2002-02-15 Thread Lars Torben Wilson
On Fri, 2002-02-15 at 05:43, Bendik Simonsen wrote: > > I've recently started to learn ASP (*ducks the hurled flowerpots and > vases*) because my school requires it, but of course I prefer PHP for > my own scripting needs. > > I have however, noticed one feature that ASP has that I have not foun

Re: [PHP] What Do You Think?

2002-02-15 Thread hugh danaher
I think you need to give us the link. Also, I think a site showing where all the commercial breweries are would be a nice project. hugh - Original Message - From: "Arik Ashepa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 15, 2002 10:07 AM Subject: [PHP] What Do You

Re: [PHP] Empty form

2002-02-15 Thread Steven Walker
Ben, I've been dealing with this problem recently. The solution I found works great in my case... the data processing page is the same as the form page. When the page is loaded it tests for post data. If no data is available (ie !isset($name)), then the form will be displayed. When the user

[PHP] Re: Undefined class name

2002-02-15 Thread Julio Nobrega Trabalhando
ini_set('include_path', 'J:/Program Files/php/pear/'); require_once 'PEAR.php'; require_once 'DB.php'; ini_set(); should be the 'root' where all included files will be found. On Windows you use / for paths or sometimes \\ (escaping a \). Anyway, the above method works on my machine. --

Re: [PHP] Re: The ASP "application" object in PHP?

2002-02-15 Thread Michael Kimsal
Erik Price wrote: > > On Friday, February 15, 2002, at 10:42 AM, Michael Kimsal wrote: > >> Remember, ASP is not a language, and PHP is. You're not programming >> "ASP" - you are most likely programming VBScript and your server >> environment gives that language access to server-specific fun

Re: [PHP] Re: The ASP "application" object in PHP?

2002-02-15 Thread Erik Price
On Friday, February 15, 2002, at 10:42 AM, Michael Kimsal wrote: > Remember, ASP is not a language, and PHP is. You're not programming > "ASP" - you are most likely programming VBScript and your server > environment gives that language access to server-specific functions > such as an applica

[PHP] PHP Built-In Functionality (was: writing / reading from text files)

2002-02-15 Thread Rick Emery
Torben, Just a side note: I am continually amazed by the functionality that you and the rest of the PHP development team put into PHP. You have functions in PHP that would take a dozen lines for me to code in PERL and/or C. Quite often, when I think I've got to code some capability, I discove

Re: [PHP] writing / reading from text files

2002-02-15 Thread Lars Torben Wilson
On Fri, 2002-02-15 at 10:36, cyberskydive wrote: > thanks guys, > > there is just one more question I dont see an answer for anywhere I've > looked. > > will fseek read past \n's and if so how do I move the filepointer to a > newline, or should I just put all the data on one line? (not unreasona

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Erik Price
On Friday, February 15, 2002, at 01:08 PM, Kevin Stone wrote: > Thanks for proving the point. It's like I said. No one is willing to > explain what symbolic links are. -Kevin Actually, if you inspect the message I sent you (it's quoted below), you'll see that the specific part of your orig

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
from the manual: fgets -- Gets line from file pointer Description string fgets (int fp, int length) Returns a string of up to length - 1 bytes read from the file pointed to by fp. Reading ends when length - 1 bytes have been read, on a newline (which is included in the return value), or on EOF (

Re: [PHP] good practice

2002-02-15 Thread Peter J. Schoenster
On 15 Feb 2002, at 17:04, Philip J. Newman wrote: > WHo really cares, if it works it don't matter what they call it. In response to: > > > On that same topic, *why* do people name files with both .inc and > > > .php? > > > Your .inc file has PHP code in it, right? Why not just call it > > >

[PHP] Re: s.osborne, are you out there?

2002-02-15 Thread Gary
nope, I am getting it too. Gary Erik Price wrote: > > > Am I the only one who gets the following message each time I post to > php-general? Is there a moderator who could remove this subscriber? > > Begin forwarded message: > >> From: "Postmaster" >> To: [EMAIL PROTECTED] >> Subject: Err

Re: [PHP] writing / reading from text files

2002-02-15 Thread cyberskydive
thanks guys, there is just one more question I dont see an answer for anywhere I've looked. will fseek read past \n's and if so how do I move the filepointer to a newline, or should I just put all the data on one line? (not unreasonable n this case) "Rick Emery" <[EMAIL PROTECTED]> wrote in me

[PHP] s.osborne, are you out there?

2002-02-15 Thread Erik Price
Am I the only one who gets the following message each time I post to php-general? Is there a moderator who could remove this subscriber? Begin forwarded message: > From: "Postmaster" > To: [EMAIL PROTECTED] > Subject: Error delivering message to: [EMAIL PROTECTED]! > Received: from epimethe

Re: [PHP] good practice

2002-02-15 Thread Erik Price
On Friday, February 15, 2002, at 12:35 PM, J Smith wrote: > The only real security problem is that if the file isn't parsed and > it's in > the web server's document path, somebody can just go to > http://www.example.com/include/config.inc and see the entire contents in > plaintext -- password

[PHP] Undefined class name

2002-02-15 Thread Gary
Hi all, I am working at home today and have to use windows. I am trying to use PEAR and keep getting an undefined class name for $db = DB::connect("mysql://$user:$pass@$host/$dname"); my include for PEAR ini_set('include_path', 'J:\Program Files\php\pear\DB.php'); where did I screw up. TIA G

Re: [PHP] Symbolic links...

2002-02-15 Thread Ashley M. Kirchner
Kevin Stone wrote: > Thanks for proving the point. It's like I said. No one is willing to > explain what symbolic links are. -Kevin This is probably a better explanation: http://kb.indiana.edu/data/abbe.html -- W | I haven't lost my mind; it's backed up on tape somewhere. +--

Re: [PHP] problem with working with dates

2002-02-15 Thread DL Neil
Jacob, > I'm sorry to bother the newsgroup with this, but I've been racking my > brain on it for a few hours, and tried all the documentation, and > realize it's a coding problem that will take someone about 3 seconds to > figure out the error in. I have this code: =don't be sorry, these 'blind

RE: [PHP] problem with working with dates

2002-02-15 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Change it to == 1 if("$current_month == 1") Jason -Original Message- From: Jacob Walker [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] problem with working with dates I'm sorry to bother the newsgroup with this, but I've been r

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Ashley M. Kirchner
Kevin Stone wrote: > Thanks for proving the point. It's like I said. No one is willing to > explain what symbolic links are. -Kevin I just realized that URL talks about backing up symbolic links, as opposed to doing an indepth explanation of what they are. Never the less, at the top it d

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Ashley M. Kirchner
Kevin Stone wrote: > Thanks for proving the point. It's like I said. No one is willing to > explain what symbolic links are. -Kevin You just didn't search well enough: http://pucc.princeton.edu/~clients/symlink.readme -- W | I haven't lost my mind; it's backed up on tape somewhere.

RE: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Kevin Stone
Thanks for proving the point. It's like I said. No one is willing to explain what symbolic links are. -Kevin > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 15, 2002 8:41 AM > To: Kevin Stone > Subject: Re: [PHP] Anyway to open a PHP file and

[PHP] What Do You Think?

2002-02-15 Thread Arik Ashepa
I hope you won't consider this as spam... A Php-Nuke powered web-site, I got a lot of themes, so you can view them, but first you need to sign up... anyway, give me your honest opinion. Sincerely Arik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] good practice

2002-02-15 Thread Keith V. (Vance Consulting LLC)
On 15 Feb 2002 at 10:50, Michael Kimsal wrote: > Erik Price wrote: > > > > On Thursday, February 14, 2002, at 04:40 PM, Michael Kimsal wrote: > > > >> On that same topic, *why* do people name files with both .inc and > >> .php? Your .inc file has PHP code in it, right? Why not just call it

[PHP] Re: problem with working with dates

2002-02-15 Thread Hugh Bothwell
> but for some reason, no matter what the month, the first if statement > (if current_month = 1) is seen as true and executes... any suggestions? Try using 'equivalence-equals' (==) instead of 'assignment-equals' (=). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] good practice

2002-02-15 Thread Chris Lott
Well, .inc seems to be so common as to be a standard practice. At the very least, the real issue is education on the need to protect included files anyway so that they can't be accessed directly. c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] problem with working with dates

2002-02-15 Thread Jacob Walker
I'm sorry to bother the newsgroup with this, but I've been racking my brain on it for a few hours, and tried all the documentation, and realize it's a coding problem that will take someone about 3 seconds to figure out the error in. I have this code: "); print("Previous Month"); print("Current

Re: [PHP] fopen

2002-02-15 Thread Lars Torben Wilson
On Fri, 2002-02-15 at 08:14, Erik Price wrote: > > On Friday, February 15, 2002, at 04:53 AM, Lars Torben Wilson wrote: > > > The problem with that is that you have a time lag (perhaps only > > in microseconds, but it still is a problem) while you're writing > > the new data to the file. If som

[PHP] Re: [imp] CRAM-MD5 problem with Horde2/IMP3 and PHP4.1.1 ..

2002-02-15 Thread Mark Crispin
I know of no reason in c-client that would cause this. The log messages indicate either some imapd other than UW, or a modified version of UW imapd. Either way, I can't speak for that imapd's performance. I can only speak for the performance of unmodified UW imapd directly from UW. -- PHP Gen

Re: [PHP] good practice

2002-02-15 Thread J Smith
The only real security problem is that if the file isn't parsed and it's in the web server's document path, somebody can just go to http://www.example.com/include/config.inc and see the entire contents in plaintext -- passwords and config options galore. However, sticking those .inc files out

[PHP] OOP: Polymorphism question

2002-02-15 Thread Richard Fox
I am new to PHP but 10 years in C++ One of the cool/powerful things you can do in C++ is the following: class DrawDialog { public: ... virtual Draw(); // implementation draws a plain dialog box }; class DrawStyleDialog : public DrawPlainDialog { public: ... virtual Draw(); // implement

[PHP] Polymorphism question

2002-02-15 Thread Richard Fox
I am new to PHP but 10 years in C++ One of the cool/powerful things you can do in C++ is the following: class DrawDialog { public: ... virtual Draw(); // implementation draws a plain dialog box }; class DrawStyleDialog : public DrawPlainDialog { public: ... virtual Draw(); // impleme

Re: [PHP] good practice

2002-02-15 Thread Erik Price
On Friday, February 15, 2002, at 10:50 AM, Michael Kimsal wrote: > That's great for you that you have that luxury, as do I, but not > everyone has access to their server's conf file. Whether or not you want to call administrating a web server a luxury is debatable -- I'm learning new things

RE: [PHP] Dynamic Date Select and SQL

2002-02-15 Thread Simon H
Thanks Rick But the SQL needs to work with MS Access AND MySQL through the PEAR DB Abstraction layer... I'm not saying it wont work with Access because I don't know yet...maybe it will, but there looks to be functions in there that may be MySQL specific. If I can do something like this it would

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
from the manual: int fseek (int fp, int offset [, int whence]) Sets the file position indicator for the file referenced by fp.The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence, whose values are defined as follows:

Re: [PHP] writing / reading from text files

2002-02-15 Thread cyberskydive
lol- so I use fseek() to move the file pointer before where I need to write/replace/update a value? Is there a parameter for fseek to tell it to move to a newline, or stop after a certain bytes? "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > fopen(

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
fopen(), fwrite(),fseek(),fread(),fclose() -Original Message- From: cyberskydive [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 10:29 AM To: [EMAIL PROTECTED] Subject: [PHP] writing / reading from text files I need to write to a specific line in a text file, read from a line

RE: [PHP] Polymorphism question

2002-02-15 Thread Rick Emery
I've also done C and C++ since the 80's. My experience with virtual, is that there is no base implementation for a function. Rather, the function is expected to be defined in the derived class. The inheritance you describe would have a base implementation (no virtual declaration), which could b

[PHP] Speed problems

2002-02-15 Thread Eric Katchan
Hi everyone, I am having a small speed problem and I think I may be on track to solve it. i need some input. I have a search script which either returns results or not. if No results I use a header location redirect to an insert form if one result I redirect to part 2 else if many I display t

[PHP] writing / reading from text files

2002-02-15 Thread cyberskydive
I need to write to a specific line in a text file, read from a line on demand, and update values at random, I want to do this all in the same text file. what is the best way to go about this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen

2002-02-15 Thread Erik Price
On Friday, February 15, 2002, at 04:53 AM, Lars Torben Wilson wrote: > The problem with that is that you have a time lag (perhaps only > in microseconds, but it still is a problem) while you're writing > the new data to the file. If some other process--say, another > invocation of the same scri

RE: [PHP] Dynamic Date Select and SQL

2002-02-15 Thread Rick Emery
If I understand your question, you are looking for the MYSQL sql statement. Based upon your info, I've found something like this example: mysql> describe a; ++--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | ++--+--+-+

[PHP] Fw: Polymorphism question

2002-02-15 Thread Richard Fox
I am new to PHP but 10 years in C++ One of the cool/powerful things you can do in C++ is the following: class DrawDialog { public: ... virtual Draw(); // implementation draws a plain dialog box }; class DrawStyleDialog : public DrawPlainDialog { public: ... virtual Draw(); // impleme

Re: [PHP] How get the name of the array variable?

2002-02-15 Thread DL Neil
Lone Star Rick, I see that your day, and helpfulness to list members, is going a lot better than mine! > Actually, if I had my druthers, my domain TLD would be ".texas". Some day, > when Texas > becomes the independent country it should be, that will be my TLD. > > If it comes from TX... it wo

[PHP] Polymorphism question

2002-02-15 Thread Richard Fox
I am new to PHP but 10 years in C++ One of the cool/powerful things you can do in C++ is the following: class DrawPlainDialog { public: ... virtual Draw(); // implementation draws a vanilla dialog box }; class DrawStyleDialog : public DrawPlainDialog { public: ... virtual Draw(); //

Re: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-15 Thread Anas Mughal
If you are on the same machine, why don't you just open the file as follows: file:/filename.php Just don't go thru the webserver. --- Kevin Stone <[EMAIL PROTECTED]> wrote: > How can I open a local PHP script and view its code > to the browser? The > Readfile() method appears to parse and e

[PHP] Installing php_4.0.6 on Mandarke

2002-02-15 Thread George Pitcher
Hi all, I have just installed Mandrake 8.1 with MySQL, Apache and PHP and Apache and MySQL are working but when I do the phpinfo.php file I get a 404 error even though the file is there. It is as though it cannot see php files. Any suggestions? George -- PHP General Mailing List (http://ww

[PHP] creating PDF on the fly

2002-02-15 Thread fitiux
Hi, I don't know if this question was here before.. but... :-) I would like to know if someone have some experience on creating PDF files on the fly, in my new job I need to do this .. well.. actually I must do this :-) files to be generated are documents with free information for any user o

Re: [PHP] good practice

2002-02-15 Thread Michael Kimsal
Erik Price wrote: > > On Thursday, February 14, 2002, at 04:40 PM, Michael Kimsal wrote: > >> On that same topic, *why* do people name files with both .inc and >> .php? Your .inc file has PHP code in it, right? Why not just call it >> .php and >> spare the server reconfiguration. If knowin

[PHP] Re: The ASP "application" object in PHP?

2002-02-15 Thread Michael Kimsal
Bendik Simonsen wrote: > I've recently started to learn ASP (*ducks the hurled flowerpots and > vases*) because my school requires it, but of course I prefer PHP for > my own scripting needs. > > I have however, noticed one feature that ASP has that I have not found > an equal for in PHP: the "ap

RE: [PHP] uuencode

2002-02-15 Thread Michael Mehlmann
> Sorry...I missed it...I was thinking of urlencode(). Lack of sleep, I > guess and I thougth it was my lack of sleep ;-) > I would suggest doing GOOGLE search for the uuencode algorithm and coding > it > in PHP already done - found only a "non-binary-safe" coding!! thanks michi > > -O

Re: [PHP] good practice

2002-02-15 Thread Erik Price
On Thursday, February 14, 2002, at 04:40 PM, Michael Kimsal wrote: > On that same topic, *why* do people name files with both .inc and > .php? Your .inc file has PHP code in it, right? Why not just call it > .php and > spare the server reconfiguration. If knowing which files are "include"

Re: [PHP] how to require php file in a.html file

2002-02-15 Thread Tyler Longren
If you're using apache, make sure .html is included as an extension that gets parsed by PHP. Tyler - Original Message - From: "mysqlphp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 15, 2002 8:08 AM Subject: [PHP] how to require php file in a.html file > Hi, > > H

RE: [PHP] How get the name of the array variable?

2002-02-15 Thread Rick Emery
Actually, if I had my druthers, my domain TLD would be ".texas". Some day, when Texas becomes the independent country it should be, that will be my TLD. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:57 AM To: Rick Emery; [EMAIL PROTECTED]

[PHP] how to require php file in a.html file

2002-02-15 Thread mysqlphp
Hi, How do you (or is it possible) to ask a html tagged file (snoopy.html) to include a php file that reads and embeds cookies and talks to a MySQL database? The code below (written before the html tag) is not working for me and really want to avoid changing all my .html files to .php files. Th

RE: [PHP] uuencode

2002-02-15 Thread Rick Emery
Sorry...I missed it...I was thinking of urlencode(). Lack of sleep, I guess I would suggest doing GOOGLE search for the uuencode algorithm and coding it in PHP -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:38 AM To: Rick Emery Cc:

Re: [PHP] How get the name of the array variable?

2002-02-15 Thread DL Neil
So Rick, Guess you've squashed my little scheme for (fraudulently) convincing everyone that I can speak Polish fluently - given that I counldn't answer Tomek's question, I'm already scoring it up as a 'bad day'! On the subject of email addresses, does this observation mean that we are patrioti

[PHP] Re: fsockopen timeout

2002-02-15 Thread Peter Clarke
OK I've found it... The time out value is a FLOAT. So a timeout of 1 second is 1.0. Strange since the examples in the manual are integers. Anyway this works: $socket = fsockopen($urlArray["host"], $urlArray["port"], &$errnum, &$errstr, 1.0); "Peter Clarke" <[EMAIL PROTECTED]> wrote in message [E

Re: [PHP] db design

2002-02-15 Thread Andrew Brampton
I would make 2 tables, a product table and a language table... It would look like so: Product ID | product name | manufacturer | etc Then a language table that looks like: Language ID | Product ID | product description | etc Then you won't be replicated your 11 columns since they are not in the

Re: [PHP] good practice

2002-02-15 Thread J Smith
It does to a certain extent. If you're writing code that you're expecting others to see and use, you should try to be consistent and follow convention. If you write up a large project in C++ and suddenly start naming header files with a ".doc" extension, somebody's going to get confused. Of

RE: [PHP] Access Denied !! SOLVED!!

2002-02-15 Thread Thomas Edison Jr.
Hi, well, after about a week or so, finally, the turmoil & fire has extinguished. the whole problem of importing .csv data and the access denied thingy has been solved, all due to just 'one' single syntax! As it turns out, the command to be applied is NOT THIS : LOAD DATA INFILE 'fanlist.csv' I

  1   2   >