RE: [PHP] Apache per directory setting

2004-01-06 Thread umesh
The change of values will take place after you restart the Apache. Try it once. -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache per directory setting >You need to use: > > php_value r

[PHP] INSERT into mysql from dynamic drop down

2004-01-06 Thread irinchiang
Hi all, Right now i would like to INSERT the values from a dynamic drop down menu into mysql database but encountered some problem here. Values in the drop down menu are retrieved from DB as follows: " .$row["tutor_name"]. ""; } $result = $db->query($sql); ?> -

Re: [PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
>You need to use: > > php_value register_globals 1 I tried, but still fail, phpinfo still show register_globals OffOff Regards, Chris Lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail()

2004-01-06 Thread Anthony Ritter
Using php/apache/mysql I am testing an mail script. The script has a .html form which receives the text input and then a .php script to execute the variables in a mail() function. When I publish both files - the .html and .php - to my ISP's server and enter the data and hit submit I receive an

Re: [PHP] Problem with Picture Name

2004-01-06 Thread Kelly Hallman
On Tue, 6 Jan 2004, Dimitri Marshall wrote: > I had it perfect so that when someone uploaded a picture in a form, it > uploaded to my server and saved the image name in the database. The > problem is, what if someone tries saving a picture with an apostraphe ie > ( ' ) or ( " )? Can someone help me

Re: [PHP] Apache per directory setting

2004-01-06 Thread Jason Wong
On Wednesday 07 January 2004 12:44, Chris Lee wrote: > Is it possible to set PHP flag at Apache ver 1.3.x per directory? Yes. > e.g. > > DocumentRoot /home/www/apps/htdocs > ServerName localhost > > php_flag register_globals on > > > > I tried but fail to turn on Register Globals settings (D

RE: [PHP] Apache per directory setting

2004-01-06 Thread Rainsford, David
You should have a look at the php.ini - the location of which can be found if you run a script containing the following: In that file you can turn on the php.ini. If you just want it on for certain files, you can use the ini_set() function in those files. I don't think you can easily do it on

[PHP] Apache per directory setting

2004-01-06 Thread Chris Lee
Hi, Is it possible to set PHP flag at Apache ver 1.3.x per directory? e.g. DocumentRoot /home/www/apps/htdocs ServerName localhost php_flag register_globals on I tried but fail to turn on Register Globals settings (Default is off). Any Hints? Regards, Chris Lee -- PHP General Mailing Lis

Re: [PHP] Problem with Picture Name

2004-01-06 Thread Richard Davey
Hello Dimitri, Wednesday, January 7, 2004, 4:06:25 AM, you wrote: DM> I had it perfect so that when someone uploaded a picture in a form, it DM> uploaded to my server and saved the image name etc. in the database. The DM> problem is, what if someone tries saving a picture with an apostraphe ie (

[PHP] Problem with Picture Name

2004-01-06 Thread Dimitri Marshall
Hi there, Here's the situation: I had it perfect so that when someone uploaded a picture in a form, it uploaded to my server and saved the image name etc. in the database. The problem is, what if someone tries saving a picture with an apostraphe ie ( ' ) or ( " )? I know this isn't a usual format

RE: [PHP] Verifying a url

2004-01-06 Thread Kelly Hallman
On Tue, 6 Jan 2004, Ivo Pletikosic wrote: > It did not work for me but since I have only one http port and one https > port on my server i use instead > > if( $_SERVER['SERVER_PORT'] == "80" ) echo 'http'; Here's a way you could write it in your script... $is_secure = ($_SERVER['SERVER_PORT']==44

Re: Re[2]: [PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Paul
The javascript is a popup calendar for populating that field or in the example I posted it is just a browser popup. If the page is served as .htm everything is "fine." Served as .php the form is empty on BACK unless the javascript is not called. Really the data is not there (because when I view

RE: [PHP] eregi filter stopping valid email address, part two

2004-01-06 Thread Dave G
Mike, > No. You've only allowed for hyphens in the first element > after the @ sign > -- this address has them in the 2nd element. Ah, yes, I guess I had it that way because there are no hyphens in top level domain designations, but hadn't accounted for the fact that it would exclude them if th

Re[2]: [PHP] supressing include warnings....

2004-01-06 Thread Richard Davey
Hello Ryan, Wednesday, January 7, 2004, 3:07:16 AM, you wrote: RA> Warning: RA> fopen(http://www.site.com/a/check.php?ver=2&update=0): failed to RA> open stream: HTTP request failed! HTTP/1.1 404 Not Found in /blah/i.php on RA> line 74 For me simply using the @ sign as you did before (with inclu

RE: [PHP] Verifying a url

2004-01-06 Thread Ivo Pletikosic
It did not work for me but since I have only one http port and one https port on my server i use instead if( $_SERVER['SERVER_PORT'] == "80" ) echo 'http'; C. > -Original Message- > From: Richard Davey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 06, 2004 6:56 PM > To: Thomas And

Re: [PHP] supressing include warnings....

2004-01-06 Thread Ryan A
Hi, Thanks for replying. I tried that and now I got a new error: Warning: fopen(http://www.site.com/a/check.php?ver=2&update=0): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /blah/i.php on line 74 What to do? How do I suppress it the error if something goes wrong? Tha

Re: [PHP] Verifying a url

2004-01-06 Thread Richard Davey
Hello Thomas, Wednesday, January 7, 2004, 2:49:48 AM, you wrote: TA> My web site has two different ways to be accessed. One is through a SSL TA> connection and the other not. TA> Does anyone know how to check either the URL that is being used (https would TA> give away the SSL) or if you can ch

[PHP] Verifying a url

2004-01-06 Thread Thomas Andersen
Hi, My web site has two different ways to be accessed. One is through a SSL connection and the other not. Does anyone know how to check either the URL that is being used (https would give away the SSL) or if you can check if SSL is being used? Thanks, Thomas -- PHP General Mailing List (http:

Re: [PHP] supressing include warnings....

2004-01-06 Thread Richard Davey
Hello Ryan, Wednesday, January 7, 2004, 2:17:11 AM, you wrote: RA> [EMAIL PROTECTED]("http://www.site.com/product/check.php?ver=2&update=0";);} RA> else{} RA> $test_once=1; RA> One problem, if something goes wrong instead of doing nothing its displaying RA> warningseven though I have put a

[PHP] supressing include warnings....

2004-01-06 Thread Ryan A
Hi again, I got it working so that I can include a remote file from the clients machine. I am doing it like this: $test_once=0; $allow_url_fop = (int) ini_get('allow_url_fopen'); if($test_once==0) { if($allow_url_fop == 1) [EMAIL PROTECTED]("http://www.site.com/product/check.php?ver=2&update=0";

Re[2]: [PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Richard Davey
Hello Paul, Wednesday, January 7, 2004, 1:45:20 AM, you wrote: P> Thanks. The problem exists either way! For some reason that is beyond me, P> the combination of a javascript being called and the document being parsed P> through php is the cause. Again if I simply rename to .htm then it is P> "fi

Re: [PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Paul
Thanks. The problem exists either way! For some reason that is beyond me, the combination of a javascript being called and the document being parsed through php is the cause. Again if I simply rename to .htm then it is "fine." Anyhow I am indeed relying on the browser but that is not a problem in

Re: [PHP] allow_url_fopen detection....

2004-01-06 Thread Jason Wong
On Wednesday 07 January 2004 09:32, Ryan A wrote: > Quick question, how can I check if allow_url_fopen is enabled on a server > from my program? (forgot the syntax) ini_get() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

[PHP] allow_url_fopen detection....

2004-01-06 Thread Ryan A
Hi, Quick question, how can I check if allow_url_fopen is enabled on a server from my program? (forgot the syntax) the idea is: Check if allow_url_fopen is open in clients server...if yes, include a remote file, if no...do nothing. Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: Syntax Highlighting

2004-01-06 Thread Al
"Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm after a technique/method that will allow me to syntax highlight > source code on my web site. PHP already does a brilliant job of this > for PHP code, but I need to extend this to ANY form of source code. Try http://

[PHP] PHP help files in pdf

2004-01-06 Thread Student
Does anyone have the pdf format of the php help files with proper page numbering -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Syntax Highlighting

2004-01-06 Thread Richard Davey
Hi all, I'm after a technique/method that will allow me to syntax highlight source code on my web site. PHP already does a brilliant job of this for PHP code, but I need to extend this to ANY form of source code. Does anyone know of a way to do this (even in pseudo-code) or even better, a class/f

[PHP] Strong typed or Weak typed? (was: if("NANC" < 0) - always evaluates TRUE...)

2004-01-06 Thread Ivo Pletikosic
> -Original Message- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > > From: "Kelly Hallman" <[EMAIL PROTECTED]> > > > On Tue, 6 Jan 2004, Ivo Pletikosic wrote: > > > $data = 'NANC'; > > > if(is_numeric($data) && $data < 0) { die('Not OK'); } > > > > Interesting problem, one of t

Re: [PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Nelson Rodríguez-Peña Alarcón
Hi Paul, Paul wrote: I have a .php page. There are several form fields. When I populate the fields, submit to another page, and then use the browser's back button, the data is still there. This is indeed what I want. HOWEVER, when one field has a javascript event (ie. onClick open a browser window

[PHP] Bizzare form problem - Please Help!

2004-01-06 Thread Paul
Sorry if this is a repost, I could not see the original. Any help with this would be immensely appreciated! Here is what the problem I am having is: I have a .php page. There are several form fields. When I populate the fields, submit to another page, and then use the browser's back button, the

[PHP] Re: web-based and command line mcrypting and back again

2004-01-06 Thread Gary C. New
Tom, I appreciate the suggestion, but even after setting the iv to zero within the php code and including the --noiv option within the command line; it still does not produce the same base64 encoded string under both methods. I noticed that the command line was keying off of 2 passphrases and

Re: [PHP] Looping problem?

2004-01-06 Thread joel boonstra
On Tue, Jan 06, 2004 at 05:33:41PM -0500, joel boonstra wrote: > I would recommend not simply doing a select *, but rather specifying > which columns you want. That way, if your database schema changes > (e.g., you add two more columns), your code won't break. And, responding to myself, specifyi

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Chris Shiflett
--- Mike Migurski <[EMAIL PROTECTED]> wrote: > > Anyone know what is the php function for finding the length of the > > array? I haven't found the answer at > > http://us3.php.net/manual/en/ref.array.php . > > You are aware that all the available array functions are listed about > halfway down tha

Re: [PHP] Looping problem?

2004-01-06 Thread joel boonstra
On Wed, Jan 07, 2004 at 09:17:35AM +1100, Martin Towell wrote: > This is probably more like what you need. > I can't see why you'd need to loop through your results using two different > methods (while and for) > > require 'database.php'; > $t_02 = "subnets"; > $sql_subs = mysql_query("SELECT * FR

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Mike Migurski
> Anyone know what is the php function for finding the length of the array? >I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . You are aware that all the available array functions are listed about halfway down that page, right? --

RE: [PHP] Looping problem?

2004-01-06 Thread Martin Towell
This is probably more like what you need. I can't see why you'd need to loop through your results using two different methods (while and for) require 'database.php'; $t_02 = "subnets"; $sql_subs = mysql_query("SELECT * FROM $t_02",$db) or die(mysql_error()); $num = mysql_num_rows($sql_subs); for (

Re: [PHP] Looping problem?

2004-01-06 Thread Brad Pauly
On Tue, 2004-01-06 at 15:04, Jas wrote: > require 'database.php'; > $t_02 = "subnets"; > $sql_subs = mysql_query("SELECT * FROM $t_02",$db)or > die(mysql_error());while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) > = mysql_fetch_array($sql_subs)) { > $num = mysql_num_rows($sql_subs); >

[PHP] Looping problem?

2004-01-06 Thread Jas
require 'database.php'; $t_02 = "subnets"; $sql_subs = mysql_query("SELECT * FROM $t_02",$db)or die(mysql_error()); while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = mysql_fetch_array($sql_subs)) { $num = mysql_num_rows($sql_subs); for($z = 0; $z < $num; $z++) { $vlans[] = "subnet

RE: [PHP] generating .doc on the fly

2004-01-06 Thread Williams, Olwen - SAL
I tried this in another (rather odd) environment and had some success. I took a word document and saved it as HTML and then opened it in a text editor. I used a .doc extension and kept: http://www.w3.org/TR/REC-html40";> Print Antyhing apart from that was

Re: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread CPT John W. Holmes
From: "Kelly Hallman" <[EMAIL PROTECTED]> > On Tue, 6 Jan 2004, Ivo Pletikosic wrote: > > $data = 'NANC'; > > if(is_numeric($data) && $data < 0) { die('Not OK'); } > > Interesting problem, one of the first legit oddities I've seen since > joining the list. Anyway, in addition to your workaround,

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread CPT John W. Holmes
From: "Tyler Longren" <[EMAIL PROTECTED]> > That's not the exact code. The exact code is below. Multiple workers > are being selected from a MULTIPLE form field. I just use a > while loop do go through the selected ones to delete them individually. > > PHP Version: 4.3.4 > MySQL Version: 4.0.1

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread Michal Oskera
Hello, I use PHP v. 4.3.3 and MySQL v 4.1.0a and I have the same experience as Tyler. Also when performing INSERT and UPDATE commands. And I also don't know why. Mike "Cpt John W. Holmes" <[EMAIL PROTECTED]> píse v diskusním príspevku news:[EMAIL PROTECTED] > From: "Tyler Longren" <[EMAIL PROTECT

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
Hi Cpt, That's not the exact code. The exact code is below. Multiple workers are being selected from a MULTIPLE form field. I just use a while loop do go through the selected ones to delete them individually. PHP Version: 4.3.4 MySQL Version: 4.0.17 $i="0"; while ($i <= "$selected") {

[PHP] PHP and SNMP

2004-01-06 Thread Luke Bailey
*This message was transferred with a trial version of CommuniGate(tm) Pro* I'm trying to access some SNMP agents. I have to have use SNMP v2, otherwise the snmp requests time out. PHP seems to use SNMP v1 by default. How can I change this? EX: I need it to replicate the following command snmpget

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread CPT John W. Holmes
From: "Tyler Longren" <[EMAIL PROTECTED]> > I don't think mysql_affected_rows() is working like it should for me. > In the manual for mysql_affected_rows() it has this (Example 1): > > /* this should return the correct numbers of deleted records */ >mysql_query("DELETE FROM mytable WHERE id <

RE: [PHP] Re: PHP/MySQL with Microsoft Word

2004-01-06 Thread Vail, Warren
for accessing the word document, assuming your server is a windows platform consider the following; http://www.php.net/manual/en/ref.com.php good luck, Warren Vail -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Gary C. New Sent: Tuesday, January 06, 2004 12:12 PM To:

Re: [PHP] generating .doc on the fly

2004-01-06 Thread Naveed Ahmad
How can I generate .rtf files ??? "Jon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Nah... You can't use COM in Linux, but you can generate an RTF pretty > easily, which will open right up in Word with no problems whatsoever. > > -- jon > > --- > jon roig > web de

[PHP] fdf merge problem using version 6

2004-01-06 Thread Ford, Jon
Has anyone been successful in using the new FDF Toolkit version 6? I have been able to compile it into Apache and then compile php with fdftk but when I try to actually merge fdf data into a PDF I get errors in Acrobat. If anyone can shed some light it would be greatly appreciated. Thank you, J

[PHP] PHP & SNMP

2004-01-06 Thread Luke Bailey
I'm trying to access some SNMP agents. I have to have use SNMP v2, otherwise the snmp requests time out. PHP seems to use SNMP v1 by default. How can I change this? EX: I need it to replicate the following command snmpget -v2c ... Luke Bailey -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Kelly Hallman
On Tue, 6 Jan 2004, Ivo Pletikosic wrote: > $data = 'NANC'; > if(is_numeric($data) && $data < 0) { die('Not OK'); } Interesting problem, one of the first legit oddities I've seen since joining the list. Anyway, in addition to your workaround, casting the variable as an int also appears to result

Re: [PHP] counting charactors

2004-01-06 Thread Tyler Longren
Hi Philip, strlen() will work. http://www.php.net/manual/en/function.strlen.php Best Regards, -- Tyler Longren J.D. Web Services, L.C. On Wed, 2004-01-07 at 01:25, Philip J. Newman wrote: > can someone point me to the right place for a thing that would count charactors in a > string? > > --- >

[PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
Hi, I don't think mysql_affected_rows() is working like it should for me. In the manual for mysql_affected_rows() it has this (Example 1): /* this should return the correct numbers of deleted records */ mysql_query("DELETE FROM mytable WHERE id < 10"); printf("Records deleted: %d\n", mysql

RE: [PHP] Re: Session expiry issues in IE, still.

2004-01-06 Thread Larry Brown
Interesting point. After all, to remove a cookie you simply give it an expire time in the past. However, it should only explain the lack of cookie receipt. Since the user is able to surf for a period of time on the site before getting the boot, I wouldn't think it would apply. In the last post

[PHP] Re: PHP/MySQL with Microsoft Word

2004-01-06 Thread Gary C. New
Use MySQLODBC... I use it to manage my databases through MS Access. I haven't integrated it yet with Word, but it is my intention in the near future. Hope this helps. Respectfully, Gary Satch wrote: Is there any way to have a web page (PHP) that draws data from a database (MySQL) then popula

[PHP] Cross Server, Cross Database connection W/ JOINs

2004-01-06 Thread Jay Blanchard
Does anyone know how, if possible, to connect to two databases on two different network servers so that join queries can be performed (without using temporary tables)? I am using MySQL so mysql_pconnect() or mysql_connect() will insert a default server ('localhost:3306', per the docs) if I do not

[PHP] Site slowdown, elminating possibilities.

2004-01-06 Thread Mike Morton
Hey everybody. I am trying to eliminate possibilities for a site that is slowing down, and was hoping that you all could pick apart some code for me to see if there is some optimizations that you may suggest that may make some significant difference. The code in question here is called EVERY page

Re: [PHP] session issues for unauthorized access?

2004-01-06 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > At some point, the user is going to have to be responsible for his/her > > own actions. After all, I can log into my bank's Web site and then let > > someone else use my computer, and there's no way my bank can prevent > > it. > > Sure the bank can

RE: [PHP] Re: Import data from textfile

2004-01-06 Thread Jay Blanchard
[snip]Dang ! I get this error when I try to check for priv settings for my DB SQL-query : USE mysql MySQL said: Access denied for user: '[EMAIL PROTECTED]' to database 'mysql' [/snip] Well, you (master) do not have a

RE: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Ivo Pletikosic
Hi, Never noticed it before...only after the linux box got updated to v4.3.4...running the script against my v4.2.3 also outputs err 3 & err4...version 4.0.6 outputs nothing as it should. Odd...not sure where to start digging to figure this...in the meantime I'll work it around like this: $data

[PHP] PHP/MySQL with Microsoft Word

2004-01-06 Thread Satch
Is there any way to have a web page (PHP) that draws data from a database (MySQL) then populates a Microsoft Word document? I have some Microsoft Word templates that are manually populated and cry out for database integration, but Microsoft Access is not robust enough. For an even harder quest

Re: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Thorsten Schmidt
Ivo Pletikosic wrote: ...no matter what follows the NANC...seems like a bug. if("NA" < 0) { print("err 1\n"); } if("NAN" < 0) { print("err 2\n"); } if("NANC" < 0) { print("err 3\n"); } if("NANCY" < 0) { print("err 4\n"); } // output err 3 err 4 Same behaviour here, PHP Version 4.3.4 u

Re: [PHP] Re: Import data from textfile

2004-01-06 Thread Pushpinder Singh
Dang ! I get this error when I try to check for priv settings for my DB SQL-query : USE mysql MySQL said: Access denied for user: '[EMAIL PROTECTED]' to database 'mysql' Please advise. Thanks Pushpinder On Tuesday, January 6, 2004, at 02:29 PM, Jay Blanchard wrote: [snip] I am still stuck

[PHP] Microsoft Word

2004-01-06 Thread Satch
Is there a way to convert a web page into a Microsoft Word document? ...maybe with a PHP header of some kind? What I want to do is populate a web page with data from MySQL database, then open it in Microsoft Word. Alternatively, if you know how, I could populate the Word document directly fro

RE: [PHP] Re: Import data from textfile

2004-01-06 Thread Jay Blanchard
[snip] I am still stuck with this bug. Can some one advise me, how to find out if I have the FILE privilege on my DB or not. [/snip] USE mysql; SELECT * FROM user WHERE User = 'master'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session issues for unauthorized access?

2004-01-06 Thread Vail, Warren
Hate to disillusion you Scott, but Java cannot plug this hole. Let's conduct a test, with your account, not mine, eh? ;-) Warren Vail -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 11:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] sessio

Re: [PHP] Re: Import data from textfile

2004-01-06 Thread Pushpinder Singh
Hello again, I am still stuck with this bug. Can some one advise me, how to find out if I have the FILE privilege on my DB or not. Thanks again Pushpinder On Tuesday, January 6, 2004, at 12:08 PM, Michal Oskera wrote: Hi, ensure you have FILE privilege on the db-server host. Mike "Pushpind

[PHP] Vancouver PHP Conference - January 22-23

2004-01-06 Thread Shane Caraveo
Subject: The PHP Vancouver Conference - January 22-23 The Vancouver PHP Users' Association is proud to present The PHP Vancouver Conference, a professional and technical conference focused on the PHP scripting language. Join the world's leading PHP developers and business professionals as they sha

Re[2]: [PHP] session issues for unauthorized access?

2004-01-06 Thread Richard Davey
Hello Scott, Tuesday, January 6, 2004, 7:19:55 PM, you wrote: SF> Sure the bank can prevent it or otherwise my bank would never use the SF> website in the first place. My bank doesn't use PHP, it use JAVA and SF> surprisely, it work very well. Really? How would your bank determine the differenc

Re: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Richard Davey
Hello Ivo, Tuesday, January 6, 2004, 6:57:52 PM, you wrote: IP> ...no matter what follows the NANC...seems like a bug. IP> // output IP> err 3 IP> err 4 Not for me it doesn't. It outputs nothing (as it should). -- Best regards, Richardmailto:[EMAIL PROTECTED] --

Re: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread David Otton
On Tue, 6 Jan 2004 10:57:52 -0800, you wrote: >...no matter what follows the NANC...seems like a bug. > >if("NA" < 0) >{ > print("err 1\n"); >} > >if("NAN" < 0) >{ > print("err 2\n"); >} > >if("NANC" < 0) >{ > print("err 3\n"); >} if ("NANC" < 0) { echo ("one"); } else { ech

Re: [PHP] session issues for unauthorized access?

2004-01-06 Thread Scott Fletcher
>>At some point, the user is going to have to be responsible for his/her own >>actions. After all, I can log into my bank's Web site and then let someone >>else use my computer, and there's no way my bank can prevent it. Sure the bank can prevent it or otherwise my bank would never use the website

[PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Ivo Pletikosic
...no matter what follows the NANC...seems like a bug. if("NA" < 0) { print("err 1\n"); } if("NAN" < 0) { print("err 2\n"); } if("NANC" < 0) { print("err 3\n"); } if("NANCY" < 0) { print("err 4\n"); } // output err 3 err 4 -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] session issues for unauthorized access?

2004-01-06 Thread Vail, Warren
Scott, I suspect you will gets lot's of input on this one. There is a fairly glaring hack that allows users to override your session variables (if you rely on the feature of PHP that automatically adds session variables, as well as get and post variables, to the global pool [register_globals, I t

Re: [PHP] session issues for unauthorized access?

2004-01-06 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Is there a really good way to use PHP Session to tell whenether the > user is authorized user or not? Yes, there are many good ways, and I'm sure I'm not even aware of many of them. > I see one problem here, let's say the user tried to access certai

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > > "In fact, I hope you do more than "session_start() and go" > > in PHP, else you are probably vulnerable to a number of > > session-based attacks." > > Man, that's all I do alot of the time? What dangers are there, > care to share any facts figures about that...? P

Re: [PHP] counting charactors

2004-01-06 Thread Richard Davey
Hello Philip, Tuesday, January 6, 2004, 6:25:34 PM, you wrote: PJN> can someone point me to the right place for a thing that PJN> would count charactors in a string? count_chars() and strlen() -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailin

RE: [PHP] counting charactors

2004-01-06 Thread Jay Blanchard
[snip] can someone point me to the right place for a thing that would count charactors in a string? [/snip] http://www.php.net/strlen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can a module find a resource in its environment.

2004-01-06 Thread Richard Davey
Hello Jost, Sunday, January 4, 2004, 3:09:41 PM, you wrote: JB> For example I have a module foo/a.php which is required by b.php via JB> require ("foo/a.php"). Unfortunately within the module a.php the cwd() JB> is not foo but the context of b.php. The easiest way to fix this would Makes sense.

[PHP] counting charactors

2004-01-06 Thread Philip J. Newman
can someone point me to the right place for a thing that would count charactors in a string? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Identifiying multiple records for databse submission

2004-01-06 Thread Vernon
I'm creating a resume database where I am having resumes submitted to this database and keyword searches done. All works. Now I need to have a way of tagging items found in the database much like a shopping cart. So, I have a unique ID created each time someone does a search on the page which is b

[PHP] How can a module find a resource in its environment.

2004-01-06 Thread Jost Boekemeier
Hi, if I understand this correctly, a module looses its context if it is required or included. For example I have a module foo/a.php which is required by b.php via require ("foo/a.php"). Unfortunately within the module a.php the cwd() is not foo but the context of b.php. The easiest way to fix t

[PHP] session issues for unauthorized access?

2004-01-06 Thread Scott Fletcher
Is there a really good way to use PHP Session to tell whenether the user is authorized user or not? I see one problem here, let's say the user tried to access certain webpages that are unauthorized then I get to kick the user out. But when the user logged in, we assigned a session token to it, th

RE: [PHP] Comparison PHP to Perl

2004-01-06 Thread Brian . Goralczyk
Maybe I am going to show my own ignorance here, but I think if your looking for Server side web programming that PHP is much easier to use. Even some of the developers here that use perl a lot more than me, will say that web programming with perl is challenging in comparison. My logic is JavaSc

[PHP] Re: Import data from textfile

2004-01-06 Thread Michal Oskera
Hi, ensure you have FILE privilege on the db-server host. Mike "Pushpinder Singh" <[EMAIL PROTECTED]> píse v diskusním príspevku news:[EMAIL PROTECTED] > Hello All, > > I am trying to import data into MySQL DB using a CSV file (using > phpMyAdmin as the DB Admin tool). I keep getting the f

[PHP] Re: eregi filter stopping valid email address, part two

2004-01-06 Thread Manuel Lemos
Hello, On 01/06/2004 01:52 PM, Dave G wrote: A while ago on this list I posted a few questions about an eregi filter for email addresses entered into a form. With the help of people on this list, I settled on the following code which has worked fine in the months since I started using it.

[PHP] Import data from textfile

2004-01-06 Thread Pushpinder Singh
Hello All, I am trying to import data into MySQL DB using a CSV file (using phpMyAdmin as the DB Admin tool). I keep getting the following error. SQL-query : LOAD DATA LOCAL INFILE '/tmp/phpYRmG0A' INTO TABLE `contacts` FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'( `company` , `firs

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread Tristan . Pretty
>> "In fact, I hope you do more than "session_start() and go" in PHP, else you are probably vulnerable to a number of session-based attacks." Man, that's all I do alot of the time? What dangers are there, care to share any facts figures about that...? I'll go away now and read up again on sessions

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread Chris Shiflett
--- Warren Vail <[EMAIL PROTECTED]> wrote: > I am looking for a comparison of features supported by PHP vs those > supported by Perl. You'll find it difficult to identify a feature in one language that's not in the other. And, where features differ, the same solutions can probably be achieved with

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread Raditha Dissanayake
Hi, One man's perl is another man's headache. beeng using perl for six years and i have trouble understanding what other people wrote with it and vice verce. not so with PHP. and what ever the module you find on CPAN you will find an equivalent or similar in PHP as well. And finally on java, i

Re[2]: [PHP] [Fwd: failure notice] Why??

2004-01-06 Thread Richard Davey
Hello Chris, Tuesday, January 6, 2004, 4:13:09 PM, you wrote: CS> I think it happens for everyone, and Pair hosts a lot of the php.net CS> stuff, including handling the email, so I doubt it matters whether you use CS> Pair for SMTP. CS> I assume (I could be wrong) that they're working on the pro

Re: [PHP] eregi filter stopping valid email address, part two

2004-01-06 Thread CPT John W. Holmes
From: "Dave G" <[EMAIL PROTECTED]> > A while ago on this list I posted a few questions about an eregi > filter for email addresses entered into a form. With the help of people > on this list, I settled on the following code which has worked fine in > the months since I started using it. The code i

Re[2]: [PHP] str_replace to ignore commas

2004-01-06 Thread Richard Davey
Hello Vernon, Tuesday, January 6, 2004, 3:56:18 PM, you wrote: >> Nowhere in your replacement array do you check for, or remove, >> carriage returns. >> Add this \n to it: >> $replacement = array("\"", "\,", ".", "!", "?", "\n"); >> Your exploded array should now be correct. V> When I do this I

Re: [PHP] [Fwd: failure notice] Why??

2004-01-06 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > Hello Rolf, > > Tuesday, January 6, 2004, 1:26:31 AM, you wrote: > > RB> Whenever I submit a message to this list, I get a bounce back saying > RB> a dupe, anyone have any ideas? > > I get exactly the same - it's highly annoying and happens every ti

RE: [PHP] eregi filter stopping valid email address, part two

2004-01-06 Thread Ford, Mike [LSS]
On 06 January 2004 15:53, Dave G wrote: > PHP Gurus > > A while ago on this list I posted a few questions about an eregi > filter for email addresses entered into a form. With the help > of people > on this list, I settled on the following code which has worked fine in > the months since I

Re: [PHP] str_replace to ignore commas

2004-01-06 Thread Vernon
> Nowhere in your replacement array do you check for, or remove, > carriage returns. > Add this \n to it: > $replacement = array("\"", "\,", ".", "!", "?", "\n"); > Your exploded array should now be correct. When I do this I get some really unexpected results. Almost everything comes up bold. --

[PHP] eregi filter stopping valid email address, part two

2004-01-06 Thread Dave G
PHP Gurus A while ago on this list I posted a few questions about an eregi filter for email addresses entered into a form. With the help of people on this list, I settled on the following code which has worked fine in the months since I started using it. The code is this: eregi('[EMAIL PR

RE: [PHP] generating .doc on the fly

2004-01-06 Thread jon
Nah... You can't use COM in Linux, but you can generate an RTF pretty easily, which will open right up in Word with no problems whatsoever. -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone: 888.230.7557 -Original Message- From: Naveed Ahmad [mail

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Neil Freeman
Or you can use sizeof() which is an alias for count() Scott Fletcher wrote: *** This Email Has Been Virus Swept *** Ah! Thanks!!! "Chris Hayes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] At 1

Re: [PHP] str_replace to ignore commas

2004-01-06 Thread Richard Davey
Hello Vernon, Tuesday, January 6, 2004, 2:29:31 PM, you wrote: V> I'm trying to use str_replace to ignore sertain characters from a recordset V> field and it seems I am having difficulties with ignoring commas and V> carriage returns. I've gotten the following but when searching for, let's Nowhe

[PHP] This is why PHP sucks

2004-01-06 Thread Big Walker
http://www.americansubstandard.com/index.php?sub=v&word=vmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >