Re: [PHP] text grabber

2002-02-15 Thread hugh danaher
you can try something like: ?php include(file_with_just_the_table_and_html_tags.txt); ? put your table in the above file (of course with a different name!) then call it when ever you need to. Other's will disagree but you also need to give the destination file a .php extension. Hugh -

[PHP] Empty form

2002-02-15 Thread Ben Clumeck
I am trying to have my form redirect back to my form, if the 'name' field is not filled in or the submit button is not pushed. Can someone tell me what my problem is with the script below that I have in my header: ? if(!isset($name)||($HTTP_POST_VARS[submit])) { header(Location: form.htm);

Re: [PHP] Decode Encoded text in phpMyAdmin

2002-02-15 Thread David
So then there's no way to get it decoded :(. Ah well, thanks for your help anyway. -- - Dave Visit http://www.geocities.com/earthtohorny/ for info on Computers and Upgrading. Joffrey Van Wageningen [EMAIL PROTECTED] wrote in message 00f101c1b570$d4697450$[EMAIL

Re: [PHP] Empty form

2002-02-15 Thread hugh danaher
Using header() to return will clear the entire form where all you want is the person to fill in missing data. Yes? I'd use something like: if(!isset($name) die(Use the Browser's Back Button, fill in your name and hit the \Submit\ Button); if(!isset($address) die(Use the Browser's Back Button,

Re: [PHP] Looking for optimal coding

2002-02-15 Thread Joffrey van Wageningen
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. for($i=01;$i=50;$i++) { if (!empty($content)) { if ($row[$content]==$states[$i]) echo option value=\$states[$i]\

[PHP] strange behaviour with output buffering

2002-02-15 Thread gaouzief
hi, i'm working on content management sytem entirely written in Object oriented PHP using templates i used output buffering to be able to send header calls in the middle of my classes i have noticed that performance has become random meaning that the same script could take from 1 up to 30

[PHP] http header?

2002-02-15 Thread marcbey
hello php guys, how can i get the http header ? greetings marc -- --- magic garden GmbH - Agentur für Informationsarchitektur Hermannstr. 15 - 70178 Stuttgart (Am Feuersee) www.magic-garden.de ¦ [EMAIL PROTECTED] Tel. (07 11) 619 57-42 ¦

Re: [PHP] Looking for optimal coding

2002-02-15 Thread LuC .
for($i=1;$i=50;$i++) { if ((!empty($content) $row[$content] == $states[$i]) || ($dstate == $states[$i])) $selected=SELECTED; else $selected=; printf(option value=\%s\ %s%s/option, $states[$i], $selected, $nstates[$i]); } I always

RE: [PHP] fopen

2002-02-15 Thread Lars Torben Wilson
On Thu, 2002-02-14 at 18:27, Martin Towell wrote: or read the original file into memory, reopen the file for writing, write the first prepend bit, then write what you just read The problem with that is that you have a time lag (perhaps only in microseconds, but it still is a problem) while

[PHP] uuencode

2002-02-15 Thread Michael Mehlmann
Hi! All I want is, to call my php with a URL in my querystring! myphp.php?URL=http my php should download the URL, uuencode it, and then return the uuencoded text! as this should be binary-safe, it thought of using the linux-included uuencode! But how to get the (perhaps large binary) file

[PHP] Mail()

2002-02-15 Thread André Felix Miertschink
I have been installing NuSphere (Apache and PHP 4.0.6). As that I configure the Apache or PHP, so that I get to use and to test the command mail in my computer? André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and shadow suite

2002-02-15 Thread Dejan Milenkovic
Can PHP directly work with shadow password suite on Linux machines (reading and writing shadow file)? I supose that some module or extension should be activate so PHP could read and write to files owned by root. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] fsockopen timeout

2002-02-15 Thread Peter Clarke
According to the manual; http://www.php.net/manual/en/function.fsockopen.php Depending on the environment, optional connect timeout may not be available. Does anyone know what environment is needed for it to be available? I have Redhat Linux 7.1 - and the timeout doen't seem to work. Any ideas?

[PHP] Apache - Virtual Name

2002-02-15 Thread André Felix Miertschink
How can I configure the apache, so that my local access is different from http://localhost. I want to access my local server through a virtual name (Example: http://www.test.com). I only want to change the name localhost for any other name. I already possess a domain (Example: www.test.com)

Re: [PHP] array variable name

2002-02-15 Thread Tomek Golembiewski
Dnia czwartek 14 luty 2002 21:14, Rick Emery napisa: How can I get the name of array variable into str? what are your trying to do with it?? This: function show_arr($array) //wyswietla wartosci z tablicy wraz z kluczami (przeznaczone do debugowania) { if(DABUG) { echo

Re: [PHP] uuencode

2002-02-15 Thread Mirek Novak
to convert take a look at http://www.php.net/manual/en/function.popen.php IMHO M.N. --- Michael Mehlmann wrote: Hi! All I want is, to call my php with a URL in my querystring! myphp.php?URL=http my php should download the URL, uuencode it, and then return the uuencoded text! as this

php-general Digest 15 Feb 2002 12:31:44 -0000 Issue 1173

2002-02-15 Thread php-general-digest-help
php-general Digest 15 Feb 2002 12:31:44 - Issue 1173 Topics (messages 84848 through 84886): Re: searching key words from a database field 84848 by: David Robley 84849 by: Philip J. Newman 84851 by: Martin Towell 84857 by: David Robley 84858 by:

[PHP] Difference between vpopmail_add_domain AND vpopmail_add_domain_ex

2002-02-15 Thread Johannes Tyra [BrainData]
Hi, where's the difference between the Popmail vpopmail_add_domain AND vpopmail_add_domain_ex?? Do you have to make vpopmail_add_domain first, before you make vpopmail_add_domain_ex? Thanx, -- Mit freundlichem Gruß, Johannes Tyra -- PHP General Mailing List (http://www.php.net/) To

[PHP] db design

2002-02-15 Thread Wilbert Enserink
hi all, I need some tips on database (mySQL) design. The problems lie in languages. I'm gonna make a e-commerce webiste. it's rather big (in my terms/experience). The website should be expandible easily with regard to languages/translations. My biggest table with product descriptions has 43

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

2002-02-15 Thread DL Neil
Tomek, I got the problem , I want make preety debug function that shows array keys and values and name of the variable containing array: Here it is: function show_arr($array) //wyswietla wartosci z tablicy wraz z kluczami (przeznaczone do debugowania) { if(DABUG) { echo

Re: [PHP] uuencode

2002-02-15 Thread Michael Mehlmann
to convert take a look at http://www.php.net/manual/en/function.popen.php thanks, but you can only write OR read to popen() but I need to write AND read to/from uuencode!!! thanks michi IMHO M.N. --- Michael Mehlmann wrote: Hi! All I want is, to call my php with a URL in my

Re: [PHP] Using winpopup to notify users

2002-02-15 Thread Garth Dahlstrom
Thanks, very useful info... I'll prolly use that with some code, detect windows then do a net send othewise if not windows do as you suggest... Just have to escapeshellargs first... :) -Garth Northern.CA ===-- http://www.northern.ca Canada's Search Engine On Thu, 14 Feb 2002 15:24:05 +0100

[PHP] Finding out the resolution of an image

2002-02-15 Thread Andy
Hi there, I would like to do an upload thing with images. Is their a way to find out which resolution the image has the client wants to upload? I know the hight and with are values provided. As well as the file size. But you never know the compression. So two unknown variables. Is there a way

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

2002-02-15 Thread Tomek Golembiewski
This doesn't solve the strval problem, :((( it's the only problem I have but in my debug output I wasn't so interested in the array's name, as in the meaning/status of the data it contained. Here is an equivalent approach (- the idea of nesting the two functions was the subject of a

[PHP] Dynamic Date Select and SQL

2002-02-15 Thread Simon H
I have a problem I hope someone can help me with... Firstly I have an SQL Query with a WHERE dateMonthAndYear = $month1 Already this shows part of what I'm trying to do. The date format in the DB is -MM-DD HH:MM:SS. Now I need to dynamically generate a pulldown of months... The range of

RE: [PHP] Looking for optimal coding

2002-02-15 Thread Ford, Mike [LSS]
-Original Message- From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]] Sent: 15 February 2002 09:00 i would try: for($i=01;$i=50;$i++) { if(!empty($content) $row[$content] == $states[$i]) $selected = selected; elseif($dstate == $states[$i])

[PHP] COOKIE HEADER????

2002-02-15 Thread marcbey
hey php guys, i have a problem: i have extracted cookie information from the header of an ASP site in an PHP script, and now i want to send these session information back to an ASP site in order that the ASP site remember me. i dont know how i have to send it back, because i dont kown where and

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

2002-02-15 Thread Rick Emery
your mailing address TLD (the .pl in emarket.pl) says you're from Poland -Original Message- From: Tomek Golembiewski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 7:20 AM To: DL Neil; [EMAIL PROTECTED] Subject: Re: [PHP] How get the name of the array variable? Please feel

RE: [PHP] Mail()

2002-02-15 Thread Rick Emery
It should be configured automatically if you have PHP compiled into your Apache server. That said, I know nothing about NuSphere, so they might do something different. Have you tried??? -Original Message- From: André Felix Miertschink [mailto:[EMAIL PROTECTED]] Sent: Friday, February

[PHP] The ASP application object in PHP?

2002-02-15 Thread Bendik Simonsen
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 application object. For those of

[PHP] Access Denied !!

2002-02-15 Thread Thomas Edison Jr.
Hi, I'm facing a rather tricky problem. The thing is, while connecting to the mySQL database using my php page, i get the acess denied error on only One Particular command, and on any other query, the same page, with the same login details works fine! For ex, this works fine : ?php $db =

RE: [PHP] Apache - Virtual Name

2002-02-15 Thread Rick Emery
edit /etc/httpd/conf/httpd.conf look for ServerName in Core directives. Change to something like: ServerName myserver Find VirtualHost section and locate a VirtualHost block. It should be commented out. Copy the lines between #VirtualHost #/VirtualHost and paste them. Remove # comment

RE: [PHP] Access Denied !!

2002-02-15 Thread Rick Emery
Thomas, What happens when you enter the LOAD DATA INFILE command directly into the MYSQL command line? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 7:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Access Denied !! Hi, I'm facing a

RE: [PHP] uuencode

2002-02-15 Thread Rick Emery
uuencode() is a function, not a process. You cannot read and write to it. It takes a string and converts it. Then use uudecode() to translate it back. Now, what do you REALLY want to do?? -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15,

RE: [PHP] Sessions just not working...

2002-02-15 Thread Rick Emery
Did you register each variable individually? Did you have a session_start() as the first line of each page? -Original Message- From: Norman Cates [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions just not working... I

RE: [PHP] http header?

2002-02-15 Thread Rick Emery
you get get some header variable data, such as $HTTP_REFERER execute ?php phpinfo(); ? to determine what is available to you (differs from system to system) You might also iterate through $HTTP_SERVER_VARS[], $HTTP_ENV_VARS[] -Original Message- From: marcbey [mailto:[EMAIL

RE: [PHP] uuencode

2002-02-15 Thread Michael Mehlmann
uuencode() is a function, not a process. You cannot read and write to it. It takes a string and converts it. Then use uudecode() to translate it back. it's the first time, I hear of this php-function (which version do you use). I use v4.0.6 and there isn't such a function! I only knew 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'

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] 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

[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 [EMAIL

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

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

[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.

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. BIG Frigging GRIN -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:57 AM To: Rick Emery;

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, How do

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] 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 -Original

[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

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 knowing which

[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

[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

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

[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] 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. BIG Frigging GRIN If it comes from

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 |

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

[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:

[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

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

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

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
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] 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] 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

[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(); //

[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(); //

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

[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

[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: ?php $current_month = date (m);

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

[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:

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 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:

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

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 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

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

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] 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.

[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

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 -- passwords

[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 Postmaster To: [EMAIL PROTECTED] Subject: Error delivering message to: [EMAIL PROTECTED]! Received: from

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

[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 Postmaster To: [EMAIL PROTECTED] Subject: Error

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 and

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] 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

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 unreasonable n

[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

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 application

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 functions

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

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] 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 found an

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. Plug

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. Hmm.

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 one.

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, and you

[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

  1   2   >