Re: [PHP] java .vs php

2005-11-10 Thread Skippy
Quoting [EMAIL PROTECTED]: > I know Yahoo! uses PHP and I've heard Google does as well? Google uses Python. http://www.python.org/Quotes.html -- Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php is not writing errors in logfile

2005-10-05 Thread Skippy
Quoting Jacob Friis Saxberg <[EMAIL PROTECTED]>: > I have asked Php to log errors in a file but it doesn't. > > error_reporting = E_ALL > display_errors = Off > log_errors = On > error_log = /var/log/php-errors.log > > Any idea what's wrong? Maybe that's not the right php.ini. Look at phpinfo().

Re: [PHP] Handling competing edits in a wiki engine?

2005-10-05 Thread Skippy
Quoting Silvio Porcellana <[EMAIL PROTECTED]>: > Ok, I don't know if this makes much sense, but you end up with a script > that gets executed (without user interaction) every 'n' microseconds, so > your session data is always up to date (at maximum, with a delay of 'n' > * 2 microseconds). You'd h

Re: [PHP] Postgres auto-commit

2005-10-04 Thread Skippy
Quoting Skippy <[EMAIL PROTECTED]>: > How can I disable auto-commit for a Postgres connection? Apparently > server-side autocommit was thrown out in Postgres 8.0, and clients have to > issue their own setting (which is sensible). Apparently this will work (or at least it will

[PHP] Postgres auto-commit

2005-10-04 Thread Skippy
How can I disable auto-commit for a Postgres connection? Apparently server-side autocommit was thrown out in Postgres 8.0, and clients have to issue their own setting (which is sensible). The default is on (which I don't want). psql is apparently able to set or unset the AUTOCOMMIT option, but I f

Re: [PHP] Class for creating RSS 2 feed?

2005-07-26 Thread Skippy
Quoting "Murray @ PlanetThoughtful" <[EMAIL PROTECTED]>: > Just curious if anyone knows of an existing class that will take MySQL > records containing HTML and create a valid RSS 2.0 newsfeed from them? http://software.zuavra.net/rowd_feed/ -- Romanian Web Developers - http://ROWD.ORG -- PHP G

Re: [PHP] Big file encryption

2005-07-14 Thread Skippy
gic info at the beginning of every chunk, then simply concatenating several encrypted pieces won't produce a valid piece, the same way concatenating several zip files won't produce a big valid zip file. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (

Re: [PHP] Big file encryption

2005-07-14 Thread Skippy
Quoting Ahmed Saad <[EMAIL PROTECTED]>: >// do whatever with the chuck you read. > // you can encrypt it and write all the chunks to the same file But if you encrypt one chunk at a time and concatenate them later, or if you encrypt the whole thing, will you still get the same result? --

Re: [PHP] Re: gettext best practice

2005-07-14 Thread Skippy
Quoting Mark Rees <[EMAIL PROTECTED]>: > Consider whether you will always display the information in a web browser. > If there is any possibility that another program may be used for display, > you don't want the HTML tags in the database. In this particular situation I'm dealing with I only have

[PHP] gettext best practice

2005-07-14 Thread Skippy
How do you people best deal with text meant for i18n via gettext, which is either large or contains HTML tags, or both? The GNU gettext manual, in section 3.2, recommends to split long texts at paragraph level, or in the case of long --help screens, in batches of 5-10 lines at most. I can dig this

Re: [PHP] Storing password in cookie

2005-04-09 Thread Skippy
ve used the > hash. You could've changed the password for them to something random, mail it to them and keep the hash in the database. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Eliminating CLI overhead

2005-03-12 Thread Skippy
t;tricks", I'm interested in the pure PHP aspect of the issue. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: stream_set_timeout() stream_get_meta_data() etc...

2005-02-10 Thread Skippy
ther has other means of detecting that the request was answered or it uses "Connection: close" too. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: stream_set_timeout() stream_get_meta_data() etc...

2005-02-09 Thread Skippy
Quoting Al <[EMAIL PROTECTED]>: > Darn, I left out an important function, the fread(). Code snip should be: > $fp= fopen("http://www.anything.com/foo.html, 'rb'); > if(!fp) {do something different} > stream_set_timeout($fp, 2); > $contents= fread($fp, 20); > $status= stream_get_meta_d

Re: [PHP] identifying the country of the people who connect to web site / portal

2004-11-28 Thread Skippy
ers can set their language preferences in their browser. You should look at the Accept-Language and Accept-Charset headers that the browser sends and decide based on them. That's the sensible criterium IMO. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (ht

Re: [PHP] Atom 2 RSS Script? Anyone got one?

2004-11-15 Thread Skippy
obably because most people have the data in a personal format which they convert to either RSS or Atom. Related to your problem, try looking for an XSLT transformation script. Both RSS and Atom are XML so it should work (actually, only the source needs to be XML). Sorry, can't point out a

Re: [PHP] User's language settings

2004-11-08 Thread Skippy
en-us vs en. Otherwise, the order in which the languages were given sets precedence. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] set_include_path() isn't persistent

2004-11-08 Thread Skippy
; for "one > level up from this htaccess file). > > Any ideas? Did you try ini_set('include_path','path')? I recall doing this recently in a root script and then include() -ing other scripts. It worked out well. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] enrypt and decrypt

2004-11-03 Thread Skippy
Quoting Merlin <[EMAIL PROTECTED]>: > > Merlin wrote: > > > >> Hi there, > >> > >> I would like to encrypt some info and later be able to decrypt it. As > >> I saw there is only one way encryption possible with encrypt. > >> > >> Has anybody an idea how to do a 2 way encrypten? > >> > >> Thank yo

Re: [PHP] Authentification related to browser window

2004-11-03 Thread Skippy
Quoting Cristi Barladeanu <[EMAIL PROTECTED]>: > My problem is pretty simple. User enters the site, logins, and after > that he hits ctrl+n or something, to open a new window from same > browser. Can I make him to login again in the new window but to keep > him logged in the old one? > Now i'm usin

Re: [PHP] dirty words

2004-10-18 Thread Skippy
one really wants to enter "bad words" they will, by masking them in various ways; humans will interpret the bad words correctly in far more cases than you can filter with software. Additionally, you will end up filtering parts of legit words that look like bad words. -- Skippy - Romani

Re: [PHP] Lock or critical section

2004-09-21 Thread Skippy
Quoting Jean-Yves <[EMAIL PROTECTED]>: > Is there a documented way to create in PHP a critical section: I want a > piece of code to not be executed in the same time several times? Give us a set of criteria and we'll see about it. -- Romanian Web Developers - http://ROWD.ORG -- PHP General Mai

Re: [PHP] Regular expression help

2004-09-09 Thread Skippy
Quoting John Holmes <[EMAIL PROTECTED]>: > From: "Skippy" <[EMAIL PROTECTED]> > > I'm trying to replace all occurances of the X character in a text > > with Y, but only those X's that occur between bold tags (). > > > $str = 'This X

[PHP] Regular expression help

2004-09-09 Thread Skippy
I'm trying to replace all occurances of the X character in a text with Y, but only those X's that occur between bold tags (). -- Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Inline diff coded in PHP

2004-08-16 Thread Skippy
I'm looking for PHP code that will produce diff's between two texts, and render them "inline". By that I mean not the standard *nix diff output, which compares and outputs lines, but a diff that compares inline text and outputs the bits before and after in place, marked with a custom or something.

Re: [PHP] Location header does not work?

2004-08-04 Thread Skippy
Quoting Justin Patrin <[EMAIL PROTECTED]>: > On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > > The latest message I got was 'Redirection limit for this URL exceeded. > > Unable to load the requested page.This may be caused by cookies that are > > blocked.'. > > Your p

Re: [PHP] Graphing Webstats using MRTG/PHP/MYSQL?

2004-07-29 Thread Skippy
Quoting Louie Miranda <[EMAIL PROTECTED]>: > has anyone know any tools related to this? > Graphing Webstats using MRTG/PHP/MYSQL? Why MRTG _and_ PHP? AFAIK MRTG produces its own HTML and images. You can either use MRTG with whatever data (webstats) you collected or you can use PHP+MySQL for that a

Re: [PHP] Browser reload problem

2004-07-29 Thread Skippy
Quoting "Ashley M. Kirchner" <[EMAIL PROTECTED]>: > PayPal passes a ton of data back to us when someone's done > purchasing something. I use some of that information and shove it all > into a database. Problem is, if someone hits reload on their browser, I > get the same data re-inserted a

Re: [PHP] Java Script or PHP

2004-07-29 Thread Skippy
Quoting Curt Zirzow <[EMAIL PROTECTED]>: > > What is the "correct" way to open the page from the print link to a new > > page? > > @media print { > .css { > its: all here; > } > } Yeah, but sometimes you want the print version to be more nifty, like have all the pages in an article instea

Re: [PHP] Re: If...Or...Else

2004-07-25 Thread Skippy
cedence than ||, but no other hidden properties. Any idea why the need to have two logical operators with the same meaning BUT different precedences? I dig the need to put in OR as an alias, but why confuse people with the precedence issue? One would tend to think || and OR are perfectly interchang

RE: [PHP] mailing list spam protection?

2004-07-22 Thread Skippy
Quoting bruce <[EMAIL PROTECTED]>: > i got a msg stating that "i" had signed up, using my email address, > stating that i should enter my information, etc... i've never signed > up... > as i stated before... if you get the msgs.. just delete and keep going... To me it seems like a company maki

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Skippy
s good habit to restrain yourself from both the above bad practices. Try to always use concatenation and specifically put variables outside of strings, and always use the quotes for array identificators. Once the habit is in you'll have less headaches to worry about. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't install PHP on Windows/Apache

2004-07-19 Thread Skippy
ee the help file that came with PHP for Windows, it has a section about Apache. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: old guy newbie needs some help

2004-07-18 Thread Skippy
ting a script with ob_start(), this way the whole load of problems created by HTTP headers dissapears. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Is "Function Constants" the Correct Term?

2004-07-18 Thread Skippy
es that protect them? Ultimately, the credentials are still plain text in the source. Nothing you do from PHP's point of view will protect them from someone who has access to the source or can inject code into yours. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List

Re: [PHP] Re: Emtying Variables

2004-07-18 Thread Skippy
rror message, no actuall re-processing is performed. And because the redirect was done via HTTP 3xx code, not JavaScript, if the user uses BACK in the browser they go directly to A. For all purposes, B is invisible to the user. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP Ge

Re: [PHP] if((strtolower(substr($author, 0, 1)) == $ausenquiry))

2004-07-17 Thread Skippy
ically, it's all about bringing the strings you work with to a common denominator. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: using the mssql functions on a linux server

2004-07-14 Thread Skippy
uavra.net/articole/11/p2/ P.S.: If anyone wishes to put an English version on their site please contact me in private. I'll take the time to translate it. I haven't put the English version on the Web myself since my site is meant to be in Romanian only. -- Skippy - Romanian Web Devel

Re: [PHP] Re: How to make HTTP call to another address?

2004-07-13 Thread Skippy
Quoting Arnout Boks <[EMAIL PROTECTED]>: > Maybe it helps to open the address with the fopen( )- or file( )-function > to read it's contents. I use this method to get data from (dynamic) html > pages on another website. I don't have that much knowledge about Java > servlets, so I don't know if this

Re: [PHP] Re: addslashes vs string unescape

2004-07-12 Thread Skippy
On Mon, 12 Jul 2004 17:15:15 +0200 Daniel Kullik <[EMAIL PROTECTED]> wrote: > Skippy wrote: > Can you use this? It seems to work, at first test, but it's somewhat convoluted. I've found another fairly reasonable solution: using $val instead of %val%. This way I don't n

[PHP] addslashes vs string unescape

2004-07-12 Thread Skippy
I'm confronted with a somewhat weird problem and hopefully someone can make a suggestion. I have to perform the following 3-step task: Step 1. Someone provides a string (let's call it the formatting string) which contains a PHP expression, which will apply a PHP function on another string, let's c