RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
Zend will never include a free encoder/accelerator into php by default. What I am waiting for is Turck MMCache to offer a download of a file like php-4.3.4.tar.gz with Turck included. So when I need to upgrade php, I would go download a new version of php from Turck instead of php.net. What I

Re: [PHP] Unzip a file.

2003-11-17 Thread Raditha Dissanayake
For anyone playing around with zip files on a web application i hope you have updated your zip libraries there were some vulnerabilities in it recently. Vincent M. wrote: Kim Steinhaug wrote: on phpclasses.org there is a ZIP class that does all you need to do. Havnt got the time to give you

[PHP] Re: greek in php-xml

2003-11-17 Thread Lucian Cozma
Send me a piece of the xml file you're having problems with. I'll make it work (output a utf-8 html with greek characters). BTW, do you use DOM or just the xml_parser_create functions? Pnp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I tried that, but still i got weird symbols.

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Manuel Lemos
Hello, On 11/17/2003 05:17 AM, Michael wrote: Zend will never include a free encoder/accelerator into php by default. What I am waiting for is Turck MMCache to offer a download of a file like php-4.3.4.tar.gz with Turck included. So when I need to upgrade php, I would go download a new version

Re: [PHP] upload file size

2003-11-17 Thread Raditha Dissanayake
Gerard Samuel wrote: On Friday 14 November 2003 12:48 pm, joe wrote: is there a way to check the file size without fully uploading the file? No there isnt, well at least not via php... correct. There are two solutions you can upload with a java applet, the applet can be configured to

[PHP] Re: Get value between 2 strings

2003-11-17 Thread Lucian Cozma
This should do the trick: $line = I want the value between word ONE and word TWO. Please return it...; preg_match('/ONE(.*)TWO/i', $line, $ret); print_r($ret); Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello. I was wondering if anyone knew of a function to get the

Re: [PHP] Get value between 2 strings

2003-11-17 Thread Justin French
On Monday, November 17, 2003, at 05:27 PM, Matt Palermo wrote: Hello. I was wondering if anyone knew of a function to get the value between 2 strings. For example, lets say I have the following line: $line = I want the value between word ONE and word TWO. Please return it...; Now, I want to

[PHP] Re: giving variable value in URL problem

2003-11-17 Thread Lucian Cozma
Try: if (isset($_GET['status']) $_GET['status'] ==0) { echo Trying; } The warning is triggered by the fact that you use a variable that was not previously defined. Check it before use with isset. If in php.ini the value error_reporting = E_ALL, it will output warnings. If you want the

Re: [PHP] Unzip a file.

2003-11-17 Thread volker at multiartstudio dot de
tip, search php.net for zziplib there are very useful hints and functions from other users.. i found there everything i needed, but a class is somewhat bettersure. regards, volker Raditha Dissanayake wrote: For anyone playing around with zip files on a web application i hope you

[PHP] MySQL Time Zones, correct codes, and global variable setting (was: Set time zone)

2003-11-17 Thread Dave G
GoLive Gurus, GoLive? This is PHP :P Doh! Sorry about that. Got my wires crossed. http://www.php.net/putenv putenv(TZ=EST); etc. (check the user notes). Ah, that's done it! Thank you! Now, of course, the problem is MySQL. My PHP scripts all think they are in Japan, and my MySQL db

Re: [PHP] Good php WebMail Clients thru apache

2003-11-17 Thread Becoming Digital
SquirrelMail isn't bad and it's PHP-based. Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: Jerry Alan Braga [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, 16

Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Becoming Digital
I'm guessing we don't have to include a '?' anymore? Not sure I like that idea... Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: Robert Cummings [EMAIL PROTECTED]

Re: [PHP] include/require not allowed in classes?

2003-11-17 Thread Pavel Jartsev
Boyan Nedkov wrote: Initializing data members (var-s) of a class with non-constant values is completely legal operation in PHP, so I don't think this could be a reason for the problem. hmmm... PHP manual says something else... http://www.php.net/manual/en/language.oop.php In PHP 4, only

Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Robert Cummings
On Mon, 2003-11-17 at 03:32, Becoming Digital wrote: I'm guessing we don't have to include a '?' anymore? Not sure I like that idea... It's optional, so you can feel free to include it if it makes you happy. But from a library standpoint, it's generally just a hassle to include it and then pray

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
I've tried installing it but I need MS Visual Studio C++ so they have to make it even easier. Windows Installation Notes == To build Turck MMCache on Windows platform you will need MS Visual Studio C++ 6.0. Step 1. Compiling Turck MMCache - Unpack php sources. - Put

[PHP] PHP browser windows control.

2003-11-17 Thread Carles Xavier Munyoz Bald
Hi, I would like to know if it is possible to have any kind of control from php over the web browser openned windows. I have the main web browser window and another soon window. I want to know if this windows is open. If it is not open, open it, and if is already open, bring it to front. May I

Re: [PHP] Unzip a file.

2003-11-17 Thread Kim Steinhaug
Hello! This one : http://www.phpclasses.org/browse.html/package/870.html I remember doing the zip research a while ago and tested several classes and methods, but this class was the one that worked flawlessly! Ive installed and used this class myself, and it works on both linux and windows.

Re: [PHP] Storing images for photo album?

2003-11-17 Thread Kim Steinhaug
Yes, What system are you using for generating the thumbs for your images? ImageMagick or GD? If you are able to choose you should by all means choose ImageMagick since its much more powerfull than GD. Ive been using both (meaning, I use GD as a second sollution where Image Magick isnt available,

Re: [PHP] PHP browser windows control.

2003-11-17 Thread Pavel Jartsev
Carles Xavier Munyoz Baldó wrote: ... May I do it using PHP ? No, PHP is unfortunately server-side. :) I believe thah I can do it using javascript ... may someone give me a web address where can I get any help about this iussue ? Maybe here: http://javascript.internet.com/ -- Pavel a.k.a. Papi

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Kim Steinhaug
I dont see the problem here at all, here is my test : CutNpaste into your own environment ans save as .php file . All I did was remove the php_info() so that variables dont get messed up (apparently), and removed the error_reporting. Result gives this : array(3) { [username]= string(3) 123

Re: [PHP] _SESSION, _POST, and _GET

2003-11-17 Thread Marek Kilimajer
David T-G wrote: Yeah. In fact, about half an hour ago I figured that I was spending more time figuring out how to extract in the right order -- or in a limited way -- than I would just doing it right, so I started running through the code looking for any $pw and friends to change :-) When

[PHP] greek in php-xml

2003-11-17 Thread pnp
Hi, I'm developing a web site for a greek company and I want to show some greek texts from an xml file to an html page. The pages encoding is utf-8. So is the xml file and the xmlparses params. But the output is a bunch of ???... What am I doing wrong? Is there any way to do this? Thanks in

[PHP] php-xml

2003-11-17 Thread pnp
Hi, I'm developing a web site for a greek company and I want to show some greek texts from an xml file to an html page. The pages encoding is utf-8. So is the xml file and the xmlparses params. But the output is a bunch of ???... What am I doing wrong? Is there any way to do this? Thanks in

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Ivan Marenic
Hi, Kim. Your example is good but you missed the point here. Chris knows exactly where my problem is. Sending HTTP POST from mobile device is a bit different than using classic web client. It shouldnt be, but it is. Data is going trough WAP gateways, mobile operators proxeis ... Worst case

[PHP] setting a global var so that all pages can see var

2003-11-17 Thread PAUL FERRIE
Hello again guys, thanks for the help over the past 48 hours :) Over the past week i have had the job of tweaking the php pages of a friends site. so far so good :) Now i am onto the admin area for running the website. I downloaded one of the many db managers scripts from www.hotscripts.com

[PHP] Re: thanks for the summary (was Re: [PHP] Can't fetch ...)

2003-11-17 Thread David T-G
Ivan -- ...and then Ivan Marenic said... % % Sending HTTP POST from mobile device is a bit different than using classic % web client. It shouldnt be, but it is. Ouch. How very interesting. I had missed that through this thread, so I'm really grateful for the summary. I'm even more grateful

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread David T-G
Michael -- ...and then Michael said... % % I've tried installing it but I need MS Visual Studio C++ so they have to % make it even easier. It's easier already: abandon Windows for some *NIX system ;-) I hate to sound like a curmudgeon, but if you want this then you should build it, just like

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread Burhan Khalid
PAUL FERRIE wrote: Hello again guys, thanks for the help over the past 48 hours :) Over the past week i have had the job of tweaking the php pages of a friends site. so far so good :) Now i am onto the admin area for running the website. I downloaded one of the many db managers scripts from

Re: [PHP] Re: Alternet row colors

2003-11-17 Thread Chris Hayes
At 01:28 16-11-03, you wrote: It's so much easier to use the mod (%) operator: Ah, the alternating rowcolors. I have a proposal that's a lot lighter on your server. I prefer this as it does not require a calculation for each row (%2), and no counter (and no numrows call). I think it will be

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread PAUL FERRIE
lol i not that feeling whaen it come to flash based questions ;) Cheers] Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PAUL FERRIE wrote: Hello again guys, thanks for the help over the past 48 hours :) Over the past week i have had the job of tweaking the php

[PHP] Re: GD question

2003-11-17 Thread DvDmanDT
$im=imagecreatetruecolor(9,9); $im2=imagecreatefrompng('tile.png'); imagecopy($im,$im2,0,0,0,0,3,3); imagecopy($im,$im2,3,0,0,0,3,3); imagecopy($im,$im2,6,0,0,0,3,3); imagecopy($im,$im2,0,3,0,0,3,3); imagecopy($im,$im2,6,3,0,0,3,3); imagecopy($im,$im2,0,6,0,0,3,3); imagecopy($im,$im2,3,6,0,0,3,3);

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread John W. Holmes
David T-G wrote: ...and then Michael said... I've tried installing it but I need MS Visual Studio C++ so they have to make it even easier. I hate to sound like a curmudgeon, but if you want this then you should build it, just like John anyone else who wants it should. That's not really the

[PHP] Re: thanks for the summary (was Re: [PHP] Can't fetch ...)

2003-11-17 Thread Kim Steinhaug
Alrighty! That sheds some more light on this. How exactly can I replicate this scenario then, using my mobile phone? I have a Nokia 3610i i think, with MMS capabilituies and GPRS WAP. Ive never accually thought of expanding website possibilities with this use, how excatly do I post from my

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread PAUL FERRIE
I am still stuck I now have this in the navigation page ?php if (isset($_GET['tablename'])) { echo loaded b{$_GET['tablename']}/b; } else { i$tablename/i did not get sent; } ? this gets the tablename from the previous page from the dropdown menu but still the other pages are not picking it

Re: [PHP] php-xml

2003-11-17 Thread Becoming Digital
Please post some of your code. It is incredibly difficult to help you without it. Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: pnp [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-17 Thread Becoming Digital
from a library standpoint, it's generally just a hassle to include it and then pray you didn't have some whitespace following. I hadn't thought of it that way. I run everything through a code cleaner to prevent just that, but it might be nice to stop doing so. code is cleaner if it has no

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread Pavel Jartsev
PAUL FERRIE wrote: ... add new data to the DB On the links have: a href=edit.php?tablename=$tablenameView database/abr U are outputting those links incorrectly, because resulting HTML contains $tablename. Try output those links this way... a href=edit.php?tablename=? echo $_GET['tablename']

[PHP] Re: setting a global var so that all pages can see var still :(

2003-11-17 Thread PAUL FERRIE
How would i pass tablename in the submit button? Check out edit record u wil see http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html Cheers Paul Paul Ferrie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello again guys, thanks for the help over the past 48 hours :)

[PHP] Is PHP License GPL?

2003-11-17 Thread Chris
I was looking for license information on the PHP site and only found The PHP License, version 3.0 http://www.php.net/license/3_0.txt 1 - Is this license information only applicable to PHP version 3.0? 2 - Is there no license for Version 4+ or is this now covered by GPL? From the PHP web site: Q.

[PHP] Unexpected result in floor function

2003-11-17 Thread ruben
Hi: Why is the floor function returning 27564 instead of 27565 in this script? PHP version is 4.2.2. Thanks! Ruben. #!/usr/bin/php -q ?php $b = 275.65 * 100; echo \n\nb= .$b; echo \nfloor(b)= .floor($b);// Incorrect. why 27564? $b = 27565; echo \n\nb= .$b; echo \nfloor(b)=

RE: [PHP] PHP fopen function

2003-11-17 Thread Jay Blanchard
[snip] Yes, I am calling the fopen with two parameters. The filename is also a string. The problem is when I pass a string variable the fopen fails but succeeds when I pass a constant string. [/snip] Can you show us the actual code for your fopen? Including the place where the string variable is

Re: [PHP] Is PHP License GPL?

2003-11-17 Thread David Otton
On Mon, 17 Nov 2003 08:44:52 -0600, you wrote: I was looking for license information on the PHP site and only found The PHP License, version 3.0 http://www.php.net/license/3_0.txt 1 - Is this license information only applicable to PHP version 3.0? The licence is bundled with the software. 2 -

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Manuel Lemos
Hello, On 11/17/2003 06:57 AM, Michael wrote: I've tried installing it but I need MS Visual Studio C++ so they have to make it even easier. Yes, you are right for those that want to build it from source on Windows, having to buy MSVC++ may be a drag. I think I saw somewhere that there is a

Re: [PHP] Unexpected result in floor function

2003-11-17 Thread Randal Neirynck
This has to do with the floating point precision. I quote the manual: It is quite usual that simple decimal fractions like 0.1 or 0.7 cannot be converted into their internal binary counterparts without a little loss of precision. This can lead to confusing results: for example,

[PHP] Single Session for different websites

2003-11-17 Thread Manisha Sathe
I hv physically one single server, but with different websites on it like www.aaa.com / www.bbb.com / www.ccc.com Now the problem is about session. What I want is login page at www.aaa.com only but session is accessible from www.bbb.com and www.ccc.com can it be possible, if yes how ? if no

Re: [PHP] Unexpected result in floor function

2003-11-17 Thread Marek Kilimajer
ruben wrote: Hi: Why is the floor function returning 27564 instead of 27565 in this script? PHP version is 4.2.2. Thanks! Ruben. #!/usr/bin/php -q ?php $b = 275.65 * 100; $b = (int)$b; /* $b was a floating point number with value something like 27564.989, when displayed it shows

[PHP] fopen and preg_match

2003-11-17 Thread Sami Kyösti
Hi, I have a code that should fetch the information from another webpage. The code find's the page, but I can't make it stop on /table sign. Where is the problem? Here is the code - $fp=fopen(http://www.yle.fi/top40/index.php?page=lista_singlet20,r;); $buffer = fread ($fp, 100);

[PHP] WinXP+Apache2+php4+php5=almost true

2003-11-17 Thread Øystein Håland
I had no problem installing php4 as sapi module and php5 as cgi executeable. The server starts with no error messages. BUT, when I try opening a file (phpinfo.php5 with content ?php phpinfo(); ? the server return a 500 Internal Server Error. Have the following lines added to httpd.conf LoadModule

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Jay Blanchard
[snip] In practice it seems that Zend has the final say on PHP, and I think it's bad for the language. [/snip] That is just plain incorrect. If there were a final arbiter PHP would cease to be truly open source, and I think the folks on the PHP-DEV list would be quick to correct you. -- PHP

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
David T-G says I hate to sound like a curmudgeon, but if you want this then you should build it, just like John anyone else who wants it should. No, I haven't looked at either (I don't even know what an encoder does; I *think* that it could be a precompiler or an obfuscator but don't really

[PHP] easy and simple way to read xml into array

2003-11-17 Thread Victor Spång Arthursson
Hi! Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple Arent there an easy way in PHP to accomplish this? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Having fits with input to array

2003-11-17 Thread Susan Ator
Hm... I should clarify this some more. This is the result of $Array2: Array ( [0] = Array ( [0] = 15083 [1] = bash [2] = S [3] = 4380 [4] = 10:31 [5] = 000 [6] = sator [7] = 00:00:00 [8] = -bash ) [1] = Array ( [0] = 15126 [1] = bash [2] = S [3] = 4380 [4] = 10:31

Re: [PHP] SSH and php

2003-11-17 Thread Ryan A
Hey David, % Is it possible to run a SSH command from php? Sure; it's possible to run any command from php. It may not work all that well, though :-) heheh, good one. As helpful as usual :-D % coming from a windows background I have no idea about shell/SSH and am % pretty lost. % Doing a

[PHP] WinXP+Apache2+php4+php5=almost true

2003-11-17 Thread Øystein Håland
I had no problem installing php4 as sapi module and php5 as cgi executeable. The server starts with no error messages. BUT, when I try opening a file (phpinfo.php5 with content ?php phpinfo(); ? the server return a 500 Internal Server Error. Have the following lines added to httpd.conf LoadModule

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Curt Zirzow
* Thus wrote Michael ([EMAIL PROTECTED]): I've tried installing it but I need MS Visual Studio C++ so they have to make it even easier. There is a compiled version on the website for windows. Go to the download section and you'll see that they have it available for multiple version of php

Re: [PHP] SSH and php

2003-11-17 Thread Duncan Hill
On Monday 17 November 2003 15:02, Ryan A wrote: So I guess my question gets cut down to basically any good place/program to learn/use SSH? No such thing as an 'ssh command' really.. apart from the command used to invoke SSH. SSH (crudely) is an encrypted form of telnet. You need a beginner's

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Curt Zirzow
* Thus wrote Arne Rusek ([EMAIL PROTECTED]): If someone is interested in reading through the whole result it could be downloaded from http://zonk.matfyz.cz/php_post_problem Your problem exists here: Server API = Command Line Interface _ENV[SERVER_SOFTWARE] = Boa/0.94.13 Seeing this

Re: [PHP] SSH and php

2003-11-17 Thread Mike Migurski
% Doing a quick search on google for SSH commands and SSH help returned % quite a lot % of crap that really didnt help me learn. Good enough. What do you want to do? Basically stop/restart apache when i make changes to the httpd.conf file. But then thinking of it I realize that if I stop apache

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-17 Thread Curt Zirzow
* Thus wrote Ivan Marenic ([EMAIL PROTECTED]): I did not omit content. Copied whole text box in sniffer using context menu comands (select all, copy) - pasted to news agent. There is no content. I didn't see the output of phpinfo or your print_r(). that leads me to believe that your sniffer

Re: [PHP] php-xml

2003-11-17 Thread Curt Zirzow
* Thus wrote pnp ([EMAIL PROTECTED]): Hi, I'm developing a web site for a greek company and I want to show some greek texts from an xml file to an html page. The pages encoding is utf-8. So is the xml file and the xmlparses params. But the output is a bunch of ???... You need to set the

Re: [PHP] setting a global var so that all pages can see var

2003-11-17 Thread Curt Zirzow
* Thus wrote PAUL FERRIE ([EMAIL PROTECTED]): Hello again guys, thanks for the help over the past 48 hours :) Over the past week i have had the job of tweaking the php pages of a friends site. so far so good :) Now i am onto the admin area for running the website. I downloaded one of

RE: [PHP] msession - giving me a hard time

2003-11-17 Thread Guillaume Dupuis
Now, if you don't see any session ID appended to the URL, that means SID is empty and you're more than likely depending upon cookies. So, you need to retrieve the session id and append it to the URL yourself. ?php @ session_start(); $sessname = session_name(); $sessid = session_id(); @

Re: [PHP] fopen and preg_match

2003-11-17 Thread Chris Hayes
At 15:07 17-11-03, you wrote: Hi, I have a code that should fetch the information from another webpage. The code find's the page, but I can't make it stop on /table sign. preg_match(|tr class=\listRow2\td class=\listRow2\span class=\listIndex\1.+\\/table\|is, $buffer, $regs ); It probably

Re: [PHP] easy and simple way to read xml into array

2003-11-17 Thread Chris Hayes
At 15:47 17-11-03, you wrote: Hi! Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple… Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Microsoft .NET arguement

2003-11-17 Thread Mike R
I have someone here at my desk arguing that Microsoft's .NET is better than PHP - faster to process, easier and quicker to program, etc. They also (claim) that Microsoft's SQL is much faster and such vs. MySQL. Any comments to help me defend PHP or to educate me? :) -Mike -- PHP General

Re: [PHP] Having fits with input to array

2003-11-17 Thread CPT John W. Holmes
- Original Message - From: Susan Ator [EMAIL PROTECTED] Hm... I should clarify this some more. This is the result of $Array2: Array ( [0] = Array ( [0] = 15083 [snip] What I need is to be able to assign a variable to $Array2[0] - [0] so for the first one it would be: $var0 =

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Jay Blanchard
[snip] I have someone here at my desk arguing that Microsoft's .NET is better than PHP - faster to process, easier and quicker to program, etc. They also (claim) that Microsoft's SQL is much faster and such vs. MySQL. Any comments to help me defend PHP or to educate me? [/snip] Both 'arguments'

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Dan Joseph
Hi, From my experiences, your coworkers are somewhat correct. I found MySQL to be as fast in most cases, however in databases with millions of records, MySQL started slowing down before the MS SQL did. As for PHP being slower to program, I disagree. Its about the same, and in

Re: [PHP] msession - giving me a hard time

2003-11-17 Thread CPT John W. Holmes
From: Guillaume Dupuis [EMAIL PROTECTED] This works. My second page has the suffix '?PHPSESSID=e6t9tu43j9tj39j...', that matches the 'echo $sessid' I've added to your script above, so this part did work. But to test it, I do this in my second page: ?php session_start(); $sessid =

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Jay Blanchard
[snip] ... [/snip] http://www.sitepoint.com/article/870 GIS for Microsoft NET vs. PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSH and php

2003-11-17 Thread David T-G
Ryna -- ...and then Ryan A said... % % Hey David, Hiya! % % % Is it possible to run a SSH command from php? % Sure; it's possible to run any command from php. It may not work all % that well, though :-) % % heheh, good one. As helpful as usual :-D Always there for ya, man :-) % % Good

[PHP] confusing ouput!

2003-11-17 Thread ike strong
For a trial, I saved the following input in ..\apache\htdocs as suggested. html head titleToday's Date/title /head body pToday's Date (according to this web server) is ?php echo( date('1, F ds Y.') ); ?/p /body /html But this is the only thing I could see on my browser: Today's Date

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Mike R
Actually, their claim is that Microsoft environments are secure - you just need the proper firewall (that, basically, the problems with Windows boxes has to do with the firewall, not the OS). That one I laughed at. -Mike and next they will no doubt claim that IIS (and windowz in general) is

RE: [PHP] confusing ouput!

2003-11-17 Thread Jay Blanchard
[snip] - I'm a newbie to this affair! So I hope this wasn't a wrong decision. Nevertheless, the follwing are the few lines I added to the httpd.conf. file: #LoadModule php4_module c:/php/sapi/php4apache.dll #AddType application/x-httpd-php .php #AddType application/x-httpd-php .php3 #AddType

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Dan Joseph
Hi, I will give MS credit, they are aware they need to do better, and are making strides to be better. I won't fault them on that until they give up, or stop progressing. As for secure environments and code, even linux+php applications and servers can be volnerable. I think the

FW: [PHP] Having fits with input to array

2003-11-17 Thread Susan Ator
Sorry, forgot to post to the list. sa -Original Message- From: Susan Ator Sent: Monday, November 17, 2003 11:12 AM To: 'CPT John W. Holmes' Subject: RE: [PHP] Having fits with input to array D'oh. You're right. I have a tendency to do things the hard way. That's what comes of getting

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread chris . neale
I agree. I've found MS SQL (and MS Access databases) to be extremely fast when well optimised, even with massive databases. As you can interface with them using ODBC I prefer to use MS database backends when my clients already have them installed alongside PHP for Win32. C -Original

Re: [PHP] fopen and preg_match

2003-11-17 Thread Jason Wong
On Tuesday 18 November 2003 00:03, Chris Hayes wrote: At 15:07 17-11-03, you wrote: I have a code that should fetch the information from another webpage. The code find's the page, but I can't make it stop on /table sign. preg_match(|tr class=\listRow2\td class=\listRow2\span

[PHP] convert string to number

2003-11-17 Thread Diana Castillo
what is the easiest way to convert a string like this 1,300.99 to a number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Microsoft .NET arguement

2003-11-17 Thread Jason Wong
On Tuesday 18 November 2003 00:27, Mike R wrote: Actually, their claim is that Microsoft environments are secure - you just need the proper firewall (that, basically, the problems with Windows boxes has to do with the firewall, not the OS). That one I laughed at. But it's true, you can solve

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Mike R
You can't interface MySQL with ODBC? -Mike I agree. I've found MS SQL (and MS Access databases) to be extremely fast when well optimised, even with massive databases. As you can interface with them using ODBC I prefer to use MS database backends when my clients already have them

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Dan Joseph
Hi, Actually, their claim is that Microsoft environments are secure - you just need the proper firewall (that, basically, the problems with Windows boxes has to do with the firewall, not the OS). That one I laughed at. But it's true, you can solve most of the security problems by

RE: [PHP] convert string to number

2003-11-17 Thread Jay Blanchard
[snip] what is the easiest way to convert a string like this 1,300.99 to a number? [/snip] http://www.php.net/settype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] msession - giving me a hard time

2003-11-17 Thread Guillaume Dupuis
Mea culpa!! Even if my PHP is version 4.3.3, I had to compile it with '--enable-trans-sid' in the configure. Now it works. Faulty PHP doc: PHP is capable of transforming links transparently. Unless you are using PHP 4.2 or later, you need to enable it manually when building PHP. Under UNIX, pass

[PHP] Fwd: MMCache segmentation faults

2003-11-17 Thread Uros Gruber
Subject: MMCache segmentation faults ===8==Original message text=== Hello! I send this to [EMAIL PROTECTED] but It was returned. So I'll ask here if somebody have any idea. I upgrade my php and mmcache (php 4.3.4 and mmcache 2.4.6) and I have a lot of [Mon Nov 17

Re: [PHP] convert string to number

2003-11-17 Thread CPT John W. Holmes
From: Jay Blanchard [EMAIL PROTECTED] From: Diana Castillo [EMAIL PROTECTED] [snip] what is the easiest way to convert a string like this 1,300.99 to a number? [/snip] http://www.php.net/settype That'll just result in the number 1, though, since the conversion to float will stop at

RE: [PHP] convert string to number

2003-11-17 Thread Jay Blanchard
[snip] [snip] what is the easiest way to convert a string like this 1,300.99 to a number? [/snip] http://www.php.net/settype That'll just result in the number 1, though, since the conversion to float will stop at the comma. If you know that it's just going to be commas in there, a

Re: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread David T-G
Michael, et al -- ...and then Michael said... % % David T-G says % I hate to sound like a curmudgeon, but if you want this then you should % build it, just like John anyone else who wants it should. No, I haven't ... % % 1. An obsfuscator scrambles all the variable, function and class names

Re: [PHP] Single Session for different websites

2003-11-17 Thread Burhan Khalid
Manisha Sathe wrote: I hv physically one single server, but with different websites on it like www.aaa.com / www.bbb.com / www.ccc.com Now the problem is about session. What I want is login page at www.aaa.com only but session is accessible from www.bbb.com and www.ccc.com can it be possible,

RE: [PHP] Include an encoder into PHP distribution?

2003-11-17 Thread Michael
Oh my god thanks Curt! I don't know when they added that in for windows but now my scripts are flying. My scripts are pretty bloated since I'm using both smarty and adodb and my times were hovering around 1.5 seconds but I installed mmcache and I'm at 0.14 seconds now. Sweet! mmcache should

[PHP] Re: Get value between 2 strings

2003-11-17 Thread Al
Here's what I use: /** * get_text() * * $t The total text string * $s starting text string [e.g. h1] * $e ending text string [e.g. /h1 * * @return the extracted text string. [e.g., returns string between start and end texts. */ function get_text($text, $s, $e) // Get string out of text { $sp

[PHP] Looking for Spam free php form

2003-11-17 Thread David Buchmueller
Hello List, I am looking for a canned php form which hides the recipient email from prying eyes. Everything I have found uses a hidden field. -- Thank you, David Buchmueller - Brian Sooy Co. | t. 440.322.5142 |

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Brian V Bonini
On Mon, 2003-11-17 at 11:27, Mike R wrote: Actually, their claim is that Microsoft environments are secure - you just need the proper firewall (that, basically, the problems with Windows boxes has to do with the firewall, not the OS). That one I laughed at. See how deep seeded the

Re: [PHP] Looking for Spam free php form

2003-11-17 Thread Chris Boget
I am looking for a canned php form which hides the recipient email from prying eyes. Everything I have found uses a hidden field. If you only need the email address on the back end, why not encode it (using your flavor of choice) and stick that value in the hidden field. Then, upon submission,

Re: [PHP] Looking for Spam free php form

2003-11-17 Thread Philip Olson
I am looking for a canned php form which hides the recipient email from prying eyes. Everything I have found uses a hidden field. If you only need the email address on the back end, why not encode it (using your flavor of choice) and stick that value in the hidden field. Then, upon

Re: [PHP] Looking for Spam free php form

2003-11-17 Thread David T-G
David -- ...and then David Buchmueller said... % % Hello List, Hi! % % I am looking for a canned php form which hides the recipient email from % prying eyes. Everything I have found uses a hidden field. Why not just encode the recipient as david or joe or 1288 and then determine the real

RE: [PHP] Looking for Spam free php form

2003-11-17 Thread Steve Murphy
Is this what your looking for? http://www.pfohlsolutions.com/projects/mailer/ -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 1:08 PM To: Chris Boget Cc: David Buchmueller; PHP General Subject: Re: [PHP] Looking for Spam free php form I

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread Wouter van Vliet
Jay Blanchard wrote: [snip] I have someone here at my desk arguing that Microsoft's .NET is better than PHP - faster to process, easier and quicker to program, etc. They also (claim) that Microsoft's SQL is much faster and such vs. MySQL. Any comments to help me defend PHP or to

Re: [PHP] fopen and preg_match

2003-11-17 Thread Sami Kyösti
Chris Hayes wrote: At 15:07 17-11-03, you wrote: Hi, I have a code that should fetch the information from another webpage. The code find's the page, but I can't make it stop on /table sign. preg_match(|tr class=\listRow2\td class=\listRow2\span class=\listIndex\1.+\\/table\|is, $buffer, $regs

Re: [PHP] strtotime bad logic or strtotime bug?

2003-11-17 Thread Gnik
WOW! Blindingly simple mistake -- couldn't see the forest before the trees (or something like that). THANKS for the helping hand! Gnik --- Eugene Lee [EMAIL PROTECTED] wrote: On Fri, Nov 14, 2003 at 08:53:41PM -0800, Gnik wrote: : : One of my servers required a PHP upgrade. Afterwards one of

  1   2   >