[PHP] Re:[PHP] Re: About Guest Book's messages....

2003-05-29 Thread fongming
Thanks ,hui: style=TABLE-LAYOUT:fixed ^ it won't work It just disappeared and hide the text, it didn't cut the line to suitable for the table ,and it didn't force the texts down to the next line. It didn't. but thanks again do it in your html code, you u

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > I think what you want is: > > move_uploaded_file($_FILES['imagefile']['tmp_name'],$ftpdir . > $_FILES['imagefile']['name']); > > (Apologies if it wraps, that should be all one line.) > > > > On Wed, 2003-05-28 at 12:58, Adnan wrote: >> Adam Voigt wrote: >> >> > Hmm, what'

[PHP] Create Links on the fly?

2003-05-29 Thread Chase
Salutations! I am trying to do something fairly simple, but I can't seem to make it work... I want to have a form field on a page that the user will put in a 3 to 5 digit number and when they click on "Submit" that number will become part of an URL that they are forwarded to. For example, if the

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
I think what you want is: move_uploaded_file($_FILES['imagefile']['tmp_name'],$ftpdir . $_FILES['imagefile']['name']); (Apologies if it wraps, that should be all one line.) On Wed, 2003-05-28 at 12:58, Adnan wrote: > Adam Voigt wrote: > > > Hmm, what's the exact error message you get? > > >

[PHP] Checking Client's Cipher Strength with IIS

2003-05-29 Thread Ed Gorski
Hello, I have a question who's answer has been bugging me for a while. What I need to do is write a script that detects if a browser is using 128-bit encryption when connecting to our website. While this is easy for most (I have the script working for them), a real problem for me has come up wi

[PHP] skipping occurance in regex

2003-05-29 Thread Brian V Bonini
how can you skip the first occurance and stop at the second in a regex? content1 content2 If I wanted to grab all that from within a document I know I can start at table id= because it's unique but how do I skip the first and stop at the second

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > Hmm, what's the exact error message you get? > > > On Wed, 2003-05-28 at 12:43, Adnan wrote: >> Adam Voigt wrote: >> >> > If your running under linux/unix, do: >> > >> > chown webuser:webuser /tmp/php >> > >> > Supplement /tmp/php with whatever upload path you have >> > se

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
Call me an optimist but if you don't get any error's, that usually means it worked. You do know that the uploaded file is erased when the page ends right? You have to use a call to move_uploaded_file to actually put it somewhere on the file system. On Wed, 2003-05-28 at 12:53, Adnan wrote: > Ada

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > Hmm, what's the exact error message you get? > > > On Wed, 2003-05-28 at 12:43, Adnan wrote: >> Adam Voigt wrote: >> >> > If your running under linux/unix, do: >> > >> > chown webuser:webuser /tmp/php >> > >> > Supplement /tmp/php with whatever upload path you have >> > se

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
Hmm, what's the exact error message you get? On Wed, 2003-05-28 at 12:43, Adnan wrote: > Adam Voigt wrote: > > > If your running under linux/unix, do: > > > > chown webuser:webuser /tmp/php > > > > Supplement /tmp/php with whatever upload path you have > > set in your php.ini, and webuser with

Re: [PHP] Resending POST Variables

2003-05-29 Thread Tom Woody
On Wed, 2003-05-28 at 11:38, Shaun wrote: > ok, > > basically this is so I can implement page numbering on my search results, > the user submits the form and I want to be able to send the form results > back to the same page when the user clicks 'next' or 'previous'. > I do the very same thing as

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > If your running under linux/unix, do: > > chown webuser:webuser /tmp/php > > Supplement /tmp/php with whatever upload path you have > set in your php.ini, and webuser with whatever user your > webserver runs as. > > > > On Wed, 2003-05-28 at 12:33, Adnan wrote: >> Jason Wo

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
If your running under linux/unix, do: chown webuser:webuser /tmp/php Supplement /tmp/php with whatever upload path you have set in your php.ini, and webuser with whatever user your webserver runs as. On Wed, 2003-05-28 at 12:33, Adnan wrote: > Jason Wong wrote: > > > On Wednesday 28 May 2003

Re: [PHP] Resending POST Variables

2003-05-29 Thread Shaun
ok, basically this is so I can implement page numbering on my search results, the user submits the form and I want to be able to send the form results back to the same page when the user clicks 'next' or 'previous'. I have tried putting this at the top of the page: $_SESSION['post'] = $_POST; $_

RE: [PHP] Session Question

2003-05-29 Thread Wim Paulussen
You should be able to use $_SESSION with register_globals on. " If you want your script to work regardless of register_globals, you need to use the $_SESSION array. All $_SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where r

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Jason Wong wrote: > On Wednesday 28 May 2003 20:11, Adnan wrote: > >> i have been having trouble working out how to upload an image, the most >> progress ive made is putting a blank file on the server, but thats it, >> any suggestions anyone?? > > If you're wanting to do HTTP uploads then manual

RE: [PHP] Resending POST Variables

2003-05-29 Thread Wim Paulussen
You can do this either by sending 'hidden' input and store the POST value in the 'hidden' input or by storing the variables in a session. At least , that is what I do and it works for me. -Oorspronkelijk bericht- Van: Shaun [mailto:[EMAIL PROTECTED] Verzonden: Wednesday, May 28, 2003 6:23

Re: [PHP] Resending POST Variables

2003-05-29 Thread Adam Voigt
$value) echo ""; ?> Submit Again Like that? On Wed, 2003-05-28 at 12:22, Shaun wrote: > Hi, > > I have a page which uses POST variables sent from a form. If a user clicks > on a link on this page is it possible to send those POST variables to the > next page aswell? > > Thanks fo

Re: [PHP] Resending POST Variables

2003-05-29 Thread David Grant
Shaun wrote: Hi, I have a page which uses POST variables sent from a form. If a user clicks on a link on this page is it possible to send those POST variables to the next page aswell? You can send them by tagging them to the end of the link, or saving them into a session, but you can't (for obvi

[PHP] Resending POST Variables

2003-05-29 Thread Shaun
Hi, I have a page which uses POST variables sent from a form. If a user clicks on a link on this page is it possible to send those POST variables to the next page aswell? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Question

2003-05-29 Thread Pushpinder Singh Garcha
Hello Ernest, SInce register_globals() is ON on my server, I need to be able to figure out a way to ensure session security. Another question I had was that, with register_globals() ON can I still use the $_SESSION to set my variables ? I want to avoid recoding the entire application, so I wan

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Jason Wong
On Wednesday 28 May 2003 20:11, Adnan wrote: > i have been having trouble working out how to upload an image, the most > progress ive made is putting a blank file on the server, but thats it, any > suggestions anyone?? If you're wanting to do HTTP uploads then manual > Handling file uploads tells

Re: [PHP] thumbnails

2003-05-29 Thread Dallas Goldswain
Hi , I have mailed you some code i use to make thumbnails etc. It only manipulates the image once, then stores a thumb and streams it to the page when requested Regards Dallas Goldswain Technical Director Web|Genetics / www.development.co.za Regards <[EMAIL PROTECTED]> wrote in message news:[EMA

[PHP] session_registered issue

2003-05-29 Thread César Aracena
Hi all, I have no problem with registering a session. As a matter of fact, I making a site where I register 3 different levels of sessions with no problem. The thing is when, in my header.inc (which includes session_start(); for all the site) I tell through PHP only to show the login form ONLY whe

RE: [PHP] thumbnails

2003-05-29 Thread Edward Peloke
thanks for all the info, I am doing this project this week (hopefully) so I am sure I will have more questions! Eddie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:14 AM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP]

Re: [PHP] strtr question

2003-05-29 Thread CPT John W. Holmes
> I want to remove unwanted characters from filenames of files uploaded to > our server. I am currently using strtr to do this. I have a few characters > that are being removed but I would also like a single quote to be removed > if it is in the filename. I think it has to be escaped in the command

[PHP] Search Engines and Last-Modified Header (was: Variables don't pass...)

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 09:31:11 -0500, Jay Blanchard wrote: >I wouldn't go as far as using the auto_prepend_file. Neither would I in this case Jay.It was simply an example of what could be done, not necessarily what SHOULD be done. I did however, use auto_prepend_file in a .htaccess file for a

[PHP] Re: [otro] [PHP] Re: Error with directories

2003-05-29 Thread j0rd1 adame
On Wednesday 28 May 2003 03:07, Catalin Trifu wrote: > Hi, > > It seems to me that a script from > /var/www/wahtever/ includes a script called algo.php > which can not be found by PHP, because, probably it > is in the /var/www/ dir. > Either you add /var/www/ to the php

Re: [PHP] sessions and domains

2003-05-29 Thread CPT John W. Holmes
You'd really only have to pass the session ID to the other domains, since all of the session files are located in the same directory. So, when linking to one of the other domains, just include SID in the URL or form. Should be painless. echo 'http://www.otherdomain.php/page.php?'.SID.'">Link to ot

Re: [PHP] thumbnails

2003-05-29 Thread bbonkosk
Hello, I did a family photo gallery, and from my experiences it would be best if you handle the thumbnail generation during the upload process. Just make sure you have a naming convention or link the thumnail into your repository/DB so you don't loose that space when you delete the record. It

Re: [PHP] strtr question

2003-05-29 Thread Mike Morton
Ed: Better yet, because not all browsers pass through the original file name that was was uploaded, have the user input the name - and validate that instead. You can then restrict them to numbers letters: $filename=ereg_replace("[^0-9a-zA-Z.]","",$filename) Or something like that. On 5/28/03 1

Re: [PHP] thumbnails

2003-05-29 Thread CPT John W. Holmes
> I know thumbnails have been discussed and I have looked at the archives, I > am just looking for opinions. I am doing a small website for a used vehicle > dealer. I need to make it as easy as possible for him to add new vehicles. > I plan to just give him a form for the information, and a place

RE: [PHP] thumbnails

2003-05-29 Thread Joe Stump
I'd definitely generate them on the fly for him. I personally use the *NIX program "convert" which comes with imagemagick. It works great and is easy to use. General Steps: 1.) Copy big image to location 2.) Use convert to make a thumbnail and name it 't_'.$image_name 3.) Put image name in a db s

[PHP] thumbnails

2003-05-29 Thread Edward Peloke
Ok, I know thumbnails have been discussed and I have looked at the archives, I am just looking for opinions. I am doing a small website for a used vehicle dealer. I need to make it as easy as possible for him to add new vehicles. I plan to just give him a form for the information, and a place to

Re: [PHP] Form Generators

2003-05-29 Thread Cal Evans
check www.freshmeat.net. There are several. =C= * Cal Evans * http://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Original Message - From: "Cli

[PHP] Form Generators

2003-05-29 Thread Clint
Does anyone know of a form generator that will look at a MySQL table and generate an add/edit form off of that table? Thanks, Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] strtr question

2003-05-29 Thread Joe Stump
Have you read up on regular expressions? They'll do just what you're looking for: http://www.php.net/ereg_replace --Joe -- Joe Stump <[EMAIL PROTECTED]> http://www.joestump.net "Label makers are proof God wants Sys Admins to be happy." -Original Message- From: [EMAIL PROTECTED] [mailt

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Joe Stump
While I wholey support the concept of using appropriate globals ($_POST, $_GET, $_COOKIE, etc.) I'd like to make one point abundantly clear: "While it doesn't guarantee that data has not been forged, it does require an attacker to guess the right kind of forging." -- http://us4.php.net/registergl

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread daniel
Okay, that makes sense, but I would never write a script like that in the first place ;) Not unless I'm really tired or something, in which case it's good to have this thing turned off by default =) Cheers - Original Message - From: Wendell Brown To: [EMAIL PROTECTED] ; [EMAIL PROTECTE

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread David Grant
Wendell Brown wrote: Egads! Wouldn't the following be a little simpler? At the top of the file put. if( is_array($_POST) ) $pArray = $_POST; else $pArray = $HTTP_POST_VARS; Absolutely! I've been getting a little carried away with moving a lot of PHP functions to OO classes recently...

RE: [PHP] strtr question

2003-05-29 Thread Joe Stump
You could do this a number of ways: eregi(), ereg() or str_replace() ... That will output "Whats up?" --Joe -- Joe Stump <[EMAIL PROTECTED]> http://www.joestump.net "Label makers are proof God wants Sys Admins to be happy." -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote: >Howcome? I don't think I understand that... Check this out. http://us4.php.net/registerglobals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strtr question

2003-05-29 Thread ed
I want to remove unwanted characters from filenames of files uploaded to our server. I am currently using strtr to do this. I have a few characters that are being removed but I would also like a single quote to be removed if it is in the filename. I think it has to be escaped in the command though

Re: [PHP] Re: About Guest Book\'s messages....

2003-05-29 Thread Awlad Hussain
using style=TABLE-LAYOUT:fixed does not wrap the text - Original Message - From: "hui" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 3:13 PM Subject: [PHP] Re: About Guest Book\'s messages > do it in your html code, > you use a for the message text? > ad

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Jay Blanchard
[snip] Yup! You could even add that php to the auto_prepend_file variable in your php.ini or add this to your .htaccess file (assuming you are running Apache and have overwrite turned on) and the prepend will happen automagically on every php program: php_value auto_prepend_file "/www/extract_p

[PHP] Re: About Guest Book\'s messages....

2003-05-29 Thread hui
do it in your html code, you use a for the message text? add this: style=TABLE-LAYOUT:fixed it works. :) "Fongming" <[EMAIL PROTECTED]> дÈëÓʼþ news:[EMAIL PROTECTED] > Hi, Sir: > > There may be someone leave a message like > following: > > UUU

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread daniel
> However, both of these "solutions" create the same security issue that > turning RegisterGlobals on took care of in the first place. :) Howcome? I don't think I understand that... Is the security issue not with the fact that you're POSTing og GETing variables rather than the way you do it? Woul

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 16:13:22 +0200, [EMAIL PROTECTED] wrote: >if (!empty($_POST)) { > extract($_POST); >} else { > extract($HTTP_POST_VARS); >} > >And have it in an include file, "extract_post.php". >This way I can just include it and all variables are available, just like if >register_globals had

RE: [PHP] secure code

2003-05-29 Thread Dan Joseph
Tim, Make sure you handle all exceptions, exit() after each redirect, make sure you are validating all form fields before it goes into the database, things like that. Might want to grab webproxy from www.atstake.com and use it to test your app. Its kind of complex to use at first, but th

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread daniel
I did this: if (!empty($_POST)) { extract($_POST); } else { extract($HTTP_POST_VARS); } And have it in an include file, "extract_post.php". This way I can just include it and all variables are available, just like if register_globals had been on. Daniel. - Original Message - From: We

Re: [PHP] About Guest Book\'s messages....

2003-05-29 Thread Lew Mark-Andrews
>I used wordwrap($word,40,"\n",1) to prevent it, >but my system is BIG5 ,two bytes, >Sometimes this method would destroy the structure >of the two-bytes word. Hi, Have you looked into the multi-byte string functions in the manual? Search on php.net for mb_str . Also, have you tried just forcing

Re: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: >I would've thought that $HTTP_*_VARS will be deprecated sometime in the >future. It might be an idea to write your own accessor methods, e.g. > >function RetrieveGetParameter($parameterValue) Egads! Wouldn't the following be a little simp

<    1   2