Re: [PHP] Is there a way to customize the 'Username' and 'Password' strings in a 401 auth dialog box?

2012-06-28 Thread David OBrien
On Thu, Jun 28, 2012 at 7:23 PM, Daevid Vincent wrote: > Is there a way to customize the 'Username' and 'Password' strings in a 401 > auth dialog box? > > I want to change mine to say "Webmaster ID" and "Authentication Key". > > http://php.net/manual/en/features.http-auth.php > > This http://www

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Govinda
we got off list, without meaning to, it seems. Here are the last few posts in the thread: > >>> On Fri, Jun 1, 2012 at 12:46 AM, Govinda >>> wrote: > Perhaps you should spend some time looking for a better text editor > for your OS. :) When the current tools I use does not give

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Tommy Pham
On Thu, May 31, 2012 at 11:17 PM, Govinda wrote: >> >> You need to get better tools.  I found this with Notepad++ for Windows >> searching "case" within *.php files filter within the root directory >> of the extracted zip/tarball: >> >>  H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPur

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Govinda
> > You need to get better tools. I found this with Notepad++ for Windows > searching "case" within *.php files filter within the root directory > of the extracted zip/tarball: > > > H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPurifier\AttrDef\CSS\Font.php > (6 hits) > Line

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Tommy Pham
On Thu, May 31, 2012 at 10:48 PM, Tommy Pham wrote: > On Thu, May 31, 2012 at 10:33 PM, Govinda > wrote: >> Hi guys >> >> anyone here using HTMLpurifier and CSStidy together?  (like e.g. to allow >> users to create their own external style sheets via form input) >> >> ...for example, in the way

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Tommy Pham
On Thu, May 31, 2012 at 10:33 PM, Govinda wrote: > Hi guys > > anyone here using HTMLpurifier and CSStidy together?  (like e.g. to allow > users to create their own external style sheets via form input) > > ...for example, in the way this post's answer explains how to use > HTMLpurifier and CSSt

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread vikash . iitb
t: Friday, October 22, 2010 5:45 PM > > To: Daniel P. Brown > > Cc: PHP General > > Subject: Re: [PHP] Is there a way to write to the php error log from a > php > > script? > > > > > > On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: > > > &

RE: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tommy Pham
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@gmail.com] > Sent: Friday, October 22, 2010 5:45 PM > To: Daniel P. Brown > Cc: PHP General > Subject: Re: [PHP] Is there a way to write to the php error log from a php > script? > > > On Oct

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've sea

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Daniel P. Brown
On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: > I'm trying to log some data for debugging and don't have use of the standard > output to do so. I'd like to write the info to the php error log. Can this > be done from within PHP? I've searched the web site for logging functions, > but cannot

Re: [PHP] is there a way to get more info about *why* the initial (DB PEAR) connect to db is failing?

2009-07-03 Thread Phpster
On Jul 3, 2009, at 7:31 PM, Govinda wrote: my code: require 'DB.php'; // $db=DB::connect('db_program://user:passw...@hostname/database'); if (DB::isError($db)) { die("Can't connect: " . $db->getMessage ()); } is returning: "Can't connect: DB Error: connect failed" Any advi

Re: [PHP] Is there a way to un include a file

2007-03-12 Thread Richard Lynch
No. You could perhaps wipe out *EVERYTHING* in $_GLOBALS, which would be the included file and anything in the main file[s] that went before. If you need an environment that is that "pure" for testing or something, you can run a different PHP process on each file. Otherwise, you simply have to a

Re: [PHP] Is there a way to un include a file

2007-03-08 Thread Chris
jekillen wrote: On Mar 7, 2007, at 11:47 PM, Larry Garfield wrote: No there is not, because an included file *executes* at the time it is included and is then done. Any memory-resident objects (function/class definitions, variables, etc.) that it defies then exist until you make them un-exis

Re: [PHP] Is there a way to un include a file

2007-03-08 Thread jekillen
On Mar 7, 2007, at 11:47 PM, Larry Garfield wrote: No there is not, because an included file *executes* at the time it is included and is then done. Any memory-resident objects (function/class definitions, variables, etc.) that it defies then exist until you make them un-exist (with unset() f

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Larry Garfield
No there is not, because an included file *executes* at the time it is included and is then done. Any memory-resident objects (function/class definitions, variables, etc.) that it defies then exist until you make them un-exist (with unset() for variables or, well, you can't with functions and

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Tijnema !
AFAIK there's no function to un include a file, but i don't see a problem here, as when you include your second file, everything (all conflicting variables) will be overwritten. If you still have problems, you might want to use classes around your functions and variables. Tijnema On 3/8/07, jek

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Børge Holen
On Thursday 08 March 2007 07:18, jekillen wrote: > Hello; > Is there a way to un include a file once it has been included in a > script. You seems to want the wrong thing... I could be mistaken, but from my point of view you would NOT include the file if not apropriate at that moment. > My c

Re: [PHP] Is there a way to redefine a constant?

2007-02-09 Thread Jochem Maas
please keep the replies 'on list' ... Khai Doan wrote: > Sorry, I hit the Send button by mistake. My problem is that these > constant are defined at compile / startup time, before my script get to > run. In Perl, I can close STDERR and STDOUT and re-open them to any > file at anytime. In Perl,

Re: [PHP] Is there a way to redefine a constant?

2007-02-09 Thread Jochem Maas
Khai wrote: > STDERR and STDOUT are defined as constants. Is there a way to redefine > these constants? only if you use runkit (which is probably not recommended in production environments): http://php.net/runkit consider that constants are called as such for a reason. you should consi

Re: [PHP] Is there a way to redefine a constant?

2007-02-08 Thread Chris
Khai wrote: STDERR and STDOUT are defined as constants. Is there a way to redefine these constants? Nope. Once they're set, they're set. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-23 Thread Richard Lynch
On Tue, March 21, 2006 4:44 pm, mslemko wrote: > this is what I am trying to do: > > On a web form I might have a select input with multiple selections > enabled, however I want to have access to the list within PHP after > submission. > > For PHP, use name='myselect[]' Then PHP turns it into an

Re: [PHP] Is there a way to get multiple values for a singleinput in a form submission?

2006-03-23 Thread sgsweb
Hi Mark, Actually you can access this variable within Javascript in the following manner: function chgablacted() { box = regs['myselect[]']; value = box.options[box.selectedIndex].value; if (value == 'some value') { ... } else { ... } } The name of the variable will include the br

Re: [PHP] Is there a way to get multiple values for a singleinput in a form submission?

2006-03-23 Thread mslemko
Thanks Warren, This works! The side effect that is -somewhat- undesirable is that it becomes incompatible accessing the field with Javascript. Perhaps there is a way to get around that problem though. -Mark Warren Vail wrote: Set the name of your field in html to be; name="myselect[]" th

Re: [PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-21 Thread tedd
this is what I am trying to do: On a web form I might have a select input with multiple selections enabled, however I want to have access to the list within PHP after submission. 1 2 so when this is submitted, I can see in the $HTTP_RAW_POST_DATA that myselect is submitted twice... ...

Re: [PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-21 Thread Warren Vail
Set the name of your field in html to be; name="myselect[]" that way when the form is returned to you each selected value is returned to you, for example if you code $choices = $_POST["myselect"]; choices will be an array containing the actual values selected when the form is submitted. h

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jake Gardner
Jochem: Your method is long, probably takes more time to run, and is therefore inefficient in this circumstance. There is a time and place for a good solid reusable function, or even a class. Of course things could go wrong when using mySQL connections, but things can always go wrong. Bringing pe

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Mike Smith
On 1/10/06, Sue <[EMAIL PROTECTED]> wrote: > Hello, > > We have a form that contains a Select option for a listing of available > dates for the user to choose from. Right now we have to manually change the > dates within the form's Selection list as new dates become available to > choose from. We

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jochem Maas
David Grant wrote: Jochem, Jochem Maas wrote: David Grant wrote: 1. your looping a result set which involves a db connection - lots of pontential things that could go wrong... Absolutely, and lots of lessons to learn too. by that argument your own children shouldn't be sent to school; and

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread DarkX
You mean like... $Link = mysql_connect("Host", "User", "Pass"); mysql_select_db("MyDB"); $Datefield = "Dates"; $Select = mysql_query("SELECT * FROM `Table` WHERE `".$Dates."` LIKE *"); $MySelect = "" While($Row = @mysql_fetch_assoc($Select)) { //Adds each date to the select where the value is al

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jochem Maas
Adrian Bruce wrote: the quickest solution and one that is easy to understand, I am no php expert and have never claimed as such so why 'noob'? Why is this such a poor method? if i type the HTML to be outputted correctly then what validation is required? also I think Someone new would run from

Re: [PHP] Is there a way to display data from database for SelectOptions in a form?

2006-01-10 Thread Jochem Maas
Jay Paulson (CE CEN) wrote: [snip]Let's look at it another way, why 70-80 lines of code when 4 will do it properly when done correctly?[/snip] 4 * 20 = 80 so after having created 20 dynamic select boxes the function wins it. I really don't think that performance here is the issue - one should t

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
Jochem, Jochem Maas wrote: > David Grant wrote: > 1. your looping a result set which involves a db connection - lots > of pontential things that could go wrong... Absolutely, and lots of lessons to learn too. > 2. its not a centralized 'solution' - code reuse is a good thing. However, what use

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jochem Maas
David Grant wrote: Jochem, Jochem Maas wrote: teaching noobs to output html while (oun intended) looping thru a result set is counter-productive. discuss. I disagree, however, I do believe attention should be drawn to reasons why doing so might be considered bad practice. 1. your looping

RE: [PHP] Is there a way to display data from database for SelectOptions in a form?

2006-01-10 Thread Jay Paulson \(CE CEN\)
[snip]Let's look at it another way, why 70-80 lines of code when 4 will do it properly when done correctly?[/snip] I agree with this line of thinking especially for a new person to php. When I first read the solution that was so long I thought to myself "great and this person is new to php and n

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Adrian Bruce
the quickest solution and one that is easy to understand, I am no php expert and have never claimed as such so why 'noob'? Why is this such a poor method? if i type the HTML to be outputted correctly then what validation is required? also I think Someone new would run from your proposed soluti

RE: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jay Blanchard
[snip] > [snip] > teaching noobs to output html while (oun intended) looping thru a > result set is counter-productive. discuss. > [/snip] > > Why is this counter-productive? it's a shit way of doing things - with the added bonus that it usually comes with shit output (as non-validating, bare-min

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jochem Maas
Jay Blanchard wrote: [snip] teaching noobs to output html while (oun intended) looping thru a result set is counter-productive. discuss. [/snip] Why is this counter-productive? it's a shit way of doing things - with the added bonus that it usually comes with shit output (as non-validating, bar

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
Jochem, Jochem Maas wrote: > teaching noobs to output html while (oun intended) looping thru a > result set is counter-productive. discuss. I disagree, however, I do believe attention should be drawn to reasons why doing so might be considered bad practice. Even the longest journeys start with s

RE: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jay Blanchard
[snip] teaching noobs to output html while (oun intended) looping thru a result set is counter-productive. discuss. [/snip] Why is this counter-productive? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jochem Maas
teaching noobs to output html while (oun intended) looping thru a result set is counter-productive. discuss. Adrian Bruce wrote: Something along these lines will work fine "; while ($row = mysql_fetch_array($query, MYSQL_NUM)){ echo"$row[1]"; } echo""; ?> Regards Ade Sue wrote: Hello

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Jochem Maas
Sue wrote: Hello, We have a form that contains a Select option for a listing of available dates for the user to choose from. Right now we have to manually change the dates within the form's Selection list as new dates become available to choose from. We currently store these available dates

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread David Grant
Sue, Sue wrote: > We have a form that contains a Select option for a listing of available > dates for the user to choose from. Right now we have to manually change the > dates within the form's Selection list as new dates become available to > choose from. We currently store these available d

Re: [PHP] Is there a way to display data from database for Select Options in a form?

2006-01-10 Thread Adrian Bruce
Something along these lines will work fine "; while ($row = mysql_fetch_array($query, MYSQL_NUM)){ echo"$row[1]"; } echo""; ?> Regards Ade Sue wrote: Hello, We have a form that contains a Select option for a listing of available dates for the user to choose from. Right now we have

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread Yaswanth Narvaneni
Dirty Code if((ereg("Nav", getenv("HTTP_USER_AGENT"))) || (ereg("Gold", getenv("HTTP_USER_AGENT"))) || (ereg("X11", getenv("HTTP_USER_AGENT"))) || (ereg("Mozilla", getenv( "HTTP_USER_AGENT"))) || (ereg("Netscape", getenv("HTTP_USER_AGENT"))) AND (!ereg("MSIE", getenv("HTTP_USER_AGENT"

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread Frank Armitage
twistednetadmin wrote: > Thanks guys. That helps alot! > > But this: > print $_SERVER['HTTP_USER_AGENT']; > ?> > > Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.7.12) Gecko/20050915 Firefox/1.0.7 > And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Window

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread David Grant
$_SERVER['HTTP_USER_AGENT'] contains whatever the browser passes to the server to identify itself, which may be faked by certain browsers at the discretion of the user. The two user agents you provide as an example are both extremely common. Cheers, David Grant twistednetadmin wrote: > Thanks g

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-22 Thread twistednetadmin
Thanks guys. That helps alot! But this: Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) Does that just mean that it's not completely accurate?

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-22 Thread Joe Wollard
On Nov 23, 2005, at 12:43 AM, twistednetadmin wrote: Is it possible to use PHP to find out wich type of browser is in use? Or must is this done by javascript or something else? I would like to have a little statistic on my page that tells me what browser is currently moet used. Try: -Joe W

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Daevid Vincent
> He wants a function that, if you put in $x, you get out 'x' > > For *ANY* $variable. > > There is no such function. > Usually the person asking it is doing something very > newbie-ish, and very wrong. Actually it's not either... Since you can't easily debug when generating XML, as malforme

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Daevid Vincent
> What I was thinking with debug_backtrace() is that you could get the > information for the function that called the function you want the > variable name for, *reducing* the likelyhood of duplicate values, but > admitedly not eliminating it. > > You could also pass the name of the variable to

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Edward Vermillion
Richard Lynch wrote: [snip] PS It's true that your variable could/would/should appear in debug_backtrace, but how would you pick it out from all the other variables that would appear in your debug_backtrace? For that matter, it's in $_GLOBALS, but how would you pick it out? You could print

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Richard Lynch
On Mon, July 18, 2005 8:24 pm, Ryan A said: > I didnt totally understand you q in the beginning (and still dont fully), > but He wants a function that, if you put in $x, you get out 'x' For *ANY* $variable. There is no such function. Usually the person asking it is doing something very ne

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-19 Thread Burhan Khalid
Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. Well ob_start(); echo '$var'; $contents = ob_get_contents(); ob_end_clean(); echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Tyler Kiley
function named_print($var_name) { return "echo 'the variable named $var_name is set to ' . \$var_name;" } eval(named_print($foo)); ;-) Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Edward Vermillion
Edward Vermillion wrote: Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. -Rasmus Wouldn't the name of the variable show up in a var_dump()? It would be messy, but if it's there... Actually I me

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Edward Vermillion
Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. -Rasmus Wouldn't the name of the variable show up in a var_dump()? It would be messy, but if it's there... -- PHP General Mailing List (http://www.php

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Ryan A
I didnt totally understand you q in the beginning (and still dont fully), but > > Is there a way to get the name of a variable as a string? For example... > Nope, not possible. > -Rasmus the man has spoken :-D -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Rasmus Lerdorf
Daevid Vincent wrote: > Is there a way to get the name of a variable as a string? For example... Nope, not possible. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Rob Agar
hi Daevid FWIW, I was trying to do the exact same thing a while back, and came to the conclusion that it wasn't possible. Rob > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 19 July 2005 11:28 AM > To: php-general@lists.php.net > Subject: [PHP] Is

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Daevid Vincent
echo "variable named $foo has the contents $$foo"; } Myname('bar'); Which is pretty lame. > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Monday, July 18, 2005 6:57 PM > To: [EMAIL PROTECTED] > Cc: php > Subject: Re: [PHP] Is

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Ryan A
Maybe something like: Function myname ($foo) { $return_value="the variable name passed in is ".$foo; return $return_value; } echo myname($bar); Just a guess. On 7/19/2005 3:27:57 AM, Daevid Vincent ([EMAIL PROTECTED]) wrote: > Is there a way to get the name of a variable as a string? F

Re: [PHP] Is there a way I can read full path names of files on the server and enter it into the database ?

2005-02-21 Thread Richard Lynch
Vaibhav Sibal wrote: > I wanted to ask whether there is a way whereby a script can read > filenames from a particular directory on the server and enter those > filenames with the complete path into the MySQL database? I am trying > to do this, because I am developing an application where a supervis

Re: [PHP] Is there a way to...

2004-10-17 Thread S. Daurer
On Sat, 16 Oct 2004 22:04:33 -0400, Gh <[EMAIL PROTECTED]> wrote: Your right, this is not what I was expecting, I was thinking there was another way... Sounds good.. but any other suggestions? On Sat, 16 Oct 2004 21:40:56 -0400, Minuk Choi <[EMAIL PROTECTED]> wrote: well, this is probably not w

Re: [PHP] Is there a way to...

2004-10-17 Thread M Saleh EG
secure it with apache .ht* files for directory and file settings or the main config file. On Sun, 17 Oct 2004 15:35:58 +0600, raditha dissanayake <[EMAIL PROTECTED]> wrote: > GH wrote: > > >Is there a way to make sure that a page is only loaded via a > > > >require or include statement? or other

Re: [PHP] Is there a way to...

2004-10-17 Thread raditha dissanayake
GH wrote: Is there a way to make sure that a page is only loaded via a require or include statement? or other type of SSI? I would like to make sure that a 'parent document' (namely admin_template.php) only calls the php file? Thanks leave if outside htdocs -- Raditha Dissanayake. -

Re: [PHP] Is there a way to...

2004-10-16 Thread GH
Your right, this is not what I was expecting, I was thinking there was another way... Sounds good.. but any other suggestions? On Sat, 16 Oct 2004 21:40:56 -0400, Minuk Choi <[EMAIL PROTECTED]> wrote: > well, this is probably not what you were expecting... but you can try this > > admin_templ

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-08 Thread Christophe Chisogne
Chris Hayes wrote: It takes a lot more of users to tamper with POST data than with GET Not a lot more. Simply save the slightly modified form on a webserver you have access to (hidden field) -- or better create php code that generate the form OK, aunt Annie cant do that, but she wouldnt ever thougt

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I wanted to know is is there a way to configure PHP to make it not be > affected when the web user tamper with the values in the post string > after a webpage is submitted or something. If by "after a page is submitted" you mean "after a page is requ

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Chris Hayes
At 18:43 7-1-04, you wrote: Hi! I wanted to know is is there a way to configure PHP to make it not be affected when the web user tamper with the values in the post string after a webpage is submitted or something. (Further explanation below) I noticed when I use the hidden html input tag wi

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Richard Davey
Hello Scott, Wednesday, January 7, 2004, 5:43:31 PM, you wrote: SF>I noticed when I use the hidden html input tag with hidden data in it SF> then when I click the submit button to submit the webpage, the hidden data SF> then show up in the URL address. Fine, no problem. But I noticed one O

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox

2004-01-07 Thread Matt Matijevich
[snip] I noticed when I use the hidden html input tag with hidden data in it then when I click the submit button to submit the webpage, the hidden data then show up in the URL address. [/snip] I think if you just change the request method to post, the data will not show up in the url. -- PHP

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-21 Thread Scott Fletcher
Yea, plan to file a bug to include an example. As soon as the strpos() script work then I'll go ahead. Right now, mine doesn't work correctly with the 3rd and 4th line of code, so I'm trying to figure out why. :-) Scott "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-21 Thread Ford, Mike [LSS]
On 20 November 2003 20:39, Scott Fletcher wrote: > Yea, the manual is clear but honestly, don't know what the offset > really meant since there is no definition or explaination of how the > offset work. Well, I really don't know how much clearer the sentence that says "The optional offset parame

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: > > Anyway, don't do that, use an existing XML parser.. > > I'll try. I haven't got the PHP XML Parser to work, I think it is > because the XML stuffs I receive is not a true XML, some of them don't > have a closing tag either because one tag have actual

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
I'll try. I haven't got the PHP XML Parser to work, I think it is because the XML stuffs I receive is not a true XML, some of them don't have a closing tag either because one tag have actual data as an attribute inside one tag. It is kind of frustrating to on not knowing what XML Parser will work

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
Yea, the manual is clear but honestly, don't know what the offset really meant since there is no definition or explaination of how the offset work. All I know the definition of the offset is 'To balance each other out'. Like a weighting scale where one weight is more than other and I would need to

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 17:39, Scott Fletcher wrote: > How exactly does the 3rd parameter option work. I tried this > but it doesn't > work, so I don't know how exactly does it work... There isn't detail > information on the php.net website... > > --snip-- >$XML_Start = (strpos($res_str,"",1);

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: > How exactly does the 3rd parameter option work. I tried this but it > doesn't work, so I don't know how exactly does it work... There isn't > detail information on the php.net website... "The optional offset parameter allows you to specify which chara

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start = (strpos($res_str,"",1); $XML_End = strpos($res_str,"]]>",2); --snip-- Scott "Mike F

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 14:53, Scott Fletcher wrote: > Hi Everyone! > > Is there a way to get the strpos() to find the next needle in > the haystack instead of just the 1st one only? (Where the 1st > needle is the same string as the next needle)... Look at the optional 3rd parameter to strpos()

RE: [PHP] is there a way?

2003-07-31 Thread Jennifer Goodie
> Is there a way to have your html table represent one color, > Cause when I click the link it turnes purple, and I want it to stay > 336699 > no matter what state. > > I tried to use css, but it does the whole page. > And I want the 336699 to be in this table alone. > > Can anyone help me out with

Re: [PHP] Is there a way to get rid of \' and \" ?

2003-06-22 Thread Philip Olson
On Sun, 22 Jun 2003, Jason Wong wrote: > On Sunday 22 June 2003 06:00, Dan Anderson wrote: > > I have a form which feeds into an e-mail. When I use the mail function > > all 's turn into \'s and all "s turn into \"s. > > Are you sure it's the mail() function that's doing it? I doubt it. > > >

Re: [PHP] Is there a way to get rid of \' and \" ?

2003-06-22 Thread Jason Wong
On Sunday 22 June 2003 06:00, Dan Anderson wrote: > I have a form which feeds into an e-mail. When I use the mail function > all 's turn into \'s and all "s turn into \"s. Are you sure it's the mail() function that's doing it? I doubt it. > I tried > set_magic_quotes_runtime(0) and it didn't d

Re: [PHP] Is there a way to get rid of \' and \" ?

2003-06-21 Thread Brad Pauly
On Sat, 2003-06-21 at 16:00, Dan Anderson wrote: > I have a form which feeds into an e-mail. When I use the mail function > all 's turn into \'s and all "s turn into \"s. I tried > set_magic_quotes_runtime(0) and it didn't do anything, neither did > urldecode(). Is there a function to strip esca

Re: [PHP] Is there a way to access all the variables in my script?

2003-03-21 Thread Marek Kilimajer
$GLOBALS Daevid Vincent wrote: Is there some global array or something that contains all the variable names (not even values per se) that are used in my script. Here's the scenario. Like most of you, I do a lot of mySQL db work. So I tend to use this: if (mysql_num_rows($result) > 0) { $row = m

Re: [PHP] IS there a way.

2003-03-01 Thread Ernest E Vogelsinger
At 05:40 01.03.2003, Philip J. Newman said: [snip] > Is there a way to PING a URL and check if it returns a valid code like 200 >... ?? [snip] Ping doesn't return a "200 OK" code... If you want to check for the exist

Re: [PHP] IS there a way.

2003-02-28 Thread Leif K-Brooks
Try using exec() or backticks. Philip J. Newman wrote: Is there a way to PING a URL and check if it returns a valid code like 200 ... ?? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Sebastian
this question was answered about 15 times already ;) warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 12:52 AM Subject: Re: [

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Sunfire
yes include("filename.php"); - Original Message - From: "Rohin Gosling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 23, 2003 2:59 PM Subject: [PHP] Is there a way to "include" php source files in a php script ? > Is there a way to include a *.php source file from i

Re: [PHP] Is there a way to "include" php source files in a php script ?

2003-02-23 Thread Ernest E Vogelsinger
At 20:59 23.02.2003, Rohin Gosling said: [snip] >Is there a way to include a *.php source file from inside another php source >file, in a similar fashion to the way you use the "include" directive in C >or C++ ? [snip]

Re: [PHP] Is there a way to retrieve an entire source code from a phpfile?

2003-02-05 Thread Chris Hayes
There is a php file that retrieve the source code from the url www.url.com and this source is treated and you get content from this file and show it on the response page. Is this possible? Can anyone show me the right direction? yes, codeword is 'ripping', i found some hits on google with php

Re: [PHP] Is there a way to retrieve an entire source code from aphp file?

2003-02-04 Thread Philip Olson
On 4 Feb 2003, Adam Voigt wrote: > I believe he meant the HTML source of an HTML page. An example in the manual does exactly this: http://www.php.net/file Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to retrieve an entire source code from aphp file?

2003-02-04 Thread Adam Voigt
I believe he meant the HTML source of an HTML page. On Tue, 2003-02-04 at 11:02, 1LT John W. Holmes wrote: No, you can only get the output of the PHP script, not it's source code. ---John Holmes... - Original Message - From: "Th

Re: [PHP] Is there a way to retrieve an entire source code from a php file?

2003-02-04 Thread 1LT John W. Holmes
No, you can only get the output of the PHP script, not it's source code. ---John Holmes... - Original Message - From: "The New Source" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 11:57 AM Subject: [PHP] Is there a way to retrieve an entire source code from

Re: [PHP] Is there a way to retrieve an entire source code from aphp file?

2003-02-04 Thread Adam Voigt
$f = fopen("http://www.download.com/index.html","r"); $data = "" fclose($f); echo $data; On Tue, 2003-02-04 at 11:57, The New Source wrote: What I want to know is if it is possible to retrieve a source code from a url, with a php file. Something like this:

Re: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
I had it figured out!! Don't need to decrypt it. Instead, I can encrypt the account number by javascript. Grab the unencrypted account number. Put it into two variable, encrypt the first one with PHP and match it by Javascript. If accept then I use the 2nd variable to grab the data from the d

Re: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Brad Pauly
> Hi! Is there a way to do the decryption of the encrypted data with the use > of md5()?? Nope. md5 is a one way function. http://www.faqs.org/faqs/cryptography-faq/part07/ Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to test for a file?

2002-10-08 Thread Andy Woolley
> I'd like PHP to check to see if the image/picture.jpg exists before > returning the picture. Is this possible? Yup - It's in the manual. http://www.php.net/manual/en/function.file-exists.php Cheers Andy - Original Message - From: "Doug Coning" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: [PHP] Is there a way to test for a file?

2002-10-08 Thread Vidyut Luther
http://www.php.net/manual/en/ref.filesystem.php you can see that there is a function called file_exists, is_file, is_readable etc etc.. hope this helps. thats the PHP Filesystem function specific manual, On Tuesday 08 October 2002 09:59, Doug Coning wrote: > Hi everyone, > > I'm a PHP newb

Re: [PHP] Is there a way?

2002-07-16 Thread Chris Crane
Ok so let me ask one last question.. Which it faster, to run my function and part of the function would be to get data from a website and break it into variables then make all the html and variables one new variable for printing or Get my data put into variables made global and then in my HT

  1   2   >