[PHP] Strange Error Reporting

2001-03-25 Thread Kristofer Widholm
Anyone know why I get this warning? Warning: Bad escape sequence: \. in validate.inc.php on line 142 CODE: Line 142: if (!eregi("index\.php",$PHP_SELF)) { blah blah blah; } I didn't know there was any other escape sequence possible in RegEx! I have error reporting set to error_reporting(32+16+

[PHP] FYI: compile php4 compress uncompress libmysqlclient issue

2001-03-25 Thread Grant Walters
Hi all. Firstly apoligies to those on the list who receive every email to the general list in their inbox like I do :-) I've just spent a rather frustrating five days (15hrs/day) trying to compile php 4 for use both at the command line and within apache 1.3.12 (openssl/mod_ssl). I've scanned th

Re: [PHP] PHP_SELF problems!

2001-03-25 Thread almir
simple echo basename($PHP_SELF) or base_name check docu almir ""Erick Papadakis"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 99foro$tig$[EMAIL PROTECTED]">news:99foro$tig$[EMAIL PROTECTED]... > hi, > > i am using my program > > http://localhost/test.php > > inside this program is a form, which

[PHP-CVS] cvs: php4 /pear/DB STATUS

2001-03-25 Thread Stig Bakken
ssb Sun Mar 25 02:25:11 2001 EDT Modified files: /php4/pear/DB STATUS Log: wrapped to 80 columns, replaced a few "-" with "n" for ifx (some features are emulated through DB_common) Index: php4/pear/DB/STATUS diff -u php4/pear/DB/STATUS:1.17 php4/

[PHP-CVS] cvs: php4 /pear/DB ifx.php

2001-03-25 Thread Stig Bakken
ssb Sun Mar 25 02:34:31 2001 EDT Modified files: /php4/pear/DB ifx.php Log: * changed DB_ifx::errorCode to take a parameter, moved the error code map into the constructor Index: php4/pear/DB/ifx.php diff -u php4/pear/DB/ifx.php:1.2 php4/pear/DB

SV: [PHP] PHP vs Servlet

2001-03-25 Thread Jesper Blomström
Okey, sorry about that. Communicating with a servlet via http is not different from other php-http-methods: For example: # First declare some parameters which shall be sent to the Servlet/JSP $eqid = '1'; $oparameter = 'tablist'; $nocolumn = '1'; $request = '?eqid=' . urlencode($eqid); $reque

[PHP] PDF support in PHP

2001-03-25 Thread Phil Allsopp
I am having some problems getting PDF support enabled with PHP4.04pl1 Using FreeBSD 4.2, Apache 1.3.9, PHP4.04pl1 and Pdflib 3.0 When doing a PHP ./configure, I see : Checking whether to include Pdflib 3.x support... /usr/local yes (and) creating ext/pdf/Makefile when doing a make, I see

[PHP] Let the Server do the downloading

2001-03-25 Thread techzeus
Is it possible? Have anyone made a script that allows you to grab a file from another URL directly from the server so that you don't need to download the file and upload it again? Chua Zhi Hon aka. Zeus - Founder/CEO, Frozened Network "We provide you with th

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-03-25 Thread Stig Bakken
ssb Sun Mar 25 03:35:22 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: * added "ufux" Index: CVSROOT/avail diff -u CVSROOT/avail:1.126 CVSROOT/avail:1.127 --- CVSROOT/avail:1.126 Thu Mar 22 12:10:57 2001 +++ CVSROOT/avail Sun Mar 2

[PHP] writing to a file

2001-03-25 Thread adam
how do i write to the beginning of a file instead of the end? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Regular Expr. on access.log

2001-03-25 Thread Andre
Hello, i am writing a script to read out the apaches´ access.log. Now i want to set a counter when the following String includes the expression "MAR" "test.php" "a=5" and "d=6901" 127.0.0.1 - - [21/Mar/2001:21:19:17 +0100] "GET /test.php?a=5&b=4&c=42&d=6901 HTTP/1.1" 200 54 can someone tell me

[PHP] $B#J#u#s#t(B$B#i#n(B$B#M#a#i#l(B$B>pJs(B

2001-03-25 Thread [EMAIL PROTECTED]
$B!z!z!z!z!z!z!z!!(BJust in Mail $B!z!z!z!z!z!z!z(B $B>pJsDs6!4k6HL>(B $B%P%J!<%3%`(B $B"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!(B $B:#=5$N$*>)$a%5%$%H$r$*CN$i$;$$$?$7$^$9(B http://www.hh.iij4u.or.jp/~g-spot/check/mail.html $Bhttp://www.hh.iij4u.or.jp/~g-s

Re: [PHP] writing to a file

2001-03-25 Thread Felix Kronlage
On Sun, Mar 25, 2001 at 03:39:28AM -0800, adam wrote: > how do i write to the beginning of a file instead of the end? fseek will help. With it you con move the pointer to the file beginning. http://www.php.net/manual/en/function.fseek.php will have details. -fkr -- gpg-fingerprint: 076E 1E87

Re: [PHP] writing to a file

2001-03-25 Thread Mukul Sabharwal
heyo, http://devhome.net/php/tutorials/230101.html will be nice --- adam <[EMAIL PROTECTED]> wrote: > how do i write to the beginning of a file instead of > the end? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional co

[PHP] Can You get a file unlinked after one month?

2001-03-25 Thread Jan Grafström
Hi! I wonder if it is possible to delete a file using unlink and a time function. I wont the file to be automtically unlinked after a month. I am very thankful for any help. Regards Jan Grafstrom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

RE: [PHP] ODBC & Oracle

2001-03-25 Thread Brooks, Ken
Joe, I love you!! (In a 'Happy I now have something working' sort of way of course) :) It hasn't finished (it's still running now), but it is sure going *alot* further than it had before. -ken -Original Message- From: Joe Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001

Re: [PHP] attachments with mail() function

2001-03-25 Thread BlackLord
Thank you Michael. I will look for mime_mail classes. "Michael Hall" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm not sure about including them in the mail function as such, but it can > certainly be done using one of several mime_mail classes that ar

Re: [PHP] Can You get a file unlinked after one month?

2001-03-25 Thread Christian Reiniger
On Sunday 25 March 2001 15:45, you wrote: > Hi! > I wonder if it is possible to delete a file using unlink and a time > function. > I wont the file to be automtically unlinked after a month. man cron man tmpreaper -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. re

[PHP] String Functions (replace)

2001-03-25 Thread Brooks, Ken
I know this is completely stupid but how can i take something with a single quote ' and replace it in the string with \' Ex: Bain's Deli to Bain\'s Deli $fieldcontents = strtr($fieldcontents, "'", "\\\'"); -or- $fieldcontents = strtr($fieldcontents, "'", "\\'"); doesn't work. I feel dumb, but m

RE: [PHP] String Functions (replace)

2001-03-25 Thread Brooks, Ken
Nevermind, stumbled across addslashes(). What a wonderful language. :) -ken -Original Message- From: Brooks, Ken [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 25, 2001 10:45 AM To: [EMAIL PROTECTED] Subject: [PHP] String Functions (replace) I know this is completely stupid but how ca

[PHP] Changing within a file

2001-03-25 Thread Jimmy Bäckström
Yo! Does anyone know how I can change a line in a textfile? I want to find a specific line, and then change it a bit...

[PHP] huge time/memory consuming script

2001-03-25 Thread Christian Dechery
I'm thinking about building a PHP script that loads an entire database on a weekly basis, based on a text catalog. The reason I'm doing it, it's because the catalog is too generic and has lots off stuff to be done in it (such as lots of string replacements and 'fixing') before I can really par

RE: [PHP] huge time/memory consuming script

2001-03-25 Thread Brooks, Ken
I don't know exactly what you are asking. But I'm running a script as we speak that is pulling 75000+ rows from an oracle database over ODBC (from a remote server) and creating a table in a local mysql database, dumping all records into it. -ken -Original Message- From: Christian Decher

Re: [PHP] Strange Error Reporting

2001-03-25 Thread CC Zona
In article , [EMAIL PROTECTED] (Kristofer Widholm) wrote: > Warning: Bad escape sequence: \. in validate.inc.php on line 142 > > CODE: > Line 142: if (!eregi("index\.php",$PHP_SELF)) { > blah blah blah; > } > > I didn't know there was any other escape seq

Re: [PHP] [PHP4]

2001-03-25 Thread Dddogbruce \(@home.com\)
Your suggestions returned a parse error: I don't know.. I'm new to this. You said something about file(), could you explain that? Maybe that's the problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: [PHP] [PHP4]

2001-03-25 Thread Dddogbruce \(@home.com\)
All the variables are true. When I "post" the information to a nother file from the form, it works. This is the form script, if you're wondering.. Submit news Name: Email: Subject: Message: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] Delaying Printed Output

2001-03-25 Thread Greg Scott
> Have you looked into javascript/java? This client has worked up a Power Point slide presentation that he wants me to duplicate on the web. I had a PHP solution that was working fine, but then he decided to jazz up his Power Point presentation some. The adding a single line of text at time

SV: [PHP] Changing within a file

2001-03-25 Thread Jesper Blomström
Hi! This is what you want: http://www.php.net/manual/en/function.preg-replace.php The preg_replace-method uses a ordinary RE to search and replace. Hoppas det går vägen! / Jeppe Jimmy Bäckström <[EMAIL PROTECTED]> skrev i diskussionsgruppsmeddelandet:001901c0b543$329648c0$[EMAIL PROTE

[PHP] set_error_handler and parse errors

2001-03-25 Thread Dean Hall
Is it just me, or do parse errors get reported by the engine even if you use your own error handler? I've registered my own error handler with "set_error_handler()", but it doesn't get called on parse errors -- the manual seems to hint that this is the case (without actually saying it), and I sea

php-general Digest 25 Mar 2001 18:29:24 -0000 Issue 588

2001-03-25 Thread php-general-digest-help
php-general Digest 25 Mar 2001 18:29:24 - Issue 588 Topics (messages 45471 through 45500): Re: Text fading with PHP? 45471 by: Kristofer Widholm Re: What is session.cookie_secure? 45472 by: Yasuo Ohgaki Re: [PHP4] 45473 by: Joe Brown 45496 by: Dddogbruce \(

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
Any way to combine both forms of url parsing? I want to use standard slash notation for navigation ,but also account for the occasional variable used within a single page. e.g. URL can be either: domain.com/index.php/main/index.html?ii=1 or: domain.com/index.php/main/index.html?ii=1 if (isset(

[PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
I'm writing a news script, and I just got it working earlier this morning. Now it writes the variables from the form to the .txt file; but when I go to write again (another news article) it does it beside, not above. Me, thinking so brilliantly at 6AM, thought append would mean above, but it mea

RE: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Jack Dempsey
i believe there was a post about 10 messages ago regarding this same problem--try fseek: http://www.php.net/manual/en/function.fseek.php -jack -Original Message- From: Dddogbruce (@home.com) [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 25, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: [P

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Thanks for the quick reply, looking in to it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] URL parsing

2001-03-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jaxon) wrote: > Any way to combine both forms of url parsing? > I want to use standard slash notation for navigation ,but also account for > the occasional variable used within a single page. > > e.g. URL can be either: > domain.com/index.php/m

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Ok, with this fseek.. Could you give me an example of how to implement it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
oops :) http://www.domain.com/index.php/main/index.html?ii=1 versus http://www.domain.com/index.php/main/index.html I want to get "index.html" and "main" into variables, as the two items will always be present - if $ii is set, I want to strip it from the URI before parsing the items out. I supp

[PHP] rewind

2001-03-25 Thread Jack Dempsey
someone was asking about fseek...try this: http://www.php.net/manual/en/function.rewind.php i haven't tried it, but it seems to return the pointer to the beginning, which is where you wanted... -jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Richard
You should find it on http://www.php.net/manual/en/functions.fseek.php Or something. There are examples that are quite clear. - Richard ""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok, with this fseek.. > > Could you give me

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Joe Brown
Re-create the file. You're most of the way there. if( $formSubmit ) { echo "Your news has been processed."; $filename = "news.txt"; //This is simpler than messing with an array of the original content. $fp = fopen ($filename, "r"); $newsSubmit = fread ($fd, filesize ($filename)); fclose ($fp)

Re: [PHP] URL parsing

2001-03-25 Thread Philip Olson
Hi! Check out these two related articles (and user comments) : Building Dynamic Pages With Search Engines in Mind : * http://phpbuilder.com/columns/tim19990117.php3 * http://phpbuilder.com/columns/tim2526.php3 Also c

Re: [PHP] rewind

2001-03-25 Thread Dddogbruce \(@home.com\)
Thanks! :) Jack Dempsey wrote: > someone was asking about fseek...try this: > http://www.php.net/manual/en/function.rewind.php > > i haven't tried it, but it seems to return the pointer to the beginning, > which is where you wanted... > > -jack > > -- > PHP General Mailing List (http://www.php.

[PHP] finding primary key with oci8

2001-03-25 Thread almir
is there any why to find out from php with oci8 functionen , which colomn/s is/are primary key in a table in oracle almir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admini

[PHP] script filename?

2001-03-25 Thread Kurth Bemis
i was pretty sure that there was a function to return JUST the script filename.. Unlike $php_self and $script_name i need something that till ruturn JUST the scriptname. ie /test/test/blah.php returns blah.php. any ideas? or am i going to have to reverse the string find the first "/" drop th

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
When you say $newsSubmit = fread ($fd, filesize ($filename)); Do you mean specify the filename? $news.txt then? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] script filename?

2001-03-25 Thread Philip Olson
Hi Kurth, Check out basename() and use it against a predefined variable such as SCRIPT_NAME. Example : ///apples/foo.php?fruit=apple print basename($SCRIPT_NAME); // foo.php Be sure to check out : http://www.php.net/manual/en/language.variables.predefined.php http://www.php.net/man

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Joe Brown
Take a closer look at the previous message I sent $filename was defined as: $filename="news.txt"; ""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When you say $newsSubmit = fread ($fd, filesize ($filename)); > > Do you mean specify t

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Oh. Duh! Thanks. ;P Joe Brown wrote: > Take a closer look at the previous message I sent $filename was defined as: > $filename="news.txt"; > > ""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > When you say $newsSubmit = fread (

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
$fp = fopen ($filename, "r"); $newsSubmit = fread ($fd, filesize ($filename)); These are giving me a parse error: Warning: Supplied argument is not a valid File-Handle resource in C:/XITAMI/owen/website/php/newsSubmit.php on line 10 -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Sendmail

2001-03-25 Thread Chris Anderson
it would help if you showed a snippet of your mail code - Original Message - From: "Atet Sugiharto" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 24, 2001 1:49 AM Subject: [PHP] Sendmail > Hi , > > I'm at a lossI've searched throught the knowledgebase, archives, d

[PHP] getting numeric index of array

2001-03-25 Thread Christian Dechery
I wanna get the numeric index for a multi-dimensional associative array... I have like $myArray = array( "one" => "something", "two" => "otherthing", "three" => "whatever" ); I want to, given the key (or val

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Joe Brown
maybe spinning the 'd' in $fd 180 degrees to make it a p will help... Sorry, haven't tried this myself, typo's happen. heh, I'm still trying to compile php 4 windows :-( been hoping for a helping hand. ""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
I'm such a pest. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Ok, it wrote, but didn't write above.. *grins* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] script filename?

2001-03-25 Thread Kurth Bemis
At 03:53 PM 3/25/2001, Philip Olson wrote: thank you - that was the function that i was looking for! ~kurth >Hi Kurth, > >Check out basename() and use it against a predefined variable such as >SCRIPT_NAME. Example : > >///apples/foo.php?fruit=apple > > print basename($SCRIPT_NAME); // fo

[PHP] How to jump 7 rows in array

2001-03-25 Thread Christian Dechery
I'm loading a set of txt files into a DB. The first 7 lines of each file are useless to me... I want some way I can always jump those 7 lines... I tought of doing a little function like jumpfirstsevenrows(array), but then I'd have to pass the whole array as parameter and that can get real memor

[PHP] drop down used to redirect?

2001-03-25 Thread duirfire
Hi, can anyone point me towards an example of how to use a drop down select as a navigation jump, maybe by sending a redirect header? thanks! duirfire -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP] A few questions...

2001-03-25 Thread Chris Cocuzzo
hey- Alright I noticed that question about URL parsing. I could've sworn I saw some article on PHPBuilder.com that said that instead of doing all that modifying with apache, you could simply write something to change the URL with '?' and '&' and '=' so that they symbols could be represent

[PHP] 'How to jump..' part 2

2001-03-25 Thread Christian Dechery
Regarding my last email (about jumping the first 7 rows of an array)... why does this code doesnt work? for(reset($array),$count=0;$count<6;next($array),$count++); . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP Ge

Re: [PHP] [PHP4] $fp = fopen( "news.txt", 'a' ); // 'a' = append! Wah!

2001-03-25 Thread Dddogbruce \(@home.com\)
Ok, I'll get this eventually. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] A few questions...

2001-03-25 Thread Jaxon
Chris, a few answers :) On 3/25/01 5:43 PM, "Chris Cocuzzo" <[EMAIL PROTECTED]> wrote: > hey- > > Alright I noticed that question about URL parsing. I could've sworn I saw > some article on PHPBuilder.com that said that instead of doing all that > modifying with apache, you could simply write

[PHP] Requesting username/pwd with apache and aqcuiring input

2001-03-25 Thread NoSpeed
Hi I wondered if it was possible in PHP to let it pop up a screen which reqcuires username/pwd from the visitor, just like you can tell apache to do so with the .htaccess files. And if yes, how to retrieve the input from the user ? -- - NoSpeed --

RE: [PHP] A few questions...

2001-03-25 Thread Chris Cocuzzo
I think I just slightly unsure of how that explode() function works in this situation...could you clarify further? chris -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 25, 2001 6:06 PM To: [EMAIL PROTECTED]; PHP General List (E-mail) Subject: Re: [PHP] A

Re: [PHP] Requesting username/pwd with apache and aqcuiring input

2001-03-25 Thread Jaxon
check this out: http://www.zend.com/zend/tut/authentication.php regards, jaxon On 3/25/01 5:59 PM, "NoSpeed" <[EMAIL PROTECTED]> wrote: > Hi > > I wondered if it was possible in PHP to let it pop up a screen which > reqcuires username/pwd from the visitor, just like you can tell apache to do

Re: [PHP] getting numeric index of array

2001-03-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Dechery) wrote: > $myArray = array( > "one" => "something", > "two" => "otherthing", > "three" => "whatever" > ); > > I want to, given the key (or value),

Re: [PHP] Requesting username/pwd with apache and aqcuiring input

2001-03-25 Thread NoSpeed
Wow, great !! Just what I was looking for ! Thanks : -- - NoSpeed -- - Carpe Noctem "The stickers on the side of the box said "Supported Platforms: Windows 98, Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported platf

Re: [PHP] A few questions...

2001-03-25 Thread Jaxon
Chris, > I think I just slightly unsure of how that explode() function works in this > situation...could you clarify further? > >> >> $path_array = explode('/', $REQUEST_URI); >> >> $last_item = array_pop($path_array); >> $next_to_last_item = array_pop($path_array

[PHP] PHP and MySQL insert problem

2001-03-25 Thread Pinwang Chao
Can any one help me with the following problem? I have a very simple query: ... $sql="insert into tt (a, b) values ('1', '2')"; $result=mysql_query($sql); ... I always got the following error message when I run it from my browser. Warning: MySQL: Unable to save result set in /usr/local/apach

[PHP] Decrypt Function?

2001-03-25 Thread Chris Anderson
Is there any way to decrypt dat encrypted using the crypt function? If not, then what purpose does that function have?

RE: [PHP] A few questions...

2001-03-25 Thread Chris Cocuzzo
right. ok I understand that explode function. But what I'm asking is not so much once I have a URL in the form of /something/something/something ...etc.., but more if I have a URL like /something?d=a&f=g, to make it like /something/d/a/f/g ... do you know what I mean? Chris -Original Messa

RE: [PHP] Decrypt Function?

2001-03-25 Thread Opec Kemp \( Ozemail \)
Unix "Crypt" function is a one way encrypytion algorithm therefore you can not technically decrupted as such. The way that you can check to see if the given uncrypted value is equals to its crypted value is to 1) Crypt the string with the same "salt" 2) Compare this with the crypted version If t

[PHP] Making a function/method private

2001-03-25 Thread Reuben D Budiardja
Hi all, I know that we can't make a class method or variable private in php (I hope this get improved sometimes). But, I'm wondering if anyone has found a smart way to limit that only a certain file can call the function/method from another file. Say, I have the file function_def.inc that has

Re: [PHP] A few questions...

2001-03-25 Thread Jaxon
while a bit ugly, you could just use array_pop() to get each item into a variable and then echo them back out into your variable assignment... somewhat cleaner would be to create an assoc array of config vars: $uri_items_num=count($path_array); for ($i=1, $i <= $uri_items_num, $i++) { $k

Re: [PHP] Decrypt Function?

2001-03-25 Thread Stephan Ahonen
<< Is there any way to decrypt dat encrypted using the crypt function? If not, then what purpose does that function have? >> Crypt cannot be decrypted. One use of the function is for storing passwords on a server where people can access them. If you crypt the passwords before you store them on th

Re: [PHP] Sendmail

2001-03-25 Thread Atet Sugiharto
Dear All, I put the code like this : Email Thank you for your input\n"; } else{ echo "Error \n"; } ?> I've try to put this code to another server and it's work. I really lost to figure out what's wrong with my configuration (I'm new in PHP too..)

RE: [PHP] Decrypt Function?

2001-03-25 Thread Valter Santos
> Is there any way to decrypt dat encrypted using the crypt > function? If not, then what purpose does that function have? Encrypt data! ;) crypt is a one-way finction, it produces a hash from some plain text, and its result is suitable to store sensitive data in database, like passwords... I

Re: [PHP] ImageTTFText()

2001-03-25 Thread David Robley
On Sun, 25 Mar 2001 08:52, Paulo Vinícius Vitto Ruthes wrote: > folks, > i installed php4 by a RPM, it wasn't compiled --enable-gd-imgstrttf , > so, when I use a function like > ImageTTFText(), it returns me the text mirrowed (inverted like a > mirror) and the angulation doesn't work right... > bu

Re: [PHP] 'How to jump..' part 2

2001-03-25 Thread David Robley
On Mon, 26 Mar 2001 08:25, Christian Dechery wrote: > Regarding my last email (about jumping the first 7 rows of an array)... > > why does this code doesnt work? > > for(reset($array),$count=0;$count<6;next($array),$count++); > > . Christian Dechery (lemming) > . http:

Re: [PHP] I need an expert to tell me what I am doing wrong

2001-03-25 Thread David Robley
On Sat, 24 Mar 2001 11:07, YoBro wrote: > What could I possibly be doing wrong here. The information just will > not insert into my database. > ARGH! > > Please help if you can... > > > $user = "xyz"; > $pass = "123"; > > > //Connect to Database xyz > $db = mysql_connect("localhost", $user, $pass

Re: [PHP] I want to execute a cgi

2001-03-25 Thread David Robley
On Sat, 24 Mar 2001 14:58, Brandon Orther wrote: > Hello, > > I have a cgi that I run in telnet by doing this: > > perl /script/cgi-script.cgi name=cgi+script purpose=test > > is there a way I can run a cgi script and pass it variables? > > Thanks > Brandon Check the Program execution functions;

Re: [PHP] I need an expert to tell me what I am doing wrong

2001-03-25 Thread trogers
Hi what you need is: $sql = "INSERT INTO orders (product,name,email) :VALUES ('$product','$name','$email')"; You will also need to escape any single quotes in the variables Tom At 01:05 PM 24/03/01 +1200, YoBro wrote: >I have tried that, and I have been reading all sorts of info and been >cop

[PHP] about:home

2001-03-25 Thread JCampbell
I know it is possible to redirect a user to their home page, but is it possible to determine what home page they are using?

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
K, read em all, and understood more than I thought I :) I still don't see how you can 'sanitize' a URI, eg discard anything including and after "//" or "??". I think this is needed if you want to discard a query string or irregular syntax from your URI. ereg's don't work reliably, due to the p

Re: [PHP] Decrypt Function?

2001-03-25 Thread Chris Anderson
A, I see. Thank youthat is actually a great idea. Why didn't I think of that? /me hits himself in the head - Original Message - From: "Opec Kemp ( Ozemail )" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, March 25, 2001 6:57 PM Subject: RE:

Re: [PHP] oracle last inserted

2001-03-25 Thread Chien-pin Wang
If you use sequence to generate your last_inserted_id, then you can always get that ID by calling SELECT sequence_name.CURRVAL FROM DUAL; within the same session. Chien-pin On Sun, 25 Mar 2001, almir wrote: > is there a way to get last inserted id from oracle as > mys

Re: [PHP] URL parsing

2001-03-25 Thread Aaron Tuller
why can't you str_replace the $QUERY_STRING frm the $REQUEST_URI? give an example of what you are trying to do? (I'm sorry if you did and I missed it) -aaron At 9:06 PM -0500 3/25/01, Jaxon wrote: >K, read em all, and understood more than I thought I :) > > >I still don't see how you can 'san

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
whups, sorry - here is the example: I want to turn URI's like: /script.php/main/index.html?junk=junk /script.php/main/index.html// /script.php/main/index.html?? all into: /script.php/main/index.html best regards, jaxon On 3/25/01 9:25 PM, "Aaron Tuller" <[EMAIL PROTECTED]> wrote: > why can'

Re: [PHP] reading microsoft word document text in php?

2001-03-25 Thread David Robley
On Sat, 24 Mar 2001 01:08, Erick Papadakis wrote: > actually, i am not sure how i can use this to convert an uploaded word > or pdf file into plain text and then do somethign with that text? can > someone please help? > > thanks/erick Well, presumably you would use system or somesuch to run whate

[PHP] array in cookie . . .

2001-03-25 Thread PHPretard
Im trying to get an array saved in a cookie, I have this snippet so far.. $username and the others vars are coming from a form submitted. did I write this ok? is there a limit to how much I can save in the array ? Thanx amd _ Do Yo

[PHP] The ubitquitous forum project

2001-03-25 Thread Kath
I guess I'm doing another rite of passage for a PHP programmer: The forum Any advice? I did code forums once before, but they were rather rudimentary (No OOP, poorly written, no DB abstraction). - Kath

Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Stephan Ahonen
> Any advice? USENET style threads. I *really* hate Phorum-style threads, where everything's just tacked onto the end. Though Phorum-style is easier, it really detracts from the conversation when you have to write whose post you're replying to in your replies. Sig for a Day Stephan Ahonen, ICQ 4

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-25 Thread Erick Papadakis
hi david, thanks for the note. ok, here is what i want to do. i want my users to upload WORD, XLS, PPT and PDF files. when they upload, i store these files in the temp directory, grab the text from them, and then put it into my database for later searching. i dont care about the formatting, i onl

Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Gfunk
What's the difference between newsgroup-style and phorum style threads? I'm always doing messageboards, and this thread got my attention Gfunk - [EMAIL PROTECTED]

Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Kath
I think what he means is this: This is newsgroup style: + Main Post | | - Reply 1 | | --- Reply 1 to Reply 1 | --- Reply 2 to Reply 1 | | --- Reply 1 to Reply 2 to Reply 1 | | -

Re: [PHP] drop down used to redirect?

2001-03-25 Thread Data Driven Design
You can do it with javascript like this. function go(selectBox) { var where = selectBox.options[selectBox.selectedIndex].value; if (where != "") window.location = where; } Page ... Or you can use PHP like this. page ... --- nav.php --- - Original Message - From: duirfire <[EMA

RE: [PHP] The ubitquitous forum project

2001-03-25 Thread Matt Stone
I dont like any of them, the UBB style is the best. -Original Message- From: Kath [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 March 2001 2:02 PM To: Gfunk; Stephan Ahonen; PHP User Group Subject: Re: [PHP] The ubitquitous forum project I think what he means is this: This is newsgroup s

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-25 Thread Reinke Bonte
Hey Erick, unfortunately I know little about this myself, but I'm sure, this article will help you as a starting point. http://www.phpbuilder.com/columns/alain20001003.php3 Good luck -ren - Original Message - From: "Erick Papadakis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[E

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-25 Thread Erick Papadakis
hi renike, thanks for that link, but looks like that tutorial will only work on windows machines (because of COM objects)? i am on a linux box. cheers/erick --- Reinke Bonte <[EMAIL PROTECTED]> wrote: > Hey Erick, > > unfortunately I know little about this myself, but > I'm sure, this arti

[PHP] Cookie problem

2001-03-25 Thread Martin Skjöldebrand
I'm experiencing all kinds of problems with, what we suppose is the cookie setting. This is the code: if (isset($authentication)) { setcookie("status", $status, time()+600); setcookie("user", $user, time()+600); setcookie("group", $group, time()+600); setcookie("authentication", $authent

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-25 Thread David Robley
On Mon, 26 Mar 2001 13:20, Erick Papadakis wrote: > hi david, > > thanks for the note. ok, here is what i want to do. i > want my users to upload WORD, XLS, PPT and PDF files. > when they upload, i store these files in the temp > directory, grab the text from them, and then put it > into my databa

  1   2   >