Re: [PHP] Extracting Variables From URL

2007-05-16 Thread J R
http://www.php.net/reserved.variables use $_SERVER['PHP_SELF'] or $_SERVER['REQUEST_URI'] just parse its value to get what you needed. hth, John On 5/17/07, CK [EMAIL PROTECTED] wrote: Hi All, The following code works just fine for outputting links from an array. The next goal, is parsing

Re: [PHP] Filtering _REQUEST.. Why is this bad?

2007-02-13 Thread J R
to pass your page using POST.(like i said be careful and not over use because of lazyness) (i hope i'm being clear) On 2/14/07, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 12, 2007 8:41 pm, J R wrote: it is not adviced to do filtering on _REQUEST getting data in general from

Re: [PHP] Filtering _REQUEST.. Why is this bad?

2007-02-12 Thread J R
here's my opinion on the matter. it is not adviced to do filtering on _REQUEST getting data in general from it actually. It is much better to specify where your data is coming from ( e.g. _POST or _GET). This is because variable _REQUST contains all the data from the cookies, get and post. and

Re: [PHP] Text Editor for Windows?

2007-02-07 Thread J R
if you want a very lightweight use notepad2[1] i use php eclipse though :) [1] http://www.flos-freeware.ch/notepad2.html On 2/8/07, Ryan Fielding [EMAIL PROTECTED] wrote: Stephen wrote: I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers.

Re: [PHP] How do you do the ? mark after a filename

2006-11-12 Thread J R
using form method=get..., it is automatically generated but you can also do it manually in your anchor tag like so: a href= www.domain.com/index.php?id=35format=htmlclick me/a in your php you can get its value by use of the $_GET variable. hth, john On 11/13/06, Thomas Bonham [EMAIL PROTECTED]

Re: [PHP] Month in a numeric form

2006-10-15 Thread J R
http://www.php.net/manual/en/function.strtotime.php http://www.php.net/manual/en/function.date.php On 10/16/06, Ron Piggott (PHP) [EMAIL PROTECTED] wrote: Is there a way I am able to use the DATE command to convert January to 1, February to 2, etc. -- GMail Rocks!!!

Re: [PHP] Apply the hyper link ( javascript functon ) with php

2006-10-08 Thread J R
echo 'a href=javascript:popup(\'index.htm\') Test /a'; On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] newbie php tutorial question

2006-10-02 Thread J R
run this bit of code to check if everything is working. ?php phpinfo(); ? On 10/2/06, Stut [EMAIL PROTECTED] wrote: srdaniel wrote: I setup Apache 2.2.3.0 and PHP 5.1.6.6. When I run this PHP file: html head titlePHP Test/title /head body ?php echo 'pHello

Re: [PHP] Hotmail and junk mail

2006-10-02 Thread J R
if i get you right. your email to hotmail goes to junk/spam mail? i think i encounter this way way back when our email domain got listed into spam emailer :D so better check if your domain is on that list. i forgot what was the URL. anyway just an idea. hth, John On 10/2/06, Stefan van der

Re: [PHP] Affiliate system

2006-09-13 Thread J R
use session. or you can store it in a database but that will take speed. :) using session is much better rather than using cookies for lots of reason (just google) specially if you are concered with security. just my 2cents. hth, john p.s. if the client cookies is disabled set to true the

Re: [PHP] register globals on

2006-09-12 Thread J R
there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example: $test = 'i'm global'; function f1() { echo $_GLOBAL['test']; // should display i'm global

Re: [PHP] register globals on

2006-09-12 Thread J R
correction: $GLOBALS not $_GLOBAL :) cheers On 9/12/06, J R [EMAIL PROTECTED] wrote: there are many ways you can keep information. now if you must really use global. you can still use global even if the server is set to global off by using $_GLOBAL or using globals decleration. example

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread J R
i'm just going to guess. check your settings if it allows to open external files, especifically allowed to fopen url. http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen hth, john On 9/13/06, R B [EMAIL PROTECTED] wrote: I think it's a security https problem. I was reading

Re: [PHP] Quotes?

2006-09-05 Thread J R
On 9/6/06, Gustav Wiberg [EMAIL PROTECTED] wrote: I want to save this to a string... script language=javascript var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); document.write('a

Re: [PHP] How to add user to linux using php

2006-09-04 Thread J R
you have to understand that the adduser is a previledge command and a root only command (unless you allowed other users) and normally php will and should be running in a restricted access. normally it is running as user apache/user/nobody (depends on your settings) now there are two ways you can

Re: [PHP] php generated javascript

2006-08-30 Thread J R
put this at the top of your script ob_start(); or before any output. On 8/31/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look

Re: [PHP] Re: Regex

2006-08-21 Thread J R
http://www.php.net/manual/en/reference.pcre.pattern.syntax.php On 8/22/06, Alex Turner [EMAIL PROTECTED] wrote: If what you mean is a db table, then it would seem to me that you should not be using a regex. PHP has rawurlencode() for this sort of thing. But - you should learn regex ;-) Try

Re: [PHP] header lost session variables.

2006-08-14 Thread J R
On 8/15/06, João Cândido de Souza Neto [EMAIL PROTECTED] wrote: I´m in the follow location: https://www2.../?modulo=seguroacao=identifica And in my script i use header(Location: ./?modulo=seguroacao=novo_cadastro) i normally do header(Location: ?modulo=seguroacao=novo_cadastro);

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
try to use this few lines of code. function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes is on or off. ** On 8/10/06, Chris [EMAIL PROTECTED] wrote: [EMAIL

Re: [PHP] problem with quotes (single and double) in forms

2006-08-09 Thread J R
, Chris [EMAIL PROTECTED] wrote: Chris wrote: Chris wrote: J R wrote: try to use this few lines of code. function stripMagicQuotes($var) { if (get_magic_quotes_gpc()) { $var= stripslashes($var); } return $var; } this way you don't really have to worry if magic quotes