This should work:
If the hidden input structure name is the same as the radio buttons' name,
you could run into trouble. Also, you forgot quotes around the 'hidden'. Why
try to use the form name as a class (survey->'$birth_month')?
Cheers
Rudolf Visagie
Principal Software Developer
Digital Hea
I had designed a web survery.
As there is some bugs of "session" function on php windows version.
so i use hidden value to pass the data to next page.
here are the code:
.
January
.
.
'$birth_month'"
?>
.
.
It seems that it can pass the data/variable to next page.
but i d
How about just make a symbolic link with .phps to the file:
ln -s /www/htdocs/phpdoc.php /www/htdocs/phpdoc.phps
Then make sure that your httpd.conf file has the following line in it:
AddType application/x-httpd-php-source .phps
Then url.com/phpdoc.phps would view the colored source for the fi
I meant to use highlight_file instead of highlight_string, doh!
I'll go back in time and modify the source below :)
Philip
On Thu, 4 Apr 2002, Philip Olson wrote:
>
> A note exists at http://www.php.net/highlight_file that says:
>
> Note: The return parameter became available in PHP 4.2.0
A note exists at http://www.php.net/highlight_file that says:
Note: The return parameter became available in PHP 4.2.0. Before
this time it behaved like the default, which is FALSE
So if you want to capture the output of highlight_file before
4.2.0 then you'll need to use output b
Check out the session_name function.. That will do what you want :) Just
make sure you call it before session_start on each of your pages though.
Cheers!
Rick
"Trust in the Lord with all your heart, And lean not on your own
understanding; In all your ways acknowledge Him, And he shall direct y
Hi all,
What would i put in my php.ini to change PHPSESSID to something else, like
's', so that my URL for sessions would be:
http://foo/bar.php?s=00as9s8fa9s0a7as9125 instead of
http://foo/bar.php?PHPSESSID=a8as982t8as8268
AND, can this be done w/ ini_set inside the script?
Thanks in advance!
The reason I asked about the .htaccess files is because I thought that
_maybe_ there might be something in prod site that allows jpegs and gifs to
be uploaded, or the other way 'round, on the dev site that stops the
uploading.
It's a shot in the dark but worth a look.
Martin
-Original Mess
For those who have asked how to get rid of the '?' after your url when
cookies are enabled and the sid is passed through cookies instead of through
the url.. Well here is a very very simplistic script that I wrote and have
not had any problems with it at all... I hope it helps! :)
Ok this might b
Nevermind, I spoke too soon.
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
using PHP 4.1.3-dev on WinME, I call
$a = "str" . highlight_file("file.php", true);
and get a warning,
Warning: Wrong parameter count for highlight_file() in myfile.php
and *don't* get the highlighted source I want. show_source()
does precisely the same thing.
The manual says that PH
Hello people,
I am making a bilingual website English/Arabic. I am facing some problem
with this. The problem is that I am not able to insert arabic lanaguage
characters ionto Mysql databse. It gets junk characters...when I try to
display it...
Thank You
Best Regards,
Dhaval Desai
___
> https://skunkWerkz.hosting-advantage.com/superSecretTesting/updateAdmin/MP3_
> Add.php
>
> not very secret, now that you've told everyone :)
Yep, I was waitin' for that one :-)
>
> anyway - do you have any .htaccess directives in one directory, you don't
> have in the other?
>
I do have sep
And here's the really wacky part i just found out. I have a page in prod
that uploads MP3s.
Part off what it does is upload the file, examine its' type , and then
discard the file if it's not the type expected. Assuming the web host was
set to not allow uploads of jpg and gif, the MP3 page wouldve
I copied index.html to index.gif, and it uploaded fine as index.gif to the
appropirate
directory.
Carl
On Wed, 3 Apr 2002, Miguel Cruz wrote:
> On Wed, 3 Apr 2002, Carl Schmidt wrote:
> > Thank you for the code snippets. Unfortunately the problem is that I
> > can'tget far enough to process t
A memory leak in php_smart_str.h maybe? I'm not sure though.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 11:13 PM
Subject: [PHP] Str
Hi folks,
I've noticed strange entries like this in Apache's general
error log. Is anyone able to shed any light on what's
going on...?
/export/petert/src/php-4.0.6/ext/standard/php_smart_str.h(69) : Freeing
0x0046A0C0 (164 bytes), script=/path/to/script/that/was/run.php
Last leak repeated 5 t
On Wed, 3 Apr 2002, Carl Schmidt wrote:
> Thank you for the code snippets. Unfortunately the problem is that I
> can'tget far enough to process the file. When the php script that
> supposed to process the file tests with is_uploaded_file, it fails. In
> addtion, the $HTTP_POST_FILE['userfile'][
On Thu, 4 Apr 2002, Martin Schichl wrote:
> Is there an environment variable in PHP, which holds the value
> of the email-adress, which is stored in the user's browser?
PHP has no access to this. It's possible on some poorly-designed browsers
to fish it out using JavaScript tricks. It's a very r
I delete everything that doesn't include the topic of
the question in the subject line. Stop replying and
they'll learn how to address an email or search the
manual/google.
olinux
--- Christoph Starkmann <[EMAIL PROTECTED]> wrote:
>
> Hi Ray!
>
> > I am in total agreement with Justin on this
Can someone please confirm the correct place to call
ob_start("ob_gzhandler") in a script? I am using sessions also, and the
start of my scripts is like so:
setFetchMode(DB_FETCHMODE_OBJECT);
// rest of script
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Thank you for the code snippets. Unfortunately the problem is that I
can'tget far enough to process the file. When the php script that
supposed to process the file tests with is_uploaded_file, it fails. In
addtion, the $HTTP_POST_FILE['userfile']['tmp_name']=none. So i can't
process anything s
You have no way of finding a user's email address without the user entering
it into a input tag and submitting it through a form. The users email
address is stored in their email application not the browser. So the short
answer is no.
/dkm
- Original Message -
From: "Martin Schichl"
I believe my web host has Apache/Php combo running on Linux. I don't
believe I'm using any funky characters, and definately no spaces. Here's
one of the files I'm trying to upload:
F:\Personal\Band\Site\images\HomePage01_03.jpg
Carl
On Wed, 3 Apr 2002, Dennis Moore wrote:
> Very strange... Wha
I assume you want comments on the functionality. The first thing that
strikes me is why would I want to use the product. I read the desciption
and followed the diagram on the home. I then looked at the demo on
affero.net. I quickly got lost on the purpose of the application and why I
should u
Really, you could have picked a different colour scheme, let alone a
different layout... usually when people rip something off, they try to hide
it, but you've just ripped.
Pffft, you even used the exact same search button, form layout and
everything... why on earth did you ask THIS LIST to give
Dear List!
Is there an environment variable in PHP, which holds the value
of the email-adress, which is stored in the user's browser?
Martin
-
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG
Grott
Uhh, yeah, I forgot the getImage function part of the file.. Sorry about
that.. Here it is..
function getImage( $image, $newName = false )
{
global ${ $image }, ${ $image . "_name" }, ${ $image . "_size" }, ${
$image . "_type" };
//check for productImages directory
if( !is_dir( "prod
Very strange... What environment are you runnign PHP? Do you have any
spaces in the file names or the file names named in a funny format?
/dkm
- Original Message -
From: "Carl Schmidt" <[EMAIL PROTECTED]>
To: "Bob" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03
I'm going to just paste the entire page I've got right now. This is the
html as output to the browser for the form submittal:
Add an Image
SQL: SELECT * FROM Development_ImageDateSQL: SELECT * FROM
Development_Photographer
Add an Image:
Would it help to have the tag look like this:
The enctype is the part I'm wondering about.. The action and method would be
your own or course..
Later,
Bob
- Original Message -
From: "Carl Schmidt" <[EMAIL PROTECTED]>
To: "Bob" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednes
No I haven't. Right now, it's uploading via a simple form POST. I can
initiate the upload , but when I have the php process the file, it fails
on the first test for is_uploaded_file, and tmp_name is none. The thing
is though, Iam only unable to upload gifs and jpegs, but yet i can upload
other t
I can initaite an upload from the browser. However, once the php acript
attempts to process the uploaded file, it failswhen I test for
is_uploaded_file. i also printed out the value of tmp_name and it was set
to none.
Carl
On Wed, 3 Apr 2002, Miguel Cruz wrote:
> On Wed, 3 Apr 2002, Carl wro
Did you try passive mode FTP?
Later,
Bob
- Original Message -
From: "Carl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 7:54 PM
Subject: [PHP] Cannot upload JPEG only
> I'm able to successfully upload mp3s and text files to the server, but
> for some rea
On Wed, 3 Apr 2002, Carl wrote:
> I'm able to successfully upload mp3s and text files to the server, but
> for some reason it won't let me upload jpegs or gifs? Is that a server
> configuration thing?
What do you mean by "it won't let me"? What happens? An error message?
Does a file get stored
I'm able to successfully upload mp3s and text files to the server, but
for some reason it won't let me upload jpegs or gifs? Is that a server
configuration thing?
Carl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
This time without the html ... sorry :)
One method is to use javascript to get the clients date/time then create a
diff between that and your time and use it to change the display times.
Here is a demo of getting the remote date and time
Untitled