Re: [PHP] how does PHP handle kerberos authentication?

2004-05-05 Thread Burhan Khalid
Bing Du wrote: I need to code kerberos authentication in PHP. Like in Perl, it has Authen::Krb5 module. How the similar tasks are done in PHP? I've searched (all site) 'kerberos' on www.php.net but did not find any information that I need. http://www.faqts.com/knowledge_base/view.phtml/aid/777 -

Re: [PHP] Class Help Extended

2004-05-05 Thread Richard Harb
More often than not it's a good thing to assign 'default' values to class variables like that. In this case though I've observed that common practice is to get the user/pass values from a config file and pass them along as variables when creating an instance of the class. Classes are most benefic

[PHP] Class Help Extended

2004-05-05 Thread PHP Email List
First off thanks Curt for the attempt at explaining what the purpose was for those, I'm convinced enough to start doing that since that's what the "pros" use. :) However, I know have another concern. As for as class security. Is it wrong to initialize the static variables for my database assignmen

[PHP] strip comments from HTML?

2004-05-05 Thread Justin French
Hi, This isn't working: $text = preg_replace('//','',$text); Can someone advise what characters I need to escape, or whatever to get it going? TIA --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular Expression

2004-05-05 Thread Tumurbaatar S.
Because the substrings can contain any char-s including commas. Also I use reg exp not for splitting only but for validating whether whole string and the substrings are correctly formatted. Using reg exp requires much less coding than traditional programming. > > Why not just strip out the braces

Re: [PHP] Class Help

2004-05-05 Thread Curt Zirzow
* Thus wrote PHP Email List ([EMAIL PROTECTED]): > Why is it in a class, so important for you to initialize your $variables? > > In the following example, I have my class started and then took out or > atleast commented my "var $variable" and the code still does what it should. > So why is it so i

[PHP] Re: HTTP_REFERER ... ?

2004-05-05 Thread David Robley
[EMAIL PROTECTED] (Tristan Pretty) wrote in news:OF19FCC4A7.F49C9B83-ON80256E8B.00544E7D- [EMAIL PROTECTED]: > if ($_SERVER['HTTP_REFERER'] == 'http://www.mysite.com/') { > // Stuff > } > > Now why does this not work? > I wanna asign varibales based on certain referers... > but this is not worki

[PHP] Re: remove soap header

2004-05-05 Thread Chhai T
What are you using to access the soap server? If you use the modules such as NuSOAP or SOAP built in for PHP5 you wouldn't have to worry about the response header. Chhai "Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any ideas how to remove the soap header from the

[PHP] Class Help

2004-05-05 Thread PHP Email List
Why is it in a class, so important for you to initialize your $variables? In the following example, I have my class started and then took out or atleast commented my "var $variable" and the code still does what it should. So why is it so important that you initialize these variables this way? [::

Re: [PHP] complex array

2004-05-05 Thread Chhai T
Thanks Torsten! It works fine. Regards, Chhai <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Chhai T <[EMAIL PROTECTED]> schrieb am 05.05.2004, 09:55:25: > > Is there an easier, quicker way to access the values in this array returned > > from a SOAP request? This is the result of m

Re: [PHP] Looking for Advanced PHP Developers

2004-05-05 Thread Stephen Allen
On Thu, May 06, 2004 at 01:15:17AM +0200 or thereabouts, Richard Harb wrote: > ... and onsite would be where ? Amman, Jordan I think. I wouldn't want to be a Caucasian over there working, at this point in time. -- S.Allen --- barnyard Wednesday May 05 200

RE: [PHP] Oracle 8 functions

2004-05-05 Thread Fidencio Monroy
Thanks, i catch the prob, after ociparse(), using ocifetchinto, the indexes in the array are generated as UPPERCASE... -Original Message- From: Fidencio Monroy [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 2:08 PM To: (PHP General List) Subject: [PHP] Oracle 8 functions Hi, im

Re: [PHP] Looking for Advanced PHP Developers

2004-05-05 Thread Richard Harb
... and onsite would be where ? Thursday, May 6, 2004, 2:03:04 AM, thus was written: > Hello, > I'm looking for advanced PHP Developers. the responsibilites will > include the following: > - Being able to architecture huge web applications ( 1 Million lines of > code or bigger) > - Ability

[PHP] Looking for Advanced PHP Developers

2004-05-05 Thread Ammar Ibrahim
Hello, I'm looking for advanced PHP Developers. the responsibilites will include the following: - Being able to architecture huge web applications ( 1 Million lines of code or bigger) - Ability to advise on how to control huge projects and help writing guidlines( CVS usage, documentation, codi

Re: [PHP] Plz help quick - mysql/php/web server undefined function all of a sudden

2004-05-05 Thread Ludwig Pummer
Chip Wiegand wrote: John, Yep, looking at phpinfo.php shows no support for mysql. This is very strange. I know these things don't just happen by themselves. I also know there are only two people with the password to the server, myself and my boss (and he knows nothing about the server to begin w

Re: [PHP] Installing/compiling GD?

2004-05-05 Thread Curt Zirzow
* Thus wrote Aaron Wolski ([EMAIL PROTECTED]): > > I guess my question is.. what exactly do I do? Lol. I look at my > phpinfo() and I see that PHP was not compiled with GD. > > I look at my compile line in phpinfo and this is what I have: > > './configure' '--with-apxs=/usr/local/apache/bin/apxs

Re: [PHP] It opens the file instead downloading

2004-05-05 Thread FanneHH Adevarap
I have *.mid files. I need a script that works in almost all browsers. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Phpu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 10:51 PM Subject: Re: [PHP] It opens the file instead downloading > F

[PHP] Oracle 8 functions

2004-05-05 Thread Fidencio Monroy
Hi, im trying to use ora8 functions, and i have some trouble, the documentation is a reference not a guide, so probably im skipping some steps. to connect ocilogon() is used, and the connection establishes, this is verified checking the resurce returned. then i do an ociparse() with a select st

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Curt Zirzow
* Thus wrote Pablo Gosse ([EMAIL PROTECTED]): > John Nichel wrote: > > [EMAIL PROTECTED] wrote: > >> Sadly, I get nothing... > >> the other server I'm talking to is owned by our company, it's a > >> Lotus Domino server... so in theory, they'll be able to enable this > >> variable to be passed? > >

Re: [PHP] It opens the file instead downloading

2004-05-05 Thread John W. Holmes
From: "Phpu" <[EMAIL PROTECTED]> > header( "Content-type: application/force-download" ); > if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpos($user_agent, "win" { > header( "Content-Disposition: filename=".$filename); > } else { > header( "Content-Disposition: attachment

Re: [PHP] Print a variable's name

2004-05-05 Thread Ahbaid Gaffoor
That's the way I ended up going pass the name and value along :) Not what I was hoping for, but it gets the job done, and it's only for debugging pruposes thanks Ahbaid. Michal Migurski wrote: but what I want is to be able to pass any variable to a procedure and have the variable name and

Re: [PHP] paging methodology

2004-05-05 Thread John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > on a related note... how does BENCHMARK() work? i don't understand their > explanation. the reason i ask is because i'd like to test our the > efficiency of what you are suggesting compared to what i am currently > doing. > > SELECT BENCHMARK(500, 'SEL

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread John Nichel
John W. Holmes wrote: From: "Pablo Gosse" <[EMAIL PROTECTED]> The following is quoted from a previous post by Chris Shifflet: "Referer is just as easy to spoof as the form data you're expecting." wait, wait, wait... we CAN'T trust form data? Crap... ---John Holmes... Maybe we CAN trust form data i

Re: [PHP] paging methodology

2004-05-05 Thread John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > do you know if that's any faster than doing a "SELECT COUNT(*) FROM > table WHERE ..." ? I did a couple (unscientific) tests and there doesn't seem to be much of a difference. I'd use the COUNT(*) method just because it's more portable, though. ---Jo

Re: [PHP] Unline file...permission denied

2004-05-05 Thread Marek Kilimajer
http server needs write permission to the directory (../../secure/Admin/Orders/). Permission on the file do not matter. Aaron Wolski wrote: Hey all, I have a script that DDI work but for some reason it no longer does. It attempts to unlink a file before writing a new file. The code for it is: unl

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread John W. Holmes
From: "Pablo Gosse" <[EMAIL PROTECTED]> > The following is quoted from a previous post by Chris Shifflet: > > "Referer is just as easy to spoof as the form data you're expecting." wait, wait, wait... we CAN'T trust form data? Crap... ---John Holmes... -- PHP General Mailing List (http://www.p

RE: [PHP] paging methodology

2004-05-05 Thread Brad Pauly
On Wed, 2004-05-05 at 12:23, Chris wrote: > It's certainly faster than "SELECT COUNT(*) FROM sometable WHERE . . ."; > > It might not be faster than "SELECT COUNT(*) FROM sometable", as that is > designed to run very quickly. I believe it will also depend on the type of table you are using. "SELE

RE: [PHP] paging methodology

2004-05-05 Thread Chris W. Parker
Chris on Wednesday, May 05, 2004 11:24 AM said: > The documentation for the FOUND_ROWS() function is here: > http://dev.mysql.com/doc/mysql/en/Information_functions.html ahh... i see. so it essentially allows you to execute one query while achieving the same two que

Re: [PHP] "Cannot generate system identifier" error while validating

2004-05-05 Thread Jeremy Clifton
On May 5, 2004, at 2:24 PM, Richard Davey wrote: I've been running a web page through the W3C MarkUp Validation Service and have nailed all the errors bar one (which just happens to occur 460 times!) - but I'm stumped to know how to get around it. When validating I get loads of: Line X, column Y: c

RE: [PHP] HTTP_REFERER ... ? OT

2004-05-05 Thread Jay Blanchard
[snip] some firewalls will change HTTP_REFERER to HTTP_WEFERER [/snip] That is not a firewall munge, that would be Elmer Fudd's server! ROFLMFAO! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] "Cannot generate system identifier" error while validating

2004-05-05 Thread Richard Davey
Hello Michael, Wednesday, May 5, 2004, 7:27:54 PM, you wrote: MS> You should be using "&" as a separator instead of just "&". HTH... Bloody hell... yes, that's it. Thank you. Oh boy, time for some major re-coding. Damn standards :) -- Best regards, Richard Davey http://www.phpcommunity.org/

RE: [PHP] "Cannot generate system identifier" error while validating

2004-05-05 Thread Michael Sims
Richard Davey wrote: > The actual error comes from a hyperlink that passes a parameter on the > Querystring, like this: > > 1. Line 58, column 62: cannot generate system identifier for general > entity "f" ...ef="xt/xt_apollo_mark_read.php?i=all&f=1" You should be using "&" as a separator inste

RE: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Pablo Gosse
John Nichel wrote: > [EMAIL PROTECTED] wrote: >> Sadly, I get nothing... >> the other server I'm talking to is owned by our company, it's a >> Lotus Domino server... so in theory, they'll be able to enable this >> variable to be passed? > > I can never remember one day to the other which it is, b

[PHP] "Cannot generate system identifier" error while validating

2004-05-05 Thread Richard Davey
Hi all, This isn't PHP related strictly - but my dynamic pages are causing my some W3C flavoured grief... I've been running a web page through the W3C MarkUp Validation Service and have nailed all the errors bar one (which just happens to occur 460 times!) - but I'm stumped to know how to get aro

RE: [PHP] paging methodology

2004-05-05 Thread Chris
It's certainly faster than "SELECT COUNT(*) FROM sometable WHERE . . ."; It might not be faster than "SELECT COUNT(*) FROM sometable", as that is designed to run very quickly. The documentation for the FOUND_ROWS() function is here: http://dev.mysql.com/doc/mysql/en/Information_functions.html Ch

RE: [PHP] SCP a file from my server to another using PHP

2004-05-05 Thread Matt Babineau
Its getting run from PHP with the User of nobody:nobody in Apache -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 5:45 PM To: 'Matt Babineau'; [EMAIL PROTECTED] Subject: RE: [PHP] SCP a file from my server to another using PHP Matt, Question:

Re: [PHP] Getting whole URL

2004-05-05 Thread Dan Phiffer
In my phpinfo() (Win2000, Apache2, PHP 4.3.4) my REQUEST_URI only gives everything after the host. If you wanted the host information along with that, you have to get that in the seperate index: HTTP_HOST. -- Rob And, in general, if you want to browse around and see what kind of data you have a

[PHP] Unline file...permission denied

2004-05-05 Thread Aaron Wolski
Hey all, I have a script that DDI work but for some reason it no longer does. It attempts to unlink a file before writing a new file. The code for it is: unlink("../../secure/Admin/Orders/order.txt"); Error is: Warning: unlink(../../secure/Admin/Orders/order.txt): Permission denied If I remo

RE: [PHP] paging methodology

2004-05-05 Thread Chris W. Parker
Chris on Wednesday, May 05, 2004 10:56 AM said: > If you're using MySQL 4+ you could use the SQL_CALC_FOUND_ROWS flag > in the select statement. > > It causes the query to count the number of rows it *would have* > returned if there had been no limit clause. do you

[PHP] It opens the file instead downloading

2004-05-05 Thread Phpu
Hi, I have this script taken form php.net $filename=plenar.mid; $file_to_download=files/plenar123.mid; $user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]); header( "Content-type: application/force-download" ); if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpo

RE: [PHP] paging methodology

2004-05-05 Thread Chris
If you're using MySQL 4+ you could use the SQL_CALC_FOUND_ROWS flag in the select statement. It causes the query to count the number of rows it *would have* returned if there had been no limit clause. So after executing the query, you would then run another query to retrieve the number if found r

Re: [PHP] Re: protecting web page

2004-05-05 Thread Stephen Allen
On Wed, May 05, 2004 at 07:28:01PM +0200 or thereabouts, Gerben wrote: > The best I can do is the following which would protects from printing, but > you should check cause not all browsers support css the way they should. > > > > > body{display:none;} > > > > > What

[PHP] Re: IIS HTTP 405 Error - Clean Urls

2004-05-05 Thread Dac Chartrand
Jeremy Weir wrote: how about a server-side redirect to /directory/ at the end of execution of /directory/index.php. You'll give the user an easier time with their back/forward buttons if you do that too. I was looking for more of a server work around, not a me changing my source code work around.

[PHP] Re: Apache 2 was: Re: [PHP] Re: PHP & Apache Version

2004-05-05 Thread Lester Caine
Steve Wardell wrote: This single ambigous line of "Do not use..." is not productive. Seconded. My PHP5rc2 rig is running Apache2 and a number of demo applications. Nothing wrong in the logs since rc2 came out ;) -- Lester Caine - L.S.Caine Electronic Services -- PHP Ge

[PHP] Re: protecting web page

2004-05-05 Thread Gerben
The best I can do is the following which would protects from printing, but you should check cause not all browsers support css the way they should. body{display:none;} greetings <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > i'm designing a we

[PHP] remove soap header

2004-05-05 Thread Diana Castillo
Any ideas how to remove the soap header from the xml response? -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP General Maili

RE: [PHP] tweeking WHERE clause

2004-05-05 Thread Jay Blanchard
[snip] > Do a count of this monthes articles, if NONE, then run another query to > select the previous months articles. Note, this would only "publish" this > or last monthes records. [/snip] Another thing that you could do is get all articles sorted in reverse order for the last 60 days using DA

Re: [PHP] Print a variable's name

2004-05-05 Thread Michal Migurski
> but what I want is to be able to pass any variable to a procedure and > have the variable name and value printed by the procedure. Because PHP passes arguments by value, you will be out of luck in most cases -- by the time your debugging function sees the argument, it's no longer tied to the cal

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread John Nichel
[EMAIL PROTECTED] wrote: Sadly, I get nothing... the other server I'm talking to is owned by our company, it's a Lotus Domino server... so in theory, they'll be able to enable this variable to be passed? I can never remember one day to the other which it is, but I _think_ it's the browser which s

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Tristan . Pretty
Sadly, I get nothing... the other server I'm talking to is owned by our company, it's a Lotus Domino server... so in theory, they'll be able to enable this variable to be passed? John Nichel <[EMAIL PROTECTED]> 05/05/2004 17:07 To [EMAIL PROTECTED] cc Subject Re: [PHP] HTTP_REFERER ... ?

RE: [PHP] paging methodology

2004-05-05 Thread Chris W. Parker
John W. Holmes on Wednesday, May 05, 2004 7:32 AM said: > Personal preference here, I guess, but I don't care for searches that > don't tell you how many records were matched (or how many pages > you'll have). I think the additional query is well worth it. The > numb

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread John Nichel
[EMAIL PROTECTED] wrote: if ($_SERVER['HTTP_REFERER'] == 'http://www.mysite.com/') { // Stuff } Now why does this not work? I wanna asign varibales based on certain referers... but this is not working? Any ideas why? What do you get when you echo out $_SERVER['HTTP_REFERER']? -- John C. Nichel KegW

[PHP] Apache 2 was: Re: [PHP] Re: PHP & Apache Version

2004-05-05 Thread Steve Wardell
Is there a version of Apache 2+ that now works with PHP? Last I checked, the were incompatible, but recently someone I ran into claimed that the bugs have been for such a setup. There is the warning not to use apache 2.0 and php in production. I am sure that there are many that are using it

Re: [PHP] Print a variable's name - FIXED

2004-05-05 Thread Ahbaid Gaffoor
I didn't say SOLVED becuase this gets me "sor of" what I want : I added to the function an optional parameter so that if I reall wanted the var name to show I can pass it in... I know it's messy, but for debugging it's fine: function showvar($var,$varname="Var: ") { echo "Now Showing ".$varnam

Re: [PHP] tweeking WHERE clause

2004-05-05 Thread msa
That would work. "Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > OK how about. > > Do a count of this monthes articles, if NONE, then run another query to > select the previous months articles. Note, this would only "publish" this > or last monthes records. > -- PHP

Re: [PHP] tweeking WHERE clause

2004-05-05 Thread Daniel Clark
OK how about. Do a count of this monthes articles, if NONE, then run another query to select the previous months articles. Note, this would only "publish" this or last monthes records. > there are a different number of articles each month...:( > > "Daniel Clark" <[EMAIL PROTECTED]> wrote in me

RE: [PHP] Print a variable's name

2004-05-05 Thread Michael Sims
Dave Avent wrote: > function showvar($var) { > > foreach($GLOBALS as $key => $value) { > if($value == $var) { > $varname = $key; > } > } The problem with the above is that it assumes that th

[PHP] It opens the file instead downloading

2004-05-05 Thread Phpu
Hi, I have this script: $filename=plenar.mid; $file_to_download=files/plenar123.mid; $user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]); header( "Content-type: application/force-download" ); if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpos($user_agent, "w

Re: [PHP] protecting web page

2004-05-05 Thread Mark
--- [EMAIL PROTECTED] wrote: > Hi, > > i'm designing a web application and i want to protect my web page > from > printing and if possible want to protect source code too. > > Do you know any solution that can help me. I've find an application > named > HTML guard but it only work for static htm

Re: [PHP] tweeking WHERE clause

2004-05-05 Thread msa
there are a different number of articles each month...:( "Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey Melissa. > > Will your articles always had a certain number (for each section) each > month? If so a ORDER BY and LIMIT would work. > > Daniel -- PHP Genera

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Daniel Clark
I found this in the manual: HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.

RE: [PHP] Print a variable's name

2004-05-05 Thread Dave Avent
$test = "Hello World!"; function showvar($var) { foreach($GLOBALS as $key => $value) { if($value == $var) { $varname = $key; } } e

Re: [PHP] tweeking WHERE clause

2004-05-05 Thread Daniel Clark
Hey Melissa. Will your articles always had a certain number (for each section) each month? If so a ORDER BY and LIMIT would work. Daniel > I am trying to query a table that consists of e-news artilces. in the > table > are the following fields: ID, sortBy, datePublished, title, description.

RE: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Jay Blanchard
[snip] if ($_SERVER['HTTP_REFERER'] == 'http://www.mysite.com/') { // Stuff } Now why does this not work? [/snip] Have you echo'd $_SERVER['HTTP_REFERER'] ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP_REFERER ... ?

2004-05-05 Thread Tristan . Pretty
if ($_SERVER['HTTP_REFERER'] == 'http://www.mysite.com/') { // Stuff } Now why does this not work? I wanna asign varibales based on certain referers... but this is not working? Any ideas why? * The information contained in this

RE: [PHP] Print a variable's name

2004-05-05 Thread Michael Sims
Ahbaid Gaffoor wrote: > Thanks Ryan, > > but what I want is to be able to pass any variable to a procedure and > have the variable name and value printed by the procedure. > > Can this be done? > > I'm trying to extend my library of debugging functions/procedures by > having a procedure which ca

Re: [PHP] Print a variable's name

2004-05-05 Thread Ahbaid Gaffoor
Thanks Ryan, but what I want is to be able to pass any variable to a procedure and have the variable name and value printed by the procedure. Can this be done? I'm trying to extend my library of debugging functions/procedures by having a procedure which can be used to "inspect" a variable whenev

Re: [PHP] Print a variable's name

2004-05-05 Thread Ryan A
Just escape it... eg: $ryan = "something"; echo "\$ryan =".$ryan; that would print: $ryan = something HTH. Cheers, -Ryan On 5/5/2004 5:02:25 PM, [EMAIL PROTECTED] wrote: > I'd like to print a variable's name in a procedure along with it's value > > Is there a way to do this? > > > fo

[PHP] Print a variable's name

2004-05-05 Thread Ahbaid Gaffoor
I'd like to print a variable's name in a procedure along with it's value Is there a way to do this? for example: --- function showvar($somevar) { echo "Now showing: ". <... code to show var name .> ."\n";

[PHP] tweeking WHERE clause

2004-05-05 Thread msa
I am trying to query a table that consists of e-news artilces. in the table are the following fields: ID, sortBy, datePublished, title, description. You can see a fake sample of this at: www.aiaky.org/articles.htm I have the following $query on the actual e-news page: $query_rsENews = 'SELECT *

[PHP] how does PHP handle kerberos authentication?

2004-05-05 Thread Bing Du
I need to code kerberos authentication in PHP. Like in Perl, it has Authen::Krb5 module. How the similar tasks are done in PHP? I've searched (all site) 'kerberos' on www.php.net but did not find any information that I need. Thanks in advance for any help, Bing -- PHP General Mailing List (h

Re: [PHP] paging methodology

2004-05-05 Thread John W. Holmes
- Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> > On Tue, May 04, 2004 at 02:37:50PM -0700, Chris W. Parker wrote: > > well that just meant that after the initial count of records is found it > > will be retrieved from the querystring instead of through a select > > stateme

Re: [PHP] form validation wih html input FILE

2004-05-05 Thread John W. Holmes
From: "Vincent DUPONT" <[EMAIL PROTECTED]> > I'd like your opinion on the best way to do a form > validation when the form contains a file upload object > () > > When the form does not validate, I try to re-show all values > entered by the user.But, as far as I know, browsers do not > allow to set

Re: [PHP] textarea and quotes

2004-05-05 Thread John W. Holmes
From: "Vincent DUPONT" <[EMAIL PROTECTED]> > I can't remember the name of the function to remove > the escaping of quotes when submitting a textarea > example : > > becomes : > > stripslashes and stripcslashes seem not to work... stripslashes() works, just make sure you capture the result.

Re: [PHP] protecting web page

2004-05-05 Thread Blake Schroeder
PHP source code is striped out of the html doc before it is displayed, so you are protecting your html. -Blake raditha dissanayake wrote: [EMAIL PROTECTED] wrote: Hi, i'm designing a web application and i want to protect my web page from printing and if possible want to protect source code too.

[PHP] textarea and quotes

2004-05-05 Thread Vincent DUPONT
Hi, I can't remember the name of the function to remove the escaping of quotes when submitting a textarea example : becomes : stripslashes and stripcslashes seem not to work... vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] protecting web page

2004-05-05 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: Hi, i'm designing a web application and i want to protect my web page from printing and if possible want to protect source code too. Sure unplug your network cable. -- Raditha Dissanayake. - http://www.radinks.com/print/up

Re: [PHP] form validation wih html input FILE

2004-05-05 Thread Richard Davey
Hello Vincent, Wednesday, May 5, 2004, 2:26:44 PM, you wrote: VD> Will I be limited to display a warning message indicating VD> that the user will have to select his/her file again?? Pretty much, yes. Or you could do what I do - store the file in a temporary folder, passing the filename back to

RE: [PHP] Regular Expression

2004-05-05 Thread Martin, Stanley G [Contractor for Sprint]
Here's a neat little tool I came across while taking an ASP.NET course at a local college for creating regular expressions. I've used it with my Perl/PHP scripting also. Regular Expression Designer http://www.radsoftware.com.au/web/Default.aspx Stanley G. Martin System Administrator Sprint - EA

[PHP] form validation wih html input FILE

2004-05-05 Thread Vincent DUPONT
Hi, I'd like your opinion on the best way to do a form validation when the form contains a file upload object () When the form does not validate, I try to re-show all values entered by the user. But, as far as I know, browsers do not allow to set the default value (local file path) of a FILE co

Re: [PHP] Is Curl GZIP support broken?

2004-05-05 Thread Stuart
Dac Chartrand wrote: The following code used to work until i upgraded to 4.3.6 Code: --- // Get RSS feed $c = curl_init('http://www.vegguide.org/rss/feed.rss?all=1&omit_hours=1'); curl_setopt($c, CURLOPT_ENCODING, 'gzip'); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURL

RE: [PHP] Walk though array applying my highlighting routine? [SOLVED]

2004-05-05 Thread Dave Carrera
Thank you list for you help -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 11:00 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Walk though array applying my highlighting routine? Dave Carrera wrote: > Hi List, > > I have worked out how to h

[PHP] Installing/compiling GD?

2004-05-05 Thread Aaron Wolski
Hi all, I am using a piece of open source software that fits perfectly with my needs on a current project. My problem is that it requires GD to be installed in order for me to use it. I am a bit of a novice at recompiling PHP to include modules and would appreciate some help if you don't mind? I

php-general Digest 5 May 2004 12:35:36 -0000 Issue 2745

2004-05-05 Thread php-general-digest-help
php-general Digest 5 May 2004 12:35:36 - Issue 2745 Topics (messages 185382 through 185416): Re: WHERE clause...getting closer 185382 by: Richard Davey 185384 by: Curt Zirzow 185393 by: Ray Hunter 185401 by: Tom 185413 by: msa Re: SCP a file from my s

[PHP] Importing data from one mysql server to an other

2004-05-05 Thread Seth Bembeneck
I'm working on a project that collects data from different mysql servers, combines the data and then displays it. My problem right now is the collection part. I have two ideas: 1st, write a php script that is placed on the webserver where the database is. Every time my webpage is opened, it co

RE: [PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Dave Carrera
Why am I getting three arrays ? --- code --- )#i"; $pregreplace = "$1"; $h_string = preg_replace($pregmatch,$pregreplace,$string); $string = $h_string; } echo $string; } array_walk($string, 'searchlines'); //echo "Clean: $string2"; //echo "Criter

[PHP] Importing data from one mysql server to an other

2004-05-05 Thread Seth Bembeneck
I'm working on a project that collects data from different mysql servers, combines the data and then displays it. My problem right now is the collection part. I have two ideas: 1st, write a php script that is placed on the webserver where the database is. Every time my webpage is opened, it co

Re: [PHP] WHERE clause...getting closer

2004-05-05 Thread msa
Curt, thanks, your code works perfectly. Can I ask you two questions? 1. I am not sure what you mean by adding an index. I looked in the mySQL help files and from what I can figure, I have already done that... 2. Now that the code actually works, we have come up with an issue. When the curren

[PHP] GD problems with opacity on translucent background

2004-05-05 Thread Raymond den Ouden
Hi, I have a little problem with a script I am trying to make. The main problem is that when I draw something on a translucent png created with gd, it will still take the color which was set as transparent color. For a demo look at http://www.cranberries-fan.com/images/transparent/test.php The b

[PHP] Re: Hi

2004-05-05 Thread Phplist
<>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Dave Carrera
Hi Burhan, Tried that but I think I did not use it in the correct place, tried many. Could I be very cheeky and ask for an example using my code listed in the previous post ? Thank you for your reply and any help you may give. Dave Carrera -Original Message- From: Burhan Khalid [mailt

RE: [PHP] protecting web page

2004-05-05 Thread PHP Email List
> Do you know any solution that can help me. I've find an application named > HTML guard but it only work for static html pages. I need more a class or > function to prevent for printing. Disclaimer:: To my knowledge! :) The only thing off hand that I can think of that would prevent printing is a

Re: [PHP] protecting web page

2004-05-05 Thread Brent Clark
> i'm designing a web application and i want to protect my web page from > printing and if possible want to protect source code too. > > Do you know any solution that can help me. I've find an application named > HTML guard but it only work for static html pages. I need more a class or > function

Re: [PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Burhan Khalid
Dave Carrera wrote: Hi List, I have worked out how to highlight all search words in a string. I hope its useful to some one. Please make it better if you can so we can all share it. But what I want to know is how can I treat each string with this highlighting routine individually so that my output

[PHP] protecting web page

2004-05-05 Thread mserra
Hi, i'm designing a web application and i want to protect my web page from printing and if possible want to protect source code too. Do you know any solution that can help me. I've find an application named HTML guard but it only work for static html pages. I need more a class or function to prev

[PHP] Walk though array applying my highlighting routine?

2004-05-05 Thread Dave Carrera
Hi List, I have worked out how to highlight all search words in a string. I hope its useful to some one. Please make it better if you can so we can all share it. But what I want to know is how can I treat each string with this highlighting routine individually so that my output is each string hig

Re: [PHP] paging methodology

2004-05-05 Thread Brian Muldown
Chris W. Parker wrote: ok. this is what i was already doing in my previous app but i was just looking to see if it could be streamlined some how. You could perform the full (without LIMIT) query once, Cache the results array (using PEAR Cache) and move back-and-forth through this Cached array. D

[PHP] Re: parse error on fgets

2004-05-05 Thread Brian Muldown
[EMAIL PROTECTED] wrote: Using PHP 4 with this code: if ($csvfile = fopen($csvpath, "r")) { while (!feof ($csvfile)) { $filestring = fgets( $csvfile , 255); } } I get a parse error on the line : $filestring = fgets( $csvfile , 255); Any ideas why this is happening? replaci

Re: [PHP] complex array

2004-05-05 Thread roehr
Chhai T <[EMAIL PROTECTED]> schrieb am 05.05.2004, 09:55:25: > Is there an easier, quicker way to access the values in this array returned > from a SOAP request? This is the result of my print_r() :Array > ( > [0] => Array > ( > [name] => [description] => yyy

Re: [PHP] WHERE clause...getting closer

2004-05-05 Thread Tom
Ray Hunter wrote: On Tue, 2004-05-04 at 19:18, msa wrote: $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(datePublished) = ' . YEAR('NOW'()) . ' AND MONTH(datePublished) = ' . MONTH('NOW'()) . ' ORDER BY sortBy DESC'; this is supposed to return only the records that have the current month an

  1   2   >