Re: [PHP] Japanese Language

2004-02-13 Thread - Edwin -
Once upon a time, KidLat Ngayon wrote: whenever i've open the file in staroffice, it can read the nihongo, however when i open it in microsoft office, it turns out that the nihongo are something like a garbage character. *Maybe* the problem lies with the fact that the file was saved (encod

Re: [PHP] Syntax

2004-02-13 Thread John Nichel
PETCOL wrote: This line is whats causing me all the greif: echo "\n"$_POST["Country"];"\n"; Parse error: parse error, expecting `','' or `';'' Suggestions or tutorials please ;-) Col You're wrapping the whole string in double quotes ("), not escaping the double quotes in your form e

Re: [PHP] General Function usage question (simple)

2004-02-13 Thread Jason Wong
On Saturday 14 February 2004 15:31, Dave Carrera wrote: > Here is an easy one for you :-) Indeed. > --- Example1 Function --- > > Function MyTestFunction(){ > // do something here > } > > --- Example2 Function --- > > Function MyTestFunction($var1,$var2){ > // do something here > } > > My ques

[PHP] Re: Constant PHP_OS and Mac Server

2004-02-13 Thread - Edwin -
I don't have a Mac Server here; only a G5 with the "ordinary" Panther ;) The answer must be the same though... Gerard Samuel wrote: I dont have a Mac handy to get the value of the constant PHP_OS. If anyone has access to a Mac, please reply to me with the output of var_dump( PHP_OS ); var_du

[PHP] Syntax

2004-02-13 Thread PETCOL
Hi People, PHP Newbie here again. trying to get HTML and PHP to work together really stumps me at times, I'm trying to output a selection from a form as so: Aruba \n"$_POST["Country"];"\n"; } else { echo "Australia\n"; } ?> Austria This line is w

[PHP] General Function usage question (simple)

2004-02-13 Thread Dave Carrera
Hi List, Here is an easy one for you :-) --- Example1 Function --- Function MyTestFunction(){ // do something here } --- Example2 Function --- Function MyTestFunction($var1,$var2){ // do something here } My question is what do or where do or why are the $var1 and or $var2 included inside th

Re: [PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 lol i meant you, but i wrote the other name instead... sorry again Adam Bregenzer wrote: On Sat, 2004-02-14 at 00:24, André Cerqueira wrote: strange bug happened on my newsreader... 'joel boonstra' regex seems to be the better one hehe all others forgo

Re: [PHP] Session, loging users in.

2004-02-13 Thread Adam Bregenzer
On Sat, 2004-02-14 at 13:48, Philip J. Newman wrote: > Whats the best information to add to a session to say a user is logged in? > > I currently have $siteUserLogIn="true"; > > anything else that I could add to beef up security? For storing user status use whatever fits your application best.

Re: [PHP] Re: preg guru question

2004-02-13 Thread Adam Bregenzer
On Sat, 2004-02-14 at 00:24, André Cerqueira wrote: > strange bug happened on my newsreader... > 'joel boonstra' regex seems to be the better one hehe > all others forgot that if u start with ', u must end with ' hehe (same > thing with " :p) As far as I could tell the regexp I posted was the onl

[PHP] Session, loging users in.

2004-02-13 Thread Philip J. Newman
Whats the best information to add to a session to say a user is logged in? I currently have $siteUserLogIn="true"; anything else that I could add to beef up security? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.

Re: [PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Jason Wong
On Saturday 14 February 2004 05:44, Scott Fletcher wrote: > I mean, I sometime found a few POST data had incorrectly went over to the > GET data. I don't know it's a PHP problem but more of a web browser > problem. If something like that really is happening then it seems like a pretty serious bu

[PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 oops... sorry strange bug happened on my newsreader... 'joel boonstra' regex seems to be the better one hehe all others forgot that if u start with ', u must end with ' hehe (same thing with " :p) i dont know why i used square brakets for \s... kinda

Re: [PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Richard Davey
Hello Michael, Saturday, February 14, 2004, 3:20:48 AM, you wrote: MTP> Thanks for the quick response, everyone, but I was hoping for something MTP> other than redirect()/header(). As I understand them, these services Why? it's a transparent operation and the site visitor will never even see it

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Michael T. Peterson
Thanks for the quick response, everyone, but I was hoping for something other than redirect()/header(). As I understand them, these services require the complete URL and I'm simply dispatching to another page within my web site (in fact, within the same directory) i.e., I'm looking to use a path-

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Phillip Jackson
if your do_login script doesn't require any cookies or session information you can just redirect right after auth: http://www.somewebsite.com";; //do stuff if($loggedin == true){ header("Location: " . $url); } else{ //possible postback with get var error i.e: header("Location: do_login.p

Re: [PHP] Linking to files in a mysql db

2004-02-13 Thread Richard Davey
Hello David, Friday, February 13, 2004, 9:25:30 PM, you wrote: DEN> how can I link to a file that is referenced in a mysql database. Depends what you mean by referenced in MySQL. If you have a URL that links to a file in your SQL table, then just turn it into an href. If the file is stored loca

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Richard Davey
Hello Scott, Friday, February 13, 2004, 8:43:59 PM, you wrote: SF> When I set the session.cache_expire to 60 minutes then on the webpage, SF> how do I get PHP to tell me that session had expired via PHP function or SF> something? Check for the existence of the session - if it's not there, it

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Marek Kilimajer
Scott Fletcher wrote: Hi! When I set the session.cache_expire to 60 minutes then on the webpage, how do I get PHP to tell me that session had expired via PHP function or something? Thanks, Scott F. None, but you can take care of the cleanout yourself. Than you have complete control over the

Re: [PHP] Hard links

2004-02-13 Thread Marek Kilimajer
BAO RuiXian wrote: Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is "hard links"? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is

RE: [PHP] Fedora FC1 + PHP 4.3.4 + phpMyAdmin 2.5.6 rc1 - Problems Resolving Included Files

2004-02-13 Thread Chris W. Parker
Radi Shourbaji on Friday, February 13, 2004 4:05 PM said: > Hello All! I'm struggling to get phpMyAdmin working correctly on a > new installation of Fedora FC1. What exactly are you having problems with? > I would appreciate it if someone could walk me > through t

Re: [PHP] Fedora FC1 + PHP 4.3.4 + phpMyAdmin 2.5.6 rc1 - Problems Resolving Included Files

2004-02-13 Thread BAO RuiXian
Radi Shourbaji wrote: Hello All! I'm struggling to get phpMyAdmin working correctly on a new installation of Fedora FC1. Despite my best efforts, phpMyAdmin keeps running into problems resolving included files. I'm sure that it has something to do with the settings in Apache / php.ini / .htacc

Re: [PHP] cli input and screen question(s)

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 18:25, Matthias Nothhaft wrote: > The other problem is: I would like to draw a screen > like midnight commander does. Is there a way to get that > work with PHP ? Ahh, sounds like a Slackware fan. :) You want to look at ncurses[1] in PHP. This lets you draw on a screen. It

RE: [PHP] cli input and screen question(s)

2004-02-13 Thread Chris W. Parker
Matthias Nothhaft on Friday, February 13, 2004 3:26 PM said: > The other problem is: I would like to draw a screen > like midnight commander does. Is there a way to get that > work with PHP ? midnight commander? never heard of it. but you might want to look into so

[PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 did you post the same message 7 times? try: '; $pattern = '//i'; $matchFound = preg_match_all ($pattern, $subject, $matches, PREG_SET_ORDER); print_r($matches); //$matches[$i][1] is what really matters ?> that pattern may not be the best regex to use,

Re: [PHP] cli input and screen question(s)

2004-02-13 Thread Richard Davey
Hello Matthias, Friday, February 13, 2004, 11:25:41 PM, you wrote: MN> does someone know how to "observe" the keyboard input MN> e.g. in a while loop so that I can do other stuff MN> between two keypresses!? MN> And is it possible to make a cli script responsable MN> for special keys like cursor

[PHP] Fedora FC1 + PHP 4.3.4 + phpMyAdmin 2.5.6 rc1 - Problems Resolving Included Files

2004-02-13 Thread Radi Shourbaji
Hello All! I'm struggling to get phpMyAdmin working correctly on a new installation of Fedora FC1. Despite my best efforts, phpMyAdmin keeps running into problems resolving included files. I'm sure that it has something to do with the settings in Apache / php.ini / .htaccess, etc but I've been pu

[PHP] Re: cli input and screen question(s)

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://br.php.net/manual/en/intro-whatcando.php "PHP is probably not the very best language to write windowing applications, but if you know PHP very well, and would like to use some advanced PHP features in your client-side applications you can also

[PHP] cli input and screen question(s)

2004-02-13 Thread Matthias Nothhaft
Hi all of you, does someone know how to "observe" the keyboard input e.g. in a while loop so that I can do other stuff between two keypresses!? And is it possible to make a cli script responsable for special keys like cursor, function (F1, F2...) or Control/Alt-[somekey], PageUp/Down, Enter, Esc,.

RE: [PHP] logo

2004-02-13 Thread Chris W. Parker
rostik on Friday, February 13, 2004 12:53 PM said: please don't send attachments to the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: compile problem

2004-02-13 Thread Scott Fletcher
Try specifying the file path where cURL reside on.. Like this --> "--with-curl=/usr//***" for example. Scott F. "Donpro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, trying to compile PHP 4.3.4. on RedHat Linux 7.3 and getting the following error: checking for CURL supp

[PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Al
Did you try print_r($_SESSION); to see if anything is getting into the buffer? Chris Wilson wrote: When in IE, submitting any form on our https page, the post variables intermittantly don't come through. The get variables come through fine. Just not the $_POST variables. I have tried everyth

Re: [PHP] Another preg question

2004-02-13 Thread Al
Didn't work. I'm beginning to think the problem is more involved. I am going to break out just the essentials of the code that is involved and debug just it. Thanks Matt Matijevich wrote: Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace("/\n\n+/", "\n\n",

[PHP] logo

2004-02-13 Thread rostik
begin 666 php5.jpg M_]C_X `02D9)[EMAIL PROTECTED]@$`2 !([EMAIL PROTECTED]@[EMAIL PROTECTED],` M```!``$```$:[EMAIL PROTECTED];``4!:@$H``,!``,```$Q M``(4<@$R``(4AH=I``0!G ```,@< [EMAIL PROTECTED]&AO=&]S:&]P(#7U5F9VAI:FML;6YO8W1U=G=X>7 MI[?'U^?W$0`"[EMAIL

[PHP] Re: HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Paul Furman
toptoptop texttexttexttexttexttexttext bot Matt Hedges wrote: Hello, I'm working on a webpage at http://hedges.org/busolemiss/template/index.html I need for a table cell to fill in the remaining space between some rows above and a row

Re: [PHP] Hard links

2004-02-13 Thread BAO RuiXian
Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is "hard links"? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is added to the curren

[PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Scott Fletcher
I mean, I sometime found a few POST data had incorrectly went over to the GET data. I don't know it's a PHP problem but more of a web browser problem. Scott F. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try the $_REQUEST variable, this is where both the $_GET a

RE: [PHP] [Q]PHP not taking input values from forms

2004-02-13 Thread Vail, Warren
I'd try to insert a simple echo statement, and figure out why it's not returning anything. try a file named phpinfo.php snip-- snip--- if your web server implementation is correct that should work. good luck, Warren Vail -Original

Re: [PHP] preg guru question

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 13:25, pete M wrote: > Im trying to scan a file and lift the image name from the > ie > > where there could be ' or " > > I messed around but am 2 embarassed to post code cos it dont work ;-( Always post code, it can help us understand what you are looking to do. Are yo

[PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Scott Fletcher
Try the $_REQUEST variable, this is where both the $_GET and $_POST come from and let us know how it goes... Scott F. "Chris Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When in IE, submitting any form on our https page, the post variables > intermittantly don't come thro

[PHP] Hard links

2004-02-13 Thread Ryan A
Hey, I was just going through the ioncube manual (thinking of making something like that, but much cheaper so everyone can afford itmaybe $20?) and came accross this: 3.5.1 Copying with Hard Links [--use-hard-links] The Encoder will normally perform a file copy into the target for non-encoded

[PHP] Linking to files in a mysql db

2004-02-13 Thread David E. Newberger
Hello all, I'm sorry to be asking such a simple question but I'm kind of new at this. how can I link to a file that is referenced in a mysql database. Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: syntax help

2004-02-13 Thread John Kaspar
If you want to actually want the variables $flyertotal, $emailtotal, and $phonetotal, use the line: ${$array[0]."total"} = $row[0]; But as you defined $array, that will actually create the variables $Flyertotal, $Emailtotal, and $Phonetotal (note the caps). On 2/13/2004 6:10 AM, Bob pilly wrot

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Chris W. Parker
Alex Hogan on Friday, February 13, 2004 1:10 PM said: > if($login == "successful"){ > $url = "yourin.php"; > } > else{ > $url = "tryagain.php": > } > > header("Location: $url"); don't forget the rest of the url and don't forget to exit like matt said...

Re: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Matt Matijevich
Can I avoid that intermediate step, somehow? When my script logs in the user, how to I write the code that dispatches directly to the home page? Have you tried a redirect? http://www.php.net/header http://www.example.com/";); /* Redirect browser */ /* Make sure that code below does not get

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Chris W. Parker
Michael T. Peterson on Friday, February 13, 2004 1:03 PM said: > I have written a very straightforward user login script. Once the > user successfully logs in, I would like my PHP script to take him > directly to the home page. [snip] > Can I avoid that intermediate

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Alex Hogan
Try..., if($login == "successful"){ $url = "yourin.php"; } else{ $url = "tryagain.php": } header("Location: $url"); alex > -Original Message- > From: Michael T. Peterson [mailto:[EMAIL PROTECTED] > Sent: Friday, February 13, 2004 3:03 PM > To: [EMAIL PROTECTED] > Subje

RE: [PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Chris W. Parker
Matt Hedges on Friday, February 13, 2004 1:00 PM said: > I need for a table cell to fill in the remaining space between some > rows above and a row below, no matter what the window size. I > thought this was possible with a height="*", but it doesn't work. you shou

[PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Michael T. Peterson
I have written a very straightforward user login script. Once the user successfully logs in, I would like my PHP script to take him directly to the home page. I know this sounds simple, but the only solution I've found is a function called do_html_url() from Welling and Thompson's book (see http:

[PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Matt Hedges
Hello, I'm working on a webpage at http://hedges.org/busolemiss/template/index.html I need for a table cell to fill in the remaining space between some rows above and a row below, no matter what the window size. I thought this was possible with a height="*", but it doesn't work. If you look at

[PHP] PHP 4.3.4 ftp_rawlist null output

2004-02-13 Thread Federico Petronio
Hi... I search about this and found different answers but not a clear one. Somebody talk about a PHP bug, other that it's solved in 4.3.4. I installer PHP 4.3.4 (without ftp-support) and Apache 2.0.48 on Solaris 8, the /tmp dir permission are 777. Time after that I compilled ftp.so module and i

[PHP] What PHP function can detect session being expired??

2004-02-13 Thread Scott Fletcher
Hi! When I set the session.cache_expire to 60 minutes then on the webpage, how do I get PHP to tell me that session had expired via PHP function or something? Thanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] compile problem

2004-02-13 Thread Sam Masiello
The --with-curl directive can also take a directory (--with-curl=[DIR}). Try passing in the directory where cURL is installed to. (I am not sure where this is since you didn't mention whether cURL is installed on your system via RPM or if you did it from source). Good luck! --Sam Donpro wrote

RE: [PHP] [Q]PHP not taking input values from forms

2004-02-13 Thread Dan Aloma
when i run that, it doesn't show return anything. I really don't understand what's going on with php. I know it's working fine, it's just not returning anything. Even scripts that I KNOW for a fact should be working (i.e. they work for everyone else), don't work for me. Any other ideas? I REALLY

Re: [PHP] Browser Detection another page

2004-02-13 Thread joel boonstra
On Fri, Feb 13, 2004 at 08:01:00PM +, Stuart wrote: > [EMAIL PROTECTED] wrote: > >Before you read my comments below, let me say that I'm not trying to prove > >you *wrong* or even express disagreement with the points you made; I'm > >just interested in your reasons. > > An interesting topic,

Re: [PHP] Browser Detection another page

2004-02-13 Thread Stuart
[EMAIL PROTECTED] wrote: Before you read my comments below, let me say that I'm not trying to prove you *wrong* or even express disagreement with the points you made; I'm just interested in your reasons. An interesting topic, but the OP was checking if the client was a PDA. Maybe it's just me, b

RE: [PHP] imagecreate undefined...?

2004-02-13 Thread Vail, Warren
Have you tried dynamically loading the GD functions; http://us2.php.net/manual/en/function.dl.php if (!extension_loaded('php_gd')) { if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) { dl('php_gd.dll'); } else { dl('gd.so'); } } not sure all the names above are correct and yo

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Brian V Bonini
On Fri, 2004-02-13 at 11:00, Eric wrote: > However, when I run it, I get an error: > > Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 Sound like your version was complied without GD support. http://www.php.net/manual/en/ref.image.php -- BrianGnuPG -> Key

Re: [PHP] Another preg question

2004-02-13 Thread Matt Matijevich
Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace("/\n\n+/", "\n\n", $text); // remove excess This doesn't seem to do anything. not 100% sure this is right but give it a try $text = preg_replace("/\n\n+|\n\r[\n\r]+|\r\r+/", "\n\n", $tex

Re: [PHP] preg guru question

2004-02-13 Thread joel boonstra
On Fri, Feb 13, 2004 at 02:19:11PM -0500, joel boonstra wrote: > if (preg_match('//ig', $dah, $matches)) { > print_r($matches); > } Doh! The '/ig' should just be '/i'. joel -- [ joel boonstra | gospelcom.net ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Another preg question

2004-02-13 Thread Al
I'm trying to clean up newline code received from a browser textarea. First, I'm normalizing the newline codes to Unix with: $text= preg_replace("/(\r\n|\r)/", "\n", $text); //this seems to work OK Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= p

Re: [PHP] preg guru question

2004-02-13 Thread joel boonstra
On Sat, Feb 14, 2004 at 03:05:40AM +0800, Jason Wong wrote: > $doo[1] = ''; > $doo[2] = ""; > > foreach ($doo as $dah) { > if (preg_match('//i', $dah, $matches)) { > print_r($matches); > } > } Note that characters within square brackets don't need to have the | to separate them; it's a ch

Re: [PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
Yup. I believe that's what you have to do in order to satisfy the restrictions in the GPL. Gerard Samuel wrote: So to clarify. If I have a piece of code that utilises PEAR's Tar class (which uses a PHP License). In order for me to distribute my piece of code (under the GPL) along with the Tar

[PHP] Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Chris Wilson
When in IE, submitting any form on our https page, the post variables intermittantly don't come through. The get variables come through fine. Just not the $_POST variables. I have tried everything to get this to work. Everything was working fine but it seems after we updated IE with the last cri

Re: [PHP] Re: PHP License question

2004-02-13 Thread Gerard Samuel
On Friday 13 February 2004 01:27 pm, Ben Ramsey wrote: > > In addition, as a special exception, Ben Ramsey gives permission to link > the code of this program with those files in the PEAR library that are > licensed under the PHP License (or with modified versions of those files > that use the sam

Re: [PHP] preg guru question

2004-02-13 Thread Jason Wong
On Saturday 14 February 2004 02:25, pete M wrote: > Im trying to scan a file and lift the image name from the > ie > > where there could be ' or " > > I messed around but am 2 embarassed to post code cos it dont work ;-( It's always better to post something no matter how bad you may think it is

[PHP] compile problem

2004-02-13 Thread Donpro
Hi, trying to compile PHP 4.3.4. on RedHat Linux 7.3 and getting the following error: checking for CURL support... yes checking for CURL in default path... found in /usr checking for cURL 7.9.8 or greater... configure: error: cURL version 7.9.8 or later is required to compile php with cURL supp

[PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
I spoke with the good folks over at the FSF, and figured out how to do this. The PHP License itself does not restrict the use code under it. The problem was with the GPL, which restricted the use of code under the GPL being paired with code under certain types of licenses (specifically license

[PHP] preg guru question

2004-02-13 Thread pete M
Im trying to scan a file and lift the image name from the ie where there could be ' or " I messed around but am 2 embarassed to post code cos it dont work ;-( thanks in advance pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA']isstill set

2004-02-13 Thread Joshua Beall
"Adam Bregenzer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Honestly, I didn't see anything glaringly wrong so I deftly skirted your > problem by posting code that I find works. :) Hmm, I would probably have done the same :-) > One part that may be an issue is you are using eac

Re: [PHP] PHP and Kerberos5 Single Sign-on

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 10:34, Ricky Boone wrote: > I can get the Linux server to talk to Active Directory through LDAP and > Kerberos, but to achieve SSO the only way to get it to work on Apache is > with mod_auth_gss_krb5 (though I can't seem to get it to build for > Apache2), and I couldn't find a

Re: [PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread Jas
Craig, If that doesn't work I am almost certain there might be a discrepency in how the .net & mcrypt libraries actually employ the triple des cipher. On another note, I couldn't get the mcrypt_deinit function to work without error as well. One thing you could do is use the PHP unset() call to

[PHP] Constant PHP_OS and Mac Server

2004-02-13 Thread Gerard Samuel
I dont have a Mac handy to get the value of the constant PHP_OS. If anyone has access to a Mac, please reply to me with the output of var_dump( PHP_OS ); Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 12:14, Joshua Beall wrote: > However, I am still interested in knowing if my code is broken in any way. > It seems to work fine for me, but as per my original post, I did get this > one odd behavior, with HTTP_RAW_POST_DATA being set, but _POST being an > empty array. Any tho

[PHP] Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

2004-02-13 Thread Joshua Beall
"Adam Bregenzer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Having a function to undo magic quotes can be very useful if you > distribute your application. Here is what I use, just call > disable_magic_quotes(). It should not do any damage if magic_quotes is > already disabled.

Re: [PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 11:38, Joshua Beall wrote: > I want to turn off magic quotes. I realize in retrospect that using a > .htaccess file to turn magic quotes would probably be better than this code, > and I am going to switch to that solution, but I am still trying > to figure out what is causing

Re: [PHP] Re: date() funtion language

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hmz... i just tryed that... didnt work tryed other locale strings, didnt work... do i need something else to make it work? running php4.3.4rc3 on windows Don Read wrote: On 12-Feb-2004 André Cerqueira wrote: -BEGIN PGP SIGNED MESSAGE- Hash:

[PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Joshua Beall
Hi All, I originally posted this on 2004-02-09, to alt.comp.lang.php, alt.php, and comp.lang.php, with the followup-to header set to comp.lang.php. Nobody had any thoughts, so I thought I would post here, just in case. I want to turn off magic quotes. I realize in retrospect that using a .htacc

Re: [PHP] Re: date() funtion language

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ohhh thanks hehe Don Read wrote: On 12-Feb-2004 André Cerqueira wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i had problems with locale i think its safer to make a dayname and monthname array, and use getdate(), than build the string yourself

RE: [PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread craig
> I am not sure if it will help of if you have already tried > this but try > all of the cipher modes available for the tripledes cipher (eg. cfb, > ecb, etc.). There may be a difference in the way .net and mcrypt > produces the cipher text but if that were the case then it > wouldn't be a > true

[PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread Jas
I am not sure if it will help of if you have already tried this but try all of the cipher modes available for the tripledes cipher (eg. cfb, ecb, etc.). There may be a difference in the way .net and mcrypt produces the cipher text but if that were the case then it wouldn't be a true tripledes

[PHP] mycrypt 3des (php vs .net)

2004-02-13 Thread craig
Hi all, I am truly hoping that someone can help with this. I am making the ecommerce site for a product that I had nothing to do with the development of. =) The product is making a licence file using the .net 3des, but I am not able to get the same output using the mcrypt 3des. this is the .net

[PHP] Uploading, and excuting.

2004-02-13 Thread Chris Sandy
In the last week or 2, ive been reading a lot about servers been getting abused. Scripts uploaded to /tmp I've noticed someone trying to do this on my server so I checked all logs. Nothing found. Suexec didn't pick anything up so im guessing it could be from a php script. Im in the process now o

Re: [PHP] New Line code question \r\n etc.

2004-02-13 Thread BAO RuiXian
Al wrote: [snip...] I'd like to have my code clean up the newline code every pass and standardize it. What new line should I use, "\n" Unix, or what? Yes, "\n" is the line separator for Unix. Best Bao Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Richard Davey
Hello Eric, Friday, February 13, 2004, 4:00:02 PM, you wrote: E> Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 E> I am running under MacOSX 10.3.2 and PHP 4.3.2. Sounds very much like you have PHP without the image library compiled into it. I don't know where to

[PHP] imagecreate undefined...?

2004-02-13 Thread Eric
I've got this fairly simply script: // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left imagestring($im, 5, 0, 0, "Hello world!", $textcolor); // output the image header(

[PHP] PHP and Kerberos5 Single Sign-on

2004-02-13 Thread Ricky Boone
I'm trying to figure out a solution to a problem that my manager has brought to my attention, and that is how to we provide single sign-on (SSO) for our Intranet applications without being forced to use IIS. We are using Active Directory services for LDAP and Kerberos authentication, but are unabl

[PHP] New Line code question \r\n etc.

2004-02-13 Thread Al
I've got a php application running on a Unix system and need some help with the new line code. The application reads and saves text in a file from a browser textarea. Also, the text file is occassionally opened and edited via ftp and a regular plain text editor. It appears the new line code i

[PHP] Re: E-Commerce II

2004-02-13 Thread Paul Furman
Jimmy wrote: ...they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code, just letting us use the code via Explorer and Frontpage? 2. If I were to look for a website hoster, any recommendations? Many open source

Re: [PHP] Referring to Parent Folders

2004-02-13 Thread Paul Furman
Richard Davey wrote: Why not set-up a variable in a common include file (something like $basedir = "/usr/home/vinny/public_html/php") and then you can just do this: include "$basedir/script.php"; Here's what I use: -- HOME: -

Re: [PHP] Browser Detection another page

2004-02-13 Thread joel boonstra
[ straying OT, so apologies in advance. ] [ also, quite long. double apologies. ] On Fri, Feb 13, 2004 at 10:29:07AM -0200, [EMAIL PROTECTED] wrote: > > Hopefully you're aware that $HTTP_USER_AGENT is an unreliable variable, > > in that it is sent by the client, and can contain virtually anythin

[PHP] Re: Mp3 with php?

2004-02-13 Thread zerof
There is one possiblitity, using ming extension. http://ming.sourceforge.net/ -- zerof "Carlos Castillo" <[EMAIL PROTECTED] > escreveu na mensagemdoes anyone know how to reproduce a mp3 file with php? -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] E-Commerce II

2004-02-13 Thread Adrian Teasdale
> Wow, thanks for the help guys. Appreciate it. > > Here's 2 other Q that popped into my head while researching... > > 1. I looked at Yahoo! and bCentral, they both charge monthly > fees for using their E-Commerce Tools. Why? I thought it > should be a one time thing? Or are they not providing

[PHP] E-Commerce II

2004-02-13 Thread Jimmy
Wow, thanks for the help guys. Appreciate it. Here's 2 other Q that popped into my head while researching... 1. I looked at Yahoo! and bCentral, they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code, just letti

[PHP] Re: Mp3 with php?

2004-02-13 Thread memoimyself
Hello Carlos, On 12 Feb 2004 at 18:52, carlos castillo wrote: > does anyone know how to reproduce a mp3 file with php? If my Spanish serves me right, what you want to do is play an MP3 file. Well, that's something that would happen on the user's computer and would depend on the presence of a s

Re[2]: [PHP] Browser Detection another page

2004-02-13 Thread Richard Davey
Hello, Friday, February 13, 2004, 12:29:07 PM, you wrote: mycb> Sure, but why would a user want to fake their browser signature? They might do it without even knowing. Opera will identify itself as IE6 for example if you select that in the Preferences. Other browsers/packages can do it as standa

Re: [PHP] Referring to Parent Folders

2004-02-13 Thread Richard Davey
Hello Vinny, Tuesday, February 10, 2004, 6:18:09 AM, you wrote: V> [doc root] V> -[php] V> -- script.php V> -- [some folder] V> --- [another folder] V> current.php V> So my question is, is this simply a PHP config problem? Nope. Nothing to do

Re: [PHP] Browser Detection another page

2004-02-13 Thread memoimyself
Hello Joel, Before you read my comments below, let me say that I'm not trying to prove you *wrong* or even express disagreement with the points you made; I'm just interested in your reasons. On 12 Feb 2004 at 20:11, joel boonstra wrote: > Hopefully you're aware that $HTTP_USER_AGENT is an unre

[PHP] Referring to Parent Folders

2004-02-13 Thread Vinny
I don't know if this is a PHP config problem, or an Apache 1.3/PHP 4 problem, or what. When I include a script, say 2 folders up in the structure, I'm having to move up to it instead of skipping to root and moving down to it. Allow me to clarify, let's say my tree structure looks like so [bracket

Re: [PHP] syntax help

2004-02-13 Thread Richard Davey
Hello bob, Friday, February 13, 2004, 12:10:06 PM, you wrote: bp> $array=array("Flyer","Email","Phone"); bp> $array_len=count($array); bp> for($i=0;$i<$array_len;$i++){ bp> $query="select count(score) from test_table bp> where source = '$array[$i]'"; bp> $result=mssql_query($query,$nu

[PHP] syntax help

2004-02-13 Thread bob pilly
Hi all I have a problem that is probably just a lack of php syntax knowledge on my part and hopefully someone can help me out. I have an array and i want to query a database for each value in that array. I then want to store that result as a new variable called $array[value]total. see code belo

  1   2   >