Re: [PHP] 4.0.2 = 4.2.3, form vars are empty?

2002-09-28 Thread Justin French
turn register globals ON on php.ini (they now default to off), then read the 1000's of threads about register globals, missing/empty form variables, super global arrays, etc etc in the archives. post vars are found in $_POST, session in $_SESSION, get in $_GET, etc etc Justin French on

Re[2]: [PHP] counting words in a string

2002-09-28 Thread rdkurth
Hello Justin, That worked perfect but I have one more problem I need to know if one of the word is UNAVAILABLE I need to know if it is the first one or the second one. I don't know if there is any way to do this. 1st 2nd $string =UNAVAILABLE AVAILABLE More Info;

[PHP] Solaris8/intel PHP binaries .. PLEASE !!

2002-09-28 Thread PHPio
hi guys.. i've really seached alot for Soalris8/intel PHP binaries with no result.. i've tried also to do the compiling but every tme thier is a lots of errors.. so my only solution now is to find any pre-made binaries for Solaris8/i386 platforme my question is : does it exist ? thanx alot

[PHP] Solaris8/intel PHP binaries .. PLEASE !!

2002-09-28 Thread PHPio
hi guys.. i've really seached alot for Soalris8/intel PHP binaries with no result.. i've tried also to do the compiling but every tme thier is a lots of errors.. so my only solution now is to find any pre-made binaries for Solaris8/i386 platforme my question is : does it exist ? thanx alot

[PHP] Header Content x-tar

2002-09-28 Thread Sascha Braun
Hi Erwin, and anyone else too. It's me again. Maybe you are able to solve another problem for me. The last Scriptcode I returned to you is working fine in IE6 and below (I believe), but a friend of mine tried to download a tared file with IE on MacOS. After checking this behaviour (I'm not

[PHP] Posting a value to one form to another

2002-09-28 Thread Uma Shankari T.
Hello , a href=Delay.php?hid=?php echo $hid+1; ?img src=Gif/nextque.gif border=0/a While clicking this link the $hid value get incremented and fetch the value from the database according to that..the same thing is working in linux platform and it is not working for the windows platform..the

[PHP] Header content x-tar

2002-09-28 Thread Sascha Braun
Hi, I think I could solve the problem on my own. Thanks anyone for listening, thanks! Sascha

RE: [PHP] Re: 4.0.2 = 4.2.3, form vars are empty?

2002-09-28 Thread Pekka Saarinen
At 9/27/2002, you wrote: Erwin mailto:[EMAIL PROTECTED] scribbled; Qmail List wrote: Hello List, I'm putting a php app that has been off-line for about 18 months back on-line. During my absence from php I had heard about some security issues, so figured I'd try the latest 4.2.3

[PHP] Multiple Domains in cookie?

2002-09-28 Thread Tony Harrison
Is it possible to specify more than 1 domain in a cookie? - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread debbie_dyer
Is this because you have domain aliases? Debbie - Original Message - From: Tony Harrison [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 10:25 AM Subject: [PHP] Multiple Domains in cookie? Is it possible to specify more than 1 domain in a cookie?

Re: [PHP] Posting a value to one form to another

2002-09-28 Thread debbie_dyer
Must be a register globals problem again - php.ini (register_globals) - on for linux off for windows. You should keep it switched off (or at least code for it being off) and use the superglobal arrays $_POST, $_GET etc Debbie - Original Message - From: Uma Shankari T. [EMAIL PROTECTED]

[PHP] regexp help wanted

2002-09-28 Thread Thomas Seifert
Hi folks, I just got nuts by trying to find a regexp for use with preg_replace to achive the following: remove all br / which are in the text between a pre and a /pre Tag. So, I want no br between these tags. Any ideas or quick help? thanks in advance, Thomas -- PHP General Mailing List

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread Julien Bonastre
GREAT Q! I have been trying to play with my cookies for a while now for this same reason.. And to no avail.. It seems due to the structure of them and as long as the client (browser) sticks to the specifications you can only access a cookie belonging to that same host.. For example, I am

[PHP] Update identical table

2002-09-28 Thread Radu Manole
Hi guys, I have 2 identical tables called tmp_data and data. (on the same mysql database). What would be the simple and more convenient way to update table data with a row from table tmp_data. (something like select * from tmp_data and than update data ...). Thanks a lot, Radu

Re: [PHP] where's waldo

2002-09-28 Thread Kenneth Love
no no, i understand. really, what i was getting at, i guess was that this isn't really meant to be developed for mass distribution. more for a class. @ Edwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well, I didn't really mean to imply anything about

[PHP] PHP and MSSQL Problem

2002-09-28 Thread Christopher J. Crane
I wrote a simple script to return data from a query. The database is MS SQL and the field I am looking to return is a VARCHAR(5000). Everything seems to work except the data returned is not the whole field it is shortened. It only returns a portion of the field. Here is the field: 99 Services,

[PHP] Re: Carriage returns don't display in HTML

2002-09-28 Thread Christopher J. Crane
On thing you could do is output pretags around the text you want to display. The pre tags keeps simple formatting like tabs and new line characters. Shane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Greetings folks. I need my carriage returns to show up in my

[PHP] Re: PHP and MSSQL Problem

2002-09-28 Thread @ Edwin
Hello, ...just wondering... Are you sure VARCHAR in MS SQL can handle 5000? Should be 255 only? (I'm not really familiar with MS SQL but you can count the number of characters returned by php...) - E "Christopher J. Crane" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] where's waldo

2002-09-28 Thread @ Edwin
I see. Now, that sounds a lot of fun! :) Anyway, enjoy! - E "Kenneth Love" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... no no, i understand. really, what i was getting at, i guess was that this isn't really meant to be developed for mass distribution. more

[PHP] AS A MATTER OF INTEREST

2002-09-28 Thread Georgie Casey
Can you fake IP addresses and referer addresses with the PHP header command. I want to contact a remote php script and not have my page as the referer or ip address. Is this possible with sockets or even just fopen()? -- Regards, Georgie Casey [EMAIL PROTECTED] ***

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread @ Saif @
Please how can I unsubscribe . Regards Saif Yousif No God except AllahMohammed is profit of Allah - Original Message - From: Julien Bonastre [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED]; Tony

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread @ Edwin
You mean from this list? Please take a loot at the end of this e-mail... - E On Thursday, July 27, 2000 11:36 AM Saif wrote: Please how can I unsubscribe . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Update identical table

2002-09-28 Thread Marek Kilimajer
INSERT INTO data SELECT * FROM tmp_data WHERE condition_definition Radu Manole wrote: Hi guys, I have 2 identical tables called tmp_data and data. (on the same mysql database). What would be the simple and more convenient way to update table data with a row from table tmp_data. (something

[PHP] export data to text file

2002-09-28 Thread Diana Castillo
Hi, I want to export some fields on a regular basis from a table to a text file, preferable to the users local computer. I tried writing to a file with fopen but I get permission denied when I try to open it for writing. What is the best solution? Thanks, Diana -- See my web page:

[PHP] Re: PHP and MSSQL Problem

2002-09-28 Thread Christopher J. Crane
Thanks for some help. I will look into that. This is not my database so I am not sure how or why it was setup this way. There is more than 255 characters in each of these fields. @ Edwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, ...just wondering...

[PHP] headers?

2002-09-28 Thread cleaner
Hi all.. Got this script to verify a login against a mysql-databas with several checking for type errors etc. When I wanna login people, I include a file with all my functions ('functions.php') and I a function verify is called upon. the function returns false if user entered wrong user/pass,

Re: [PHP] headers?

2002-09-28 Thread debbie_dyer
It's giving you this error because you are sending the headers after outputting something (which could be just a blank line) - check in your functions.php that you dont have any blank lines before the start of or after the end of your script. ie. before the ?php or after the ? Debbie -

Re: [PHP] headers?

2002-09-28 Thread cleaner
I´ll do that...I hope thats the problemthanks a LOT! Debbie_dyer [EMAIL PROTECTED] skrev i meddelandet 00d601c266fe$2f4d32f0$0100a8c0@homepc">news:00d601c266fe$2f4d32f0$0100a8c0@homepc... It's giving you this error because you are sending the headers after outputting something (which could

[PHP] unexpected T_STRING error

2002-09-28 Thread Gary
Hi All, Can someone explain to me why I am getting an error for the following? $keywords = $_POST[keywords]; if ($keywords) { echolt;META NAME=keywords CONTENT= $keywords gt;; } TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] unexpected T_STRING error

2002-09-28 Thread Jonathan Rosenberg
That line is syntactically invalid. Did you meant it to say echo lt;META NAME=$keywords CONTENT= $keywords gt;; -- JR -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 11:15 AM To: [EMAIL PROTECTED] Subject: [PHP] unexpected T_STRING

Re: [PHP] unexpected T_STRING error

2002-09-28 Thread Matt
The quotes within the quotes. Change to: echolt;META NAME=\keywords\ CONTENT=\ $keywords \gt;; From: Gary [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 11:15 AM Subject: [PHP] unexpected T_STRING error Hi All, Can someone explain to me why I am getting an error for the following?

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread Chris Shiflett
Nope, but you can have more than one host per domain (foo.php.net, bar.php.net, etc.). Tony Harrison wrote: Is it possible to specify more than 1 domain in a cookie? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Multiple Domains in cookie?

2002-09-28 Thread Gareth Hastings
or you just have something like login.myhost.com and all your sites use that to authenticate the user. In your php login script you can just see which site they came back from and then on a successful login you just redirect them back to that one. You wouldn't need to use cookies. You could

php-general Digest 28 Sep 2002 15:34:19 -0000 Issue 1612

2002-09-28 Thread php-general-digest-help
php-general Digest 28 Sep 2002 15:34:19 - Issue 1612 Topics (messages 117916 through 117955): .htaccess to change browscap setting 117916 by: SpamSucks86 Re: Assigning data to fields 117917 by: Ken field size for common data 117918 by: Pablo Oliva 117920

RE: [PHP] Multiple Domains in cookie?

2002-09-28 Thread Gareth Hastings
Oops, sorry, forgot to turn off read receipt before I posted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unexpected T_STRING error

2002-09-28 Thread Chris Shiflett
Everyone seems to forget that you don't have to do everything in PHP. if ($_POST[keywords]) { ?meta name=keywords content=? echo $_POST[keywords]; ?? } Happy hacking. Chris Gary wrote: Can someone explain to me why I am getting an error for the following? $keywords = $_POST[keywords]; if

Re: [PHP] unexpected T_STRING error

2002-09-28 Thread Gary
I knew I shouldn't of been doing this on Saturday morning. I forgot something as simple as that. Maybe another jolt of caffeine is needed. Thanks Gary Matt wrote: The quotes within the quotes. Change to: echolt;META NAME=\keywords\ CONTENT=\ $keywords \gt;; From: Gary [EMAIL PROTECTED]

RE: [PHP] export data to text file

2002-09-28 Thread Todd Pasley
Hi If what you mean is... you want to be able to write to a file on the browsers computer, then please let us know if you find a way. To my knowledge, there is not any intended way to do this... you wouldn't want any old website to be able to manipulate your hard drive would you? It might be

[PHP] Challenging problem for you programing gurus...

2002-09-28 Thread Ryan A
Hi guys, I have come accross a small problem while trying to convert a java program to a PHP one my database table is like so * cno (int) name (varchar) lastname(varchar) etc etc * as you can see the details I take is name/lastname and customer number (cno) is

Re: [PHP] Challenging problem for you programing gurus...

2002-09-28 Thread Chris Shiflett
I didn't catch which database you are using, but you can alter a field in MySQL to add the auto_increment characteristic. Look into the alter table SQL statement. Happy hacking. Chris Ryan A wrote: how do i use the current table BUT use the more useful auto increment and LAST_INSERT_ID()

Re: [PHP] Challenging problem for you programing gurus...

2002-09-28 Thread Matt
snip Chris Shiflett wrote: I didn't catch which database you are using, but you can alter a field in MySQL to add the auto_increment characteristic. Look into the alter table SQL statement. /snip And if you do that, there won't be any trouble with the existing IDs. mysql will grab the next

[PHP] Chris,Matt-Re: [PHP] Challenging problem for you programing gurus

2002-09-28 Thread Ryan A
Thanks guys, I thought it would be much more complicated than that but will look into the alter table thing. Sorry forgot to mention in the first mail, I am using MySql as its the cheapest database to get from a hosting company,otherwise on my personal machine I use MySql and/or Oracle 7.3

Re: [PHP] export data to text file

2002-09-28 Thread Diana Castillo
okay, how can I write a file in csv format either to the browser or to the server? If I use the Mysqladmin page I get all the fields, I just want some of them. Diana -- See my web page: http://www.netrox.net/%7Ecastillo/ Todd Pasley [EMAIL PROTECTED] escribió en el mensaje [EMAIL

Re: Re[2]: [PHP] counting words in a string

2002-09-28 Thread Justin French
You need to look at a few options... one is regular expression (not my forte), or perhaps winding through the string one character at a time, writing a very simple state engine. Justin French on 28/09/02 4:47 PM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Hello Justin, That worked

[PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
Perhaps I don't understand the use of 'htmlentities' too well, but I would like newlines to be retained/inserted into a db, and then if displayed, to produce a new line from a textarea. However, I want the possibility of dangerous html excluded (hence the use of 'htmlentities'). Is there some

RE: [PHP] what do you think?

2002-09-28 Thread Tony Earnshaw
fre, 2002-09-27 kl. 14:26 skrev Ford, Mike [LSS]: I think the page needs a drastic proof-read and grammar check -- I have trouble understanding what some of it is even trying to say. And I haven't a clue what ASSAY TO INTEGRATE MANAGEMENT is supposed to mean! It looks like a nice product,

Re: [PHP] unexpected T_STRING error

2002-09-28 Thread Philip Olson
You can mix and match single (') and double () quotes so the following are all appropriate: echo a 'string' b; echo a \string\ b; echo 'a \'string\' b; echo 'a string b; See? PHP can't read your mind and know what goes with what, like: echo abcdefg; // BAD Now, when dealing

Re: [PHP] unexpected T_STRING error

2002-09-28 Thread Chris Shiflett
I think you meant to end both of these strings with a ' Philip Olson wrote: echo 'a \'string\' b; echo 'a string b; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Challenging problem for you programing gurus...

2002-09-28 Thread John W. Holmes
ALTER TABLE your_table CHANGE COLUMN old_column_name new_column_name NOT NULL AUTO_INCREMENT PRIMARY KEY; Then use mysql_insert_id() in your PHP code to retrieve the ID that is generated upon INSERTs. ---John Holmes... -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
Perhaps I don't understand the use of 'htmlentities' too well, but I would like newlines to be retained/inserted into a db, and then if displayed, to produce a new line from a textarea. However, I want the possibility of dangerous html excluded (hence the use of 'htmlentities'). Is there

[PHP] Imagemagick Mailinglist

2002-09-28 Thread Sascha Braun
Hi, I need some discussion about the imagemagick library. Does anyone know some about an good Imagemagick Mailinglist? Please send me some Links if you got some ;) Thanks very much Sascha

RE: [PHP] export data to text file

2002-09-28 Thread John W. Holmes
okay, how can I write a file in csv format either to the browser or to the server? If I use the Mysqladmin page I get all the fields, I just want some of them. Diana You can use the SELECT ... INTO OUTFILE query like someone else mentioned, and then use passthru() to send the file to the

RE: [PHP] Update identical table

2002-09-28 Thread John W. Holmes
I have 2 identical tables called tmp_data and data. (on the same mysql database). What would be the simple and more convenient way to update table data with a row from table tmp_data. (something like select * from tmp_data and than update data ...). Why not have just one table with a flag

Re: [PHP] export data to text file

2002-09-28 Thread Curtis Gordon
Why not write to a file on the server and generate a link to it? Collect info write file user downloads file Curtis Diana Castillo wrote: okay, how can I write a file in csv format either to the browser or to the server? If I use the Mysqladmin page I get all the fields, I just want some of

[PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
Ok, I am stuck. I am trying to create a folder in the same directory as process.php and then use move_uploaded_file($FILES['myImage]['tmp_name']) and it constantly fails: mkdir() failed (Permission denied) Here is my code: ? $willChangeLayout = 1; $isEmptyLayoutValues = 1; foreach

[PHP] Smarty template question

2002-09-28 Thread Matt Giddings
Hello, Be for warned that I am new to smarty and for some reason I'm finding it very difficult to learn. ??? Anyway, my question is how do I access an array of associative arrays via the {section} statement? Heres the code: PHP: Function readComment( $smarty, $bid ) { ... //

Re: Re[2]: [PHP] counting words in a string

2002-09-28 Thread debbie_dyer
You can get all the terms into an array using preg_match_all:- $str = UNAVAILABLE More Info AVAILABLE More Info; $regExp = /(?:UN)?AVAILABLE|More Info/; preg_match_all($regExp, $str, $regs); $regs[0] will contain the matched terms - you should then be able to use array functions to do whatever

[PHP] smarty template question.

2002-09-28 Thread Matt Giddings
Hello, Be for warned that I am new to smarty and for some reason I'm finding it very difficult to learn. ??? Anyway, my question is how do I access an array of associative arrays via the {section} statement? Heres the code: PHP: Function readComment( $smarty, $bid ) { ... //

RE: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread John W. Holmes
Whatever user your web server is running as needs to have permission to write to that directory that you are trying to make the new one in. ---John Holmes... -Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 3:38 PM To: [EMAIL

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
Ok I did just that.. Permission is set for /users/ppowell/web/my at 0755 giving me full write permissions onto that directory, I would think, to create subdirectory /images. However, I can't do that because I get the following error: on line 27: if (!is_dir($path)) mkdir($path, 01755); //

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Sascha Braun
I've made many dirs: $path_to_dir = '../'; $images = 'images/'; $year = date('Y').'/'; $month = date('m').'/'; $source = 'jpg/'; $thumbs = 'thumbs/'; $preview = 'preview/'; $files = $HTTP_POST_FILES['image']; $path = $path_to_dir.$images.$year.$month.$source;

[PHP] Bet this is a dead horse

2002-09-28 Thread John Hinton
Sorry, just signed on... due to this question... hope this horse ain't too dead. Anyway, I have a need to run a SSI inside of a PHP page. Only thing I have found so far is that maybe Apache 2.0 will handle this feature? Is there anyway to get this to work under Linux/Apache? -- John Hinton

Re: [PHP] Bet this is a dead horse

2002-09-28 Thread Rasmus Lerdorf
Nope, convert your SSI's to PHP. On Sat, 28 Sep 2002, John Hinton wrote: Sorry, just signed on... due to this question... hope this horse ain't too dead. Anyway, I have a need to run a SSI inside of a PHP page. Only thing I have found so far is that maybe Apache 2.0 will handle this

[PHP] Newbie Q: Any difference what the .ext is on include() files???

2002-09-28 Thread -[ Rene Brehmer ]-
Hi y'all I've only been working with PHP for the past 2-3 weeks, so there's alot of things I haven't quite grasped 100% yet ... Basically what I'm doing is converting my old framed, js-driven, HTML website, with 137 physical pages (individual HTML files) and some dynamically created ones, into

Re: [PHP] Smarty template question

2002-09-28 Thread Peter J. Schoenster
On 28 Sep 2002 at 15:48, Matt Giddings wrote: Hello, Be for warned that I am new to smarty and for some reason I'm finding it very difficult to learn. ??? Anyway, my question is how do I access an array of associative arrays via the {section} statement? Heres the code: Matt, I

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 03:30 pm, John W. Holmes wrote: Perhaps I don't understand the use of 'htmlentities' too well, but I would like newlines to be retained/inserted into a db, and then if displayed, to produce a new line from a textarea. However, I want the possibility of

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
OK, I can't quite follow what you are doing. Here's what you should do. You should always save it in the database exactly how the user typed it. Save it with newlines and don't add any HTML code to it. Reason being, when this has to be edited, it'll show up in the textarea the same way the user

[PHP] Member's Area Script

2002-09-28 Thread Stephen Craton
Hello again, I'm trying to write a script that has a member's area in it. So far I've been able to successfully validate only one username and only one password but now I'm going big and trying to compare it with a table in my MySQL database. Everything goes nice and smooth until I actually try

Re: Re[2]: [PHP] counting words in a string

2002-09-28 Thread olinux
wouldn't it be easier and more efficient to simply count the number of spaces in the string (and add 1)? using substr_count or something similar olinux --- Justin French [EMAIL PROTECTED] wrote: You need to look at a few options... one is regular expression (not my forte), or perhaps

RE: [PHP] Newbie Q: Any difference what the .ext is on include() files???

2002-09-28 Thread John W. Holmes
The only thing to worry about is that if someone pulls up your include file, they're likely to see it as plain text and all of the code within it will be visible. If there is no PHP code within the file, or the PHP code is irrelevant (no passwords, logic, etc), then it doesn't matter. I

Re: [PHP] Member's Area Script

2002-09-28 Thread debbie_dyer
$conn = $main; - that line is the problem - you cant use global vars inside functions without declaring them as global - Original Message - From: Stephen Craton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 11:49 PM Subject: [PHP] Member's Area Script

RE: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread John W. Holmes
_YOU_ don't need write permissions, the web server does ---John Holmes... -Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 4:24 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] mkdir() failed: Permission denied

Re: [PHP] mkdir() failed: Permission denied

2002-09-28 Thread Phil Powell
Got it but the solution is derned freaky... talking to the webserver admin I come to find out that I have to write a stub executable to php4.cgi which will interpret the PHP script bypassing the Apache mods.. that way I can keep the directories at the default 0755 and STILL be able to do file

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
Hi John, Sorry about the ambiguity. What I'm trying to accomplish is close to what you describe. However, before anything goes into the db (ie html chars, bad commands, or anything from Mr.Hacker), I verify it. Someone suggested, way back when I first started with textarea, to use

RE: [PHP] Member's Area Script

2002-09-28 Thread Stephen Craton
Thank you very much!!! Thanks, Stephen http://www.melchior.us http://php.melchior.us :: -Original Message- :: From: debbie_dyer [mailto:[EMAIL PROTECTED]] :: Sent: Saturday, September 28, 2002 6:03 PM :: To: [EMAIL PROTECTED] :: Subject: Re: [PHP] Member's Area Script :: :: :: ::

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
Sorry about the ambiguity. What I'm trying to accomplish is close to what you describe. However, before anything goes into the db (ie html chars, bad commands, or anything from Mr.Hacker), I verify it. Someone suggested, way back when I first started with textarea, to use 'htmlentities' to

[PHP] preg help ?

2002-09-28 Thread :B nerdy
ive got a html document with the following string in it: INPUT TYPE=HIDDEN NAME=SPIDERSESSION VALUE=\oiXESASZC?~adQXZDQ?_ what i want to do is get the string which corresponds to value. so that is \oiXESASZC?~adQXZDQ?_ ive used preg_match_all ('INPUT TYPE=HIDDEN NAME=SPIDERSESSION VALUE=(.*)',

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Sascha Cunz
Hi John, Sorry about the ambiguity. What I'm trying to accomplish is close to what you describe. However, before anything goes into the db (ie html chars, bad commands, or anything from Mr.Hacker), I verify it. Someone suggested, way back when I first started with textarea, to use

RE: [PHP] preg help ?

2002-09-28 Thread Thoenen, Peter Mr. EPS
/INPUT TYPE=HIDDEN NAME=SPIDERSESSION VALUE=([^]*)/ should work ... prob. a better way to do this but its functional :) -Peter -Original Message- From: :B nerdy [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 29, 2002 02:05 To: [EMAIL PROTECTED] Subject: [PHP] preg help ?

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 07:55 pm, John W. Holmes wrote: Sorry about the ambiguity. What I'm trying to accomplish is close to what you describe. However, before anything goes into the db (ie html chars, bad commands, or anything from Mr.Hacker), I verify it. Someone suggested,

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
Yeah, good catch on the addslash/magic_quote. Also, FYI: PHP will only allow you to do one query per mysql_query(). So you can't try to end a quote and then send another query. Don't know if this is the case for all database functions, or what... ---John Holmes... -Original Message-

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Sascha Cunz
?php /* db access using postgresql - each row is displayed */ ... trtd{$myrow['request']}/td/tr ... ? Now unless I can do something like: trtd'nl2br({$myrow['request']}'/td/tr Try something like echo 'trtd'.nl2br($myrow['request'].'/td/tr'; Regards Sascha -- PHP General Mailing

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 08:19 pm, Sascha Cunz wrote: Hi John, Sorry about the ambiguity. What I'm trying to accomplish is close to what you describe. However, before anything goes into the db (ie html chars, bad commands, or anything from Mr.Hacker), I verify it. Someone

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Sascha Cunz
Yeah, good catch on the addslash/magic_quote. Also, FYI: PHP will only allow you to do one query per mysql_query(). So you can't try to end a quote and then send another query. Don't know if this is the case for all database functions, or what... Does PHP this? Such behaviour would be

[PHP] Need to get last element of 2-dimensional array

2002-09-28 Thread Phil Powell
The following produced a rather nasty parse error: echo ($idArray[0][sizeof($idArray[0])])); I have a 2-dimensional array $idArray that I must obtain the LAST element of that 2-dimensional array.. how do I do it? Thanx Phil

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
-Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 8:34 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Htmlentities and Newlines? On Saturday 28 September 2002 07:55 pm, John W. Holmes wrote: Sorry about the

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Rasmus Lerdorf
Yeah, good catch on the addslash/magic_quote. Also, FYI: PHP will only allow you to do one query per mysql_query(). So you can't try to end a quote and then send another query. Don't know if this is the case for all database functions, or what... Does PHP this? Such behaviour would be

Re: [PHP] Need to get last element of 2-dimensional array

2002-09-28 Thread Rasmus Lerdorf
Well, your nasty parse error is because you have 2 opening ( and 3 closing ) on that line. A quick way to get the very last element of a 2-d array is to use: echo end(end($idArray)); -Rasmus On Sat, 28 Sep 2002, Phil Powell wrote: The following produced a rather nasty parse error: echo

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 08:32 pm, John W. Holmes wrote: -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 8:34 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Htmlentities and Newlines? On Saturday 28

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
Short question: following your advice, what would the data look like in the db if I typed in: Hi Sascha. Next line is doubled. Double. How would that appear iun the db? In mine, it looks exactly like I typed it above (using 1 2 with magic_quotes=on). It depends

RE: [PHP] Smarty template question

2002-09-28 Thread Matt Giddings
-Original Message- From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 5:25 PM To: [EMAIL PROTECTED] Cc: Matt Giddings Subject: Re: [PHP] Smarty template question On 28 Sep 2002 at 15:48, Matt Giddings wrote: Hello, Be for warned

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 08:42 pm, John W. Holmes wrote: Short question: following your advice, what would the data look like in the db if I typed in: Hi Sascha. Next line is doubled. Double. How would that appear iun the db? In mine, it looks exactly like

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Sascha Cunz
Does PHP do what? By default the MySQL query function can only take one query at a time. There is nothing strange about this. The command-line mysql tool can take multiple queries separated by semi-colons, but that is something that is implemented in that command-line tool. It is not done

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
-Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 9:00 PM To: [EMAIL PROTECTED]; 'Sascha Cunz'; [EMAIL PROTECTED] Subject: Re: [PHP] Htmlentities and Newlines? On Saturday 28 September 2002 08:42 pm, John W. Holmes wrote: Short

[PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread Phil Powell
I am getting the following errors attempting to set a cookie and redirect: Warning: Cannot add header information - headers already sent by (output started at /users/ppowell/web/my/process.php:5) in /users/ppowell/web/my/process.php on line 76 Warning: Cannot add header information - headers

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 08:59 pm, John W. Holmes wrote: -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 9:00 PM To: [EMAIL PROTECTED]; 'Sascha Cunz'; [EMAIL PROTECTED] Subject: Re: [PHP] Htmlentities and Newlines? On

RE: [PHP] Help! Can't set cookie or redirect!!!

2002-09-28 Thread John W. Holmes
You can only set a cookie before any output is send to the browser. A newline, space, or html, etc, is output to the browser. Redesign your code so the cookie is set before any output or use output buffering. ---John Holmes... -Original Message- From: Phil Powell [mailto:[EMAIL

RE: [PHP] Htmlentities and Newlines?

2002-09-28 Thread John W. Holmes
-Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 9:14 PM To: [EMAIL PROTECTED]; 'Sascha Cunz'; [EMAIL PROTECTED] Subject: Re: [PHP] Htmlentities and Newlines? On Saturday 28 September 2002 08:59 pm, John W. Holmes wrote:

[PHP] Session Not Saving?

2002-09-28 Thread Stephen Craton
I'm having another problem with my member's area script. When someone logs in, it's supposed to register their username into a session and it displays fine on the first page. But once you navigate to another part of the area, it does not tell you you are logged in, instead it gives me the error I

Re: [PHP] Htmlentities and Newlines?

2002-09-28 Thread Andre Dubuc
On Saturday 28 September 2002 09:13 pm, John W. Holmes wrote: -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 28, 2002 9:14 PM To: [EMAIL PROTECTED]; 'Sascha Cunz'; [EMAIL PROTECTED] Subject: Re: [PHP] Htmlentities and Newlines? On

  1   2   >