Re: [PHP] RegEx - Is this right?

2005-10-15 Thread Al Hafoudh
yes, it is equal, but i'd rather use file() function Gustav Wiberg wrote: Hi there! I want to get conents of a file and split into a array... $s = file_get_contents($fileName); $splitS = preg_split("/\n/",$s); Is this equal to using $splitS = file($fileName) ? /G http://www.varupirat

[PHP] Upgraded mail server today, testing functionality! (Sorry!)

2005-10-15 Thread Chris W. Parker
I know I know I know. I don't like test message either but since I started the upgrade I haven't received any new PHP mailings. Could be just because of low traffic, but I need to make sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RegEx - Is this right?

2005-10-15 Thread Gustav Wiberg
Hi there! I want to get conents of a file and split into a array... $s = file_get_contents($fileName); $splitS = preg_split("/\n/",$s); Is this equal to using $splitS = file($fileName) ? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread Jasper Bryant-Greene
jonathan wrote: So I'm reading up on character encoding in XML documents as I think this is the problem (after the many helpful suggestions on this list). With regards to your second question; no, I'm not sure if I'm using proper utf-8 througout the entire process. When I input from the form

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread jonathan
So I'm reading up on character encoding in XML documents as I think this is the problem (after the many helpful suggestions on this list). With regards to your second question; no, I'm not sure if I'm using proper utf-8 througout the entire process. When I input from the form I'm converti

Re: [PHP] Re: ampersand in dom with utf-8

2005-10-15 Thread jonathan
I've been setting the here's some output: Starters soupe au pistou with amaranth and grana breadcrumbs farm lettuces with reed avocado, crème fraĆ®che, radish and cilantro On the second item, this

[PHP] Troubleshott GD & Freetype under Linux

2005-10-15 Thread Feris Thia C.
Hi All, My PHP engine still cannot load JPEG library (GD) and Freetype fonts... I use ./config.nice to reconfigure PHP coz it works... and I have compile it with --jpeg-dir options. And seems not working at all. How can I troubleshoot and resolve these problems ? Regards, Feris

Re: [PHP] prevent user from getting scripts outside the web folder

2005-10-15 Thread Graham Anderson
No... Even Worse...and much stupider ;) The php folder I was using for the test project [within the document root] did not have ANY htaccess protection He just opened up the folder in the browser. That folder had an old version of my 'crucial_smil_functions.php' script He got access to that

[PHP] Re: Re: php 5 upgrade - undefined index errors EVERYWHERE

2005-10-15 Thread Michelle Konzack
Have encountered more problems... I am using Debian Sarge and the package php5-pear is missing the DB.php and my whole Database is not more working... Using 'pear install DB' results in a Filesystem nightmare... The new files are not registered inside the Debian Package Management. Greetings Mic

Re: [PHP] editor

2005-10-15 Thread Hodicska Gergely
I read somewhere about an editor, which has built in support for phpdocumentator and creating unit test. Now I could not find it, I tried a lot using Google without success. Could it be PHPEdit ? Yes, thx, this is the editor which I tried to find. I already get it last night, after I tried t

Re: [PHP] fckeditor and PDF and pesky users

2005-10-15 Thread Edward Vermillion
Richard Lynch wrote: A) Attempt to hack fckEditor to "allow" a PDF to get uploaded, and then display a link to the PDF instead of alink to the fckEditor output. B) Give them a separate, possibly confusing, input to upload files to tie in as links to the fckEditor area C) Dump fckEditor and onl

[PHP] PHP5 and SuSE 10 Problem - Help Please

2005-10-15 Thread Andrei Verovski (aka MacGuru)
Hi, After having numerous problems after upgrade from 9.3 to 10.0 (i.e. dead USB), I simply reformatted my HD and installed SuSE 10 from scratch. Everything is almost fine except PHP5.04 - none of PHP program is working. I have configured Apache2 with YaST2 http module, enabled PHP5 and disable

[PHP] Comparison of class with recursive references causes fatal error

2005-10-15 Thread Mark Evans
Hi All I am coming up against a similar issue as http://bugs.php.net/bug.php?id=31449 Take the following code for example (from the bug report) me = $this; } } new Recursive() != new Recursive(); ?> A "nesting level too deep" fatal error is thrown... I can kind of see why th

Re: [PHP] prevent user from getting scripts outside the web folder

2005-10-15 Thread Chris Shiflett
Graham Anderson wrote: my htaccess file for the folder containing the php script was not set properly What does that mean? Are you telling us that /home/siren/includes/ is within document root? If it's not, do you link to it from within document root? Do not store includes within document r

Re: [PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-15 Thread Chris Shiflett
Ruben Rubio Rey wrote: $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); echo $contents; Replace this with: readfile($filename); It's faster for both you and PHP. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http:

Re: [PHP] Still struggeling with my first script...

2005-10-15 Thread Jochem Maas
Chris W. Parker wrote: twistednetadmin on Friday, October 14, 2005 5:15 PM said: All: Sorry. I forgot to write what's wrongstupid me... No problem. You'll get used to it. (I don't mean you'll get used to being stupid! I mean you'll get used to includin