Hi there,
I am having trouble with posting a form to a php script through SSL on IE prior
5.5 sp1. It works like a charm on all other browsers. In IE it works without
SSL, but when SSL is enabled, the browser pops up with a message that he is
switching to an unsecure site and then all then
hi,
i'm trying to concatenate two php variables (containing form data) in a mysql
query. i'm currenty using the dot operator:
telphone number =$telcode.$telnumber'
but only the telcode gets written to the database.
any ideas?
many thanks,
luke m.
--
PHP General Mailing List (http
[snip]
telphone number =$telcode.$telnumber'
but only the telcode gets written to the database.
[/snip]
There is not enough here to know for sure (I am betting this is part of
a query), but if your code looks like the above you are missing a single
quote after the =. Now, if you enclose the
here is the whole query:
$query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix',
firstname='$firstname', lastname='$lastname', job_title='$jobtitle',
company_name='$company',
no_of_employees='$employees',address_1='$address1',address_2='$address2',
address_3='$address3',
[snip]
telephone_number='$telcode.$telnumber',
only the telcode gets inserted.
[/snip]
Concat them before placing into the query...(have you echo'd $telnumber
to make sure it is not empty?)
$wholeTelNumber = $telcode . $telnumber;
echo $wholeTelNumber;
telephone_number='$wholeTelNumber',
--
[EMAIL PROTECTED] wrote:
here is the whole query:
$query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix',
firstname='$firstname', lastname='$lastname', job_title='$jobtitle',
company_name='$company',
no_of_employees='$employees',address_1='$address1',address_2='$address2',
From: [EMAIL PROTECTED]
$query = INSERT INTO inmarsat_comp SET date_added=NOW(),
prefix='$prefix',
firstname='$firstname', lastname='$lastname', job_title='$jobtitle',
company_name='$company',
no_of_employees='$employees',address_1='$address1',address_2='$address2',
address_3='$address3',
Daniel Kullik wrote:
[EMAIL PROTECTED] wrote:
here is the whole query:
$query = INSERT INTO inmarsat_comp SET date_added=NOW(),
prefix='$prefix',
firstname='$firstname', lastname='$lastname', job_title='$jobtitle',
company_name='$company',
[EMAIL PROTECTED] wrote:
here is the whole query:
$query = INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix',
firstname='$firstname', lastname='$lastname', job_title='$jobtitle',
company_name='$company',
no_of_employees='$employees',address_1='$address1',address_2='$address2',
.
Yoed
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 7:47 AM
To: Jay Blanchard; [EMAIL PROTECTED]
Subject: Re: [PHP] how to concatenate php variables in mysql query
here is the whole query:
$query = INSERT INTO inmarsat_comp
On Sunday 01 August 2004 02:28, Andre Dubuc wrote:
Yes the first page has the appropriate form tags:
{edit-news.php]
form action=edit-news-x.php method=post . . . /form
Good.
The second and third pages [edit-news-x.php/ edit-submit.php] are pure php
(a pass-through page) -- I wasn't aware
Hi,
I have attempted to post variables from a simple page: edit-news.php to
edit-news-x.php, then load them into a session for re-use -- I use output
buffering. They do not pass. The code:
[edit-news]
?php session_start(); ob_start(); ?
$news = A few paragraphs;
print input type='text'
On Sunday 01 August 2004 01:40, Andre Dubuc wrote:
I have attempted to post variables from a simple page: edit-news.php to
edit-news-x.php, then load them into a session for re-use -- I use output
buffering. They do not pass. The code:
[edit-news]
?php session_start(); ob_start(); ?
On Saturday 31 July 2004 02:12 pm, Jason Wong wrote:
On Sunday 01 August 2004 01:40, Andre Dubuc wrote:
I have attempted to post variables from a simple page: edit-news.php to
edit-news-x.php, then load them into a session for re-use -- I use output
buffering. They do not pass. The code:
Ford, Mike [LSS] wrote:
On 13 May 2004 19:52, John Nichel wrote:
Monty wrote:
Is there any way to get JUST the user-defined variables in PHP?
Problem with get_defined_vars() is that it contains everything,
including server and environment vars, and there's no easy way to
keep just the
From: Steve Douville [EMAIL PROTECTED]
?
$a = yes;
$b = no;
?
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like something that
?
$a = yes;
$b = no;
?
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display current
values of, in this case, a and b. Hope that makes sense.
TIA
$GLOBALS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Steve,
Thursday, May 13, 2004, 6:19:07 PM, you wrote:
SD Is there a variable that I can call that will return an array with any
SD variables I have set? I'd want to call it and then parse and display current
SD values of, in this case, a and b. Hope that makes sense.
get_defined_vars();
John W. Holmes wrote:
From: Steve Douville [EMAIL PROTECTED]
?
$a = yes;
$b = no;
?
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like something that Returns an array of all defined variables??
Monty wrote:
Is there any way to get JUST the user-defined variables in PHP? Problem with
get_defined_vars() is that it contains everything, including server and
environment vars, and there's no easy way to keep just the user-defined vars
part of the array created by get_defined_vars.
Monty
Is there any way to get JUST the user-defined variables in PHP? Problem with
get_defined_vars() is that it contains everything, including server and
environment vars, and there's no easy way to keep just the user-defined vars
part of the array created by get_defined_vars.
Monty
Why not just unset
From: Monty [EMAIL PROTECTED]
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display
current
values of, in this case, a and b. Hope that makes sense.
Like something that Returns an array of all defined
John W. Holmes wrote:
?php
$starting_vars = get_defined_vars();
//bunch of PHP code...
$current_vars = get_defined_vars();
$user_defined_vars = array_diff($current_vars,$starting_vars);
...
---John Holmes...
This cat is skinned. :)
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL
?php
$starting_vars = get_defined_vars();
//bunch of PHP code...
$current_vars = get_defined_vars();
$user_defined_vars = array_diff($current_vars,$starting_vars);
...
---John Holmes...
Oh I like that... wish I would have suggested that one!
--
PHP General Mailing List (http://www.php.net/)
On 13 May 2004 19:52, John Nichel wrote:
Monty wrote:
Is there any way to get JUST the user-defined variables in PHP?
Problem with get_defined_vars() is that it contains everything,
including server and environment vars, and there's no easy way to
keep just the user-defined vars part of
I am relatively new to PHP. But something I can't seem to make work is when
I call one of the functions I have made and a variable is set inside that
function
eg. function blah ($bl,$ah) {
$bl++;
$ah++;
$blah=$bl+$ah;
}
I then echo $blah; somewhere else in the script but nothing is echo'd. How
[snip]
eg. function blah ($bl,$ah) {
$bl++;
$ah++;
$blah=$bl+$ah;
}
[/snip]
function blah ($bl,$ah) {
$bl++;
$ah++;
$blah=$bl+$ah;
return $blah;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Don't you need to set a return?
Return $blah;
At the bottom of your function block.
alex hogan
-Original Message-
From: Nathan Croker [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables inside a function
I am
On Tuesday 09 March 2004 01:44, Alex Hogan wrote:
Don't you need to set a return?
Return $blah;
At the bottom of your function block.
That does not make the variable $blah available elsewhere in the program. The
OP should take a look at manual Variables Variable scope.
--
Jason Wong -
I can return the favor sometime.
alex hogan
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables inside a function
On Tuesday 09 March 2004 01:44, Alex Hogan wrote:
Don't you need
[snip]
I then echo $blah; somewhere else in the script but nothing is echo'd.
How
do I make it so that I can use $blah anywhere in the script?
[/snip]
I went back and re-read the post, and his question above is the
important one
First you must return something from the function, then you
On Tuesday 09 March 2004 02:03, Alex Hogan wrote:
If I read his post correctly he was looking to make blah() available and
not $blah.
The OP says so that I can use $blah anywhere in the script?, which to me
means that $blah needs to be global ...
[snip]
Of course obviously being one of the
My mistake.
Good one on the spelling I can't believe I missed that one
alex hogan
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 12:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Variables inside a function
On Tuesday 09
Okay, I am sure this will be painfully simple, but I have looked it over for
a couple of hours now, and I am obviously missing something. I am trying to
get a start date and a stop date via input from a user to use as variables
in a MySQL query, but for some reason, I can't get the variable to
Is there a session_start() on the second page ?
Also i didnt know u could set an action to a jscript popup, it may not be
posting to the second page. What you could try is posting to the second
page like a normal post, u need to do something like
session_start();
$_SESSION['startdate'] =
Thank you! It looks like it was a combination of my NOT using the $_POST
and the fact that my JScript wasn't allowing the variables to pass... WHO
KNEW?!?
THANKS!!!
Chase
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there a session_start() on the second page ?
Also i didnt
One other irritation for the evening... The MySQL query that I am trying to
create needs to use the date the user enters and then add @ 12:01am EST
to it so it will acutally match the data in the table. Below is my quesry
line, but I don't know how to add that chunk to each of the variables...
hello,
how can i put the character \ in a variable ?
I've done the code below but errors occurs :
$barre_oblique = \;
Parse error: parse error, unexpected T_STRING
Please help
Escape it.
$string = \\;
Or, use single quotes:
$string = '\';
On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote:
hello,
how can i put the character \ in a variable ?
I've done the code below but errors occurs :
$barre_oblique = \;
Parse error: parse error, unexpected
Whoops, mistyped on my reply, you need to escape it with the single
quotes to.
On Thu, 2004-02-19 at 12:49, Dominique ANOKRE wrote:
hello,
how can i put the character \ in a variable ?
I've done the code below but errors occurs :
$barre_oblique = \;
Parse error: parse error,
Hello Dominique,
Thursday, February 19, 2004, 5:49:43 PM, you wrote:
DA how can i put the character \ in a variable ?
DA I've done the code below but errors occurs :
DA $barre_oblique = \;
DA Parse error: parse error, unexpected T_STRING
DA Please help
$barre_oblique = \\;
--
Best
ok thanks
pb solved
thank you everybody
- Original Message -
From: Richard Davey [EMAIL PROTECTED]
To: Dominique ANOKRE [EMAIL PROTECTED]
Cc: Php List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 5:52 PM
Subject: Re: [PHP] variables
Hello Dominique,
Thursday, February 19
I have a problem. When I call the function phpinfo() I can correctly see the page with the informationabout the server; but when I use a form to pass some information from a php page to another phppage, if I use a print() or an echo() function, I can't seemy variables. Why??? Help me
]
Objet : [PHP] Variables??
I have a problem. When I call the function phpinfo() I can correctly see the
page with the information about the server; but when I use a form to pass
some information from a php page to another php page, if I use a print() or
an echo() function, I can't see my variables
Try this for a generic fix if it is the globals issue:
Place this somewhere to set to TRUE or FALSE when needed
$GLOBAL_FIX = TRUE;
use an include on every script:
if($GLOBAL_VARS_FIX) {
if( phpversion() = '4.2.0' ) {
extract($_POST);
extract($_GET);
extract($_SERVER);
On 19 Jan 2004 at 21:43, Kaushan wrote:
Hi,
I am new to PHP scripting and struggling with the following problem.
I have two files, an HTML file and a PHP file.
HTML file contains a form with one text field and a submit button.
When a user pressed the submit button, it calls the php file
: Kaushan [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 10:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables not working!
Hi,
I am new to PHP scripting and struggling with the following problem.
I have two files, an HTML file and a PHP file.
HTML file contains a form with one text
Hi,
I am new to PHP scripting and struggling with the following problem.
I have two files, an HTML file and a PHP file.
HTML file contains a form with one text field and a submit button.
When a user pressed the submit button, it calls the php file (form
action=test.php ...).
What the php file
How do you insert a php variable into a javascript function?
For instance;
function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
alex hogan
**
The contents of this e-mail and any files transmitted
Hello Alex,
Thursday, January 15, 2004, 9:47:27 PM, you wrote:
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
--
Best regards,
Richard
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
or use:
function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar;
?; }
The short syntax only works
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
or use:
function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar;
?; }
The short syntax only works
AH How do you insert a php variable into a javascript function?
AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
function redirect (?=$MyVar?) { location = ?=$MyVar?; }
or use:
function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar;
?; }
The short syntax only works
On Thu, 2004-01-15 at 16:47, Alex Hogan wrote:
How do you insert a php variable into a javascript function?
For instance;
function redirect(?php $MyVar ?) { location = ?php $MyVar ?; }
?php
echo 'function redirect(' . $MyVar . ') {';
echo 'location =' . $MyVar . ';}';
?
--
Brian
Greetings All,
Have a small problem that I just can't work out. I know it's an easy one
but it's got me stumped...
I have some code to pull a question out of a database and display it on the
screen. I also want to store it in a hidden var for
use with the $_POST on the next page.
Currently,
Hi Lloyd,
use quotes around your values
echo input type=\text\ name=\question1_text\
value=\$question\br /;
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
Lloyd Bayley wrote:
Greetings All,
Have a small problem that I just can't work out. I know it's an easy one
but it's got me
Lloyd Bayley wrote:
echo input type=text name=question1_text value=$questionbr;
This returns first word.
Please learn HTML. The value should have quotes around it.
echo input type=\text\ name=\question1_text\
value=\$question\br /;
or, even MORE correct:
echo 'input
Greg,
Sheesh! I had neglected to do that...I've been working with a few different
languages and I'm starting to confuse them I think.
Thanks for your non-offensive reply.
It's nice to see that you can overlook the little failures we have now and
again.
Lloyd. :-)
At 09:58 AM 7/12/2003, you
Lloyd Bayley wrote:
Thanks for your non-offensive reply.
It's nice to see that you can overlook the little failures we have now
and again.
Please learn HTML is offensive? Please... I even gave you the
_correct_ answer that involves htmlentities(), otherwise you'll be back
here with another
John W. Holmes wrote:
echo 'input type=text name=question1_text value=' .
htmlentities($question) . 'br /';
Or even *MORE* correct
echo 'input type=text name=question1_text
value='.htmlentities($question).'/br/';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
John W. Holmes wrote:
Lloyd Bayley wrote:
Thanks for your non-offensive reply.
It's nice to see that you can overlook the little failures we have now
and again.
Please learn HTML is offensive? Please... I even gave you the
_correct_ answer that involves htmlentities(), otherwise you'll be
Hello,
I have recently noticed something that I wasn't aware of until now. I have
index.php which contains include1.txt and include2.txt. If a variable is set
in include1.txt it will *only* have a local scope, even if I declare it
GLOBAL. Is this normal or a bug?
- MD
This doesn't sound right. It's doesn't behave like this for me.
Can you supply an example?
Martin
-Original Message-
From: Mike D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 December 2003 10:35 AM
To: PHP General list
Subject: [PHP] Variables scope question
Hello,
I have
-
From: Mike D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 December 2003 10:35 AM
To: PHP General list
Subject: [PHP] Variables scope question
Hello,
I have recently noticed something that I wasn't aware of
until now. I have
index.php which contains include1.txt and include2.txt
I have a question, and maybe I'm an idiot (alright not maybe). I can't get
the damned variables to stop showing their variable names on the screen,
like a variable $stock_quote appears in the HTML as $stock_quote, what the
hell am I doing wrong? I'm using Win2K to test a site on my own computer
On Sunday 30 November 2003 15:54, Biph wrote:
I have a question, and maybe I'm an idiot (alright not maybe). I can't get
the damned variables to stop showing their variable names on the screen,
like a variable $stock_quote appears in the HTML as $stock_quote, what the
hell am I doing wrong?
, 2003 8:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables - showing onpage
I have a question, and maybe I'm an idiot (alright not maybe). I can't get
the damned variables to stop showing their variable names on the screen,
like a variable $stock_quote appears in the HTML as $stock_quote, what
Biph wrote:
I have a question, and maybe I'm an idiot (alright not maybe). I can't get
the damned variables to stop showing their variable names on the screen,
like a variable $stock_quote appears in the HTML as $stock_quote, what the
hell am I doing wrong? I'm using Win2K to test a site on my
Cpt John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
From: Kenn Murrah [EMAIL PROTECTED]
I need to be able to pass a PHP variable to a Javascript and can't
figure out how to do it. In short, the Javascript win() statement is
used open a page as defined in PHP --
Greetings.
I need to be able to pass a PHP variable to a Javascript and can't
figure out how to do it. In short, the Javascript win() statement is
used open a page as defined in PHP -- i.e., $php_name =
http://www.somewhere.com/something/3.jpg; , a filename that was
generated dynamically in
From: Kenn Murrah [EMAIL PROTECTED]
I need to be able to pass a PHP variable to a Javascript and can't
figure out how to do it. In short, the Javascript win() statement is
used open a page as defined in PHP -- i.e., $php_name =
http://www.somewhere.com/something/3.jpg; , a filename that
Hi
I wonder if any one can help with this problem.
I have a script working really well (not my scripting but my script) written in perl
/cgi.
I would like to write some simple scripts using the variables and data from the cgi
script.
Is there a way that I can extract the variables in the cgi
From: mailing [EMAIL PROTECTED]
I wonder if any one can help with this problem.
I have a script working really well (not my scripting but my script)
written in perl /cgi.
I would like to write some simple scripts using the variables and data
from the cgi script.
Is there a way that I can
Thanks for your reply John...
To embelish a bit...
I have a multiuser web based image managment application (the Perl script) and I want
to add some accounting scripts (to be written in php). The guy that wrote the perl
script is unavailable to work it in the perl script due to time
From: mailing [EMAIL PROTECTED]
I have a multiuser web based image managment application (the Perl script)
and I want to add some accounting scripts (to be written in php). The guy
that wrote the perl script is unavailable to work it in the perl script due
to time constraints - so I was
At 03:59 PM 10/27/2003 -0800, Jeff - Harbornet wrote:
Disregard last email. I figured it out. Thanks.
Care to tell the rest of us? I'm a newby and would like to know.
Bob Rea
PlusWeb
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
www.petard.us
--
PHP General Mailing List
From: Bob Rea [EMAIL PROTECTED]
At 03:59 PM 10/27/2003 -0800, Jeff - Harbornet wrote:
Disregard last email. I figured it out. Thanks.
Care to tell the rest of us? I'm a newby and would like to know.
Hmmm, that's obvious, since you can't even spell newbie. ;)
---John Holmes...
--
PHP
CPT John W. Holmes wrote:
From: Bob Rea [EMAIL PROTECTED]
At 03:59 PM 10/27/2003 -0800, Jeff - Harbornet wrote:
Disregard last email. I figured it out. Thanks.
Care to tell the rest of us? I'm a newby and would like to know.
Hmmm, that's obvious, since you can't even spell newbie. ;)
---John
Hi all. I am running into a problem with posting html data into a PHP
script. The script works on another site that I have created, with this
html code, the variables are not passing to the sendmail.php script.
Below is the HTML code:
td width=608 height=807 valign=topdiv align=center
Disregard last email. I figured it out. Thanks.
Jeff
Harbornet
Jeff - Harbornet wrote:
Hi all. I am running into a problem with posting html data into a PHP
script. The script works on another site that I have created, with this
html code, the variables are not passing to the sendmail.php
I would like to use a form in a html page to pass the variables to a php
page, which sends an mail including these variables.
All I get in the mail though is a 1 rather than the string that I put into
the form???
Can anyone help please!
Some code I use
.
.
.
$messagepart1 = '
html head
On Fri, 17 Oct 2003 15:09:48 +0100, you wrote:
I would like to use a form in a html page to pass the variables to a php
page, which sends an mail including these variables.
All I get in the mail though is a 1 rather than the string that I put into
the form???
Can anyone help please!
Some code
christian tischler wrote:
$messagepart2 = (echo $salutation);
$messagepart2 = $salutation;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What I do is make a PHP page/template with php variables in place.
Then do something like this...
$report = path/to/mytemp.php;
$today = date();
ob_start();
include($report);
$message = ob_get_contents();
ob_end_clean();
//echo $message
-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]
Sent: Friday, October 17, 2003 10:55 AM
To: 'christian tischler'; [EMAIL PROTECTED]
Subject: RE: [PHP] variables in e-mail 2nd
What I do is make a PHP page/template with php variables in place.
Then do something like
If I have have set a url to be displayed like this:
www.mysite.com/some_page.php?value=this
and wanted to tag on another value what would I seperate the
dtwo with/
Also since it is now displayed in the url and I need the value
in some area on my form.
How would I populate the value in a form
Frank Tudor mailto:[EMAIL PROTECTED]
on Thursday, October 09, 2003 1:48 PM said:
How would I populate the value in a form tag?
input type=text value=?echo (what goes here);?
name=something
You need to go here
http://us4.php.net/manual/en/language.variables.external.php and read
up.
To: [EMAIL PROTECTED]; Gal
Subject: Re: [PHP] Variables not passed on localhost setup
From: Gal [EMAIL PROTECTED]
Reply - this means your php is running on php defaults configuration.
you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows.
edit the the file 'C:\windows\php.ini
Hi,
On Thu, 2 Oct 2003 09:26:37 +0200
Angelo Zanetti [EMAIL PROTECTED] wrote:
with regard to register_globals being off, what kind of security
implications are there? And what would you define as badly/poorly
written php code?
Here's a (simple) example:
Hi Guys,
I've Googled and RTFM'd, but I can't seem to figure this out - it may
not even be a php problem but I'm not sure.
I've set up Apache, PHP and MySQL on my laptop running XP Home. Although
I've coded php for a while now, I had never set these up on my own
computer before. The php seems to
From: Greg Watson [EMAIL PROTECTED]
doesn't look as
though variables are being passed from page to page.
Register_globals is OFF in your php.ini file, so you need to use
$_GET['testvar'] instead of $testvar.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Thank you for that answer! That worked perfectly!
That leads me to another query, again, which I have searched for...
I'd like to be able to switch Register_Globals ON, but I can't find my
php.ini file.
Running phpinfo(); tells me that my 'php.ini' file is stored in
C:\WINDOWS, but it's not
Reply - this means your php is running on php defaults configuration.
you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows.
edit the the file 'C:\windows\php.ini'
and change register_globals = Off to register_globals = On
Greg Watson wrote:
Thank you for that answer! That worked
rename php.ini-recommended to php.ini and put it in C:\windows and you
can now use that file.
--
Ray
On Wed, 2003-10-01 at 10:52, Greg Watson wrote:
Thank you for that answer! That worked perfectly!
That leads me to another query, again, which I have searched for...
I'd like to be able to
Greg Watson wrote:
I'd like to be able to switch Register_Globals ON, but I can't find my
php.ini file.
Running phpinfo(); tells me that my 'php.ini' file is stored in
C:\WINDOWS, but it's not there. I've ran a file search and still can't
find it.
The only ones that appear are 'php.ini-dist'
From: Gal [EMAIL PROTECTED]
Reply - this means your php is running on php defaults configuration.
you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows.
edit the the file 'C:\windows\php.ini'
and change register_globals = Off to register_globals = On
(and restart your web
Thank you all so much! That sorted it! Cheers!
I didn't see that before because I'm blind. Metorphorically speaking.
Put it down to code-blindness from staring at the screen too long. Weird
thing is, my searches took me to http://www.php.net/configuration, which
didn't mention the moving ini
On Wed, 01 Oct 2003 14:22:30 -0400, Greg Watson [EMAIL PROTECTED]
wrote:
I'll check up on the security implications. Unfortunately for me, this
is the way I was taught PHP. I'll have to rethink things I suppose!
(and make sure you understand the security implications that may arise
from
having
101 - 200 of 473 matches
Mail list logo