[PHP] generating .doc on the fly

2004-01-06 Thread Naveed Ahmad
I want to save a document in .doc format on the fly but my server is running on a linux machine. Can I still make use of COM object? Or there is some other module which I can easily load on the fly??? somebody told me the link below butI cannot find the module from there... :S

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread Mike Migurski
I am looking for a comparison of features supported by PHP vs those supported by Perl. My gut tells me PHP is more robust, but we are trying to implement something in a company that has long had a standard allowing Perl as a sanctioned language, but current management does not want to fight for

RE: [PHP] Cannot send session cache limiter SOLVED

2004-01-06 Thread john
from the code: ?php include 'navigationStart3.php4'; Are these indents in the code (changeAlertDetails3.php4 I think)? You can't have anything before the ?php. yup, that was it red face, sorted, thanks everyone J -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Comparison PHP to Perl

2004-01-06 Thread Al
Warren Vail [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am looking for a comparison of features supported by PHP vs those supported by Perl. [snip] Ah, this old chestnut. As someone who wrote a major application in Perl, and now (mostly) uses PHP, I can only reiterate what's

[PHP] globals?

2004-01-06 Thread Bryan Koschmann - GKT
Hi, I was just curious, how much longer are globals going to be supported? I had heard awhile back that they wouldn't be around for too long. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: detaching and running php processes in the background

2004-01-06 Thread Gary C. New
In order to get this to work I had to do several things. 1. I had initially compiled my php installation as a server-side module, but in order to execute and detach a background php process I had to recompile my php installation as a binary installation (hint: if you compile php as a binary

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

2004-01-06 Thread Gary C. New
I am trying to figure out how to encrypt data using the web-based php mcrypt function and then decrypt it using the command line (cli) mcrypt binary, and vica-versa. I cannot seem to get the same encrypted output for the same data, between the two methods. I've tried to ensure I am using the

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

2004-01-06 Thread David T-G
Rolf, et al -- ...and then Rolf Brusletto said... % % Whenever I submit a message to this list, I get a bounce back saying its % a dupe, anyone have any ideas? I figured some pair subscriber has a loop in his .forward setup. % % -- % Rolf Brusletto % rolf[at]emailfeeds[dot]com %

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

2004-01-06 Thread Tom Rogers
Hi, Tuesday, January 6, 2004, 8:48:17 PM, you wrote: GCN I am trying to figure out how to encrypt data using the web-based php GCN mcrypt function and then decrypt it using the command line (cli) mcrypt GCN binary, and vica-versa. GCN I cannot seem to get the same encrypted output for the same

Re: [PHP] Readfile, DAP and 3 questions

2004-01-06 Thread Adam i Agnieszka Gasiorowski FNORD
Ryan A wrote: Opera version 6.5 and 7... I already had that set. Try asking again on news:opera.general (if your server does not carry this newsgroup, try news.opera.com). There are more Opera - knowleable people there :8]. I recall that there is a solution, I just cannot find

[PHP] Error/ Warning messages in log files (OS 121) and (OS 64)

2004-01-06 Thread Trevor Dowling
(Relisted as no response from over Xmas period) Hi, I am having a real problem with error messages posted in the error.log file in the Apache directory. I have been doing lots of searches to find a solution and it seems obvious that many people are see this issue but I can find no resolution

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread David T-G
Warren -- ...and then Warren Vail said... % % I am looking for a comparison of features supported by PHP vs those % supported by Perl. In general, I'd say that there's nothing that one can do that the other can't, though I'd also say that for things not native to the language (or even for

RE: [PHP] Getting results from Select Multiple HTML tag

2004-01-06 Thread Ford, Mike [LSS]
On 06 January 2004 04:06, Tyler Longren wrote: Hi, http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple I read that. Doesn't work in php since the whole register_globals thing. Now, when I get the results from a form, they're all in a $_POST[] array. Example. When I

RE: [PHP] Strange IF(condition) behaviour

2004-01-06 Thread Ford, Mike [LSS]
On 06 January 2004 03:58, Tim L wrote: I'm not sure if this is intended behaviour or not, but I can see that is might be. Just thought I would bounce this to see what people think about it: ?php if (false) ? Hello?php else echo Hi; echo World\n; ? This returns a parse

[PHP] Newbie with sorting problem

2004-01-06 Thread Bart Koppe
Hi all, I'm quite a newbie ot php/mysql, so my question might be oversimple (though i tried for hours to understand..) I'm making an addressbook, as a try out, to see how it al works. All is great actually, but only the sorting of the addresses seems complicated for me.. I have a databse

[PHP] Re: Newbie with sorting problem

2004-01-06 Thread pete M
Just add order by to the sql query instead eg SELECT id, name, surname, address FROM addresses order by name asc; or descending on surname eg SELECT id, name, surname, address FROM addresses order by surname desc; hope this helps Pete Bart Koppe wrote: Hi all, I'm quite a newbie ot php/mysql,

RE: [PHP] Newbie with sorting problem

2004-01-06 Thread Jay Blanchard
[snip] $result = mysql_query( SELECT id, name, surname, address FROM addresses); This scripts works, but.. my desire is now to be able to sort the output, wich is generated by the 'while' loop, for instance on 'name', or on 'surname' . [/snip] Do it in

Re: [PHP] Newbie with sorting problem

2004-01-06 Thread Richard Davey
Hello Bart, Tuesday, January 6, 2004, 12:40:38 PM, you wrote: BK This scripts works, but.. my desire is now to be able to sort the BK output, wich is generated by the 'while' loop, for instance on 'name', BK or on 'surname' . sort(), ksort()? I couldn't understand the BK explanations i found

[PHP] str_replace to ignore commas

2004-01-06 Thread Vernon
I'm trying to use str_replace to ignore sertain characters from a recordset field and it seems I am having difficulties with ignoring commas and carriage returns. I've gotten the following but when searching for, let's say, New York. When York is at the end of a sentence from a recordset field it

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

2004-01-06 Thread Scott Fletcher
Hi! 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 . Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-01-06 Thread Chris Hayes
At 15:44 6-1-04, you wrote: Hi! 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 . looking for the number of elements? -count($arrayname) -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Strange IF(condition) behaviour

2004-01-06 Thread Michal O¹kera
Hi Tim, ?php if (false) ?Hello?php ? or ?php if (true) ?Hello?php ? at first, I'd like to point out that semicolon as a statement separator is not required before end of the php fragment and is supplied automatically during parsing. That's why the if-statements initiated above

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

2004-01-06 Thread Scott Fletcher
Ah! Thanks!!! Chris Hayes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 15:44 6-1-04, you wrote: Hi! 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 . looking for the

Re: [PHP] str_replace to ignore commas

2004-01-06 Thread Chris Hayes
At 15:29 6-1-04, you wrote: I'm trying to use str_replace to ignore sertain characters from a recordset field and it seems I am having difficulties with ignoring commas and carriage returns. I've gotten the following but when searching for, let's say, New York. When York is at the end of a

Re: [PHP] str_replace to ignore commas

2004-01-06 Thread Vernon
could the problem be that you explode on so the phrase 'New York', having a space, is split up? Could be. Some times the New is on one line and the York is on the next line. I need for it to explode no matter what. How would I do that? For instance the print_r for the array shows me this in

Re: [PHP] developing a plug-in framework

2004-01-06 Thread Justin French
As a follow-up to my own post, I found the following resources good for inspiration of both implementation methods and general insight: http://gplugs.sourceforge.net/pluginman/ http://nucleuscms.org/documentation/devdocs/plugins.html I've already written about 1000 words specifying my own ideas

Re: [PHP] generating .doc on the fly

2004-01-06 Thread Marek Kilimajer
Simply create a html file and give the user impression that it's in doc format - output the right header and give it .doc extension Naveed Ahmad wrote: I want to save a document in .doc format on the fly but my server is running on a linux machine. Can I still make use of COM object? Or there is

Re: [PHP] str_replace to ignore commas

2004-01-06 Thread Chris Hayes
At 15:58 6-1-04, you wrote: could the problem be that you explode on so the phrase 'New York', having a space, is split up? Could be. Some times the New is on one line and the York is on the next line. I need for it to explode no matter what. How would I do that? For instance the print_r for

[PHP] This is why PHP sucks

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

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 Nowhere

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

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

[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

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 General

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] [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 time. Do

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 get some really

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 is this:

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

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,

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 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...!

[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` ,

[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] 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

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

[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,

[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

[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

[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

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. JB

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] 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 Mailing

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...? PHP provides

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 certain

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

[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 unsubscribe, visit:

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 in

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 { echo (two); } outputs two here, as

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[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 difference

[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

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

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]

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

[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

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

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 under Linux debian

[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

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

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

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 prevent it

[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

[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

[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

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] 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,

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? ---

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 in

[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

[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,

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 developer

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] 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 10);

[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

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 select 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) {

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 PROTECTED]

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 select 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

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, casting the

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: html xmlns:o=urn:schemas-microsoft-com:office:office xmlns:w=urn:schemas-microsoft-com:office:word

[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] 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);

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 ($z

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 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 * FROM

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 that page,

Re: [PHP] Looping problem?

2004-01-06 Thread joel boonstra
On Tue, Jan 06, 2004 at 05:33:41PM -0500, joel boonstra wrote: snip 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,

[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

[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

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

  1   2   >