Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread clive
Larry Bradley wrote: I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, using the following Javascript co

Re: [PHP] Limiting speed when using CURL functions

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 6:55 am, Tijnema ! wrote: > On 3/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Mon, March 12, 2007 7:14 am, Tijnema ! wrote: >> > Is there any way i can limit the transfer speed when using CURL? >> > >> > I'm uploading a file to a server, and i don't want the script t

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote: > Tijnema wrote: >> Did you guys ever noted that little arrow down just right of >> the back button, where you can go back 2 steps at once, so you >> don't have to click very fast? > > I think we both remember browsing before that feature was i

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 3:50 pm, Tijnema ! wrote: > On 3/13/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: >> Robert Cummings wrote: >> > I've found clicking really fast can get you back :) >> >> I, too, have successfully used this technique. :-) >> >> Chris > Did you guys ever noted that little arro

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 3:41 pm, Chris Shiflett wrote: > Robert Cummings wrote: >> I've found clicking really fast can get you back :) > > I, too, have successfully used this technique. :-) +1 Sometimes "back" button followed at just the right time by "top" so I get the HTML, but no JS runs. --

Re: [PHP] re regex error

2007-03-14 Thread Jim Lucas
jekillen wrote: Hello again; Regarding the error I was inquiring about: Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on line 81 I still would like to know what it means but I solved the script problem. I found that since $groups is a string that was exploded to form the $g_lis

Re: [PHP] Class and subclass

2007-03-14 Thread Richard Lynch
I think you'd need to take this up with Zend if they are claiming it's invalid syntax when it is valid. If it's really not valid, I'm not seeing why, but what do I know? On Tue, March 13, 2007 4:18 am, Alain Roger wrote: > Hi Richard, > > In fact the problem is that under Zend Studio editor, when

Re: [PHP] register_globals and passing variables

2007-03-14 Thread Larry Garfield
Firstly, welcome to PHP. :-) Secondly, that's not how you would enable register_globals if they're not enabled. Thirdly, you do not want to turn on register_globals. register globals are a security risk. They're disabled by default on any recent (within the past 5 years) version of PHP, alth

Re: [PHP] Regex error

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 7:56 pm, jekillen wrote: > Hello; > The following regex: > > ereg(" id='$m[1]'>", $groups, $m1); > > is causing the following error: > > Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on > line 81 > > Can someone tell me what this means? You used to have the -

Re: [PHP] Passing Variables

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 9:14 pm, Jeff wrote: > I've read and the wrote back and told me that they use suPHP to parse > php > files and I have the option of using custom php.ini files. That I > could > create a .htaccess file or put individual php.ini files in the folder > that > contains the files i

Re: [PHP] register_globals and passing variables

2007-03-14 Thread Bruce Cowin
Hi Jeff, You want to leave register_globals OFF. Depending on how $charid is passed, you want to use $_POST or $_GET: $charid = $_POST['charid']; or $charid = $_GET['charid']; I think you'll need to do the same for your $db_select variable. Is that what you're after? Regards, Bruce >>>

[PHP] re regex error

2007-03-14 Thread jekillen
Hello again; Regarding the error I was inquiring about: Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on line 81 I still would like to know what it means but I solved the script problem. I found that since $groups is a string that was exploded to form the $g_list array it may ha

[PHP] Passing Variables

2007-03-14 Thread Jeff
Ok, all I am new to PHP & MySQL. (please don't let this scare you off) I had my site hosted with Gisol.com and due to their very poor service and tech support I left them for Lunarpages.com who so far have a better service and their tech support is excellent!! But my pages won't pass variables any

[PHP] Can a Form Action transfer to another file that is a form?

2007-03-14 Thread Stephen
I have a script file that is both the form and action handle (using isset), which is a menu selection. If the action handler is executing it is a switch statement that will chose the next form. I would like to transfer to another script file that is also a combination form and handler. Can

[PHP] register_globals and passing variables

2007-03-14 Thread Jeff
Ok, all I am new to PHP & MySQL. (please don't let this scare you off) I had my site hosted with Gisol.com and due to their very poor service and tech support I left them for Lunarpages.com who so far have a better service and their tech support is excellent!! But my pages won't pass variables a

Re: [PHP] Regex error

2007-03-14 Thread Myron Turner
jekillen wrote: Hello; The following regex: ereg("id='$m[1]'>", $groups, $m1); is causing the following error: Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on line 81 Can someone tell me what this means? What I am trying to do is pick out some info from an xml tag the is id'd

[PHP] Re: Regex error

2007-03-14 Thread Al
Get The Regex Coach http://weitz.de/regex-coach/ Use preg_match_all() Build your pattern one step at a time using the coach. Don't forget the delimiters. jekillen wrote: Hello; The following regex: ereg("id='$m[1]'>", $groups, $m1); is causing the following error: Warning: ereg() [functi

[PHP] Regex error

2007-03-14 Thread jekillen
Hello; The following regex: ereg("id='$m[1]'>", $groups, $m1); is causing the following error: Warning: ereg() [function.ereg]: REG_ERANGE in _proc.php on line 81 Can someone tell me what this means? What I am trying to do is pick out some info from an xml tag the is id'd by $m[1] ( a ma

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Ben Ramsey
On 3/13/07 4:50 PM, Tijnema ! wrote: Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 steps at once, so you don't have to click very fast?? Browsers have buttons in them? Next thing, you'll be telling me I can see images and color in my brow

Re: [PHP] Re: Using a reentrant form

2007-03-14 Thread Tony Marston
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > And if the user re-loads the page they just POSTed? Easy peasy. After a successful POST I perform a redirect, either to the same page or a different, which changes the POST into a GET. So if the user presses the "r

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 6:22 am, Seak, Teng-Fong wrote: > Richard Lynch wrote: >> I wonder if the changes that allow for Interntional domain names, >> with >> various Unicode characters I don't even know how to get out of my >> keyboard, *ALSO* made _ suddenly be legal... >> >> Just a hypothesis. >>

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 6:52 am, Myron Turner wrote: > Richard Lynch wrote: >> On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: >> The = operator takes precedence, and $d is set to 0. >> > But why? According to the manual, the modulus operator has precedence > over the equals! So shouldn't th

RE: [PHP] Re: question regarding form filtering

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 9:07 am, Tim wrote: >> You almost for sure do *NOT* want to attempt to send the >> entire Webster's 2nd Edition dictionary to the browser as JS >> data so that the JS can check. :-) > > Hehe, oh? Really? ;-) > >> I suppose you could do a Web 2.0 Ajax-y thingie for that...

Re: [PHP] Environment variables...

2007-03-14 Thread Richard Lynch
PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. If you alter the environment of the PHP user you might get what you want. You may also be able to use http://php.net/setenv And http://php.net/getenv is probably faster

RE: [PHP] $_POST array order

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 17:23 -0500, Richard Lynch wrote: > On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote: > > You could also omit the "name" parameter of the submit button and it > > will > > not even be passed at all. > > > > > > I dunno about these new-fangled browsers, but in the old ones,

Re: [PHP] Parse

2007-03-14 Thread Richard Lynch
No space in the function name 'phpinfo' If that's not it, show us your source code. On Wed, March 14, 2007 9:53 am, al phillips wrote: > I keep getting a parse error line x > when trying view php info() > Can you help please? > > > - > Be a PS3 game guru. >

Re: [PHP] Re: Using a reentrant form

2007-03-14 Thread Richard Lynch
And if the user re-loads the page they just POSTed? On Wed, March 14, 2007 10:24 am, Tony Marston wrote: > I honestly don't know why people use the approach of having a hidden > field > on a re-entrant form to indicate whether it should be validated or > not. I > have used re-entrant forms for yea

Re: [PHP] logging erros and user access to logs

2007-03-14 Thread Richard Lynch
Get the errors OFF the web page (display_errors OFF) and into the logs and provide your users with logs for their own domains with vhosts. On Wed, March 14, 2007 11:02 am, Jason Joines wrote: > My users want to be able to debug their scripts, see mysql errors, > and such. Using mysql_error(),

RE: [PHP] $_POST array order

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote: > You could also omit the "name" parameter of the submit button and it > will > not even be passed at all. > > I dunno about these new-fangled browsers, but in the old ones, you'd get "Submit" as the name if the user clicked on the button, and n

Re: [PHP] $_POST array order

2007-03-14 Thread Richard Lynch
On Wed, March 14, 2007 11:58 am, Tim wrote: > Quick question regarding $_POST array element order, first the > situation: > > I am submitting a form with x first fields and the post value returns > the > last element as being the submit button name and value > > Is it safe to consider that the last

Re: [PHP] PHP URL issues

2007-03-14 Thread Jim Lucas
Steve wrote: I personally have not unfortunately. A good friend of mine is also a developer who initially told me about it when I first began coding. Because I don't want to stick with the he-said, she-said approach, I did a quick google search and came up with this link: http://spindrop.us/2

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-14 Thread Børge Holen
On Tuesday 13 March 2007 22:09, Tijnema ! wrote: > On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: > > On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > > > So you just need to set the content-type and output > > > add this to the bottom of the script: > > > header("Content-Type: ".$encodedda

Re: [PHP] $_POST array order

2007-03-14 Thread Tijnema !
On 3/14/07, Tim <[EMAIL PROTECTED]> wrote: Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last element

Re: [PHP] Environment variables...

2007-03-14 Thread Erik Jones
Well, as David BERCOT pointed out, if this is in a web environment then the environment available to php will be that of whatever user your web server is running as (probably 'nobody' if you're on apache, not sure about other web servers). So, you'll need to look at making that variable av

Re: [PHP] Referring URL Authentication

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 16:23 +, Matthew Vickery wrote: > Robert Cummings wrote: > > On Wed, 2007-03-14 at 14:50 +, Matthew Vickery wrote: > >> The situation is as follows: > >> I wish to protect the entire Website http://www.example.com from > >> direct URL access. i.e. if someone enters htt

Re: [PHP] Re: $_POST array order

2007-03-14 Thread Jochem Maas
Al wrote: > Why not simply unset() the unwanted value by its key, i.e., the submit > button's name. actually double unset it. to avoid the request array key hack that exists in older versions of php :-) > > Tim wrote: >> Hi, >> >> Quick question regarding $_POST array element order, first the si

RE: [PHP] $_POST array order

2007-03-14 Thread Tim
> -Message d'origine- > De : Brad Fuller [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 18:29 > À : 'PHP' > Objet : RE: [PHP] $_POST array order > > > -Original Message- > > From: Tim [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 14, 2007 12:58 PM > > To: 'PH

Re: [PHP] variables in CSS in PHP question/problems

2007-03-14 Thread tedd
At 2:15 AM -0500 3/14/07, Richard Lynch wrote: Surf directly to your CSS URL and see what happens. There are several possibiliies: #1. Your CSS has in its output, because you have not convinced your web-server to run your CSS file through PHP to compute the dynamic result. You need something l

RE: [PHP] $_POST array order

2007-03-14 Thread Brad Fuller
> -Original Message- > From: Tim [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 14, 2007 12:58 PM > To: 'PHP' > Subject: [PHP] $_POST array order > > Hi, > > Quick question regarding $_POST array element order, first the situation: > > I am submitting a form with x first fields and t

RE: [PHP] Re: $_POST array order

2007-03-14 Thread Tim
> -Message d'origine- > De : Al [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 18:03 > À : php-general@lists.php.net > Objet : [PHP] Re: $_POST array order > > Why not simply unset() the unwanted value by its key, i.e., > the submit button's name. Good point... But this me

[PHP] wxWidget/.NET like framework for PHP ?

2007-03-14 Thread David CHATEL
Hello, I am currently thinking about a php framework dedicated to web applications with rich client interfaces using AJAX. The goal of this framework is to provide the possibility to write rich web applications using a syntax similar to wxWidgets or .NET. An example is better than a long story

[PHP] Re: $_POST array order

2007-03-14 Thread Al
Why not simply unset() the unwanted value by its key, i.e., the submit button's name. Tim wrote: Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name

[PHP] $_POST array order

2007-03-14 Thread Tim
Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name and value Is it safe to consider that the last element in the $_POST array will ALWAYS be the submi

[PHP] logging erros and user access to logs

2007-03-14 Thread Jason Joines
My users want to be able to debug their scripts, see mysql errors, and such. Using mysql_error(), and display_errors, problems such as non-existent databases, or variable and such seem to get printed to the screen. However, syntax errors do not. They get written to the global php log, for ex

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 17:15 +0100, Satyam wrote: > - Original Message - > From: "Robert Cummings" <[EMAIL PROTECTED]> > To: "Satyam" <[EMAIL PROTECTED]> > Cc: > Sent: Wednesday, March 14, 2007 4:49 PM > Subject: Re: Fw: [PHP] PHP URL issues > > > > On Wed, 2007-03-14 at 16:31 +0100, Sat

Re: [PHP] Referring URL Authentication

2007-03-14 Thread Matthew Vickery
Robert Cummings wrote: On Wed, 2007-03-14 at 14:50 +, Matthew Vickery wrote: The situation is as follows: I wish to protect the entire Website http://www.example.com from direct URL access. i.e. if someone enters http://www.example.com into their browser they get a message stating that they

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, March 14, 2007 4:49 PM Subject: Re: Fw: [PHP] PHP URL issues On Wed, 2007-03-14 at 16:31 +0100, Satyam wrote: One more example of a questionable benchmark, not wron

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
On 3/14/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 3/14/07, Jim Lucas <[EMAIL PROTECTED]> wrote: >> raaj sharma wrote: >> > Sir, >> > I am trying to use printer functions in my script.pls. help me. The >> printer is working fine with other documents of ms-word etc. >> > pls. h

Re: [PHP] PHP Printer

2007-03-14 Thread Jim Lucas
Tijnema ! wrote: On 3/14/07, Jim Lucas <[EMAIL PROTECTED]> wrote: raaj sharma wrote: > Sir, > I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. > pls. help me > > Thanx > Raaj > > The code is: > > $handle = printer

RE: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Tim
> -Message d'origine- > De : Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 16:48 > À : Tim; PHP > Objet : Re: [PHP] "cannot load mysql extension" - PHP > Installation on Vista/Apache > > Ave, > > Well good words there, I'm not gonna argue with you on

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
On 3/14/07, Jim Lucas <[EMAIL PROTECTED]> wrote: raaj sharma wrote: > Sir, > I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. > pls. help me > > Thanx > Raaj > > The code is: > > $handle = printer_open(""); > printe

Re: [PHP] PHP Printer

2007-03-14 Thread Jim Lucas
raaj sharma wrote: Sir, I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. pls. help me Thanx Raaj The code is: ?> It is giving errors like : Warning: printer_open() [function.printer-open]: couldn't connect t

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 16:31 +0100, Satyam wrote: > One more example of a questionable benchmark, not wrong but I wonder (as I > was doing in my previous) whether it is really representative. > > There are two main ways to handle strings, one is to malloc exactly the > required memory for each st

Re: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
Ave, Well good words there, I'm not gonna argue with you on that. And as much as I have heard general windows users crib about Vista's security features, I have heard same amount of praise by more 'developers' genre of users about its' security features. Your second suggestion of learning your OS

RE: [PHP] Referring URL Authentication

2007-03-14 Thread Tim
> -Message d'origine- > De : Robert Cummings [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 16:13 > À : Matthew Vickery > Cc : php-general@lists.php.net > Objet : Re: [PHP] Referring URL Authentication > > On Wed, 2007-03-14 at 14:50 +, Matthew Vickery wrote: > > The si

RE: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Tim
> -Message d'origine- > De : Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 15:05 > À : Richard Davey; PHP > Objet : Re: [PHP] "cannot load mysql extension" - PHP > Installation on Vista/Apache > > > You kidding me? I didn't know anything about that! Tha

Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
One more example of a questionable benchmark, not wrong but I wonder (as I was doing in my previous) whether it is really representative. There are two main ways to handle strings, one is to malloc exactly the required memory for each string and keep moving characters around from one chunk of

[PHP] Re: Using a reentrant form

2007-03-14 Thread Tony Marston
I honestly don't know why people use the approach of having a hidden field on a re-entrant form to indicate whether it should be validated or not. I have used re-entrant forms for years without such a thing. How? Quite simply there are two phases to a form - GET, which requests a form from the s

Re: [PHP] Referring URL Authentication

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 14:50 +, Matthew Vickery wrote: > The situation is as follows: > I wish to protect the entire Website http://www.example.com from > direct URL access. i.e. if someone enters http://www.example.com into > their browser they get a message stating that they are not authorised

Re: [PHP] Re: [!! SPAM] [PHP] Parse

2007-03-14 Thread Tijnema !
On 3/14/07, Andrei <[EMAIL PROTECTED]> wrote: al phillips wrote: > I keep getting a parse error line x > when trying view php info() > Can you help please? > > > - > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! Gam

Re: [PHP] Parse

2007-03-14 Thread Németh Zoltán
2007. 03. 14, szerda keltezéssel 07.53-kor al phillips ezt írta: > I keep getting a parse error line x > when trying view php info() > Can you help please? no, if you don't post the exact error message and your code here btw, it is probably a typo in your code at line x, but we cannot see it

[PHP] Re: [!! SPAM] [PHP] Parse

2007-03-14 Thread Andrei
al phillips wrote: > I keep getting a parse error line x > when trying view php info() > Can you help please? > > > - > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! Games. > . > > Or maybe you should try with ph

Re: [PHP] Parse

2007-03-14 Thread Andrei
al phillips wrote: > I keep getting a parse error line x > when trying view php info() > Can you help please? > > > - > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! Games. > . > > And the code you use would lo

Re: [PHP] Referring URL Authentication

2007-03-14 Thread Tijnema !
On 3/14/07, Matthew Vickery <[EMAIL PROTECTED]> wrote: The situation is as follows: I wish to protect the entire Website http://www.example.com from direct URL access. i.e. if someone enters http://www.example.com into their browser they get a message stating that they are not authorised to acces

[PHP] Parse

2007-03-14 Thread al phillips
I keep getting a parse error line x when trying view php info() Can you help please? - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games.

Re: [PHP] Environment variables...

2007-03-14 Thread David BERCOT
Le Wed, 14 Mar 2007 09:42:13 -0500, Erik Jones <[EMAIL PROTECTED]> a écrit : > Depending on your system and environment (platform and cli v. cgi), > they should be in either of the $_ENV or $_SESSION superglobals. It is Debian... But the variable I added is not in $_ENV or $_SESSION superglobals

[PHP] Referring URL Authentication

2007-03-14 Thread Matthew Vickery
The situation is as follows: I wish to protect the entire Website http://www.example.com from direct URL access. i.e. if someone enters http://www.example.com into their browser they get a message stating that they are not authorised to access the site. The only way to access http://www.example.c

Re: [PHP] Environment variables...

2007-03-14 Thread David BERCOT
Le Wed, 14 Mar 2007 15:40:28 +0100, "Tijnema !" <[EMAIL PROTECTED]> a écrit : > On 3/14/07, David BERCOT <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'd like to read an environment variable with PHP. > > I've tried with : > >exec ('echo $CONTEXTE_D_EXECUTION',$result); > > $result is empty !

Re: [PHP] Environment variables...

2007-03-14 Thread Erik Jones
Depending on your system and environment (platform and cli v. cgi), they should be in either of the $_ENV or $_SESSION superglobals. On Mar 14, 2007, at 9:32 AM, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECU

Re: [PHP] Environment variables...

2007-03-14 Thread Tijnema !
On 3/14/07, David BERCOT <[EMAIL PROTECTED]> wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worke

[PHP] Environment variables...

2007-03-14 Thread David BERCOT
Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible,

Re: [PHP] PHP URL issues

2007-03-14 Thread Steve
I personally have not unfortunately. A good friend of mine is also a developer who initially told me about it when I first began coding. Because I don't want to stick with the he-said, she-said approach, I did a quick google search and came up with this link: http://spindrop.us/2007/03/03/php-d

RE: [PHP] Re: question regarding form filtering

2007-03-14 Thread Tim
> -Message d'origine- > De : Richard Lynch [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 09:48 > À : Tim > Cc : 'Haydar Tuna'; php-general@lists.php.net > Objet : RE: [PHP] Re: question regarding form filtering > > I personally would not presume that PHP and JS regex patte

Re: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
You kidding me? I didn't know anything about that! That could be the solution! I'm gonna give this a try and see if that makes a difference. I'm using native mySQL btw, not mysqli. Thanks! On 3/14/07 9:54 AM, "Richard Davey" <[EMAIL PROTECTED]> wrote: > Rahul Sitaram Johari wrote: > >> 'cann

Re: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
You're probably on the right track here. I was doing some googling and I came across someone running Apache/PHP/mySQL on a Windows 2000 computer and was getting the exact same error. They found out it was a Security issue since administrative rights were not being delivered to required application

Re: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Tijnema !
On 3/14/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, I recently configured & Installed PHP on my Windows Vista PC, running Apache 2.2 Web Server. MySQL 5 was also installed. Apache is running fine ­ mySQL is running fine ­ PHP is running fine. The problem is, I¹m getting this error

Re: [PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Richard Davey
Rahul Sitaram Johari wrote: 'cannot load mysql extension, please check PHP Configuration'. I¹ve installed PHP on XP computers hundreds of times, so I¹m not exactly a newbie to this, but I¹m not sure if it¹s Vista causing the problem or I¹m doing something wrong. Which MySQL extension are you

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Jonathan Kahan
Thanks for alll the feedback. I also needed to correct a logic issue with this code to check that a number not be divisible by 2 as my function was stating all perfect powers of 2 were prime. I need to remeber as I move from other languages the difference between = and ==. Of course I will be mo

RE: [PHP] question regarding form filtering

2007-03-14 Thread Tim
> -Message d'origine- > De : Richard Lynch [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 14 mars 2007 09:39 > À : Tim Earl > Cc : php-general@lists.php.net > Objet : Re: [PHP] question regarding form filtering > > I use PCRE for filtering all the time. > > As a general rule, be sure y

Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-14 Thread markw
> On Tue, March 13, 2007 7:27 pm, Mark wrote: >> I have a web session management server that makes PHP clustering easy >> and >> fast. I have been getting a number of requests for some level of >> redundancy. >> >> As it is, I can save to an NFS or GFS file system, and be redundant >> that >> way.

Re: [PHP] dst and strtotime

2007-03-14 Thread Tijnema !
On 3/14/07, Jake McHenry <[EMAIL PROTECTED]> wrote: > He meant + 24 * 60 * 60 not * 24 * 60 * 60 > > The idea is to ADD the number of seconds in one day to shift your time > over by one day, not to multiply the time by the number of seconds in > one day, which is just plain ridiculously high num

[PHP] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
Ave, I recently configured & Installed PHP on my Windows Vista PC, running Apache 2.2 Web Server. MySQL 5 was also installed. Apache is running fine ­ mySQL is running fine ­ PHP is running fine. The problem is, I¹m getting this error when I try to run a PHP page which needs to connect to the myS

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 07:42 -0500, Myron Turner wrote: > Robert Cummings wrote: > > On Wed, 2007-03-14 at 12:57 +0100, Tijnema ! wrote: > > > >> On 3/14/07, Myron Turner <[EMAIL PROTECTED]> wrote: > >> > >>> Richard Lynch wrote: > >>> > On Tue, March 13, 2007 6:04 pm, Jonathan K

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Myron Turner
Robert Cummings wrote: On Wed, 2007-03-14 at 12:57 +0100, Tijnema ! wrote: On 3/14/07, Myron Turner <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 would be in

Re: [PHP] dst and strtotime

2007-03-14 Thread Jake McHenry
He meant + 24 * 60 * 60 not * 24 * 60 * 60 The idea is to ADD the number of seconds in one day to shift your time over by one day, not to multiply the time by the number of seconds in one day, which is just plain ridiculously high number beyond the scale of Unix time stamp. I would recommend ch

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 12:57 +0100, Tijnema ! wrote: > On 3/14/07, Myron Turner <[EMAIL PROTECTED]> wrote: > > Richard Lynch wrote: > > > On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: > > > > > >> This did fix the problem but I am amazed that > > >> > > >> $s%$d=0 would be interpereted as a

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 06:52 -0500, Myron Turner wrote: > Richard Lynch wrote: > > On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: > > > >> This did fix the problem but I am amazed that > >> > >> $s%$d=0 would be interpereted as a statement assigning d to 0 since > >> there is > >> some oth

Re: [PHP] Variable variables and references

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 12:39 +0100, Jochem Maas wrote: > Richard Lynch wrote: > > On Sat, March 10, 2007 6:28 am, Dave Goodchild wrote: > >> Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I > >> think > >> it's a great book, I am confused about variable variables and > >> refere

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 08:59 +0100, Tijnema ! wrote: > On 3/14/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: > > Tijnema wrote: > > > Did you guys ever noted that little arrow down just right of > > > the back button, where you can go back 2 steps at once, so you > > > don't have to click very fast?

Re: [PHP] PHP URL issues

2007-03-14 Thread Satyam
There are lies, damned lies and statistics. Had he known about benchmarks! I have already tried different ways of producing output and I completely disagree that concatenating the pieces and then echoing them is the best. In a first try, I found that echoing the separate parts as arguments to

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Tijnema !
On 3/14/07, Myron Turner <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: > On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: > >> This did fix the problem but I am amazed that >> >> $s%$d=0 would be interpereted as a statement assigning d to 0 since >> there is >> some other stuff in front of

Re: [PHP] Limiting speed when using CURL functions

2007-03-14 Thread Tijnema !
On 3/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, March 12, 2007 7:14 am, Tijnema ! wrote: > Is there any way i can limit the transfer speed when using CURL? > > I'm uploading a file to a server, and i don't want the script to f*** > up all > bandwidth. I don't recall ever seeing that

Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Myron Turner
Richard Lynch wrote: On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile time si

Re: [PHP] Variable variables and references

2007-03-14 Thread Jochem Maas
Richard Lynch wrote: > On Sat, March 10, 2007 6:28 am, Dave Goodchild wrote: >> Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I >> think >> it's a great book, I am confused about variable variables and >> references - >> not the mechanics, just where you would use them. >> >>

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-14 Thread Seak, Teng-Fong
Richard Lynch wrote: > I wonder if the changes that allow for Interntional domain names, with > various Unicode characters I don't even know how to get out of my > keyboard, *ALSO* made _ suddenly be legal... > > Just a hypothesis. > > I gotta say that Apache being current on RFCs and IE being brok

Re: [PHP] PLS HELP ME

2007-03-14 Thread Tijnema !
On 3/14/07, raaj sharma <[EMAIL PROTECTED]> wrote: Sir, I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. i am trying it on localhost. Is it needed to make any changes in php.ini. if so how it will work on the serve

Re: [PHP] PHP Printer

2007-03-14 Thread Tijnema !
On 3/14/07, raaj sharma <[EMAIL PROTECTED]> wrote: $handle = printer_open(); again it is giving same errors. i am trying it on localhost. Is it needed to make any changes in php.ini. if so how it will work on the server. Thanx Raaj You have not set a default printer in php.ini, and php can't

Re: [PHP] session/login issue

2007-03-14 Thread Németh Zoltán
2007. 03. 14, szerda keltezéssel 03.08-kor Richard Lynch ezt írta: > Check the before/after php.ini settings. > > My first guess is they finally turned register_globals OFF and the > Plesk code is relying on register_globals. Upgrade, fix, or abandon > Plesk if that's the case. > > My second gues

[PHP] Re: question for "translating" fsockopen into CURL

2007-03-14 Thread Chin
Yeni Setiawan wrote: > dear all. > > I'm currently writing a script that connect to specific IP (server) at a > specific port (1950). > then I need to send some parameters and the server will give me a reply. > > too bad, my current webhost no longer accept fsockopen(). > so I need to translate m

[PHP] Re: question for "translating" fsockopen into CURL

2007-03-14 Thread Chin
Yeni Setiawan wrote: > dear all. > > I'm currently writing a script that connect to specific IP (server) at a > specific port (1950). > then I need to send some parameters and the server will give me a reply. > > too bad, my current webhost no longer accept fsockopen(). > so I need to translate m

  1   2   >