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
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'
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
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?
> >
>
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
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
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
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
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
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
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
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
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
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;
$_
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
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
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
$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
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
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
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
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
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
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
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]
> 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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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...
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
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
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
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
[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
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
> 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
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
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
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
>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
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
101 - 152 of 152 matches
Mail list logo