[PHP-CVS] cvs: php4 /ext/pgsql pgsql.c

2001-03-25 Thread Romolo Manfredini
romolo Mon Mar 26 00:00:44 2001 EDT Modified files: /php4/ext/pgsql pgsql.c Log: pg_close was undefining default_conn even if a ref to it was still there. Index: php4/ext/pgsql/pgsql.c diff -u php4/ext/pgsql/pgsql.c:1.94 php4/ext/pgsql/pgsql.c:1.9

RE: [PHP] PHP Authentication

2001-03-25 Thread Jack Dempsey
Hi Jon, just to let you know, you don't "need" $PHP_AUTH_USER to do authentication...i just finished up a little auth system (which works and i'm psyched) and i only used some session variables.that having been said, if you want to configure it as a module, check out www.php.net if you got it

[PHP] PHP Authentication

2001-03-25 Thread Jon
Hi, I have read that for using PHP authentication I must be able to user variables such as $PHP_AUTH_USER that are only avaible when PHP is installed as a module. On the other hand I am using APACHE 1.3.17 with PHP 4.04 and I have configured Apache with the following lines: ScriptAlias /php4/ "

Re: [PHP] Email validation

2001-03-25 Thread Manuel Lemos
Hello Mike, On 21-Mar-01 01:21:13, you wrote: >Hello Again, >Can anyone tell me what the best form of Email validation there is? It needs >to be quick & as open to - and . as possible. Look here for a complete email validation class: http://phpclasses.UpperDesign.com/browse.html/package/13

Re: [PHP] oracle last inserted

2001-03-25 Thread Thies C. Arntzen
On Mon, Mar 26, 2001 at 10:19:28AM +0800, Chien-pin Wang wrote: > > 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. re, tc > > Chien

php-general Digest 26 Mar 2001 06:43:51 -0000 Issue 589

2001-03-25 Thread php-general-digest-help
php-general Digest 26 Mar 2001 06:43:51 - Issue 589 Topics (messages 45501 through 45582): Re: URL parsing 45501 by: Jaxon 45505 by: CC Zona 45507 by: Jaxon 45511 by: Philip Olson 45553 by: Jaxon 45556 by: Aaron Tuller 45557 by: Jaxon

Re: [PHP] multiple record out put

2001-03-25 Thread David Robley
On Mon, 26 Mar 2001 15:50, Peter Houchin wrote: > Hiya, > > I'm creating a page where the user can select multiple options to > query the DB with i am at the moment i can't get more than 1 record to > display from the db at all. If any one could offer soem suggestions i > would be very gratef

[PHP] multiple record out put

2001-03-25 Thread Peter Houchin
Hiya, I'm creating a page where the user can select multiple options to query the DB with i am at the moment i can't get more than 1 record to display from the db at all. If any one could offer soem suggestions i would be very grateful MODEL Config

RE: [PHP] Random letter/number passwords

2001-03-25 Thread Matt Stone
Oops sorry, this line is supposed to read: $passfirst = randomGen($length-3, 1); >>$passend = randomGen(3, 0); $pass = $passfirst.'-'.$passend; return $pass; -Original Message- From: Matt Stone [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 March 2001 4:12 PM

[PHP] Random letter/number passwords

2001-03-25 Thread Matt Stone
Hi, I have this code below which is supposed to be generating a password like QCCQCN2-IUZ with 10 characters - All but three in the first section (7) and three in the last part - but does not work in all cases. Sometimes it prints LPSA3WD-IM or G22G2G9-FC. Is there a catch in the code that will st

Re: [PHP] about:home

2001-03-25 Thread Felix Kronlage
On Sun, Mar 25, 2001 at 09:02:53PM -0500, JCampbell wrote: > 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? you might be able to access this value from within javascript (not sure on this). Don't think it's possible

RE: [PHP] The ubitquitous forum project

2001-03-25 Thread Matt Stone
See http://www.planetveggie.com/ubb-bin/Ultimate.cgi?action=intro Basically it is like: Topic 1 Topic 2 Topic 3 Topic 4 Topic 5 When I click on topic 5 I get: Topic 5: Post 1 Post 2 Post 3 Post 4 Post 5 See for yourself. -Original Message- From: Felix Kronlage [mailto:[EMAIL PROTECTE

RE: [PHP] The ubitquitous forum project

2001-03-25 Thread Matt Stone
Like so http://www.planetveggie.com/ubb-bin/Ultimate.cgi?action=intro Basically Topic 1 Topic 2 Topic 3 Topic 4 Topic 5 say I click on topic 5 then Topic 5 Post 1 Post 1 Post 1 Post 1 -Original Message- From: Felix Kronlage [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 March 2001 2:52 PM

Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Felix Kronlage
On Mon, Mar 26, 2001 at 02:11:46PM +1000, Matt Stone wrote: > I dont like any of them, the UBB style is the best. what's UBB-style like? -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your ba

[PHP] imap_open() dosen't work :(

2001-03-25 Thread Nilesh Parmar
Hi Gurus :) I have installed php4.0.4 on my windows 98 machine with apache .I am having a problem while calling te imap_open() function.I get the following error.I get this error also with Linux.(Redhat 7.0). ** Call to undefined function: imap_open()

Re: [PHP] Cookie problem

2001-03-25 Thread Nuno Silva
Hello, short: try removing the third parameter to setcookie and if the errors go away you know it's a cookie problem :) long: you're setting auth based in the (server's) time + 600sec. If the client (or even the server) has a clock skew... well bad luck :) removing the third parameter mak

RE: [PHP] Delaying Printed Output

2001-03-25 Thread Andrew Braund
This topic comes up from time to time... Some previous information, if you get any further please post it to the list. A while ago I saw a web page explaining a system (written in Perl I think) that was used to show a presentation to a number of different sites simultaneously (and synchronised)

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

2001-03-25 Thread Reinke Bonte
As far as I know, you can do very little in this respect on a non-windows machine without some programming in a lower generation language. Don't you have a windows machine somewhere in your network? Just pass it on to that machine, and let it do this work. I personally would prefer doing this in p

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

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

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

[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

[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

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

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

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

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

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

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

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

[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

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

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

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

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]

[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

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

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

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

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

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

[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

[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

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.

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

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

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 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\)
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] [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

[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] 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-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 \(

[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

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

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

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

[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

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

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

  1   2   >