Re: [PHP] php as standalone?

2005-08-23 Thread Richard Lynch
On Tue, August 23, 2005 12:19 pm, Thomas wrote: > I am going to take that chance now to ask if it is viable to create a > standalone app with php and gtk+, fully realizing that this IS the php > list > ;-) There is a MUCH lower-volume PHP-GTK list you should probably subscribe to and ask on. I th

Re: [PHP] from database to links

2005-08-23 Thread Richard Lynch
On Tue, August 23, 2005 3:52 pm, George B wrote: > You know on forums when you make a topic right away it makes like a > new > link to your topic. How do you do that in PHP? $_POST[new_topic]"; } ?> http://php.net/mysql_insert_id is probably the piece of the puzzle you were missing. -- Like M

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Richard Lynch
On Tue, August 23, 2005 9:44 am, Rick Emery wrote: > Quoting Rick Emery <[EMAIL PROTECTED]>: > >> Ugh, we're *never* going to make a decision. My boss just sent me >> this email: > > I wrote an application, using PHP5, that displays a list and refreshes > every 30 seconds (the data is constantly ch

Re: [PHP] problem with ' or "

2005-08-23 Thread George B
Jasper Bryant-Greene wrote: George B wrote: Jasper Bryant-Greene wrote: George B wrote: I made a script that posts data into a database but it has a problem whenever I enter a ' or a ". How do I bypass this problem? If it is MySQL, use mysql_real_escape_string() [1]. If any other databa

Re: [PHP] problem with ' or "

2005-08-23 Thread Jasper Bryant-Greene
George B wrote: Jasper Bryant-Greene wrote: George B wrote: I made a script that posts data into a database but it has a problem whenever I enter a ' or a ". How do I bypass this problem? If it is MySQL, use mysql_real_escape_string() [1]. If any other database, have a look in the PHP manu

Re: [PHP] problem with ' or "

2005-08-23 Thread George B
Jasper Bryant-Greene wrote: George B wrote: I made a script that posts data into a database but it has a problem whenever I enter a ' or a ". How do I bypass this problem? If it is MySQL, use mysql_real_escape_string() [1]. If any other database, have a look in the PHP manual [2] for the re

Re: [PHP] problem with ' or "

2005-08-23 Thread Jasper Bryant-Greene
George B wrote: I made a script that posts data into a database but it has a problem whenever I enter a ' or a ". How do I bypass this problem? If it is MySQL, use mysql_real_escape_string() [1]. If any other database, have a look in the PHP manual [2] for the relevant function, or as a last

[PHP] problem with ' or "

2005-08-23 Thread George B
I made a script that posts data into a database but it has a problem whenever I enter a ' or a ". How do I bypass this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

2005-08-23 Thread Larry Brown
Sorry, that last one went out without a comment. I think this is most likely the cause. I haven't dug back into it yet to verify, but it makes the most sense. Thanks everyone... Larry On Tue, 2005-08-23 at 05:30, Ford, Mike wrote: > -Original Message- > From: Larry Brown > To: php > Se

RE: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

2005-08-23 Thread Larry Brown
On Tue, 2005-08-23 at 05:30, Ford, Mike wrote: > -Original Message- > From: Larry Brown > To: php > Sent: 23/08/05 02:28 > Subject: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade > > I had a foreach loop working on an array as such: > > $multiarray = array(array('person','person'),ar

Re: [PHP] Weird results of "=="

2005-08-23 Thread Evert | Rooftop
Jasper Bryant-Greene wrote: Am I missing something really obvious here? This is an inherent problem with floating-point operations, especially comparison, and is not unique to PHP. Often numbers will be off by some miniscule amount, just enough to make them not equal. What I would do in

[PHP] from database to links

2005-08-23 Thread George B
You know on forums when you make a topic right away it makes like a new link to your topic. How do you do that in PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird results of "=="

2005-08-23 Thread Brian P. O'Donnell
That did the trick. Thanks a million. Brian "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Brian P. O'Donnell wrote: > > > > > $a = 252.73; > > $b = 252.73; > > $c = 0; > > > > if ($a == ($b + $c)) > > { > > // do the first thing > > } > > elseif ($a > ($b

Re: [PHP] Weird results of "=="

2005-08-23 Thread tg-php
What other values are you trying? I tested it and it seems to work the way it's supposed to. Changing just $a, I get the expected > or < results. Changing $a and $b so that $a always equals $b it always returns the first option. Your test values for $a and $b that yield odd results would be h

Re: [PHP] Weird results of "=="

2005-08-23 Thread Jasper Bryant-Greene
Brian P. O'Donnell wrote: ($b + $c)) { // do the second thing } elseif ($a < ($b + $c)) { // do the third thing } ?> Each of the three variables is derived by some earlier calculation, but for testing purposes I have made sure that they end up being $a = $b and $c = 0. I have tested for three

RE: [PHP] Weird results of "=="

2005-08-23 Thread Jay Blanchard
[snip] ($b + $c)) { // do the second thing } elseif ($a < ($b + $c)) { // do the third thing } ?> Each of the three variables is derived by some earlier calculation, but for testing purposes I have made sure that they end up being $a = $b and $c = 0. I have tested for three different values (of

[PHP] Weird results of "=="

2005-08-23 Thread Brian P. O'Donnell
Hello I have the following code: ($b + $c)) { // do the second thing } elseif ($a < ($b + $c)) { // do the third thing } ?> Each of the three variables is derived by some earlier calculation, but for testing purposes I have made sure that they end up being $a = $b and $c = 0. I have tested for

RE: [PHP] Hardware Detection

2005-08-23 Thread Daevid Vincent
I misread the OP. No. you can't get information on the hardware of a CLIENT's machine via PHP. You may be able to do it through some JS or I'm pretty sure through some ActiveX control (on Microsoft brosers of course). We make an appliance that "phones home" for updates and such, and therefore w

RE: [PHP] exec ping

2005-08-23 Thread Daevid Vincent
Here's one I wrote: /** * Checks the status of an address as being "U" or "D". * * @access public * @return "U" or "D" * @param$TargetRange the dotted quad address to check * @param$DEBUG debugging output. default is false. * @since3.0 */ function CheckIP($Targ

Re: [PHP] php as standalone?

2005-08-23 Thread Rory Browne
You don´t need your linux or unix php app to be standalone, since putting a #!/usr/bin/php at the start of your script, means that most users won't know the difference. For RPM/DPKG you simply add a php dependency. On 8/23/05, Ing. Josué Aranda <[EMAIL PROTECTED]> wrote: > mybe this can help...

RE: [PHP] Hardware Detection

2005-08-23 Thread Daevid Vincent
This works on Linux/Unix boxen. On windows... You're on your own. //generate the global array here so we can re-use it independant of output format $device['os_ver'] = exec("/bin/uname -a"); $temp = preg_split("/\s+/",exec("/sbin/ifconfig -a eth0 | /bin/grep HWaddr"), -1, PREG_SPLIT_NO_EMPTY); $

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Rory Browne
I withdraw my information in my earlier post. I was in a cybercafe in a hurry - and didn't have time to consider what was said, nor what I was saying myself. What I said before has little or not merit. You can make an experimental interface, and parse the html without the other domain owners co

Re: [PHP] php as standalone?

2005-08-23 Thread Ing . Josué Aranda
mybe this can help... http://www.dwebpro.com/ with this app you can us a CD or DVD like a stand alone for distributing your php script :D On 8/23/05, Thomas <[EMAIL PROTECTED]> wrote: > Hi there, > > > > I am going to take that chance now to ask if it is viable to create a > standalone app

RE: [PHP] possible to get a function from another domain

2005-08-23 Thread Jim Moseby
> [snip] > Can I use require with http? > > My domain: www.varupiraten.se > > Other domain: www.webshop2.se > > Does this kind of code work? > > Code for my domain: > require(http://www.webshop2.se/externfunctions.php); > $x = getValueFromProduct('Inno AX5000'); //This function > retrieves pr

Re: [PHP] php as standalone?

2005-08-23 Thread tg-php
What I've done with it hasn't included any compiling or code obscuring, but there are a number of PHP code protection schemes that may work with this. I havn't kept up on recent developments, but I've seen the question ask a number of times if you can compile or at least wrap a Winbinder/PHP pr

RE: [PHP] possible to get a function from another domain

2005-08-23 Thread Jay Blanchard
[snip] Can I use require with http? My domain: www.varupiraten.se Other domain: www.webshop2.se Does this kind of code work? Code for my domain: http://www.webshop2.se/externfunctions.php); $x = getValueFromProduct('Inno AX5000'); //This function retrieves price from webshop2.se ? [/snip] Hav

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: Hi! Njae I have a webshop and want to see a price from another webshop online (directly). Let's call my webshop - varupiraten.se and the other webshop - inwarehouse.se I want to be able to see what price inwarehouse.se has for a certain product directly. (without no co

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
Hi! Can I use require with http? My domain: www.varupiraten.se Other domain: www.webshop2.se Does this kind of code work? Code for my domain: http://www.webshop2.se/externfunctions.php); $x = getValueFromProduct('Inno AX5000'); //This function retrieves price from webshop2.se ? /G @varupi

RE: [PHP] possible to get a function from another domain

2005-08-23 Thread Jay Blanchard
[snip] I have a webshop and want to see a price from another webshop online (directly). Let's call my webshop - varupiraten.se and the other webshop - inwarehouse.se I want to be able to see what price inwarehouse.se has for a certain product directly. (without no copying). Of course I have to

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
Hi! Njae I have a webshop and want to see a price from another webshop online (directly). Let's call my webshop - varupiraten.se and the other webshop - inwarehouse.se I want to be able to see what price inwarehouse.se has for a certain product directly. (without no copying). Of course I ha

Re: [PHP] php as standalone?

2005-08-23 Thread Jay Paulson
This is pretty cool stuff! This is compiled code for Windows only so no source is available? Therefore, making it so that people can't view your source? Damn... you said those words "cross platform".. But I'll still take this opportunity to plug Winbinder again. If you're just working wi

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: Is it possible in PHP to retrieve value from one domain to another than my own? Something like this: Other domain: function getValueForMp3Player() My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value from other domain What exactly do you mean by

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Rory Browne
I'm not sure I understand but: You define a function on one machine; You want to use that function on another machine; If I understand you correctly, then you should be able to just cp function_server.php function_server.txt , and include it over http and done On 8/23/05, Gustav Wiberg <[

Re: [PHP] php as standalone?

2005-08-23 Thread tg-php
Damn... you said those words "cross platform".. But I'll still take this opportunity to plug Winbinder again. If you're just working with a Windows platform, Winbinder has it all!Fantastic interface, very self contained, just a great PHP standalone/app/etc extension all around. Eh.. chec

[PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
hi there! Is it possible in PHP to retrieve value from one domain to another than my own? Something like this: Other domain: function getValueForMp3Player() My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value from other domain /G @varupiraten.se -- PHP General

Re: [PHP] question on order of variables passed to a function

2005-08-23 Thread Jasper Bryant-Greene
Vidyut Luther wrote: and then: trigger_error("log(x) for x <= 0 is undefined, you used: scale = $scale", E_USER_ERROR); ?> So, wouldn't this make $errno in the "myErrorHandler" be "log (x) " rather than E_USER_ERROR ? No, because you're calling trigger_error, not myErrorHandler. The

RE: [PHP] php as standalone?

2005-08-23 Thread Jay Blanchard
[snip] I am going to take that chance now to ask if it is viable to create a standalone app with php and gtk+, fully realizing that this IS the php list ;-) [/snip] Check out http://www.priadoblender.com it may do exactly what you want. -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] php as standalone?

2005-08-23 Thread Thomas
Hi there, I am going to take that chance now to ask if it is viable to create a standalone app with php and gtk+, fully realizing that this IS the php list ;-) I was thinking of php/gtk+ because I need that as a cross-platform application. What I really would like is to have .rpm's and .exe's

[PHP] Re: string to .ZIP | sending report by email

2005-08-23 Thread Manuel Lemos
Hello, on 08/23/2005 02:13 PM Ing. Josué Aranda said the following: I have a script that generate a XHTML report, but also i want to send that report by email, the problem is the file size its up to 4Mb, its too big to send by email (considering that some people still using hotmail).. how i can

RE: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Jim Moseby
> We set the application up on a Windows 2000 Server with IIS (5, I > think), and it would work fine for about a day. Then Padcom clients > kept stopping. They'd request the page and, after a loong time, > display a message that the request timed out. Can they access other (non-php) pages

Re: [PHP] Files passing through

2005-08-23 Thread Philip Hallstrom
Benchmark it both ways and see. I benched this with a 100 MiB text file (largest I could find at short notice). Buffer used for fread() calls was 2 KiB as above. Values are averaged over 100 runs (I would have liked to do more, but I don't have time). All values are to 4 significant figures

RE: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Nathan Tobik
Have you tried PHP 4.x? Give that a shot and see what effects that has on the application. We have used PHP with IIS and SQL Server like you said, I can say from experience that PHP 5 had the same problems as the initial poster described. The pages would time out and hang randomly. I put a

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Miles Thompson
At 01:44 PM 8/23/2005, Rick Emery wrote: Quoting Rick Emery <[EMAIL PROTECTED]>: Ugh, we're *never* going to make a decision. My boss just sent me this email: A *huge* "THANK YOU!" to everybody who replied; it was extremely helpful and, after my meeting with my manager this morning, she seem

[PHP] string to .ZIP | sending report by email

2005-08-23 Thread Ing . Josué Aranda
I have a script that generate a XHTML report, but also i want to send that report by email, the problem is the file size its up to 4Mb, its too big to send by email (considering that some people still using hotmail).. how i can send it compressed by email? anyone knows a class that can help me? any

Re: [PHP] Looking for CMS advice

2005-08-23 Thread Marcus Bointon
On 23 Aug 2005, at 14:05, Jay Paulson wrote: I would say check out Dupral, Mambo, and XOOPS. Drupal looks great, but whenever I've tried to get into it, nothing seems to work properly. Xoops is capable (I've used it on a couple of sites), but generally a complete mess internally. Both of t

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Jay Paulson
Ugh, we're *never* going to make a decision. My boss just sent me this email: A *huge* "THANK YOU!" to everybody who replied; it was extremely helpful and, after my meeting with my manager this morning, she seemed to accept that the article was dated and had inaccurate information. Thanks fo

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Rick Emery
Quoting Rick Emery <[EMAIL PROTECTED]>: Ugh, we're *never* going to make a decision. My boss just sent me this email: A *huge* "THANK YOU!" to everybody who replied; it was extremely helpful and, after my meeting with my manager this morning, she seemed to accept that the article was dated a

Re: [PHP] php5 COM strange behaviour

2005-08-23 Thread Martin Staiger
>>> we have a script to create a word-document via COM which, so far, run >>> pretty stable under php 4.3.7 >> >> are you using apache2 with php4? > > Yes ! Sorry - my mistake here : the problems are caused under PHP5. With PHP4 the script runs fine, so right now we are using PHP4, but due to ot

Re: [PHP] [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Robin Vickery
On 8/23/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Jay Blanchard wrote: > > > > Also, sweet move with the array_reverse... > > > > $fileParts = array_reverse(explode('.', $theFile)); > > if("php" == $fileParts[0]){ > > > > ...it prevents problems with funky file names containing more

Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Jochem Maas
Jay Blanchard wrote: You may (or may not) remember me posting to the list a couple of weeks ago asking about using REGEX to get queries out of PHP files for a migration project. I had to let it go for several days, but started working on it again yesterday, here is the code (no REGEX was used in

[PHP] RE: [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Jay Blanchard
[snip] > argv[] is always available [/snip] As an example you could something like this... $requestedDatabase = $argv[1]; so that [EMAIL PROTECTED]:/usr/myApp/whatever php chaFinder.php CHA > output.txt will have $requestedDatabase == 'CHA' [snip] btw if my file names are funky I am too? [/sni

Re: [PHP] php5 COM strange behaviour

2005-08-23 Thread Martin Staiger
>> we have a script to create a word-document via COM which, so far, run >> pretty stable under php 4.3.7 > > are you using apache2 with php4? Yes ! > are you using the prefork version of apache2? (you should be!!) No - not to my knowledge. I couldn't really find out HOW to implement this prefo

[PHP] question on order of variables passed to a function

2005-08-23 Thread Vidyut Luther
I'm writing a error handler for my scripts, so I went to : http:// us3.php.net/manual/en/function.set-error-handler.php I noticed something in the example 1 given there. and then: trigger_error("log(x) for x <= 0 is undefined, you used: scale = $scale", E_USER_ERROR); ?> So, wouldn't this

[PHP] [a proactive example of learning by hacking] Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Jochem Maas
Jay Blanchard wrote: [snip] I figured as much - I was think of adding an optional param so that you can optionally add such an extra limit e,g: cd /my/projects/stuff; php findqry.php --limit CHA > ./results.txt [/snip] argv[] is always available indeed - I'll add something for that... Also

RE: [PHP] Getting queries from files FYI

2005-08-23 Thread Jay Blanchard
[snip] I figured as much - I was think of adding an optional param so that you can optionally add such an extra limit e,g: cd /my/projects/stuff; php findqry.php --limit CHA > ./results.txt [/snip] argv[] is always available Also, sweet move with the array_reverse... $fileParts = array_reverse(

Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Jochem Maas
Jay Blanchard wrote: [snip] heh Jay, I have been playing with this ... I rewrote your code abit (including removing the check for the string 'CHA' - cos that was limiting my search too much ;-) [/snip] Cool, I'll have a look. I was using the 'CHA' because I was looking for queries to the specifi

RE: [PHP] Getting queries from files FYI

2005-08-23 Thread Jay Blanchard
[snip] heh Jay, I have been playing with this ... I rewrote your code abit (including removing the check for the string 'CHA' - cos that was limiting my search too much ;-) [/snip] Cool, I'll have a look. I was using the 'CHA' because I was looking for queries to the specific database. -- PHP Gen

Re: [PHP] Getting queries from files FYI

2005-08-23 Thread Jochem Maas
Jay Blanchard wrote: You may (or may not) remember me posting to the list a couple of weeks I am a goldfish. hi my name is 10second Tom ;-) ago asking about using REGEX to get queries out of PHP files for a migration project. I had to let it go for several days, but started working on it

RE: [PHP] PHP Printing Error Help

2005-08-23 Thread Jay Blanchard
[snip] I am new as you can assume. Hence, I have no clue how to turn > > register_globals back "On" > [/snip] Look in your php.ini file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Printing Error Help

2005-08-23 Thread Chirantan Ghosh
Hi Richard, I am new as you can assume. Hence, I have no clue how to turn register_globals back "On" Is there any other place I can read more about creating Arrays? other than http://us2.php.net/manual/en/language.types.array.php The page is discussion: http://www.primary

Re: [PHP] php5 COM strange behaviour

2005-08-23 Thread Jochem Maas
Martin Staiger wrote: Hello NG, we have a script to create a word-document via COM which, so far, run pretty stable under php 4.3.7 are you using apache2 with php4? are you using the prefork version of apache2? (you should be!!) Since we upgraded to php 5.0.3.3 the same script works only o

[PHP] Getting queries from files FYI

2005-08-23 Thread Jay Blanchard
You may (or may not) remember me posting to the list a couple of weeks ago asking about using REGEX to get queries out of PHP files for a migration project. I had to let it go for several days, but started working on it again yesterday, here is the code (no REGEX was used in the making of this code

Re: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

2005-08-23 Thread Pinter Tibor (tibyke)
turck-mmcache? t Edward Vermillion wrote: Larry Brown wrote: I found that the only way to get the function to behave is to add the key... foreach($multiarray as $key=>$subArray) Now it displays as it previously did where $subArray is concerned. Is there something I'm missing here? Was I

RE: [PHP] Re: PHP vs. ColdFusion

2005-08-23 Thread Nathan Tobik
.. As long as we are doing stats; For an internal app our source code alone is 2MB zipped, using SQL Server, over 30 databases, about 1000 stored procedures, all tied together with PHP... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

2005-08-23 Thread Evert | Rooftop
I switched from 4.3 to 4.4 on a server with a huge web application using both foreach loops with and without the keys.. No problem whatsoever.. Evert Larry Brown wrote: I found that the only way to get the function to behave is to add the key... foreach($multiarray as $key=>$subArray) Now i

Re: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

2005-08-23 Thread Edward Vermillion
Larry Brown wrote: I found that the only way to get the function to behave is to add the key... foreach($multiarray as $key=>$subArray) Now it displays as it previously did where $subArray is concerned. Is there something I'm missing here? Was I the only person not using "keys"? [snip]

Re: [PHP] Mac OS X file name encoding problem

2005-08-23 Thread Giulio
Jasper, thanks for your answer, Il giorno 23/ago/05, alle ore 2:38 PM, php-general-digest- [EMAIL PROTECTED] ha scritto: Da: Jasper Bryant-Greene <[EMAIL PROTECTED]> Data: 23 agosto 2005 0:39:32 PM GMT+02:00 A: php-general@lists.php.net Oggetto: Re: [PHP] Mac OS X file name encoding problem

Re: [PHP] Looking for CMS advice

2005-08-23 Thread Jay Paulson
Everyone has already told you about opensourcecms.org, which is a really good site to test things out. However, about 6 months ago I had to do research for the same kind of thing. As of now with the split of the Mambo dev team from the parent company Miro I think I would go with Dupral becaus

[PHP] PHP developer in the UK

2005-08-23 Thread Chris Boget
My company wants to relocate to the UK (London, specifically) from the US and I've been looking at various resources to try find out what my current salary would translate to. Most of the job listings I've seen are for junior or not very experienced developers. So I'm wondering if there are any

[PHP] instanceof ...

2005-08-23 Thread Jochem Maas
as of 5.1.1 instanceof will no longer call __autoload() (which maybe implemented as a handler/function chain by then?) Thank God/Angeline Jolie/My Cat/Other. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mac OS X file name encoding problem

2005-08-23 Thread Jasper Bryant-Greene
Giulio wrote: I have a problem with a script when it is runs on a Mac OS X environment. [snip] The problem appears when $filename contains special characters, like accented chars, on Mac OS X the ftp_fput function returns me an error. I thinked that the problem could depend on the filesyste

[PHP] Mac OS X file name encoding problem

2005-08-23 Thread Giulio
Hi all, I have a problem with a script when it is runs on a Mac OS X environment. a part of this script simply takes an upoloaded temporary file and writes it on the local system using ftp functions. something like: $filename = $TheNameToAssignToTheFile; $ftps = ftp_connect($ftpaddress)

Re: [PHP] preg_match

2005-08-23 Thread Robin Vickery
On 8/23/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Robin Vickery wrote: > > Both of these will fail to compile: > > preg_match( '/\\7abc/', $myString); > > preg_match( '/\7abc/', $myString); > > > > Both of these are fine: > > preg_match( '/\\abc7/', $myString); > > preg_match( '/\abc7/

Re: [PHP] Files passing through

2005-08-23 Thread Jasper Bryant-Greene
Richard Lynch wrote: On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote: Kim Steinhaug (php list) wrote: I'm using this method, works fine with 50mb+ files : if( $fd = fopen ($filepath, 'r')){ while(!feof($fd)) { $buffer = fread($fd, 2048); print $buffer;

RE: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade

2005-08-23 Thread Ford, Mike
-Original Message- From: Larry Brown To: php Sent: 23/08/05 02:28 Subject: [PHP] foreach loop changed after 4.3 -> 4.4 upgrade I had a foreach loop working on an array as such: $multiarray = array(array('person','person'),array('another','another')) the array was put through foreach($mu

Re: [PHP] Looking for CMS advice

2005-08-23 Thread Richard Lynch
On Mon, August 22, 2005 3:48 am, Erik Gyepes wrote: > Zachary Kessin wrote: > >> I am about to start on a project that seems like it would be right >> for >> a CMS system. It will be about 80% rather boring stuff with about >> 20% >> custom database work. I have looked at XOOPS and a few others. >>

Re: [PHP] preg_match

2005-08-23 Thread Jasper Bryant-Greene
Robin Vickery wrote: Both of these will fail to compile: preg_match( '/\\7abc/', $myString); preg_match( '/\7abc/', $myString); Both of these are fine: preg_match( '/\\abc7/', $myString); preg_match( '/\abc7/', $myString); In fact they behave *exactly* as if you hadn't doubled them up. You've

Re: [PHP] preg_match

2005-08-23 Thread Robin Vickery
On 8/23/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > The advantage that when I have to change the string to match the > new/altered data, and that data has, oh, I dunno, something like ' or > \ or 0, 1, 2, 3, ...9 in it, and then my Regex suddenly doesn't work > because \abc7 won't work the same

Re: [PHP] Files passing through

2005-08-23 Thread Richard Lynch
On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote: > Kim Steinhaug (php list) wrote: >> I'm using this method, works fine with 50mb+ files : >> >> if( $fd = fopen ($filepath, 'r')){ >> while(!feof($fd)) { >> $buffer = fread($fd, 2048); >> print $buffer; >>

Re: [PHP] Large URI request problem

2005-08-23 Thread Richard Lynch
On Mon, August 22, 2005 10:39 pm, Dean Maunder wrote: > I have a large string that I need to send to a script that creates an > image. > eg src='createimage.php?wp=321,43,23,12,43,12,342,54,765,87,3,23,etc etc > etc Woof. I'm surprised it took 3000 characters to become a problem... :-) You MAY

[PHP] php5 COM strange behaviour

2005-08-23 Thread Martin Staiger
Hello NG, we have a script to create a word-document via COM which, so far, run pretty stable under php 4.3.7 Since we upgraded to php 5.0.3.3 the same script works only on the first run! On the following runs the same script causes a fatal error on the code below: Fatal error: Uncaught excep

Re: [PHP] Special HTML characters question.

2005-08-23 Thread Richard Lynch
On Mon, August 22, 2005 6:29 am, Jay Paulson wrote: > I have a problem that I'm sure some of you have run into before, > therefore I hope you all know of an easy solution. Some of my users > are cutting and pasting text from Word into text fields that are being > saved into a database then from th

Re: [PHP] imagestring to picture

2005-08-23 Thread Richard Lynch
On Mon, August 22, 2005 12:45 am, Andras Kende wrote: > I have a some colorful pictures, Would like to add white text with > black > background around the white text... > > I can add the text fine but could figure out how to add black > background.. > > > $textcolor = imagecolorallocate($destimg, 2

Re: [PHP] Files passing through

2005-08-23 Thread Jasper Bryant-Greene
Kim Steinhaug (php list) wrote: I'm using this method, works fine with 50mb+ files : if( $fd = fopen ($filepath, 'r')){ while(!feof($fd)) { $buffer = fread($fd, 2048); print $buffer; } fclose ($fd); exit; } Is there a reason why you assign the

Re: [PHP] Looking for CMS advice

2005-08-23 Thread Raz
> opencms.org or something like that. It is http://www.opensourcecms.com/ Raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for CMS advice

2005-08-23 Thread Kim Steinhaug \(php list\)
You are referring to this page : http://www.opensourcecms.com/ Regards, Kim Steinhaug - - - - - - - - - - - - - http://www.easywebshop.no/ - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Erik Gyepes" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, August 23, 2005 9:28 AM S

Re: [PHP] Files passing through

2005-08-23 Thread Kim Steinhaug \(php list\)
I'm using this method, works fine with 50mb+ files : if( $fd = fopen ($filepath, 'r')){ while(!feof($fd)) { $buffer = fread($fd, 2048); print $buffer; } fclose ($fd); exit; } Regards, Kim Steinhaug - - - - - - - - - www.easycms.no - Original

Re: [PHP] preg_match

2005-08-23 Thread Richard Lynch
On Mon, August 22, 2005 8:13 am, Robin Vickery wrote: > On 8/22/05, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Sat, August 20, 2005 5:00 am, John Nichel wrote: >> > Personally, I have never used \\ in PCRE when looking for things >> like >> > spaces (\s), word boundraries (\b), etc. and it's al